/*! For license information please see application-e85d270367d83858eb11.js.LICENSE.txt */
!function(t){function e(e){for(var n,i,o=e[0],a=e[1],s=0,l=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&l.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);for(u&&u(e);l.length;)l.shift()()}var n={},r={0:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var o=new Promise((function(e,i){n=r[t]=[e,i]}));e.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(t){return i.p+"js/"+({3:"vendors~actioncable"}[t]||t)+"-"+{3:"071ca9851ae7cfc5b869"}[t]+".chunk.js"}(t);var u=new Error;a=function(e){s.onerror=s.onload=null,clearTimeout(l);var n=r[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;u.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",u.name="ChunkLoadError",u.type=i,u.request=o,n[1](u)}r[t]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(e)},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/packs/",i.oe=function(t){throw console.error(t),t};var o=window.webpackJsonp=window.webpackJsonp||[],a=o.push.bind(o);o.push=e,o=o.slice();for(var s=0;s<o.length;s++)e(o[s]);var u=a;i(i.s=625)}([function(t,e,n){(function(t){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)}o=function(){"use strict";var e,r;function i(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(u(t,e))return!1;return!0}function c(t){return void 0===t}function d(t){return"number"===typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,r=[],i=t.length;for(n=0;n<i;++n)r.push(e(t[n],n));return r}function p(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function m(t,e,n,r){return Re(t,e,n,r,!0).utc()}function g(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function y(t){if(null==t._isValid){var e=g(t),n=r.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function v(t){var e=m(NaN);return null!=t?p(g(e),t):g(e).userInvalidated=!0,e}r=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),r=n.length>>>0;for(e=0;e<r;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var _=i.momentProperties=[],b=!1;function w(t,e){var n,r,i,o=_.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=g(e)),c(e._locale)||(t._locale=e._locale),o>0)for(n=0;n<o;n++)c(i=e[r=_[n]])||(t[r]=i);return t}function k(t){w(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,i.updateOffset(this),b=!1)}function S(t){return t instanceof k||null!=t&&null!=t._isAMomentObject}function E(t){!1===i.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var n=!0;return p((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,t),n){var r,o,s,l=[],c=arguments.length;for(o=0;o<c;o++){if(r="","object"===a(arguments[o])){for(s in r+="\n["+o+"] ",arguments[0])u(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[o];l.push(r)}E(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var x,D={};function A(t,e){null!=i.deprecationHandler&&i.deprecationHandler(t,e),D[t]||(E(e),D[t]=!0)}function T(t){return"undefined"!==typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t,e){var n,r=p({},t);for(n in e)u(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},p(r[n],t[n]),p(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)u(t,n)&&!u(e,n)&&s(t[n])&&(r[n]=p({},r[n]));return r}function L(t){null!=t&&this.set(t)}function O(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,x=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,P=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,R={},N={};function F(t,e,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),t&&(N[t]=i),e&&(N[e[0]]=function(){return O(i.apply(this,arguments),e[1],e[2])}),n&&(N[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function j(t,e){return t.isValid()?(e=B(e,t.localeData()),R[e]=R[e]||function(t){var e,n,r,i=t.match(I);for(e=0,n=i.length;e<n;e++)N[i[e]]?i[e]=N[i[e]]:i[e]=(r=i[e]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(e){var r,o="";for(r=0;r<n;r++)o+=T(i[r])?i[r].call(e,t):i[r];return o}}(e),R[e](t)):t.localeData().invalidDate()}function B(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(P.lastIndex=0;n>=0&&P.test(t);)t=t.replace(P,r),P.lastIndex=0,n-=1;return t}var Y={};function H(t,e){var n=t.toLowerCase();Y[n]=Y[n+"s"]=Y[e]=t}function z(t){return"string"===typeof t?Y[t]||Y[t.toLowerCase()]:void 0}function W(t){var e,n,r={};for(n in t)u(t,n)&&(e=z(n))&&(r[e]=t[n]);return r}var V={};function U(t,e){V[t]=e}function q(t){return t%4===0&&t%100!==0||t%400===0}function G(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function $(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=G(e)),n}function K(t,e){return function(n){return null!=n?(X(this,t,n),i.updateOffset(this,e),this):Z(this,t)}}function Z(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function X(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&q(t.year())&&1===t.month()&&29===t.date()?(n=$(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Ot(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var J,Q=/\d/,tt=/\d\d/,et=/\d{3}/,nt=/\d{4}/,rt=/[+-]?\d{6}/,it=/\d\d?/,ot=/\d\d\d\d?/,at=/\d\d\d\d\d\d?/,st=/\d{1,3}/,ut=/\d{1,4}/,lt=/[+-]?\d{1,6}/,ct=/\d+/,dt=/[+-]?\d+/,ht=/Z|[+-]\d\d:?\d\d/gi,ft=/Z|[+-]\d\d(?::?\d\d)?/gi,pt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function mt(t,e,n){J[t]=T(e)?e:function(t,r){return t&&n?n:e}}function gt(t,e){return u(J,t)?J[t](e._strict,e._locale):new RegExp(yt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i}))))}function yt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}J={};var vt={};function _t(t,e){var n,r,i=e;for("string"===typeof t&&(t=[t]),d(e)&&(i=function(t,n){n[e]=$(t)}),r=t.length,n=0;n<r;n++)vt[t[n]]=i}function bt(t,e){_t(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function wt(t,e,n){null!=e&&u(vt,t)&&vt[t](e,n._a,n,t)}var kt,St=0,Et=1,Ct=2,xt=3,Dt=4,At=5,Tt=6,Mt=7,Lt=8;function Ot(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,r=(e%(n=12)+n)%n;return t+=(e-r)/12,1===r?q(t)?29:28:31-r%7%2}kt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),F("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),H("month","M"),U("month",8),mt("M",it),mt("MM",it,tt),mt("MMM",(function(t,e){return e.monthsShortRegex(t)})),mt("MMMM",(function(t,e){return e.monthsRegex(t)})),_t(["M","MM"],(function(t,e){e[Et]=$(t)-1})),_t(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[Et]=i:g(n).invalidMonth=t}));var It="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Pt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Rt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Nt=pt,Ft=pt;function jt(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=kt.call(this._shortMonthsParse,a))?i:null:-1!==(i=kt.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=kt.call(this._shortMonthsParse,a))||-1!==(i=kt.call(this._longMonthsParse,a))?i:null:-1!==(i=kt.call(this._longMonthsParse,a))||-1!==(i=kt.call(this._shortMonthsParse,a))?i:null}function Bt(t,e){var n;if(!t.isValid())return t;if("string"===typeof e)if(/^\d+$/.test(e))e=$(e);else if(!d(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Ot(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Yt(t){return null!=t?(Bt(this,t),i.updateOffset(this,!0),this):Z(this,"Month")}function Ht(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],o=[];for(e=0;e<12;e++)n=m([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),o.sort(t),e=0;e<12;e++)r[e]=yt(r[e]),i[e]=yt(i[e]);for(e=0;e<24;e++)o[e]=yt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function zt(t){return q(t)?366:365}F("Y",0,0,(function(){var t=this.year();return t<=9999?O(t,4):"+"+t})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),H("year","y"),U("year",1),mt("Y",dt),mt("YY",it,tt),mt("YYYY",ut,nt),mt("YYYYY",lt,rt),mt("YYYYYY",lt,rt),_t(["YYYYY","YYYYYY"],St),_t("YYYY",(function(t,e){e[St]=2===t.length?i.parseTwoDigitYear(t):$(t)})),_t("YY",(function(t,e){e[St]=i.parseTwoDigitYear(t)})),_t("Y",(function(t,e){e[St]=parseInt(t,10)})),i.parseTwoDigitYear=function(t){return $(t)+($(t)>68?1900:2e3)};var Wt=K("FullYear",!0);function Vt(t,e,n,r,i,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,o,a),s}function Ut(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function qt(t,e,n){var r=7+e-n;return-(7+Ut(t,0,r).getUTCDay()-e)%7+r-1}function Gt(t,e,n,r,i){var o,a,s=1+7*(e-1)+(7+n-r)%7+qt(t,r,i);return s<=0?a=zt(o=t-1)+s:s>zt(t)?(o=t+1,a=s-zt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function $t(t,e,n){var r,i,o=qt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?r=a+Kt(i=t.year()-1,e,n):a>Kt(t.year(),e,n)?(r=a-Kt(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Kt(t,e,n){var r=qt(t,e,n),i=qt(t+1,e,n);return(zt(t)-r+i)/7}function Zt(t,e){return t.slice(e,7).concat(t.slice(0,e))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),U("week",5),U("isoWeek",5),mt("w",it),mt("ww",it,tt),mt("W",it),mt("WW",it,tt),bt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=$(t)})),F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),mt("d",it),mt("e",it),mt("E",it),mt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),mt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),mt("dddd",(function(t,e){return e.weekdaysRegex(t)})),bt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:g(n).invalidWeekday=t})),bt(["d","e","E"],(function(t,e,n,r){e[r]=$(t)}));var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Jt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),te=pt,ee=pt,ne=pt;function re(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=m([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=kt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=kt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=kt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=kt.call(this._weekdaysParse,a))||-1!==(i=kt.call(this._shortWeekdaysParse,a))||-1!==(i=kt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=kt.call(this._shortWeekdaysParse,a))||-1!==(i=kt.call(this._weekdaysParse,a))||-1!==(i=kt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=kt.call(this._minWeekdaysParse,a))||-1!==(i=kt.call(this._weekdaysParse,a))||-1!==(i=kt.call(this._shortWeekdaysParse,a))?i:null}function ie(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=m([2e3,1]).day(e),r=yt(this.weekdaysMin(n,"")),i=yt(this.weekdaysShort(n,"")),o=yt(this.weekdays(n,"")),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);a.sort(t),s.sort(t),u.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function oe(){return this.hours()%12||12}function ae(t,e){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function se(t,e){return e._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,oe),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+oe.apply(this)+O(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+oe.apply(this)+O(this.minutes(),2)+O(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+O(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+O(this.minutes(),2)+O(this.seconds(),2)})),ae("a",!0),ae("A",!1),H("hour","h"),U("hour",13),mt("a",se),mt("A",se),mt("H",it),mt("h",it),mt("k",it),mt("HH",it,tt),mt("hh",it,tt),mt("kk",it,tt),mt("hmm",ot),mt("hmmss",at),mt("Hmm",ot),mt("Hmmss",at),_t(["H","HH"],xt),_t(["k","kk"],(function(t,e,n){var r=$(t);e[xt]=24===r?0:r})),_t(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),_t(["h","hh"],(function(t,e,n){e[xt]=$(t),g(n).bigHour=!0})),_t("hmm",(function(t,e,n){var r=t.length-2;e[xt]=$(t.substr(0,r)),e[Dt]=$(t.substr(r)),g(n).bigHour=!0})),_t("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[xt]=$(t.substr(0,r)),e[Dt]=$(t.substr(r,2)),e[At]=$(t.substr(i)),g(n).bigHour=!0})),_t("Hmm",(function(t,e,n){var r=t.length-2;e[xt]=$(t.substr(0,r)),e[Dt]=$(t.substr(r))})),_t("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[xt]=$(t.substr(0,r)),e[Dt]=$(t.substr(r,2)),e[At]=$(t.substr(i))}));var ue,le=K("Hours",!0),ce={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:It,monthsShort:Pt,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:Qt,weekdaysShort:Jt,meridiemParse:/[ap]\.?m?\.?/i},de={},he={};function fe(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function pe(t){return t?t.toLowerCase().replace("_","-"):t}function me(e){var r=null;if(void 0===de[e]&&"undefined"!==typeof t&&t&&t.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(e))try{r=ue._abbr,n(590)("./"+e),ge(r)}catch(i){de[e]=null}return de[e]}function ge(t,e){var n;return t&&((n=c(e)?ve(t):ye(t,e))?ue=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ue._abbr}function ye(t,e){if(null!==e){var n,r=ce;if(e.abbr=t,null!=de[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=de[t]._config;else if(null!=e.parentLocale)if(null!=de[e.parentLocale])r=de[e.parentLocale]._config;else{if(null==(n=me(e.parentLocale)))return he[e.parentLocale]||(he[e.parentLocale]=[]),he[e.parentLocale].push({name:t,config:e}),null;r=n._config}return de[t]=new L(M(r,e)),he[t]&&he[t].forEach((function(t){ye(t.name,t.config)})),ge(t),de[t]}return delete de[t],null}function ve(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ue;if(!o(t)){if(e=me(t))return e;t=[t]}return function(t){for(var e,n,r,i,o=0;o<t.length;){for(e=(i=pe(t[o]).split("-")).length,n=(n=pe(t[o+1]))?n.split("-"):null;e>0;){if(r=me(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&fe(i,n)>=e-1)break;e--}o++}return ue}(t)}function _e(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[Et]<0||n[Et]>11?Et:n[Ct]<1||n[Ct]>Ot(n[St],n[Et])?Ct:n[xt]<0||n[xt]>24||24===n[xt]&&(0!==n[Dt]||0!==n[At]||0!==n[Tt])?xt:n[Dt]<0||n[Dt]>59?Dt:n[At]<0||n[At]>59?At:n[Tt]<0||n[Tt]>999?Tt:-1,g(t)._overflowDayOfYear&&(e<St||e>Ct)&&(e=Ct),g(t)._overflowWeeks&&-1===e&&(e=Mt),g(t)._overflowWeekday&&-1===e&&(e=Lt),g(t).overflow=e),t}var be=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,we=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ke=/Z|[+-]\d\d(?::?\d\d)?/,Se=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ee=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ce=/^\/?Date\((-?\d+)/i,xe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,De={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ae(t){var e,n,r,i,o,a,s=t._i,u=be.exec(s)||we.exec(s),l=Se.length,c=Ee.length;if(u){for(g(t).iso=!0,e=0,n=l;e<n;e++)if(Se[e][1].exec(u[1])){i=Se[e][0],r=!1!==Se[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=c;e<n;e++)if(Ee[e][1].exec(u[3])){o=(u[2]||" ")+Ee[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(u[4]){if(!ke.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),Ie(t)}else t._isValid=!1}function Te(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Me(t){var e,n,r,i,o,a,s,u,l=xe.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(n=l[4],r=l[3],i=l[2],o=l[5],a=l[6],s=l[7],u=[Te(n),Pt.indexOf(r),parseInt(i,10),parseInt(o,10),parseInt(a,10)],s&&u.push(parseInt(s,10)),e=u,!function(t,e,n){return!t||Jt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],e,t))return;t._a=e,t._tzm=function(t,e,n){if(t)return De[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(l[8],l[9],l[10]),t._d=Ut.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function Le(t,e,n){return null!=t?t:null!=e?e:n}function Oe(t){var e,n,r,o,a,s=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[Ct]&&null==t._a[Et]&&function(t){var e,n,r,i,o,a,s,u,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,n=Le(e.GG,t._a[St],$t(Ne(),1,4).year),r=Le(e.W,1),((i=Le(e.E,1))<1||i>7)&&(u=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,l=$t(Ne(),o,a),n=Le(e.gg,t._a[St],l.year),r=Le(e.w,l.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(u=!0)):i=o),r<1||r>Kt(n,o,a)?g(t)._overflowWeeks=!0:null!=u?g(t)._overflowWeekday=!0:(s=Gt(n,r,i,o,a),t._a[St]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=Le(t._a[St],r[St]),(t._dayOfYear>zt(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=Ut(a,0,t._dayOfYear),t._a[Et]=n.getUTCMonth(),t._a[Ct]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[xt]&&0===t._a[Dt]&&0===t._a[At]&&0===t._a[Tt]&&(t._nextDay=!0,t._a[xt]=0),t._d=(t._useUTC?Ut:Vt).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[xt]=24),t._w&&"undefined"!==typeof t._w.d&&t._w.d!==o&&(g(t).weekdayMismatch=!0)}}function Ie(t){if(t._f!==i.ISO_8601)if(t._f!==i.RFC_2822){t._a=[],g(t).empty=!0;var e,n,r,o,a,s,u,l=""+t._i,c=l.length,d=0;for(u=(r=B(t._f,t._locale).match(I)||[]).length,e=0;e<u;e++)o=r[e],(n=(l.match(gt(o,t))||[])[0])&&((a=l.substr(0,l.indexOf(n))).length>0&&g(t).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),d+=n.length),N[o]?(n?g(t).empty=!1:g(t).unusedTokens.push(o),wt(o,n,t)):t._strict&&!n&&g(t).unusedTokens.push(o);g(t).charsLeftOver=c-d,l.length>0&&g(t).unusedInput.push(l),t._a[xt]<=12&&!0===g(t).bigHour&&t._a[xt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[xt]=function(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}(t._locale,t._a[xt],t._meridiem),null!==(s=g(t).era)&&(t._a[St]=t._locale.erasConvertYear(s,t._a[St])),Oe(t),_e(t)}else Me(t);else Ae(t)}function Pe(t){var e=t._i,n=t._f;return t._locale=t._locale||ve(t._l),null===e||void 0===n&&""===e?v({nullInput:!0}):("string"===typeof e&&(t._i=e=t._locale.preparse(e)),S(e)?new k(_e(e)):(h(e)?t._d=e:o(n)?function(t){var e,n,r,i,o,a,s=!1,u=t._f.length;if(0===u)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<u;i++)o=0,a=!1,e=w({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Ie(e),y(e)&&(a=!0),o+=g(e).charsLeftOver,o+=10*g(e).unusedTokens.length,g(e).score=o,s?o<r&&(r=o,n=e):(null==r||o<r||a)&&(r=o,n=e,a&&(s=!0));p(t,n||e)}(t):n?Ie(t):function(t){var e=t._i;c(e)?t._d=new Date(i.now()):h(e)?t._d=new Date(e.valueOf()):"string"===typeof e?function(t){var e=Ce.exec(t._i);null===e?(Ae(t),!1===t._isValid&&(delete t._isValid,Me(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:i.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):o(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Oe(t)):s(e)?function(t){if(!t._d){var e=W(t._i),n=void 0===e.day?e.date:e.day;t._a=f([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Oe(t)}}(t):d(e)?t._d=new Date(e):i.createFromInputFallback(t)}(t),y(t)||(t._d=null),t))}function Re(t,e,n,r,i){var a,u={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&l(t)||o(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=i,u._l=n,u._i=t,u._f=e,u._strict=r,(a=new k(_e(Pe(u))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Ne(t,e,n,r){return Re(t,e,n,r,!1)}i.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Fe=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ne.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()})),je=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ne.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()}));function Be(t,e){var n,r;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Ne();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ye=["year","quarter","month","week","day","hour","minute","second","millisecond"];function He(t){var e=W(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,l=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,n,r=!1,i=Ye.length;for(e in t)if(u(t,e)&&(-1===kt.call(Ye,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<i;++n)if(t[Ye[n]]){if(r)return!1;parseFloat(t[Ye[n]])!==$(t[Ye[n]])&&(r=!0)}return!0}(e),this._milliseconds=+d+1e3*c+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ve(),this._bubble()}function ze(t){return t instanceof He}function We(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ve(t,e){F(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+O(~~(t/60),2)+e+O(~~t%60,2)}))}Ve("Z",":"),Ve("ZZ",""),mt("Z",ft),mt("ZZ",ft),_t(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=qe(ft,t)}));var Ue=/([\+\-]|\d\d)/gi;function qe(t,e){var n,r,i=(e||"").match(t);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(Ue)||["-",0,0])[1]+$(n[2]))?0:"+"===n[0]?r:-r}function Ge(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(S(t)||h(t)?t.valueOf():Ne(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Ne(t).local()}function $e(t){return-Math.round(t._d.getTimezoneOffset())}function Ke(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ze=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Xe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Je(t,e){var n,r,i,o,s,l,c=t,h=null;return ze(t)?c={ms:t._milliseconds,d:t._days,M:t._months}:d(t)||!isNaN(+t)?(c={},e?c[e]=+t:c.milliseconds=+t):(h=Ze.exec(t))?(n="-"===h[1]?-1:1,c={y:0,d:$(h[Ct])*n,h:$(h[xt])*n,m:$(h[Dt])*n,s:$(h[At])*n,ms:$(We(1e3*h[Tt]))*n}):(h=Xe.exec(t))?(n="-"===h[1]?-1:1,c={y:Qe(h[2],n),M:Qe(h[3],n),w:Qe(h[4],n),d:Qe(h[5],n),h:Qe(h[6],n),m:Qe(h[7],n),s:Qe(h[8],n)}):null==c?c={}:"object"===a(c)&&("from"in c||"to"in c)&&(o=Ne(c.from),s=Ne(c.to),i=o.isValid()&&s.isValid()?(s=Ge(s,o),o.isBefore(s)?l=tn(o,s):((l=tn(s,o)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),r=new He(c),ze(t)&&u(t,"_locale")&&(r._locale=t._locale),ze(t)&&u(t,"_isValid")&&(r._isValid=t._isValid),r}function Qe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function tn(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function en(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),nn(this,Je(n,r),t),this}}function nn(t,e,n,r){var o=e._milliseconds,a=We(e._days),s=We(e._months);t.isValid()&&(r=null==r||r,s&&Bt(t,Z(t,"Month")+s*n),a&&X(t,"Date",Z(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&i.updateOffset(t,a||s))}Je.fn=He.prototype,Je.invalid=function(){return Je(NaN)};var rn=en(1,"add"),on=en(-1,"subtract");function an(t){return"string"===typeof t||t instanceof String}function sn(t){return S(t)||h(t)||an(t)||d(t)||function(t){var e=o(t),n=!1;return e&&(n=0===t.filter((function(e){return!d(e)&&an(t)})).length),e&&n}(t)||function(t){var e,n,r=s(t)&&!l(t),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=o.length;for(e=0;e<a;e+=1)n=o[e],i=i||u(t,n);return r&&i}(t)||null===t||void 0===t}function un(t,e){if(t.date()<e.date())return-un(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function ln(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ve(t))&&(this._locale=e),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cn=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function dn(){return this._locale}var hn=1e3,fn=6e4,pn=36e5,mn=126227808e5;function gn(t,e){return(t%e+e)%e}function yn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-mn:new Date(t,e,n).valueOf()}function vn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-mn:Date.UTC(t,e,n)}function _n(t,e){return e.erasAbbrRegex(t)}function bn(){var t,e,n=[],r=[],i=[],o=[],a=this.eras();for(t=0,e=a.length;t<e;++t)r.push(yt(a[t].name)),n.push(yt(a[t].abbr)),i.push(yt(a[t].narrow)),o.push(yt(a[t].name)),o.push(yt(a[t].abbr)),o.push(yt(a[t].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function wn(t,e){F(0,[t,t.length],0,e)}function kn(t,e,n,r,i){var o;return null==t?$t(this,r,i).year:(e>(o=Kt(t,r,i))&&(e=o),Sn.call(this,t,e,n,r,i))}function Sn(t,e,n,r,i){var o=Gt(t,e,n,r,i),a=Ut(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),mt("N",_n),mt("NN",_n),mt("NNN",_n),mt("NNNN",(function(t,e){return e.erasNameRegex(t)})),mt("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),_t(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?g(n).era=i:g(n).invalidEra=t})),mt("y",ct),mt("yy",ct),mt("yyy",ct),mt("yyyy",ct),mt("yo",(function(t,e){return e._eraYearOrdinalRegex||ct})),_t(["y","yy","yyy","yyyy"],St),_t(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[St]=n._locale.eraYearOrdinalParse(t,i):e[St]=parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),wn("gggg","weekYear"),wn("ggggg","weekYear"),wn("GGGG","isoWeekYear"),wn("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),mt("G",dt),mt("g",dt),mt("GG",it,tt),mt("gg",it,tt),mt("GGGG",ut,nt),mt("gggg",ut,nt),mt("GGGGG",lt,rt),mt("ggggg",lt,rt),bt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=$(t)})),bt(["gg","GG"],(function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),H("quarter","Q"),U("quarter",7),mt("Q",Q),_t("Q",(function(t,e){e[Et]=3*($(t)-1)})),F("D",["DD",2],"Do","date"),H("date","D"),U("date",9),mt("D",it),mt("DD",it,tt),mt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),_t(["D","DD"],Ct),_t("Do",(function(t,e){e[Ct]=$(t.match(it)[0])}));var En=K("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),U("dayOfYear",4),mt("DDD",st),mt("DDDD",et),_t(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=$(t)})),F("m",["mm",2],0,"minute"),H("minute","m"),U("minute",14),mt("m",it),mt("mm",it,tt),_t(["m","mm"],Dt);var Cn=K("Minutes",!1);F("s",["ss",2],0,"second"),H("second","s"),U("second",15),mt("s",it),mt("ss",it,tt),_t(["s","ss"],At);var xn,Dn,An=K("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),U("millisecond",16),mt("S",st,Q),mt("SS",st,tt),mt("SSS",st,et),xn="SSSS";xn.length<=9;xn+="S")mt(xn,ct);function Tn(t,e){e[Tt]=$(1e3*("0."+t))}for(xn="S";xn.length<=9;xn+="S")_t(xn,Tn);Dn=K("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var Mn=k.prototype;function Ln(t){return t}Mn.add=rn,Mn.calendar=function(t,e){1===arguments.length&&(arguments[0]?sn(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,n=s(t)&&!l(t),r=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<i.length;e+=1)r=r||u(t,i[e]);return n&&r}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Ne(),r=Ge(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=e&&(T(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,Ne(n)))},Mn.clone=function(){return new k(this)},Mn.diff=function(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Ge(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=z(e)){case"year":o=un(this,r)/12;break;case"month":o=un(this,r);break;case"quarter":o=un(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:G(o)},Mn.endOf=function(t){var e,n;if(void 0===(t=z(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?vn:yn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=pn-gn(e+(this._isUTC?0:this.utcOffset()*fn),pn)-1;break;case"minute":e=this._d.valueOf(),e+=fn-gn(e,fn)-1;break;case"second":e=this._d.valueOf(),e+=hn-gn(e,hn)-1}return this._d.setTime(e),i.updateOffset(this,!0),this},Mn.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=j(this,t);return this.localeData().postformat(e)},Mn.from=function(t,e){return this.isValid()&&(S(t)&&t.isValid()||Ne(t).isValid())?Je({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Mn.fromNow=function(t){return this.from(Ne(),t)},Mn.to=function(t,e){return this.isValid()&&(S(t)&&t.isValid()||Ne(t).isValid())?Je({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Mn.toNow=function(t){return this.to(Ne(),t)},Mn.get=function(t){return T(this[t=z(t)])?this[t]():this},Mn.invalidAt=function(){return g(this).overflow},Mn.isAfter=function(t,e){var n=S(t)?t:Ne(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=z(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},Mn.isBefore=function(t,e){var n=S(t)?t:Ne(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=z(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},Mn.isBetween=function(t,e,n,r){var i=S(t)?t:Ne(t),o=S(e)?e:Ne(e);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},Mn.isSame=function(t,e){var n,r=S(t)?t:Ne(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=z(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},Mn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Mn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Mn.isValid=function(){return y(this)},Mn.lang=cn,Mn.locale=ln,Mn.localeData=dn,Mn.max=je,Mn.min=Fe,Mn.parsingFlags=function(){return p({},g(this))},Mn.set=function(t,e){if("object"===a(t)){var n,r=function(t){var e,n=[];for(e in t)u(t,e)&&n.push({unit:e,priority:V[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}(t=W(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(T(this[t=z(t)]))return this[t](e);return this},Mn.startOf=function(t){var e,n;if(void 0===(t=z(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?vn:yn,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=gn(e+(this._isUTC?0:this.utcOffset()*fn),pn);break;case"minute":e=this._d.valueOf(),e-=gn(e,fn);break;case"second":e=this._d.valueOf(),e-=gn(e,hn)}return this._d.setTime(e),i.updateOffset(this,!0),this},Mn.subtract=on,Mn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Mn.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Mn.toDate=function(){return new Date(this.valueOf())},Mn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?j(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(n,"Z")):j(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Mn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r="moment",i="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+r+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!==typeof Symbol&&null!=Symbol.for&&(Mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Mn.toJSON=function(){return this.isValid()?this.toISOString():null},Mn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Mn.unix=function(){return Math.floor(this.valueOf()/1e3)},Mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Mn.eraName=function(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].name;if(r[t].until<=n&&n<=r[t].since)return r[t].name}return""},Mn.eraNarrow=function(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""},Mn.eraAbbr=function(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].abbr;if(r[t].until<=n&&n<=r[t].since)return r[t].abbr}return""},Mn.eraYear=function(){var t,e,n,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-i(o[t].since).year())*n+o[t].offset;return this.year()},Mn.year=Wt,Mn.isLeapYear=function(){return q(this.year())},Mn.weekYear=function(t){return kn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Mn.isoWeekYear=function(t){return kn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Mn.quarter=Mn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Mn.month=Yt,Mn.daysInMonth=function(){return Ot(this.year(),this.month())},Mn.week=Mn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Mn.isoWeek=Mn.isoWeeks=function(t){var e=$t(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Mn.weeksInYear=function(){var t=this.localeData()._week;return Kt(this.year(),t.dow,t.doy)},Mn.weeksInWeekYear=function(){var t=this.localeData()._week;return Kt(this.weekYear(),t.dow,t.doy)},Mn.isoWeeksInYear=function(){return Kt(this.year(),1,4)},Mn.isoWeeksInISOWeekYear=function(){return Kt(this.isoWeekYear(),1,4)},Mn.date=En,Mn.day=Mn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!==typeof t?t:isNaN(t)?"number"===typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Mn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Mn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"===typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Mn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Mn.hour=Mn.hours=le,Mn.minute=Mn.minutes=Cn,Mn.second=Mn.seconds=An,Mn.millisecond=Mn.milliseconds=Dn,Mn.utcOffset=function(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"===typeof t){if(null===(t=qe(ft,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=$e(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?nn(this,Je(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:$e(this)},Mn.utc=function(t){return this.utcOffset(0,t)},Mn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract($e(this),"m")),this},Mn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var t=qe(ht,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Mn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ne(t).utcOffset():0,(this.utcOffset()-t)%60===0)},Mn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Mn.isUtc=Ke,Mn.isUTC=Ke,Mn.zoneAbbr=function(){return this._isUTC?"UTC":""},Mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Mn.dates=C("dates accessor is deprecated. Use date instead.",En),Mn.months=C("months accessor is deprecated. Use month instead",Yt),Mn.years=C("years accessor is deprecated. Use year instead",Wt),Mn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!==typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Mn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return w(e,this),(e=Pe(e))._a?(t=e._isUTC?m(e._a):Ne(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&$(t[r])!==$(e[r]))&&a++;return a+o}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var On=L.prototype;function In(t,e,n,r){var i=ve(),o=m().set(r,e);return i[n](o,t)}function Pn(t,e,n){if(d(t)&&(e=t,t=void 0),t=t||"",null!=e)return In(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=In(t,r,n,"month");return i}function Rn(t,e,n,r){"boolean"===typeof t?(d(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,d(e)&&(n=e,e=void 0),e=e||"");var i,o=ve(),a=t?o._week.dow:0,s=[];if(null!=n)return In(e,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=In(e,(i+a)%7,r,"day");return s}On.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return T(r)?r.call(e,n):r},On.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(I).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},On.invalidDate=function(){return this._invalidDate},On.ordinal=function(t){return this._ordinal.replace("%d",t)},On.preparse=Ln,On.postformat=Ln,On.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return T(i)?i(t,e,n,r):i.replace(/%d/i,t)},On.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return T(n)?n(e):n.replace(/%s/i,e)},On.set=function(t){var e,n;for(n in t)u(t,n)&&(T(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},On.eras=function(t,e){var n,r,o,s=this._eras||ve("en")._eras;for(n=0,r=s.length;n<r;++n)switch("string"===a(s[n].since)&&(o=i(s[n].since).startOf("day"),s[n].since=o.valueOf()),a(s[n].until)){case"undefined":s[n].until=1/0;break;case"string":o=i(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s},On.erasParse=function(t,e,n){var r,i,o,a,s,u=this.eras();for(t=t.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),a=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return u[r];break;case"NNNN":if(o===t)return u[r];break;case"NNNNN":if(s===t)return u[r]}else if([o,a,s].indexOf(t)>=0)return u[r]},On.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?i(t.since).year():i(t.since).year()+(e-t.offset)*n},On.erasAbbrRegex=function(t){return u(this,"_erasAbbrRegex")||bn.call(this),t?this._erasAbbrRegex:this._erasRegex},On.erasNameRegex=function(t){return u(this,"_erasNameRegex")||bn.call(this),t?this._erasNameRegex:this._erasRegex},On.erasNarrowRegex=function(t){return u(this,"_erasNarrowRegex")||bn.call(this),t?this._erasNarrowRegex:this._erasRegex},On.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Rt).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},On.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Rt.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},On.monthsParse=function(t,e,n){var r,i,o;if(this._monthsParseExact)return jt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=m([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},On.monthsRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Ht.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Ft),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},On.monthsShortRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Ht.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Nt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},On.week=function(t){return $t(t,this._week.dow,this._week.doy).week},On.firstDayOfYear=function(){return this._week.doy},On.firstDayOfWeek=function(){return this._week.dow},On.weekdays=function(t,e){var n=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Zt(n,this._week.dow):t?n[t.day()]:n},On.weekdaysMin=function(t){return!0===t?Zt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},On.weekdaysShort=function(t){return!0===t?Zt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},On.weekdaysParse=function(t,e,n){var r,i,o;if(this._weekdaysParseExact)return re.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=m([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},On.weekdaysRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=te),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},On.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ee),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},On.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ie.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ne),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},On.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},On.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},ge("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===$(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",ge),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",ve);var Nn=Math.abs;function Fn(t,e,n,r){var i=Je(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function jn(t){return t<0?Math.floor(t):Math.ceil(t)}function Bn(t){return 4800*t/146097}function Yn(t){return 146097*t/4800}function Hn(t){return function(){return this.as(t)}}var zn=Hn("ms"),Wn=Hn("s"),Vn=Hn("m"),Un=Hn("h"),qn=Hn("d"),Gn=Hn("w"),$n=Hn("M"),Kn=Hn("Q"),Zn=Hn("y");function Xn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Jn=Xn("milliseconds"),Qn=Xn("seconds"),tr=Xn("minutes"),er=Xn("hours"),nr=Xn("days"),rr=Xn("months"),ir=Xn("years"),or=Math.round,ar={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function sr(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}var ur=Math.abs;function lr(t){return(t>0)-(t<0)||+t}function cr(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,o,a,s,u=ur(this._milliseconds)/1e3,l=ur(this._days),c=ur(this._months),d=this.asSeconds();return d?(t=G(u/60),e=G(t/60),u%=60,t%=60,n=G(c/12),c%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=lr(this._months)!==lr(d)?"-":"",a=lr(this._days)!==lr(d)?"-":"",s=lr(this._milliseconds)!==lr(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(l?a+l+"D":"")+(e||t||u?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(u?s+r+"S":"")):"P0D"}var dr=He.prototype;return dr.isValid=function(){return this._isValid},dr.abs=function(){var t=this._data;return this._milliseconds=Nn(this._milliseconds),this._days=Nn(this._days),this._months=Nn(this._months),t.milliseconds=Nn(t.milliseconds),t.seconds=Nn(t.seconds),t.minutes=Nn(t.minutes),t.hours=Nn(t.hours),t.months=Nn(t.months),t.years=Nn(t.years),this},dr.add=function(t,e){return Fn(this,t,e,1)},dr.subtract=function(t,e){return Fn(this,t,e,-1)},dr.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=z(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Bn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Yn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},dr.asMilliseconds=zn,dr.asSeconds=Wn,dr.asMinutes=Vn,dr.asHours=Un,dr.asDays=qn,dr.asWeeks=Gn,dr.asMonths=$n,dr.asQuarters=Kn,dr.asYears=Zn,dr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*$(this._months/12):NaN},dr._bubble=function(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*jn(Yn(s)+a),a=0,s=0),u.milliseconds=o%1e3,t=G(o/1e3),u.seconds=t%60,e=G(t/60),u.minutes=e%60,n=G(e/60),u.hours=n%24,a+=G(n/24),s+=i=G(Bn(a)),a-=jn(Yn(i)),r=G(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},dr.clone=function(){return Je(this)},dr.get=function(t){return t=z(t),this.isValid()?this[t+"s"]():NaN},dr.milliseconds=Jn,dr.seconds=Qn,dr.minutes=tr,dr.hours=er,dr.days=nr,dr.weeks=function(){return G(this.days()/7)},dr.months=rr,dr.years=ir,dr.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ar;return"object"===a(t)&&(e=t,t=!1),"boolean"===typeof t&&(i=t),"object"===a(e)&&(o=Object.assign({},ar,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),r=function(t,e,n,r){var i=Je(t).abs(),o=or(i.as("s")),a=or(i.as("m")),s=or(i.as("h")),u=or(i.as("d")),l=or(i.as("M")),c=or(i.as("w")),d=or(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||l<=1&&["M"]||l<n.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=e,h[3]=+t>0,h[4]=r,sr.apply(null,h)}(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)},dr.toISOString=cr,dr.toString=cr,dr.toJSON=cr,dr.locale=ln,dr.localeData=dn,dr.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cr),dr.lang=cn,F("X",0,0,"unix"),F("x",0,0,"valueOf"),mt("x",dt),mt("X",/[+-]?\d+(\.\d{1,3})?/),_t("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),_t("x",(function(t,e,n){n._d=new Date($(t))})),i.version="2.29.4",e=Ne,i.fn=Mn,i.min=function(){return Be("isBefore",[].slice.call(arguments,0))},i.max=function(){return Be("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=m,i.unix=function(t){return Ne(1e3*t)},i.months=function(t,e){return Pn(t,e,"months")},i.isDate=h,i.locale=ge,i.invalid=v,i.duration=Je,i.isMoment=S,i.weekdays=function(t,e,n){return Rn(t,e,n,"weekdays")},i.parseZone=function(){return Ne.apply(null,arguments).parseZone()},i.localeData=ve,i.isDuration=ze,i.monthsShort=function(t,e){return Pn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return Rn(t,e,n,"weekdaysMin")},i.defineLocale=ye,i.updateLocale=function(t,e){if(null!=e){var n,r,i=ce;null!=de[t]&&null!=de[t].parentLocale?de[t].set(M(de[t]._config,e)):(null!=(r=me(t))&&(i=r._config),e=M(i,e),null==r&&(e.abbr=t),(n=new L(e)).parentLocale=de[t],de[t]=n),ge(t)}else null!=de[t]&&(null!=de[t].parentLocale?(de[t]=de[t].parentLocale,t===ge()&&ge(t)):null!=de[t]&&delete de[t]);return de[t]},i.locales=function(){return x(de)},i.weekdaysShort=function(t,e,n){return Rn(t,e,n,"weekdaysShort")},i.normalizeUnits=z,i.relativeTimeRounding=function(t){return void 0===t?or:"function"===typeof t&&(or=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==ar[t]&&(void 0===e?ar[t]:(ar[t]=e,"s"===t&&(ar.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=Mn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i},"object"===a(e)&&"undefined"!==typeof t?t.exports=o():void 0===(i="function"===typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i)}).call(this,n(424)(t))},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.getNotFoundInstance=function(){return new e},e.kind="NotFoundException",e}(i.a);e.a=a},function(t,e,n){"use strict";var r;n.d(e,"h",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"n",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"t",(function(){return l})),n.d(e,"k",(function(){return c})),n.d(e,"j",(function(){return d})),n.d(e,"v",(function(){return h})),n.d(e,"o",(function(){return f})),n.d(e,"q",(function(){return p})),n.d(e,"i",(function(){return m})),n.d(e,"m",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"e",(function(){return v})),n.d(e,"x",(function(){return _})),n.d(e,"p",(function(){return b})),n.d(e,"r",(function(){return w})),n.d(e,"s",(function(){return k})),n.d(e,"b",(function(){return S})),n.d(e,"d",(function(){return E})),n.d(e,"u",(function(){return C})),n.d(e,"w",(function(){return x})),n.d(e,"f",(function(){return D})),n.d(e,"c",(function(){return A}));var i,o=[5,7,10,11,12,14,18,20,24,28,36,42,48,56,62,68],a=[[228,48,15,111,62],[23,68,144,134,240,92,254],[28,24,185,166,223,248,116,255,110,61],[175,138,205,12,194,168,39,245,60,97,120],[41,153,158,91,61,42,142,213,97,178,100,242],[156,97,192,252,95,9,157,119,138,45,18,186,83,185],[83,195,100,39,188,75,66,61,241,213,109,129,94,254,225,48,90,188],[15,195,244,9,233,71,168,2,188,160,153,145,253,79,108,82,27,174,186,172],[52,190,88,205,109,39,176,21,155,197,251,223,155,21,5,172,254,124,12,181,184,96,50,193],[211,231,43,97,71,96,103,174,37,151,170,53,75,34,249,121,17,138,110,213,141,136,120,151,233,168,93,255],[245,127,242,218,130,250,162,181,102,120,84,179,220,251,80,182,229,18,2,4,68,33,101,137,95,119,115,44,175,184,59,25,225,98,81,112],[77,193,137,31,19,38,22,153,247,105,122,2,245,133,242,8,175,95,100,9,167,105,214,111,57,121,21,1,253,57,54,101,248,202,69,50,150,177,226,5,9,5],[245,132,172,223,96,32,117,22,238,133,238,231,205,188,237,87,191,106,16,147,118,23,37,90,170,205,131,88,120,100,66,138,186,240,82,44,176,87,187,147,160,175,69,213,92,253,225,19],[175,9,223,238,12,17,220,208,100,29,175,170,230,192,215,235,150,159,36,223,38,200,132,54,228,146,218,234,117,203,29,232,144,238,22,150,201,117,62,207,164,13,137,245,127,67,247,28,155,43,203,107,233,53,143,46],[242,93,169,50,144,210,39,118,202,188,201,189,143,108,196,37,185,112,134,230,245,63,197,190,250,106,185,221,175,64,114,71,161,44,147,6,27,218,51,63,87,10,40,130,188,17,163,31,176,170,4,107,232,7,94,166,224,124,86,47,11,204],[220,228,173,89,251,149,159,56,89,33,147,244,154,36,73,127,213,136,248,180,234,197,158,177,68,122,93,213,15,160,227,236,66,139,153,185,202,167,179,25,220,232,96,210,231,136,223,239,181,241,59,52,172,25,49,232,211,189,64,54,108,153,132,63,96,103,82,186]],s=(r=function(t,e){for(var n=1,r=0;r<255;r++)e[r]=n,t[n]=r,(n*=2)>=256&&(n^=301);return{LOG:t,ALOG:e}}([],[]),r.LOG),u=r.ALOG;!function(t){t[t.FORCE_NONE=0]="FORCE_NONE",t[t.FORCE_SQUARE=1]="FORCE_SQUARE",t[t.FORCE_RECTANGLE=2]="FORCE_RECTANGLE"}(i||(i={}));var l=129,c=230,d=231,h=235,f=236,p=237,m=238,g=239,y=240,v=254,_=254,b="[)>\x1e05\x1d",w="[)>\x1e06\x1d",k="\x1e\x04",S=0,E=1,C=2,x=3,D=4,A=5},function(t,e,n){"use strict";function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(M){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new D(r||[]);return i(a,"_invoke",{value:S(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(M){return{type:"throw",arg:M}}}t.wrap=c;var f={};function p(){}function m(){}function g(){}var y={};l(y,a,(function(){return this}));var v=Object.getPrototypeOf,_=v&&v(v(A([])));_&&_!==e&&n.call(_,a)&&(y=_);var b=g.prototype=p.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(i,o,a,s){var u=d(t[i],t,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==h(c)&&n.call(c,"__await")?e.resolve(c.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=d(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=g,i(b,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:m,configurable:!0}),m.displayName=l(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(k.prototype),l(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,u,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function i(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(L){return void n(L)}s.done?e(u):Promise.resolve(u).then(r,i)}function o(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===h(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||p(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 d(t,e,n){return(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){return h="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},h(t)}function f(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=p(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function p(t,e){if(t){if("string"===typeof t)return m(t,e);var n=Object.prototype.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)?m(t,e):void 0}}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_(r.key),r)}}function v(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _(t){var e=function(t,e){if("object"!==h(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===h(e)?e:String(e)}n.d(e,"a",(function(){return ft})),n.d(e,"b",(function(){return wt}));var b=function(){function t(e,n,r){g(this,t),this.eventTarget=e,this.eventName=n,this.eventOptions=r,this.unorderedBindings=new Set}return v(t,[{key:"connect",value:function(){this.eventTarget.addEventListener(this.eventName,this,this.eventOptions)}},{key:"disconnect",value:function(){this.eventTarget.removeEventListener(this.eventName,this,this.eventOptions)}},{key:"bindingConnected",value:function(t){this.unorderedBindings.add(t)}},{key:"bindingDisconnected",value:function(t){this.unorderedBindings.delete(t)}},{key:"handleEvent",value:function(t){var e,n=function(t){if("immediatePropagationStopped"in t)return t;var e=t.stopImmediatePropagation;return Object.assign(t,{immediatePropagationStopped:!1,stopImmediatePropagation:function(){this.immediatePropagationStopped=!0,e.call(this)}})}(t),r=f(this.bindings);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(n.immediatePropagationStopped)break;i.handleEvent(n)}}catch(o){r.e(o)}finally{r.f()}}},{key:"hasBindings",value:function(){return this.unorderedBindings.size>0}},{key:"bindings",get:function(){return Array.from(this.unorderedBindings).sort((function(t,e){var n=t.index,r=e.index;return n<r?-1:n>r?1:0}))}}]),t}();var w=function(){function t(e){g(this,t),this.application=e,this.eventListenerMaps=new Map,this.started=!1}return v(t,[{key:"start",value:function(){this.started||(this.started=!0,this.eventListeners.forEach((function(t){return t.connect()})))}},{key:"stop",value:function(){this.started&&(this.started=!1,this.eventListeners.forEach((function(t){return t.disconnect()})))}},{key:"eventListeners",get:function(){return Array.from(this.eventListenerMaps.values()).reduce((function(t,e){return t.concat(Array.from(e.values()))}),[])}},{key:"bindingConnected",value:function(t){this.fetchEventListenerForBinding(t).bindingConnected(t)}},{key:"bindingDisconnected",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.fetchEventListenerForBinding(t).bindingDisconnected(t),e&&this.clearEventListenersForBinding(t)}},{key:"handleError",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.application.handleError(t,"Error ".concat(e),n)}},{key:"clearEventListenersForBinding",value:function(t){var e=this.fetchEventListenerForBinding(t);e.hasBindings()||(e.disconnect(),this.removeMappedEventListenerFor(t))}},{key:"removeMappedEventListenerFor",value:function(t){var e=t.eventTarget,n=t.eventName,r=t.eventOptions,i=this.fetchEventListenerMapForEventTarget(e),o=this.cacheKey(n,r);i.delete(o),0==i.size&&this.eventListenerMaps.delete(e)}},{key:"fetchEventListenerForBinding",value:function(t){var e=t.eventTarget,n=t.eventName,r=t.eventOptions;return this.fetchEventListener(e,n,r)}},{key:"fetchEventListener",value:function(t,e,n){var r=this.fetchEventListenerMapForEventTarget(t),i=this.cacheKey(e,n),o=r.get(i);return o||(o=this.createEventListener(t,e,n),r.set(i,o)),o}},{key:"createEventListener",value:function(t,e,n){var r=new b(t,e,n);return this.started&&r.connect(),r}},{key:"fetchEventListenerMapForEventTarget",value:function(t){var e=this.eventListenerMaps.get(t);return e||(e=new Map,this.eventListenerMaps.set(t,e)),e}},{key:"cacheKey",value:function(t,e){var n=[t];return Object.keys(e).sort().forEach((function(t){n.push("".concat(e[t]?"":"!").concat(t))})),n.join(":")}}]),t}(),k={stop:function(t){var e=t.event;return t.value&&e.stopPropagation(),!0},prevent:function(t){var e=t.event;return t.value&&e.preventDefault(),!0},self:function(t){var e=t.event,n=t.value,r=t.element;return!n||r===e.target}},S=/^(?:(.+?)(?:\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;function E(t){return"window"==t?window:"document"==t?document:void 0}function C(t){return t.replace(/(?:[_-])([a-z0-9])/g,(function(t,e){return e.toUpperCase()}))}function x(t){return C(t.replace(/--/g,"-").replace(/__/g,"_"))}function D(t){return t.charAt(0).toUpperCase()+t.slice(1)}function A(t){return t.replace(/([A-Z])/g,(function(t,e){return"-".concat(e.toLowerCase())}))}var T=function(){function t(e,n,r,i){g(this,t),this.element=e,this.index=n,this.eventTarget=r.eventTarget||e,this.eventName=r.eventName||function(t){var e=t.tagName.toLowerCase();if(e in M)return M[e](t)}(e)||L("missing event name"),this.eventOptions=r.eventOptions||{},this.identifier=r.identifier||L("missing identifier"),this.methodName=r.methodName||L("missing method name"),this.keyFilter=r.keyFilter||"",this.schema=i}return v(t,[{key:"toString",value:function(){var t=this.keyFilter?".".concat(this.keyFilter):"",e=this.eventTargetName?"@".concat(this.eventTargetName):"";return"".concat(this.eventName).concat(t).concat(e,"->").concat(this.identifier,"#").concat(this.methodName)}},{key:"isFilterTarget",value:function(t){if(!this.keyFilter)return!1;var e=this.keyFilter.split("+"),n=["meta","ctrl","alt","shift"],r=c(n.map((function(t){return e.includes(t)})),4),i=r[0],o=r[1],a=r[2],s=r[3];if(t.metaKey!==i||t.ctrlKey!==o||t.altKey!==a||t.shiftKey!==s)return!0;var u=e.filter((function(t){return!n.includes(t)}))[0];return!!u&&(Object.prototype.hasOwnProperty.call(this.keyMappings,u)||L("contains unknown key filter: ".concat(this.keyFilter)),this.keyMappings[u].toLowerCase()!==t.key.toLowerCase())}},{key:"params",get:function(){for(var t={},e=new RegExp("^data-".concat(this.identifier,"-(.+)-param$"),"i"),n=0,r=Array.from(this.element.attributes);n<r.length;n++){var i=r[n],o=i.name,a=i.value,s=o.match(e),u=s&&s[1];u&&(t[C(u)]=O(a))}return t}},{key:"eventTargetName",get:function(){return(t=this.eventTarget)==window?"window":t==document?"document":void 0;var t}},{key:"keyMappings",get:function(){return this.schema.keyMappings}}],[{key:"forToken",value:function(t,e){return new this(t.element,t.index,(n=t.content,i=n.trim().match(S)||[],o=i[1],(a=i[2])&&!["keydown","keyup","keypress"].includes(o)&&(o+=".".concat(a),a=""),{eventTarget:E(i[3]),eventName:o,eventOptions:i[6]?(r=i[6],r.split(":").reduce((function(t,e){return Object.assign(t,d({},e.replace(/^!/,""),!/^!/.test(e)))}),{})):{},identifier:i[4],methodName:i[5],keyFilter:a}),e);var n,r,i,o,a}}]),t}(),M={a:function(){return"click"},button:function(){return"click"},form:function(){return"submit"},details:function(){return"toggle"},input:function(t){return"submit"==t.getAttribute("type")?"click":"input"},select:function(){return"change"},textarea:function(){return"input"}};function L(t){throw new Error(t)}function O(t){try{return JSON.parse(t)}catch(e){return t}}var I=function(){function t(e,n){g(this,t),this.context=e,this.action=n}return v(t,[{key:"index",get:function(){return this.action.index}},{key:"eventTarget",get:function(){return this.action.eventTarget}},{key:"eventOptions",get:function(){return this.action.eventOptions}},{key:"identifier",get:function(){return this.context.identifier}},{key:"handleEvent",value:function(t){this.willBeInvokedByEvent(t)&&this.applyEventModifiers(t)&&this.invokeWithEvent(t)}},{key:"eventName",get:function(){return this.action.eventName}},{key:"method",get:function(){var t=this.controller[this.methodName];if("function"==typeof t)return t;throw new Error('Action "'.concat(this.action,'" references undefined method "').concat(this.methodName,'"'))}},{key:"applyEventModifiers",value:function(t){for(var e=this.action.element,n=this.context.application.actionDescriptorFilters,r=!0,i=0,o=Object.entries(this.eventOptions);i<o.length;i++){var a=c(o[i],2),s=a[0],u=a[1];if(s in n){var l=n[s];r=r&&l({name:s,value:u,event:t,element:e})}}return r}},{key:"invokeWithEvent",value:function(t){var e=t.target,n=t.currentTarget;try{var r=this.action.params,i=Object.assign(t,{params:r});this.method.call(this.controller,i),this.context.logDebugActivity(this.methodName,{event:t,target:e,currentTarget:n,action:this.methodName})}catch(L){var o={identifier:this.identifier,controller:this.controller,element:this.element,index:this.index,event:t};this.context.handleError(L,'invoking action "'.concat(this.action,'"'),o)}}},{key:"willBeInvokedByEvent",value:function(t){var e=t.target;return!(t instanceof KeyboardEvent&&this.action.isFilterTarget(t))&&(this.element===e||(e instanceof Element&&this.element.contains(e)?this.scope.containsElement(e):this.scope.containsElement(this.action.element)))}},{key:"controller",get:function(){return this.context.controller}},{key:"methodName",get:function(){return this.action.methodName}},{key:"element",get:function(){return this.scope.element}},{key:"scope",get:function(){return this.context.scope}}]),t}(),P=function(){function t(e,n){var r=this;g(this,t),this.mutationObserverInit={attributes:!0,childList:!0,subtree:!0},this.element=e,this.started=!1,this.delegate=n,this.elements=new Set,this.mutationObserver=new MutationObserver((function(t){return r.processMutations(t)}))}return v(t,[{key:"start",value:function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,this.mutationObserverInit),this.refresh())}},{key:"pause",value:function(t){this.started&&(this.mutationObserver.disconnect(),this.started=!1),t(),this.started||(this.mutationObserver.observe(this.element,this.mutationObserverInit),this.started=!0)}},{key:"stop",value:function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}},{key:"refresh",value:function(){if(this.started){for(var t=new Set(this.matchElementsInTree()),e=0,n=Array.from(this.elements);e<n.length;e++){var r=n[e];t.has(r)||this.removeElement(r)}for(var i=0,o=Array.from(t);i<o.length;i++){var a=o[i];this.addElement(a)}}}},{key:"processMutations",value:function(t){if(this.started){var e,n=f(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.processMutation(r)}}catch(i){n.e(i)}finally{n.f()}}}},{key:"processMutation",value:function(t){"attributes"==t.type?this.processAttributeChange(t.target,t.attributeName):"childList"==t.type&&(this.processRemovedNodes(t.removedNodes),this.processAddedNodes(t.addedNodes))}},{key:"processAttributeChange",value:function(t,e){var n=t;this.elements.has(n)?this.delegate.elementAttributeChanged&&this.matchElement(n)?this.delegate.elementAttributeChanged(n,e):this.removeElement(n):this.matchElement(n)&&this.addElement(n)}},{key:"processRemovedNodes",value:function(t){for(var e=0,n=Array.from(t);e<n.length;e++){var r=n[e],i=this.elementFromNode(r);i&&this.processTree(i,this.removeElement)}}},{key:"processAddedNodes",value:function(t){for(var e=0,n=Array.from(t);e<n.length;e++){var r=n[e],i=this.elementFromNode(r);i&&this.elementIsActive(i)&&this.processTree(i,this.addElement)}}},{key:"matchElement",value:function(t){return this.delegate.matchElement(t)}},{key:"matchElementsInTree",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.element;return this.delegate.matchElementsInTree(t)}},{key:"processTree",value:function(t,e){var n,r=f(this.matchElementsInTree(t));try{for(r.s();!(n=r.n()).done;){var i=n.value;e.call(this,i)}}catch(o){r.e(o)}finally{r.f()}}},{key:"elementFromNode",value:function(t){if(t.nodeType==Node.ELEMENT_NODE)return t}},{key:"elementIsActive",value:function(t){return t.isConnected==this.element.isConnected&&this.element.contains(t)}},{key:"addElement",value:function(t){this.elements.has(t)||this.elementIsActive(t)&&(this.elements.add(t),this.delegate.elementMatched&&this.delegate.elementMatched(t))}},{key:"removeElement",value:function(t){this.elements.has(t)&&(this.elements.delete(t),this.delegate.elementUnmatched&&this.delegate.elementUnmatched(t))}}]),t}(),R=function(){function t(e,n,r){g(this,t),this.attributeName=n,this.delegate=r,this.elementObserver=new P(e,this)}return v(t,[{key:"element",get:function(){return this.elementObserver.element}},{key:"selector",get:function(){return"[".concat(this.attributeName,"]")}},{key:"start",value:function(){this.elementObserver.start()}},{key:"pause",value:function(t){this.elementObserver.pause(t)}},{key:"stop",value:function(){this.elementObserver.stop()}},{key:"refresh",value:function(){this.elementObserver.refresh()}},{key:"started",get:function(){return this.elementObserver.started}},{key:"matchElement",value:function(t){return t.hasAttribute(this.attributeName)}},{key:"matchElementsInTree",value:function(t){var e=this.matchElement(t)?[t]:[],n=Array.from(t.querySelectorAll(this.selector));return e.concat(n)}},{key:"elementMatched",value:function(t){this.delegate.elementMatchedAttribute&&this.delegate.elementMatchedAttribute(t,this.attributeName)}},{key:"elementUnmatched",value:function(t){this.delegate.elementUnmatchedAttribute&&this.delegate.elementUnmatchedAttribute(t,this.attributeName)}},{key:"elementAttributeChanged",value:function(t,e){this.delegate.elementAttributeValueChanged&&this.attributeName==e&&this.delegate.elementAttributeValueChanged(t,e)}}]),t}();function N(t,e,n){j(t,e).add(n)}function F(t,e,n){j(t,e).delete(n),function(t,e){var n=t.get(e);null!=n&&0==n.size&&t.delete(e)}(t,e)}function j(t,e){var n=t.get(e);return n||(n=new Set,t.set(e,n)),n}var B=function(){function t(){g(this,t),this.valuesByKey=new Map}return v(t,[{key:"keys",get:function(){return Array.from(this.valuesByKey.keys())}},{key:"values",get:function(){return Array.from(this.valuesByKey.values()).reduce((function(t,e){return t.concat(Array.from(e))}),[])}},{key:"size",get:function(){return Array.from(this.valuesByKey.values()).reduce((function(t,e){return t+e.size}),0)}},{key:"add",value:function(t,e){N(this.valuesByKey,t,e)}},{key:"delete",value:function(t,e){F(this.valuesByKey,t,e)}},{key:"has",value:function(t,e){var n=this.valuesByKey.get(t);return null!=n&&n.has(e)}},{key:"hasKey",value:function(t){return this.valuesByKey.has(t)}},{key:"hasValue",value:function(t){return Array.from(this.valuesByKey.values()).some((function(e){return e.has(t)}))}},{key:"getValuesForKey",value:function(t){var e=this.valuesByKey.get(t);return e?Array.from(e):[]}},{key:"getKeysForValue",value:function(t){return Array.from(this.valuesByKey).filter((function(e){var n=c(e,2);n[0];return n[1].has(t)})).map((function(t){var e=c(t,2),n=e[0];e[1];return n}))}}]),t}(),Y=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};g(this,t),this.selector=n,this.details=i,this.elementObserver=new P(e,this),this.delegate=r,this.matchesByElement=new B}return v(t,[{key:"started",get:function(){return this.elementObserver.started}},{key:"start",value:function(){this.elementObserver.start()}},{key:"pause",value:function(t){this.elementObserver.pause(t)}},{key:"stop",value:function(){this.elementObserver.stop()}},{key:"refresh",value:function(){this.elementObserver.refresh()}},{key:"element",get:function(){return this.elementObserver.element}},{key:"matchElement",value:function(t){var e=t.matches(this.selector);return this.delegate.selectorMatchElement?e&&this.delegate.selectorMatchElement(t,this.details):e}},{key:"matchElementsInTree",value:function(t){var e=this,n=this.matchElement(t)?[t]:[],r=Array.from(t.querySelectorAll(this.selector)).filter((function(t){return e.matchElement(t)}));return n.concat(r)}},{key:"elementMatched",value:function(t){this.selectorMatched(t)}},{key:"elementUnmatched",value:function(t){this.selectorUnmatched(t)}},{key:"elementAttributeChanged",value:function(t,e){var n=this.matchElement(t),r=this.matchesByElement.has(this.selector,t);!n&&r&&this.selectorUnmatched(t)}},{key:"selectorMatched",value:function(t){this.delegate.selectorMatched&&(this.delegate.selectorMatched(t,this.selector,this.details),this.matchesByElement.add(this.selector,t))}},{key:"selectorUnmatched",value:function(t){this.delegate.selectorUnmatched(t,this.selector,this.details),this.matchesByElement.delete(this.selector,t)}}]),t}(),H=function(){function t(e,n){var r=this;g(this,t),this.element=e,this.delegate=n,this.started=!1,this.stringMap=new Map,this.mutationObserver=new MutationObserver((function(t){return r.processMutations(t)}))}return v(t,[{key:"start",value:function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,attributeOldValue:!0}),this.refresh())}},{key:"stop",value:function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)}},{key:"refresh",value:function(){if(this.started){var t,e=f(this.knownAttributeNames);try{for(e.s();!(t=e.n()).done;){var n=t.value;this.refreshAttribute(n,null)}}catch(r){e.e(r)}finally{e.f()}}}},{key:"processMutations",value:function(t){if(this.started){var e,n=f(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this.processMutation(r)}}catch(i){n.e(i)}finally{n.f()}}}},{key:"processMutation",value:function(t){var e=t.attributeName;e&&this.refreshAttribute(e,t.oldValue)}},{key:"refreshAttribute",value:function(t,e){var n=this.delegate.getStringMapKeyForAttribute(t);if(null!=n){this.stringMap.has(t)||this.stringMapKeyAdded(n,t);var r=this.element.getAttribute(t);if(this.stringMap.get(t)!=r&&this.stringMapValueChanged(r,n,e),null==r){var i=this.stringMap.get(t);this.stringMap.delete(t),i&&this.stringMapKeyRemoved(n,t,i)}else this.stringMap.set(t,r)}}},{key:"stringMapKeyAdded",value:function(t,e){this.delegate.stringMapKeyAdded&&this.delegate.stringMapKeyAdded(t,e)}},{key:"stringMapValueChanged",value:function(t,e,n){this.delegate.stringMapValueChanged&&this.delegate.stringMapValueChanged(t,e,n)}},{key:"stringMapKeyRemoved",value:function(t,e,n){this.delegate.stringMapKeyRemoved&&this.delegate.stringMapKeyRemoved(t,e,n)}},{key:"knownAttributeNames",get:function(){return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)))}},{key:"currentAttributeNames",get:function(){return Array.from(this.element.attributes).map((function(t){return t.name}))}},{key:"recordedAttributeNames",get:function(){return Array.from(this.stringMap.keys())}}]),t}(),z=function(){function t(e,n,r){g(this,t),this.attributeObserver=new R(e,n,this),this.delegate=r,this.tokensByElement=new B}return v(t,[{key:"started",get:function(){return this.attributeObserver.started}},{key:"start",value:function(){this.attributeObserver.start()}},{key:"pause",value:function(t){this.attributeObserver.pause(t)}},{key:"stop",value:function(){this.attributeObserver.stop()}},{key:"refresh",value:function(){this.attributeObserver.refresh()}},{key:"element",get:function(){return this.attributeObserver.element}},{key:"attributeName",get:function(){return this.attributeObserver.attributeName}},{key:"elementMatchedAttribute",value:function(t){this.tokensMatched(this.readTokensForElement(t))}},{key:"elementAttributeValueChanged",value:function(t){var e=c(this.refreshTokensForElement(t),2),n=e[0],r=e[1];this.tokensUnmatched(n),this.tokensMatched(r)}},{key:"elementUnmatchedAttribute",value:function(t){this.tokensUnmatched(this.tokensByElement.getValuesForKey(t))}},{key:"tokensMatched",value:function(t){var e=this;t.forEach((function(t){return e.tokenMatched(t)}))}},{key:"tokensUnmatched",value:function(t){var e=this;t.forEach((function(t){return e.tokenUnmatched(t)}))}},{key:"tokenMatched",value:function(t){this.delegate.tokenMatched(t),this.tokensByElement.add(t.element,t)}},{key:"tokenUnmatched",value:function(t){this.delegate.tokenUnmatched(t),this.tokensByElement.delete(t.element,t)}},{key:"refreshTokensForElement",value:function(t){var e,n,r,i=this.tokensByElement.getValuesForKey(t),o=this.readTokensForElement(t),a=(e=i,n=o,r=Math.max(e.length,n.length),Array.from({length:r},(function(t,r){return[e[r],n[r]]}))).findIndex((function(t){var e=c(t,2);return!function(t,e){return t&&e&&t.index==e.index&&t.content==e.content}(e[0],e[1])}));return-1==a?[[],[]]:[i.slice(a),o.slice(a)]}},{key:"readTokensForElement",value:function(t){var e=this.attributeName;return function(t,e,n){return t.trim().split(/\s+/).filter((function(t){return t.length})).map((function(t,r){return{element:e,attributeName:n,content:t,index:r}}))}(t.getAttribute(e)||"",t,e)}}]),t}();var W=function(){function t(e,n,r){g(this,t),this.tokenListObserver=new z(e,n,this),this.delegate=r,this.parseResultsByToken=new WeakMap,this.valuesByTokenByElement=new WeakMap}return v(t,[{key:"started",get:function(){return this.tokenListObserver.started}},{key:"start",value:function(){this.tokenListObserver.start()}},{key:"stop",value:function(){this.tokenListObserver.stop()}},{key:"refresh",value:function(){this.tokenListObserver.refresh()}},{key:"element",get:function(){return this.tokenListObserver.element}},{key:"attributeName",get:function(){return this.tokenListObserver.attributeName}},{key:"tokenMatched",value:function(t){var e=t.element,n=this.fetchParseResultForToken(t).value;n&&(this.fetchValuesByTokenForElement(e).set(t,n),this.delegate.elementMatchedValue(e,n))}},{key:"tokenUnmatched",value:function(t){var e=t.element,n=this.fetchParseResultForToken(t).value;n&&(this.fetchValuesByTokenForElement(e).delete(t),this.delegate.elementUnmatchedValue(e,n))}},{key:"fetchParseResultForToken",value:function(t){var e=this.parseResultsByToken.get(t);return e||(e=this.parseToken(t),this.parseResultsByToken.set(t,e)),e}},{key:"fetchValuesByTokenForElement",value:function(t){var e=this.valuesByTokenByElement.get(t);return e||(e=new Map,this.valuesByTokenByElement.set(t,e)),e}},{key:"parseToken",value:function(t){try{return{value:this.delegate.parseValueForToken(t)}}catch(L){return{error:L}}}}]),t}(),V=function(){function t(e,n){g(this,t),this.context=e,this.delegate=n,this.bindingsByAction=new Map}return v(t,[{key:"start",value:function(){this.valueListObserver||(this.valueListObserver=new W(this.element,this.actionAttribute,this),this.valueListObserver.start())}},{key:"stop",value:function(){this.valueListObserver&&(this.valueListObserver.stop(),delete this.valueListObserver,this.disconnectAllActions())}},{key:"element",get:function(){return this.context.element}},{key:"identifier",get:function(){return this.context.identifier}},{key:"actionAttribute",get:function(){return this.schema.actionAttribute}},{key:"schema",get:function(){return this.context.schema}},{key:"bindings",get:function(){return Array.from(this.bindingsByAction.values())}},{key:"connectAction",value:function(t){var e=new I(this.context,t);this.bindingsByAction.set(t,e),this.delegate.bindingConnected(e)}},{key:"disconnectAction",value:function(t){var e=this.bindingsByAction.get(t);e&&(this.bindingsByAction.delete(t),this.delegate.bindingDisconnected(e))}},{key:"disconnectAllActions",value:function(){var t=this;this.bindings.forEach((function(e){return t.delegate.bindingDisconnected(e,!0)})),this.bindingsByAction.clear()}},{key:"parseValueForToken",value:function(t){var e=T.forToken(t,this.schema);if(e.identifier==this.identifier)return e}},{key:"elementMatchedValue",value:function(t,e){this.connectAction(e)}},{key:"elementUnmatchedValue",value:function(t,e){this.disconnectAction(e)}}]),t}(),U=function(){function t(e,n){g(this,t),this.context=e,this.receiver=n,this.stringMapObserver=new H(this.element,this),this.valueDescriptorMap=this.controller.valueDescriptorMap}return v(t,[{key:"start",value:function(){this.stringMapObserver.start(),this.invokeChangedCallbacksForDefaultValues()}},{key:"stop",value:function(){this.stringMapObserver.stop()}},{key:"element",get:function(){return this.context.element}},{key:"controller",get:function(){return this.context.controller}},{key:"getStringMapKeyForAttribute",value:function(t){if(t in this.valueDescriptorMap)return this.valueDescriptorMap[t].name}},{key:"stringMapKeyAdded",value:function(t,e){var n=this.valueDescriptorMap[e];this.hasValue(t)||this.invokeChangedCallback(t,n.writer(this.receiver[t]),n.writer(n.defaultValue))}},{key:"stringMapValueChanged",value:function(t,e,n){var r=this.valueDescriptorNameMap[e];null!==t&&(null===n&&(n=r.writer(r.defaultValue)),this.invokeChangedCallback(e,t,n))}},{key:"stringMapKeyRemoved",value:function(t,e,n){var r=this.valueDescriptorNameMap[t];this.hasValue(t)?this.invokeChangedCallback(t,r.writer(this.receiver[t]),n):this.invokeChangedCallback(t,r.writer(r.defaultValue),n)}},{key:"invokeChangedCallbacksForDefaultValues",value:function(){var t,e=f(this.valueDescriptors);try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n.key,i=n.name,o=n.defaultValue,a=n.writer;void 0==o||this.controller.data.has(r)||this.invokeChangedCallback(i,a(o),void 0)}}catch(s){e.e(s)}finally{e.f()}}},{key:"invokeChangedCallback",value:function(t,e,n){var r="".concat(t,"Changed"),i=this.receiver[r];if("function"==typeof i){var o=this.valueDescriptorNameMap[t];try{var a=o.reader(e),s=n;n&&(s=o.reader(n)),i.call(this.receiver,a,s)}catch(L){throw L instanceof TypeError&&(L.message='Stimulus Value "'.concat(this.context.identifier,".").concat(o.name,'" - ').concat(L.message)),L}}}},{key:"valueDescriptors",get:function(){var t=this.valueDescriptorMap;return Object.keys(t).map((function(e){return t[e]}))}},{key:"valueDescriptorNameMap",get:function(){var t=this,e={};return Object.keys(this.valueDescriptorMap).forEach((function(n){var r=t.valueDescriptorMap[n];e[r.name]=r})),e}},{key:"hasValue",value:function(t){var e=this.valueDescriptorNameMap[t],n="has".concat(D(e.name));return this.receiver[n]}}]),t}(),q=function(){function t(e,n){g(this,t),this.context=e,this.delegate=n,this.targetsByName=new B}return v(t,[{key:"start",value:function(){this.tokenListObserver||(this.tokenListObserver=new z(this.element,this.attributeName,this),this.tokenListObserver.start())}},{key:"stop",value:function(){this.tokenListObserver&&(this.disconnectAllTargets(),this.tokenListObserver.stop(),delete this.tokenListObserver)}},{key:"tokenMatched",value:function(t){var e=t.element,n=t.content;this.scope.containsElement(e)&&this.connectTarget(e,n)}},{key:"tokenUnmatched",value:function(t){var e=t.element,n=t.content;this.disconnectTarget(e,n)}},{key:"connectTarget",value:function(t,e){var n,r=this;this.targetsByName.has(e,t)||(this.targetsByName.add(e,t),null===(n=this.tokenListObserver)||void 0===n||n.pause((function(){return r.delegate.targetConnected(t,e)})))}},{key:"disconnectTarget",value:function(t,e){var n,r=this;this.targetsByName.has(e,t)&&(this.targetsByName.delete(e,t),null===(n=this.tokenListObserver)||void 0===n||n.pause((function(){return r.delegate.targetDisconnected(t,e)})))}},{key:"disconnectAllTargets",value:function(){var t,e=f(this.targetsByName.keys);try{for(e.s();!(t=e.n()).done;){var n,r=t.value,i=f(this.targetsByName.getValuesForKey(r));try{for(i.s();!(n=i.n()).done;){var o=n.value;this.disconnectTarget(o,r)}}catch(a){i.e(a)}finally{i.f()}}}catch(a){e.e(a)}finally{e.f()}}},{key:"attributeName",get:function(){return"data-".concat(this.context.identifier,"-target")}},{key:"element",get:function(){return this.context.element}},{key:"scope",get:function(){return this.context.scope}}]),t}();function G(t,e){var n=K(t);return Array.from(n.reduce((function(t,n){return function(t,e){var n=t[e];return Array.isArray(n)?n:[]}(n,e).forEach((function(e){return t.add(e)})),t}),new Set))}function $(t,e){return K(t).reduce((function(t,n){return t.push.apply(t,o(function(t,e){var n=t[e];return n?Object.keys(n).map((function(t){return[t,n[t]]})):[]}(n,e))),t}),[])}function K(t){for(var e=[];t;)e.push(t),t=Object.getPrototypeOf(t);return e.reverse()}var Z=function(){function t(e,n){g(this,t),this.context=e,this.delegate=n,this.outletsByName=new B,this.outletElementsByName=new B,this.selectorObserverMap=new Map}return v(t,[{key:"start",value:function(){var t=this;0===this.selectorObserverMap.size&&(this.outletDefinitions.forEach((function(e){var n=t.selector(e),r={outletName:e};n&&t.selectorObserverMap.set(e,new Y(document.body,n,t,r))})),this.selectorObserverMap.forEach((function(t){return t.start()}))),this.dependentContexts.forEach((function(t){return t.refresh()}))}},{key:"stop",value:function(){this.selectorObserverMap.size>0&&(this.disconnectAllOutlets(),this.selectorObserverMap.forEach((function(t){return t.stop()})),this.selectorObserverMap.clear())}},{key:"refresh",value:function(){this.selectorObserverMap.forEach((function(t){return t.refresh()}))}},{key:"selectorMatched",value:function(t,e,n){var r=n.outletName,i=this.getOutlet(t,r);i&&this.connectOutlet(i,t,r)}},{key:"selectorUnmatched",value:function(t,e,n){var r=n.outletName,i=this.getOutletFromMap(t,r);i&&this.disconnectOutlet(i,t,r)}},{key:"selectorMatchElement",value:function(t,e){var n=e.outletName;return this.hasOutlet(t,n)&&t.matches("[".concat(this.context.application.schema.controllerAttribute,"~=").concat(n,"]"))}},{key:"connectOutlet",value:function(t,e,n){var r,i=this;this.outletElementsByName.has(n,e)||(this.outletsByName.add(n,t),this.outletElementsByName.add(n,e),null===(r=this.selectorObserverMap.get(n))||void 0===r||r.pause((function(){return i.delegate.outletConnected(t,e,n)})))}},{key:"disconnectOutlet",value:function(t,e,n){var r,i=this;this.outletElementsByName.has(n,e)&&(this.outletsByName.delete(n,t),this.outletElementsByName.delete(n,e),null===(r=this.selectorObserverMap.get(n))||void 0===r||r.pause((function(){return i.delegate.outletDisconnected(t,e,n)})))}},{key:"disconnectAllOutlets",value:function(){var t,e=f(this.outletElementsByName.keys);try{for(e.s();!(t=e.n()).done;){var n,r=t.value,i=f(this.outletElementsByName.getValuesForKey(r));try{for(i.s();!(n=i.n()).done;){var o,a=n.value,s=f(this.outletsByName.getValuesForKey(r));try{for(s.s();!(o=s.n()).done;){var u=o.value;this.disconnectOutlet(u,a,r)}}catch(l){s.e(l)}finally{s.f()}}}catch(l){i.e(l)}finally{i.f()}}}catch(l){e.e(l)}finally{e.f()}}},{key:"selector",value:function(t){return this.scope.outlets.getSelectorForOutletName(t)}},{key:"outletDependencies",get:function(){var t=new B;return this.router.modules.forEach((function(e){G(e.definition.controllerConstructor,"outlets").forEach((function(n){return t.add(n,e.identifier)}))})),t}},{key:"outletDefinitions",get:function(){return this.outletDependencies.getKeysForValue(this.identifier)}},{key:"dependentControllerIdentifiers",get:function(){return this.outletDependencies.getValuesForKey(this.identifier)}},{key:"dependentContexts",get:function(){var t=this.dependentControllerIdentifiers;return this.router.contexts.filter((function(e){return t.includes(e.identifier)}))}},{key:"hasOutlet",value:function(t,e){return!!this.getOutlet(t,e)||!!this.getOutletFromMap(t,e)}},{key:"getOutlet",value:function(t,e){return this.application.getControllerForElementAndIdentifier(t,e)}},{key:"getOutletFromMap",value:function(t,e){return this.outletsByName.getValuesForKey(e).find((function(e){return e.element===t}))}},{key:"scope",get:function(){return this.context.scope}},{key:"identifier",get:function(){return this.context.identifier}},{key:"application",get:function(){return this.context.application}},{key:"router",get:function(){return this.application.router}}]),t}(),X=function(){function t(e,n){var r=this;g(this,t),this.logDebugActivity=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.identifier,i=r.controller,o=r.element;e=Object.assign({identifier:n,controller:i,element:o},e),r.application.logDebugActivity(r.identifier,t,e)},this.module=e,this.scope=n,this.controller=new e.controllerConstructor(this),this.bindingObserver=new V(this,this.dispatcher),this.valueObserver=new U(this,this.controller),this.targetObserver=new q(this,this),this.outletObserver=new Z(this,this);try{this.controller.initialize(),this.logDebugActivity("initialize")}catch(L){this.handleError(L,"initializing controller")}}return v(t,[{key:"connect",value:function(){this.bindingObserver.start(),this.valueObserver.start(),this.targetObserver.start(),this.outletObserver.start();try{this.controller.connect(),this.logDebugActivity("connect")}catch(L){this.handleError(L,"connecting controller")}}},{key:"refresh",value:function(){this.outletObserver.refresh()}},{key:"disconnect",value:function(){try{this.controller.disconnect(),this.logDebugActivity("disconnect")}catch(L){this.handleError(L,"disconnecting controller")}this.outletObserver.stop(),this.targetObserver.stop(),this.valueObserver.stop(),this.bindingObserver.stop()}},{key:"application",get:function(){return this.module.application}},{key:"identifier",get:function(){return this.module.identifier}},{key:"schema",get:function(){return this.application.schema}},{key:"dispatcher",get:function(){return this.application.dispatcher}},{key:"element",get:function(){return this.scope.element}},{key:"parentElement",get:function(){return this.element.parentElement}},{key:"handleError",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.identifier,i=this.controller,o=this.element;n=Object.assign({identifier:r,controller:i,element:o},n),this.application.handleError(t,"Error ".concat(e),n)}},{key:"targetConnected",value:function(t,e){this.invokeControllerMethod("".concat(e,"TargetConnected"),t)}},{key:"targetDisconnected",value:function(t,e){this.invokeControllerMethod("".concat(e,"TargetDisconnected"),t)}},{key:"outletConnected",value:function(t,e,n){this.invokeControllerMethod("".concat(x(n),"OutletConnected"),t,e)}},{key:"outletDisconnected",value:function(t,e,n){this.invokeControllerMethod("".concat(x(n),"OutletDisconnected"),t,e)}},{key:"invokeControllerMethod",value:function(t){var e=this.controller;if("function"==typeof e[t]){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e[t].apply(e,r)}}}]),t}();function J(t){return function(t,e){var n=tt(t),r=function(t,e){return Q(e).reduce((function(n,r){var i=function(t,e,n){var r=Object.getOwnPropertyDescriptor(t,n);if(!r||!("value"in r)){var i=Object.getOwnPropertyDescriptor(e,n).value;return r&&(i.get=r.get||i.get,i.set=r.set||i.set),i}}(t,e,r);return i&&Object.assign(n,d({},r,i)),n}),{})}(t.prototype,e);return Object.defineProperties(n.prototype,r),n}(t,function(t){var e=G(t,"blessings");return e.reduce((function(e,n){var r=n(t);for(var i in r){var o=e[i]||{};e[i]=Object.assign(o,r[i])}return e}),{})}(t))}var Q="function"==typeof Object.getOwnPropertySymbols?function(t){return[].concat(o(Object.getOwnPropertyNames(t)),o(Object.getOwnPropertySymbols(t)))}:Object.getOwnPropertyNames,tt=function(){function t(t){function e(){return Reflect.construct(t,arguments,this instanceof e?this.constructor:void 0)}return e.prototype=Object.create(t.prototype,{constructor:{value:e}}),Reflect.setPrototypeOf(e,t),e}try{return(e=t((function(){this.a.call(this)}))).prototype.a=function(){},new e,t}catch(L){return function(t){return function(t){a(n,t);var e=u(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n)}(t)}}var e}();var et=function(){function t(e,n){g(this,t),this.application=e,this.definition=function(t){return{identifier:t.identifier,controllerConstructor:J(t.controllerConstructor)}}(n),this.contextsByScope=new WeakMap,this.connectedContexts=new Set}return v(t,[{key:"identifier",get:function(){return this.definition.identifier}},{key:"controllerConstructor",get:function(){return this.definition.controllerConstructor}},{key:"contexts",get:function(){return Array.from(this.connectedContexts)}},{key:"connectContextForScope",value:function(t){var e=this.fetchContextForScope(t);this.connectedContexts.add(e),e.connect()}},{key:"disconnectContextForScope",value:function(t){var e=this.contextsByScope.get(t);e&&(this.connectedContexts.delete(e),e.disconnect())}},{key:"fetchContextForScope",value:function(t){var e=this.contextsByScope.get(t);return e||(e=new X(this,t),this.contextsByScope.set(t,e)),e}}]),t}(),nt=function(){function t(e){g(this,t),this.scope=e}return v(t,[{key:"has",value:function(t){return this.data.has(this.getDataKey(t))}},{key:"get",value:function(t){return this.getAll(t)[0]}},{key:"getAll",value:function(t){var e=this.data.get(this.getDataKey(t))||"";return e.match(/[^\s]+/g)||[]}},{key:"getAttributeName",value:function(t){return this.data.getAttributeNameForKey(this.getDataKey(t))}},{key:"getDataKey",value:function(t){return"".concat(t,"-class")}},{key:"data",get:function(){return this.scope.data}}]),t}(),rt=function(){function t(e){g(this,t),this.scope=e}return v(t,[{key:"element",get:function(){return this.scope.element}},{key:"identifier",get:function(){return this.scope.identifier}},{key:"get",value:function(t){var e=this.getAttributeNameForKey(t);return this.element.getAttribute(e)}},{key:"set",value:function(t,e){var n=this.getAttributeNameForKey(t);return this.element.setAttribute(n,e),this.get(t)}},{key:"has",value:function(t){var e=this.getAttributeNameForKey(t);return this.element.hasAttribute(e)}},{key:"delete",value:function(t){if(this.has(t)){var e=this.getAttributeNameForKey(t);return this.element.removeAttribute(e),!0}return!1}},{key:"getAttributeNameForKey",value:function(t){return"data-".concat(this.identifier,"-").concat(A(t))}}]),t}(),it=function(){function t(e){g(this,t),this.warnedKeysByObject=new WeakMap,this.logger=e}return v(t,[{key:"warn",value:function(t,e,n){var r=this.warnedKeysByObject.get(t);r||(r=new Set,this.warnedKeysByObject.set(t,r)),r.has(e)||(r.add(e),this.logger.warn(n,t))}}]),t}();function ot(t,e){return"[".concat(t,'~="').concat(e,'"]')}var at=function(){function t(e){g(this,t),this.scope=e}return v(t,[{key:"element",get:function(){return this.scope.element}},{key:"identifier",get:function(){return this.scope.identifier}},{key:"schema",get:function(){return this.scope.schema}},{key:"has",value:function(t){return null!=this.find(t)}},{key:"find",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(e,n){return e||t.findTarget(n)||t.findLegacyTarget(n)}),void 0)}},{key:"findAll",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(e,n){return[].concat(o(e),o(t.findAllTargets(n)),o(t.findAllLegacyTargets(n)))}),[])}},{key:"findTarget",value:function(t){var e=this.getSelectorForTargetName(t);return this.scope.findElement(e)}},{key:"findAllTargets",value:function(t){var e=this.getSelectorForTargetName(t);return this.scope.findAllElements(e)}},{key:"getSelectorForTargetName",value:function(t){return ot(this.schema.targetAttributeForScope(this.identifier),t)}},{key:"findLegacyTarget",value:function(t){var e=this.getLegacySelectorForTargetName(t);return this.deprecate(this.scope.findElement(e),t)}},{key:"findAllLegacyTargets",value:function(t){var e=this,n=this.getLegacySelectorForTargetName(t);return this.scope.findAllElements(n).map((function(n){return e.deprecate(n,t)}))}},{key:"getLegacySelectorForTargetName",value:function(t){var e="".concat(this.identifier,".").concat(t);return ot(this.schema.targetAttribute,e)}},{key:"deprecate",value:function(t,e){if(t){var n=this.identifier,r=this.schema.targetAttribute,i=this.schema.targetAttributeForScope(n);this.guide.warn(t,"target:".concat(e),"Please replace ".concat(r,'="').concat(n,".").concat(e,'" with ').concat(i,'="').concat(e,'". ')+"The ".concat(r," attribute is deprecated and will be removed in a future version of Stimulus."))}return t}},{key:"guide",get:function(){return this.scope.guide}}]),t}(),st=function(){function t(e,n){g(this,t),this.scope=e,this.controllerElement=n}return v(t,[{key:"element",get:function(){return this.scope.element}},{key:"identifier",get:function(){return this.scope.identifier}},{key:"schema",get:function(){return this.scope.schema}},{key:"has",value:function(t){return null!=this.find(t)}},{key:"find",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(e,n){return e||t.findOutlet(n)}),void 0)}},{key:"findAll",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.reduce((function(e,n){return[].concat(o(e),o(t.findAllOutlets(n)))}),[])}},{key:"getSelectorForOutletName",value:function(t){var e=this.schema.outletAttributeForScope(this.identifier,t);return this.controllerElement.getAttribute(e)}},{key:"findOutlet",value:function(t){var e=this.getSelectorForOutletName(t);if(e)return this.findElement(e,t)}},{key:"findAllOutlets",value:function(t){var e=this.getSelectorForOutletName(t);return e?this.findAllElements(e,t):[]}},{key:"findElement",value:function(t,e){var n=this;return this.scope.queryElements(t).filter((function(r){return n.matchesElement(r,t,e)}))[0]}},{key:"findAllElements",value:function(t,e){var n=this;return this.scope.queryElements(t).filter((function(r){return n.matchesElement(r,t,e)}))}},{key:"matchesElement",value:function(t,e,n){var r=t.getAttribute(this.scope.schema.controllerAttribute)||"";return t.matches(e)&&r.split(" ").includes(n)}}]),t}(),ut=function(){function t(e,n,r,i){var o=this;g(this,t),this.targets=new at(this),this.classes=new nt(this),this.data=new rt(this),this.containsElement=function(t){return t.closest(o.controllerSelector)===o.element},this.schema=e,this.element=n,this.identifier=r,this.guide=new it(i),this.outlets=new st(this.documentScope,n)}return v(t,[{key:"findElement",value:function(t){return this.element.matches(t)?this.element:this.queryElements(t).find(this.containsElement)}},{key:"findAllElements",value:function(t){return[].concat(o(this.element.matches(t)?[this.element]:[]),o(this.queryElements(t).filter(this.containsElement)))}},{key:"queryElements",value:function(t){return Array.from(this.element.querySelectorAll(t))}},{key:"controllerSelector",get:function(){return ot(this.schema.controllerAttribute,this.identifier)}},{key:"isDocumentScope",get:function(){return this.element===document.documentElement}},{key:"documentScope",get:function(){return this.isDocumentScope?this:new t(this.schema,document.documentElement,this.identifier,this.guide.logger)}}]),t}(),lt=function(){function t(e,n,r){g(this,t),this.element=e,this.schema=n,this.delegate=r,this.valueListObserver=new W(this.element,this.controllerAttribute,this),this.scopesByIdentifierByElement=new WeakMap,this.scopeReferenceCounts=new WeakMap}return v(t,[{key:"start",value:function(){this.valueListObserver.start()}},{key:"stop",value:function(){this.valueListObserver.stop()}},{key:"controllerAttribute",get:function(){return this.schema.controllerAttribute}},{key:"parseValueForToken",value:function(t){var e=t.element,n=t.content,r=this.fetchScopesByIdentifierForElement(e),i=r.get(n);return i||(i=this.delegate.createScopeForElementAndIdentifier(e,n),r.set(n,i)),i}},{key:"elementMatchedValue",value:function(t,e){var n=(this.scopeReferenceCounts.get(e)||0)+1;this.scopeReferenceCounts.set(e,n),1==n&&this.delegate.scopeConnected(e)}},{key:"elementUnmatchedValue",value:function(t,e){var n=this.scopeReferenceCounts.get(e);n&&(this.scopeReferenceCounts.set(e,n-1),1==n&&this.delegate.scopeDisconnected(e))}},{key:"fetchScopesByIdentifierForElement",value:function(t){var e=this.scopesByIdentifierByElement.get(t);return e||(e=new Map,this.scopesByIdentifierByElement.set(t,e)),e}}]),t}(),ct=function(){function t(e){g(this,t),this.application=e,this.scopeObserver=new lt(this.element,this.schema,this),this.scopesByIdentifier=new B,this.modulesByIdentifier=new Map}return v(t,[{key:"element",get:function(){return this.application.element}},{key:"schema",get:function(){return this.application.schema}},{key:"logger",get:function(){return this.application.logger}},{key:"controllerAttribute",get:function(){return this.schema.controllerAttribute}},{key:"modules",get:function(){return Array.from(this.modulesByIdentifier.values())}},{key:"contexts",get:function(){return this.modules.reduce((function(t,e){return t.concat(e.contexts)}),[])}},{key:"start",value:function(){this.scopeObserver.start()}},{key:"stop",value:function(){this.scopeObserver.stop()}},{key:"loadDefinition",value:function(t){this.unloadIdentifier(t.identifier);var e=new et(this.application,t);this.connectModule(e);var n=t.controllerConstructor.afterLoad;n&&n(t.identifier,this.application)}},{key:"unloadIdentifier",value:function(t){var e=this.modulesByIdentifier.get(t);e&&this.disconnectModule(e)}},{key:"getContextForElementAndIdentifier",value:function(t,e){var n=this.modulesByIdentifier.get(e);if(n)return n.contexts.find((function(e){return e.element==t}))}},{key:"handleError",value:function(t,e,n){this.application.handleError(t,e,n)}},{key:"createScopeForElementAndIdentifier",value:function(t,e){return new ut(this.schema,t,e,this.logger)}},{key:"scopeConnected",value:function(t){this.scopesByIdentifier.add(t.identifier,t);var e=this.modulesByIdentifier.get(t.identifier);e&&e.connectContextForScope(t)}},{key:"scopeDisconnected",value:function(t){this.scopesByIdentifier.delete(t.identifier,t);var e=this.modulesByIdentifier.get(t.identifier);e&&e.disconnectContextForScope(t)}},{key:"connectModule",value:function(t){this.modulesByIdentifier.set(t.identifier,t),this.scopesByIdentifier.getValuesForKey(t.identifier).forEach((function(e){return t.connectContextForScope(e)}))}},{key:"disconnectModule",value:function(t){this.modulesByIdentifier.delete(t.identifier),this.scopesByIdentifier.getValuesForKey(t.identifier).forEach((function(e){return t.disconnectContextForScope(e)}))}}]),t}(),dt={controllerAttribute:"data-controller",actionAttribute:"data-action",targetAttribute:"data-target",targetAttributeForScope:function(t){return"data-".concat(t,"-target")},outletAttributeForScope:function(t,e){return"data-".concat(t,"-").concat(e,"-outlet")},keyMappings:Object.assign(Object.assign({enter:"Enter",tab:"Tab",esc:"Escape",space:" ",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",home:"Home",end:"End"},ht("abcdefghijklmnopqrstuvwxyz".split("").map((function(t){return[t,t]})))),ht("0123456789".split("").map((function(t){return[t,t]}))))};function ht(t){return t.reduce((function(t,e){var n=c(e,2),r=n[0],i=n[1];return Object.assign(Object.assign({},t),d({},r,i))}),{})}var ft=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.documentElement,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dt;g(this,t),this.logger=console,this.debug=!1,this.logDebugActivity=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e.debug&&e.logFormattedMessage(t,n,r)},this.element=n,this.schema=r,this.dispatcher=new w(this),this.router=new ct(this),this.actionDescriptorFilters=Object.assign({},k)}var e,n;return v(t,[{key:"start",value:(e=r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",(function(){return t()})):t()}));case 2:this.logDebugActivity("application","starting"),this.dispatcher.start(),this.router.start(),this.logDebugActivity("application","start");case 6:case"end":return t.stop()}}),t,this)})),n=function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(t){i(a,r,o,s,u,"next",t)}function u(t){i(a,r,o,s,u,"throw",t)}s(void 0)}))},function(){return n.apply(this,arguments)})},{key:"stop",value:function(){this.logDebugActivity("application","stopping"),this.dispatcher.stop(),this.router.stop(),this.logDebugActivity("application","stop")}},{key:"register",value:function(t,e){this.load({identifier:t,controllerConstructor:e})}},{key:"registerActionOption",value:function(t,e){this.actionDescriptorFilters[t]=e}},{key:"load",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(Array.isArray(t)?t:[t].concat(r)).forEach((function(t){t.controllerConstructor.shouldLoad&&e.router.loadDefinition(t)}))}},{key:"unload",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(Array.isArray(t)?t:[t].concat(r)).forEach((function(t){return e.router.unloadIdentifier(t)}))}},{key:"controllers",get:function(){return this.router.contexts.map((function(t){return t.controller}))}},{key:"getControllerForElementAndIdentifier",value:function(t,e){var n=this.router.getContextForElementAndIdentifier(t,e);return n?n.controller:null}},{key:"handleError",value:function(t,e,n){var r;this.logger.error("%s\n\n%o\n\n%o",e,t,n),null===(r=window.onerror)||void 0===r||r.call(window,e,"",0,0,t)}},{key:"logFormattedMessage",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=Object.assign({application:this},n),this.logger.groupCollapsed("".concat(t," #").concat(e)),this.logger.log("details:",Object.assign({},n)),this.logger.groupEnd()}}],[{key:"start",value:function(t,e){var n=new this(t,e);return n.start(),n}}]),t}();function pt(t,e){var n,r,i,o=c(t,2),a=o[0],s=o[1];return r="".concat(A((n={controller:e,token:a,typeDefinition:s}).token),"-value"),i=function(t){var e=function(t){var e=mt(t.typeObject.type);if(e){var n=gt(t.typeObject.default);if(e!==n){var r=t.controller?"".concat(t.controller,".").concat(t.token):t.token;throw new Error('The specified default value for the Stimulus Value "'.concat(r,'" must match the defined type "').concat(e,'". The provided default value of "').concat(t.typeObject.default,'" is of type "').concat(n,'".'))}return e}}({controller:t.controller,token:t.token,typeObject:t.typeDefinition}),n=gt(t.typeDefinition),r=mt(t.typeDefinition),i=e||n||r;if(i)return i;var o=t.controller?"".concat(t.controller,".").concat(t.typeDefinition):t.token;throw new Error('Unknown value type "'.concat(o,'" for "').concat(t.token,'" value'))}(n),{type:i,key:r,name:C(r),get defaultValue(){return function(t){var e=mt(t);if(e)return yt[e];var n=t.default;return void 0!==n?n:t}(n.typeDefinition)},get hasCustomDefaultValue(){return void 0!==gt(n.typeDefinition)},reader:vt[i],writer:_t[i]||_t.default}}function mt(t){switch(t){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function gt(t){switch(h(t)){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}return Array.isArray(t)?"array":"[object Object]"===Object.prototype.toString.call(t)?"object":void 0}var yt={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},vt={array:function(t){var e=JSON.parse(t);if(!Array.isArray(e))throw new TypeError('expected value of type "array" but instead got value "'.concat(t,'" of type "').concat(gt(e),'"'));return e},boolean:function(t){return!("0"==t||"false"==String(t).toLowerCase())},number:function(t){return Number(t)},object:function(t){var e=JSON.parse(t);if(null===e||"object"!=h(e)||Array.isArray(e))throw new TypeError('expected value of type "object" but instead got value "'.concat(t,'" of type "').concat(gt(e),'"'));return e},string:function(t){return t}},_t={default:function(t){return"".concat(t)},array:bt,object:bt};function bt(t){return JSON.stringify(t)}var wt=function(){function t(e){g(this,t),this.context=e}return v(t,[{key:"application",get:function(){return this.context.application}},{key:"scope",get:function(){return this.context.scope}},{key:"element",get:function(){return this.scope.element}},{key:"identifier",get:function(){return this.scope.identifier}},{key:"targets",get:function(){return this.scope.targets}},{key:"outlets",get:function(){return this.scope.outlets}},{key:"classes",get:function(){return this.scope.classes}},{key:"data",get:function(){return this.scope.data}},{key:"initialize",value:function(){}},{key:"connect",value:function(){}},{key:"disconnect",value:function(){}},{key:"dispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.target,r=void 0===n?this.element:n,i=e.detail,o=void 0===i?{}:i,a=e.prefix,s=void 0===a?this.identifier:a,u=e.bubbles,l=void 0===u||u,c=e.cancelable,d=void 0===c||c,h=s?"".concat(s,":").concat(t):t,f=new CustomEvent(h,{detail:o,bubbles:l,cancelable:d});return r.dispatchEvent(f),f}}],[{key:"shouldLoad",get:function(){return!0}},{key:"afterLoad",value:function(t,e){}}]),t}();wt.blessings=[function(t){return G(t,"classes").reduce((function(t,e){return Object.assign(t,(d(r={},"".concat(n=e,"Class"),{get:function(){var t=this.classes;if(t.has(n))return t.get(n);var e=t.getAttributeName(n);throw new Error('Missing attribute "'.concat(e,'"'))}}),d(r,"".concat(n,"Classes"),{get:function(){return this.classes.getAll(n)}}),d(r,"has".concat(D(n),"Class"),{get:function(){return this.classes.has(n)}}),r));var n,r}),{})},function(t){return G(t,"targets").reduce((function(t,e){return Object.assign(t,(d(r={},"".concat(n=e,"Target"),{get:function(){var t=this.targets.find(n);if(t)return t;throw new Error('Missing target element "'.concat(n,'" for "').concat(this.identifier,'" controller'))}}),d(r,"".concat(n,"Targets"),{get:function(){return this.targets.findAll(n)}}),d(r,"has".concat(D(n),"Target"),{get:function(){return this.targets.has(n)}}),r));var n,r}),{})},function(t){var e=$(t,"values"),n={valueDescriptorMap:{get:function(){var t=this;return e.reduce((function(e,n){var r=pt(n,t.identifier),i=t.data.getAttributeNameForKey(r.key);return Object.assign(e,d({},i,r))}),{})}}};return e.reduce((function(t,e){return Object.assign(t,function(t,e){var n,r=pt(t,e),i=r.key,o=r.name,a=r.reader,s=r.writer;return d(n={},o,{get:function(){var t=this.data.get(i);return null!==t?a(t):r.defaultValue},set:function(t){void 0===t?this.data.delete(i):this.data.set(i,s(t))}}),d(n,"has".concat(D(o)),{get:function(){return this.data.has(i)||r.hasCustomDefaultValue}}),n}(e))}),n)},function(t){return G(t,"outlets").reduce((function(t,e){return Object.assign(t,(i=x(n=e),d(r={},"".concat(i,"Outlet"),{get:function(){var t=this.outlets.find(n);if(t){var e=this.application.getControllerForElementAndIdentifier(t,n);if(e)return e;throw new Error('Missing "data-controller='.concat(n,'" attribute on outlet element for "').concat(this.identifier,'" controller'))}throw new Error('Missing outlet element "'.concat(n,'" for "').concat(this.identifier,'" controller'))}}),d(r,"".concat(i,"Outlets"),{get:function(){var t=this,e=this.outlets.findAll(n);return e.length>0?e.map((function(e){var r=t.application.getControllerForElementAndIdentifier(e,n);if(r)return r;console.warn('The provided outlet element is missing the outlet controller "'.concat(n,'" for "').concat(t.identifier,'"'),e)})).filter((function(t){return t})):[]}}),d(r,"".concat(i,"OutletElement"),{get:function(){var t=this.outlets.find(n);if(t)return t;throw new Error('Missing outlet element "'.concat(n,'" for "').concat(this.identifier,'" controller'))}}),d(r,"".concat(i,"OutletElements"),{get:function(){return this.outlets.findAll(n)}}),d(r,"has".concat(D(i),"Outlet"),{get:function(){return this.outlets.has(n)}}),r));var n,r,i}),{})}],wt.targets=[],wt.outlets=[],wt.values={}},function(t,e,n){"use strict";t.exports=n(595)},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.getFormatInstance=function(){return new e},e.kind="FormatException",e}(i.a);e.a=a},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="IllegalArgumentException",e}(i.a);e.a=a},function(t,e,n){"use strict";var r;!function(t){t[t.AZTEC=0]="AZTEC",t[t.CODABAR=1]="CODABAR",t[t.CODE_39=2]="CODE_39",t[t.CODE_93=3]="CODE_93",t[t.CODE_128=4]="CODE_128",t[t.DATA_MATRIX=5]="DATA_MATRIX",t[t.EAN_8=6]="EAN_8",t[t.EAN_13=7]="EAN_13",t[t.ITF=8]="ITF",t[t.MAXICODE=9]="MAXICODE",t[t.PDF_417=10]="PDF_417",t[t.QR_CODE=11]="QR_CODE",t[t.RSS_14=12]="RSS_14",t[t.RSS_EXPANDED=13]="RSS_EXPANDED",t[t.UPC_A=14]="UPC_A",t[t.UPC_E=15]="UPC_E",t[t.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(r||(r={})),e.a=r},function(t,e,n){"use strict";var r=n(19),i=n(107),o=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t.prototype.equals=function(e){if(e instanceof t){var n=e;return this.x===n.x&&this.y===n.y}return!1},t.prototype.hashCode=function(){return 31*i.a.floatToIntBits(this.x)+i.a.floatToIntBits(this.y)},t.prototype.toString=function(){return"("+this.x+","+this.y+")"},t.orderBestPatterns=function(t){var e,n,r,i=this.distance(t[0],t[1]),o=this.distance(t[1],t[2]),a=this.distance(t[0],t[2]);if(o>=i&&o>=a?(n=t[0],e=t[1],r=t[2]):a>=o&&a>=i?(n=t[1],e=t[0],r=t[2]):(n=t[2],e=t[0],r=t[1]),this.crossProductZ(e,n,r)<0){var s=e;e=r,r=s}t[0]=e,t[1]=n,t[2]=r},t.distance=function(t,e){return r.a.distance(t.x,t.y,e.x,e.y)},t.crossProductZ=function(t,e,n){var r=e.x,i=e.y;return(n.x-r)*(t.y-i)-(n.y-i)*(t.x-r)},t}();e.a=o},function(t,e,n){"use strict";var r=n(14),i=function(){function t(t){void 0===t&&(t=""),this.value=t}return t.prototype.enableDecoding=function(t){return this.encoding=t,this},t.prototype.append=function(t){return"string"===typeof t?this.value+=t.toString():this.encoding?this.value+=r.a.castAsNonUtf8Char(t,this.encoding):this.value+=String.fromCharCode(t),this},t.prototype.appendChars=function(t,e,n){for(var r=e;e<e+n;r++)this.append(t[r]);return this},t.prototype.length=function(){return this.value.length},t.prototype.charAt=function(t){return this.value.charAt(t)},t.prototype.deleteCharAt=function(t){this.value=this.value.substr(0,t)+this.value.substring(t+1)},t.prototype.setCharAt=function(t,e){this.value=this.value.substr(0,t)+e+this.value.substr(t+1)},t.prototype.substring=function(t,e){return this.value.substring(t,e)},t.prototype.setLengthToZero=function(){this.value=""},t.prototype.toString=function(){return this.value},t.prototype.insert=function(t,e){this.value=this.value.substring(0,t)+e+this.value.substring(t)},t}();e.a=i},function(t,e,n){"use strict";var r=n(227);n.o(r,"BrowserMultiFormatReader")&&n.d(e,"BrowserMultiFormatReader",(function(){return r.BrowserMultiFormatReader}));var i=n(40);n.d(e,"ArgumentException",(function(){return i.a}));n(83);var o=n(27);n.d(e,"ChecksumException",(function(){return o.a}));n(26);var a=n(5);n.d(e,"FormatException",(function(){return a.a}));var s=n(6);n.d(e,"IllegalArgumentException",(function(){return s.a}));var u=n(38);n.d(e,"IllegalStateException",(function(){return u.a}));var l=n(1);n.d(e,"NotFoundException",(function(){return l.a}));n(103),n(74),n(62),n(29),n(7),n(129);var c=n(126);n.d(e,"BinaryBitmap",(function(){return c.a}));var d=n(21);n.d(e,"DecodeHintType",(function(){return d.a}));var h=n(52);n.d(e,"InvertedLuminanceSource",(function(){return h.a}));var f=n(47);n.d(e,"LuminanceSource",(function(){return f.a}));var p=n(136);n.d(e,"MultiFormatReader",(function(){return p.a}));n(237),n(238),n(23),n(33),n(239),n(8),n(18),n(9),n(37),n(60),n(24),n(90),n(12),n(31),n(30),n(86),n(32),n(48),n(133),n(58);var m=n(22);n.d(e,"EncodeHintType",(function(){return m.a}));n(128),n(97),n(59);var g=n(127);n.d(e,"HybridBinarizer",(function(){return g.a}));n(84),n(14),n(19),n(68),n(34),n(44),n(49),n(88);var y=n(73);n.d(e,"DataMatrixReader",(function(){return y.a}));n(135),n(124),n(125),n(17),n(82),n(2),n(241);var v=n(71);n.d(e,"PDF417Reader",(function(){return v.a}));n(139),n(138),n(151);var _=n(72);n.d(e,"QRCodeReader",(function(){return _.a}));n(140);var b=n(50);n.d(e,"QRCodeDecoderErrorCorrectionLevel",(function(){return b.a}));n(87),n(45),n(28),n(137),n(102);var w=n(91);n.d(e,"QRCodeEncoder",(function(){return w.a}));n(70),n(104),n(89),n(53);var k=n(67);n.d(e,"AztecCodeReader",(function(){return k.a}));n(240),n(132),n(93),n(149),n(147),n(96),n(81),n(25),n(69),n(98),n(101),n(99),n(100),n(105),n(150),n(85),n(148);var S=n(54);n.d(e,"MultiFormatOneDReader",(function(){return S.a}));n(134)},function(t,e,n){"use strict";n.d(e,"a",(function(){return ii}));var r=n(3);n(16);function i(t){var e="function"===typeof Map?new Map:void 0;return i=function(t){if(null===t||!function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return o(t,arguments,b(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),g(n,t)},i(t)}function o(t,e,n){return o=_()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&g(i,n.prototype),i},o.apply(null,arguments)}function a(){return a="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},a.apply(this,arguments)}function s(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=h(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function u(t,e){return c(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||h(t,e)||l()}function l(){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 c(t){if(Array.isArray(t))return t}function d(t){return function(t){if(Array.isArray(t))return p(t)}(t)||f(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if(t){if("string"===typeof t)return p(t,e);var n=Object.prototype.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)?p(t,e):void 0}}function f(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g(t,e)}function g(t,e){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g(t,e)}function y(t){var e=_();return function(){var n,r=b(t);if(e){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===E(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,n)}}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(L){return!1}}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,o=function(t,e){if("object"!==E(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===E(o)?o:String(o)),r)}var i,o}function S(t,e,n){return e&&k(t.prototype,e),n&&k(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function E(t){return E="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},E(t)}var C,x,D,A,T,M,L="[data-trix-attachment]",O={preview:{presentation:"gallery",caption:{name:!0,size:!0}},file:{caption:{size:!0}}},I={default:{tagName:"div",parse:!1},quote:{tagName:"blockquote",nestable:!0},heading1:{tagName:"h1",terminal:!0,breakOnReturn:!0,group:!1},code:{tagName:"pre",terminal:!0,text:{plaintext:!0}},bulletList:{tagName:"ul",parse:!1},bullet:{tagName:"li",listAttribute:"bulletList",group:!1,nestable:!0,test:function(t){return P(t.parentNode)===I[this.listAttribute].tagName}},numberList:{tagName:"ol",parse:!1},number:{tagName:"li",listAttribute:"numberList",group:!1,nestable:!0,test:function(t){return P(t.parentNode)===I[this.listAttribute].tagName}},attachmentGallery:{tagName:"div",exclusive:!0,terminal:!0,parse:!1,group:!1}},P=function(t){var e;return null==t||null===(e=t.tagName)||void 0===e?void 0:e.toLowerCase()},R=navigator.userAgent.match(/android\s([0-9]+.*Chrome)/i),N=R&&parseInt(R[1]),F={composesExistingText:/Android.*Chrome/.test(navigator.userAgent),recentAndroid:N&&N>12,samsungAndroid:N&&navigator.userAgent.match(/Android.*SM-/),forcesObjectResizing:/Trident.*rv:11/.test(navigator.userAgent),supportsInputEvents:"undefined"!=typeof InputEvent&&["data","getTargetRanges","inputType"].every((function(t){return t in InputEvent.prototype}))},j={attachFiles:"Attach Files",bold:"Bold",bullets:"Bullets",byte:"Byte",bytes:"Bytes",captionPlaceholder:"Add a caption\u2026",code:"Code",heading1:"Heading",indent:"Increase Level",italic:"Italic",link:"Link",numbers:"Numbers",outdent:"Decrease Level",quote:"Quote",redo:"Redo",remove:"Remove",strike:"Strikethrough",undo:"Undo",unlink:"Unlink",url:"URL",urlPlaceholder:"Enter a URL\u2026",GB:"GB",KB:"KB",MB:"MB",PB:"PB",TB:"TB"},B=[j.bytes,j.KB,j.MB,j.GB,j.TB,j.PB],Y={prefix:"IEC",precision:2,formatter:function(t){switch(t){case 0:return"0 ".concat(j.bytes);case 1:return"1 ".concat(j.byte);default:var e;"SI"===this.prefix?e=1e3:"IEC"===this.prefix&&(e=1024);var n=Math.floor(Math.log(t)/Math.log(e)),r=(t/Math.pow(e,n)).toFixed(this.precision).replace(/0*$/,"").replace(/\.$/,"");return"".concat(r," ").concat(B[n])}}},H="\ufeff",z="\xa0",W=function(t){for(var e in t){var n=t[e];this[e]=n}return this},V=document.documentElement,U=V.matches,q=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.onElement,r=e.matchingSelector,i=e.withCallback,o=e.inPhase,a=e.preventDefault,s=e.times,u=n||V,l=r,c="capturing"===o,d=function t(e){null!=s&&0==--s&&t.destroy();var n=K(e.target,{matchingSelector:l});null!=n&&(null==i||i.call(n,e,n),a&&e.preventDefault())};return d.destroy=function(){return u.removeEventListener(t,d,c)},u.addEventListener(t,d,c),d},G=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.onElement,r=e.bubbles,i=e.cancelable,o=e.attributes,a=null!=n?n:V;r=!1!==r,i=!1!==i;var s=document.createEvent("Events");return s.initEvent(t,r,i),null!=o&&W.call(s,o),a.dispatchEvent(s)},$=function(t,e){if(1===(null==t?void 0:t.nodeType))return U.call(t,e)},K=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.matchingSelector,r=e.untilNode;t&&t.nodeType!==Node.ELEMENT_NODE;)t=t.parentNode;if(null!=t){if(null==n)return t;if(t.closest&&null==r)return t.closest(n);for(;t&&t!==r;){if($(t,n))return t;t=t.parentNode}}},Z=function(t){return document.activeElement!==t&&X(t,document.activeElement)},X=function(t,e){if(t&&e)for(;e;){if(e===t)return!0;e=e.parentNode}},J=function(t){var e;if(null!==(e=t)&&void 0!==e&&e.parentNode){var n=0;for(t=t.previousSibling;t;)n++,t=t.previousSibling;return n}},Q=function(t){var e;return null==t||null===(e=t.parentNode)||void 0===e?void 0:e.removeChild(t)},tt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.onlyNodesOfType,r=e.usingFilter,i=e.expandEntityReferences,o=function(){switch(n){case"element":return NodeFilter.SHOW_ELEMENT;case"text":return NodeFilter.SHOW_TEXT;case"comment":return NodeFilter.SHOW_COMMENT;default:return NodeFilter.SHOW_ALL}}();return document.createTreeWalker(t,o,null!=r?r:null,!0===i)},et=function(t){var e;return null==t||null===(e=t.tagName)||void 0===e?void 0:e.toLowerCase()},nt=function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==E(t)?t=(r=t).tagName:r={attributes:r};var i=document.createElement(t);if(null!=r.editable&&(null==r.attributes&&(r.attributes={}),r.attributes.contenteditable=r.editable),r.attributes)for(e in r.attributes)n=r.attributes[e],i.setAttribute(e,n);if(r.style)for(e in r.style)n=r.style[e],i.style[e]=n;if(r.data)for(e in r.data)n=r.data[e],i.dataset[e]=n;return r.className&&r.className.split(" ").forEach((function(t){i.classList.add(t)})),r.textContent&&(i.textContent=r.textContent),r.childNodes&&[].concat(r.childNodes).forEach((function(t){i.appendChild(t)})),i},rt=function(){if(null!=C)return C;for(var t in C=[],I){var e=I[t];e.tagName&&C.push(e.tagName)}return C},it=function(t){return at(null==t?void 0:t.firstChild)},ot=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{strict:!0}).strict?at(t):at(t)||!at(t.firstChild)&&function(t){return rt().includes(et(t))&&!rt().includes(et(t.firstChild))}(t)},at=function(t){return st(t)&&"block"===(null==t?void 0:t.data)},st=function(t){return(null==t?void 0:t.nodeType)===Node.COMMENT_NODE},ut=function t(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).name;if(e)return dt(e)?e.data===H?!n||e.parentNode.dataset.trixCursorTarget===n:void 0:t(e.firstChild)},lt=function(t){return $(t,L)},ct=function(t){return dt(t)&&""===(null==t?void 0:t.data)},dt=function(t){return(null==t?void 0:t.nodeType)===Node.TEXT_NODE},ht={level2Enabled:!0,getLevel:function(){return this.level2Enabled&&F.supportsInputEvents?2:0},pickFiles:function(t){var e=nt("input",{type:"file",multiple:!0,hidden:!0,id:this.fileInputId});e.addEventListener("change",(function(){t(e.files),Q(e)})),Q(document.getElementById(this.fileInputId)),document.body.appendChild(e),e.click()}},ft={removeBlankTableCells:!1,tableCellSeparator:" | ",tableRowSeparator:"\n"},pt={bold:{tagName:"strong",inheritable:!0,parser:function(t){var e=window.getComputedStyle(t);return"bold"===e.fontWeight||e.fontWeight>=600}},italic:{tagName:"em",inheritable:!0,parser:function(t){return"italic"===window.getComputedStyle(t).fontStyle}},href:{groupTagName:"a",parser:function(t){var e="a:not(".concat(L,")"),n=t.closest(e);if(n)return n.getAttribute("href")}},strike:{tagName:"del",inheritable:!0},frozen:{style:{backgroundColor:"highlight"}}},mt={getDefaultHTML:function(){return'<div class="trix-button-row">\n      <span class="trix-button-group trix-button-group--text-tools" data-trix-button-group="text-tools">\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-bold" data-trix-attribute="bold" data-trix-key="b" title="'.concat(j.bold,'" tabindex="-1">').concat(j.bold,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-italic" data-trix-attribute="italic" data-trix-key="i" title="').concat(j.italic,'" tabindex="-1">').concat(j.italic,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-strike" data-trix-attribute="strike" title="').concat(j.strike,'" tabindex="-1">').concat(j.strike,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-link" data-trix-attribute="href" data-trix-action="link" data-trix-key="k" title="').concat(j.link,'" tabindex="-1">').concat(j.link,'</button>\n      </span>\n\n      <span class="trix-button-group trix-button-group--block-tools" data-trix-button-group="block-tools">\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-heading-1" data-trix-attribute="heading1" title="').concat(j.heading1,'" tabindex="-1">').concat(j.heading1,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-quote" data-trix-attribute="quote" title="').concat(j.quote,'" tabindex="-1">').concat(j.quote,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-code" data-trix-attribute="code" title="').concat(j.code,'" tabindex="-1">').concat(j.code,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-bullet-list" data-trix-attribute="bullet" title="').concat(j.bullets,'" tabindex="-1">').concat(j.bullets,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-number-list" data-trix-attribute="number" title="').concat(j.numbers,'" tabindex="-1">').concat(j.numbers,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-decrease-nesting-level" data-trix-action="decreaseNestingLevel" title="').concat(j.outdent,'" tabindex="-1">').concat(j.outdent,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-increase-nesting-level" data-trix-action="increaseNestingLevel" title="').concat(j.indent,'" tabindex="-1">').concat(j.indent,'</button>\n      </span>\n\n      <span class="trix-button-group trix-button-group--file-tools" data-trix-button-group="file-tools">\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-attach" data-trix-action="attachFiles" title="').concat(j.attachFiles,'" tabindex="-1">').concat(j.attachFiles,'</button>\n      </span>\n\n      <span class="trix-button-group-spacer"></span>\n\n      <span class="trix-button-group trix-button-group--history-tools" data-trix-button-group="history-tools">\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-undo" data-trix-action="undo" data-trix-key="z" title="').concat(j.undo,'" tabindex="-1">').concat(j.undo,'</button>\n        <button type="button" class="trix-button trix-button--icon trix-button--icon-redo" data-trix-action="redo" data-trix-key="shift+z" title="').concat(j.redo,'" tabindex="-1">').concat(j.redo,'</button>\n      </span>\n    </div>\n\n    <div class="trix-dialogs" data-trix-dialogs>\n      <div class="trix-dialog trix-dialog--link" data-trix-dialog="href" data-trix-dialog-attribute="href">\n        <div class="trix-dialog__link-fields">\n          <input type="url" name="href" class="trix-input trix-input--dialog" placeholder="').concat(j.urlPlaceholder,'" aria-label="').concat(j.url,'" required data-trix-input>\n          <div class="trix-button-group">\n            <input type="button" class="trix-button trix-button--dialog" value="').concat(j.link,'" data-trix-method="setAttribute">\n            <input type="button" class="trix-button trix-button--dialog" value="').concat(j.unlink,'" data-trix-method="removeAttribute">\n          </div>\n        </div>\n      </div>\n    </div>')}},gt={interval:5e3},yt=Object.freeze({__proto__:null,attachments:O,blockAttributes:I,browser:F,css:{attachment:"attachment",attachmentCaption:"attachment__caption",attachmentCaptionEditor:"attachment__caption-editor",attachmentMetadata:"attachment__metadata",attachmentMetadataContainer:"attachment__metadata-container",attachmentName:"attachment__name",attachmentProgress:"attachment__progress",attachmentSize:"attachment__size",attachmentToolbar:"attachment__toolbar",attachmentGallery:"attachment-gallery"},fileSize:Y,input:ht,keyNames:{8:"backspace",9:"tab",13:"return",27:"escape",37:"left",39:"right",46:"delete",68:"d",72:"h",79:"o"},lang:j,parser:ft,textAttributes:pt,toolbar:mt,undo:gt}),vt=function(){function t(){w(this,t)}return S(t,null,[{key:"proxyMethod",value:function(t){var e=_t(t),n=e.name,r=e.toMethod,i=e.toProperty,o=e.optional;this.prototype[n]=function(){var t,e,a,s;return r?e=o?null===(a=this[r])||void 0===a?void 0:a.call(this):this[r]():i&&(e=this[i]),o?(t=null===(s=e)||void 0===s?void 0:s[n])?bt.call(t,e,arguments):void 0:(t=e[n],bt.call(t,e,arguments))}}}]),t}(),_t=function(t){var e=t.match(wt);if(!e)throw new Error("can't parse @proxyMethod expression: ".concat(t));var n={name:e[4]};return null!=e[2]?n.toMethod=e[1]:n.toProperty=e[1],null!=e[3]&&(n.optional=!0),n},bt=Function.prototype.apply,wt=new RegExp("^(.+?)(\\(\\))?(\\?)?\\.(.+?)$"),kt=function(t){m(n,t);var e=y(n);function n(t,r){var i;return w(this,n),(i=e.apply(this,arguments)).ucs2String=t,i.codepoints=r,i.length=i.codepoints.length,i.ucs2Length=i.ucs2String.length,i}return S(n,[{key:"offsetToUCS2Offset",value:function(t){return M(this.codepoints.slice(0,Math.max(0,t))).length}},{key:"offsetFromUCS2Offset",value:function(t){return T(this.ucs2String.slice(0,Math.max(0,t))).length}},{key:"slice",value:function(){var t;return this.constructor.fromCodepoints((t=this.codepoints).slice.apply(t,arguments))}},{key:"charAt",value:function(t){return this.slice(t,t+1)}},{key:"isEqualTo",value:function(t){return this.constructor.box(t).ucs2String===this.ucs2String}},{key:"toJSON",value:function(){return this.ucs2String}},{key:"getCacheKey",value:function(){return this.ucs2String}},{key:"toString",value:function(){return this.ucs2String}}],[{key:"box",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t instanceof this?t:this.fromUCS2String(null==t?void 0:t.toString())}},{key:"fromUCS2String",value:function(t){return new this(t,T(t))}},{key:"fromCodepoints",value:function(t){return new this(M(t),t)}}]),n}(vt),St=1===(null===(x=Array.from)||void 0===x?void 0:x.call(Array,"\ud83d\udc7c").length),Et=null!=(null===(D=" ".codePointAt)||void 0===D?void 0:D.call(" ",0)),Ct=" \ud83d\udc7c"===(null===(A=String.fromCodePoint)||void 0===A?void 0:A.call(String,32,128124));T=St&&Et?function(t){return Array.from(t).map((function(t){return t.codePointAt(0)}))}:function(t){for(var e=[],n=0,r=t.length;n<r;){var i=t.charCodeAt(n++);if(55296<=i&&i<=56319&&n<r){var o=t.charCodeAt(n++);56320==(64512&o)?i=((1023&i)<<10)+(1023&o)+65536:n--}e.push(i)}return e},M=Ct?function(t){return String.fromCodePoint.apply(String,d(Array.from(t||[])))}:function(t){return function(){var e=[];return Array.from(t).forEach((function(t){var n="";t>65535&&(t-=65536,n+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e.push(n+String.fromCharCode(t))})),e}().join("")};var xt=0,Dt=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).id=++xt,t}return S(n,[{key:"hasSameConstructorAs",value:function(t){return this.constructor===(null==t?void 0:t.constructor)}},{key:"isEqualTo",value:function(t){return this===t}},{key:"inspect",value:function(){var t=[],e=this.contentsForInspection()||{};for(var n in e){var r=e[n];t.push("".concat(n,"=").concat(r))}return"#<".concat(this.constructor.name,":").concat(this.id).concat(t.length?" ".concat(t.join(", ")):"",">")}},{key:"contentsForInspection",value:function(){}},{key:"toJSONString",value:function(){return JSON.stringify(this)}},{key:"toUTF16String",value:function(){return kt.box(this)}},{key:"getCacheKey",value:function(){return this.id.toString()}}],[{key:"fromJSONString",value:function(t){return this.fromJSON(JSON.parse(t))}}]),n}(vt),At=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},Tt=function(t){for(var e=t.slice(0),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.splice.apply(e,r),e},Mt=/[\u05BE\u05C0\u05C3\u05D0-\u05EA\u05F0-\u05F4\u061B\u061F\u0621-\u063A\u0640-\u064A\u066D\u0671-\u06B7\u06BA-\u06BE\u06C0-\u06CE\u06D0-\u06D5\u06E5\u06E6\u200F\u202B\u202E\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE72\uFE74\uFE76-\uFEFC]/,Lt=function(){var t=nt("input",{dir:"auto",name:"x",dirName:"x.dir"}),e=nt("textarea",{dir:"auto",name:"y",dirName:"y.dir"}),n=nt("form");n.appendChild(t),n.appendChild(e);var r=function(){try{return new FormData(n).has(e.dirName)}catch(t){return!1}}(),i=function(){try{return t.matches(":dir(ltr),:dir(rtl)")}catch(t){return!1}}();return r?function(t){return e.value=t,new FormData(n).get(e.dirName)}:i?function(e){return t.value=e,t.matches(":dir(rtl)")?"rtl":"ltr"}:function(t){var e=t.trim().charAt(0);return Mt.test(e)?"rtl":"ltr"}}(),Ot=null,It=null,Pt=null,Rt=null,Nt=function(){return Ot||(Ot=Yt().concat(jt())),Ot},Ft=function(t){return I[t]},jt=function(){return It||(It=Object.keys(I)),It},Bt=function(t){return pt[t]},Yt=function(){return Pt||(Pt=Object.keys(pt)),Pt},Ht=function(t,e){zt(t).textContent=e.replace(/%t/g,t)},zt=function(t){var e=document.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("data-tag-name",t.toLowerCase());var n=Wt();return n&&e.setAttribute("nonce",n),document.head.insertBefore(e,document.head.firstChild),e},Wt=function(){var t=Vt("trix-csp-nonce")||Vt("csp-nonce");if(t)return t.getAttribute("content")},Vt=function(t){return document.head.querySelector("meta[name=".concat(t,"]"))},Ut={"application/x-trix-feature-detection":"test"},qt=function(t){var e=t.getData("text/plain"),n=t.getData("text/html");if(!e||!n)return null==e?void 0:e.length;var r=(new DOMParser).parseFromString(n,"text/html").body;return r.textContent===e?!r.querySelector("*"):void 0},Gt=/Mac|^iP/.test(navigator.platform)?function(t){return t.metaKey}:function(t){return t.ctrlKey},$t=function(t){return setTimeout(t,1)},Kt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={};for(var n in t){var r=t[n];e[n]=r}return e},Zt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0},Xt=function(t){if(null!=t)return Array.isArray(t)||(t=[t,t]),[te(t[0]),te(null!=t[1]?t[1]:t[0])]},Jt=function(t){if(null!=t){var e=u(Xt(t),2),n=e[0],r=e[1];return ee(n,r)}},Qt=function(t,e){if(null!=t&&null!=e){var n=u(Xt(t),2),r=n[0],i=n[1],o=u(Xt(e),2),a=o[0],s=o[1];return ee(r,a)&&ee(i,s)}},te=function(t){return"number"==typeof t?t:Kt(t)},ee=function(t,e){return"number"==typeof t?t===e:Zt(t,e)},ne=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).update=t.update.bind(v(t)),t.selectionManagers=[],t}return S(n,[{key:"start",value:function(){this.started||(this.started=!0,document.addEventListener("selectionchange",this.update,!0))}},{key:"stop",value:function(){if(this.started)return this.started=!1,document.removeEventListener("selectionchange",this.update,!0)}},{key:"registerSelectionManager",value:function(t){if(!this.selectionManagers.includes(t))return this.selectionManagers.push(t),this.start()}},{key:"unregisterSelectionManager",value:function(t){if(this.selectionManagers=this.selectionManagers.filter((function(e){return e!==t})),0===this.selectionManagers.length)return this.stop()}},{key:"notifySelectionManagersOfSelectionChange",value:function(){return this.selectionManagers.map((function(t){return t.selectionDidChange()}))}},{key:"update",value:function(){this.notifySelectionManagersOfSelectionChange()}},{key:"reset",value:function(){this.update()}}]),n}(vt),re=new ne,ie=function(){var t=window.getSelection();if(t.rangeCount>0)return t},oe=function(){var t,e=null===(t=ie())||void 0===t?void 0:t.getRangeAt(0);if(e&&!se(e))return e},ae=function(t){var e=window.getSelection();return e.removeAllRanges(),e.addRange(t),re.update()},se=function(t){return ue(t.startContainer)||ue(t.endContainer)},ue=function(t){return!Object.getPrototypeOf(t)},le=function(t){return t.replace(new RegExp("".concat(H),"g"),"").replace(new RegExp("".concat(z),"g")," ")},ce=new RegExp("[^\\S".concat(z,"]")),de=function(t){return t.replace(new RegExp("".concat(ce.source),"g")," ").replace(/\ {2,}/g," ")},he=function(t,e){if(t.isEqualTo(e))return["",""];var n,r=fe(t,e),i=r.utf16String.length;if(i){var o=r.offset,a=t.codepoints.slice(0,o).concat(t.codepoints.slice(o+i));n=fe(e,kt.fromCodepoints(a))}else n=fe(e,t);return[r.utf16String.toString(),n.utf16String.toString()]},fe=function(t,e){for(var n=0,r=t.length,i=e.length;n<r&&t.charAt(n).isEqualTo(e.charAt(n));)n++;for(;r>n+1&&t.charAt(r-1).isEqualTo(e.charAt(i-1));)r--,i--;return{utf16String:t.slice(n,r),offset:n}},pe=function(t){m(n,t);var e=y(n);function n(){var t;w(this,n);var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=e.apply(this,arguments)).values=ye(r),t}return S(n,[{key:"add",value:function(t,e){return this.merge(me(t,e))}},{key:"remove",value:function(t){return new n(ye(this.values,t))}},{key:"get",value:function(t){return this.values[t]}},{key:"has",value:function(t){return t in this.values}},{key:"merge",value:function(t){return new n(ge(this.values,_e(t)))}},{key:"slice",value:function(t){var e=this,r={};return Array.from(t).forEach((function(t){e.has(t)&&(r[t]=e.values[t])})),new n(r)}},{key:"getKeys",value:function(){return Object.keys(this.values)}},{key:"getKeysCommonToHash",value:function(t){var e=this;return t=ve(t),this.getKeys().filter((function(n){return e.values[n]===t.values[n]}))}},{key:"isEqualTo",value:function(t){return At(this.toArray(),ve(t).toArray())}},{key:"isEmpty",value:function(){return 0===this.getKeys().length}},{key:"toArray",value:function(){if(!this.array){var t=[];for(var e in this.values){var n=this.values[e];t.push(t.push(e,n))}this.array=t.slice(0)}return this.array}},{key:"toObject",value:function(){return ye(this.values)}},{key:"toJSON",value:function(){return this.toObject()}},{key:"contentsForInspection",value:function(){return{values:JSON.stringify(this.values)}}}],[{key:"fromCommonAttributesOfObjects",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t.length)return new this;var e=ve(t[0]),n=e.getKeys();return t.slice(1).forEach((function(t){n=e.getKeysCommonToHash(ve(t)),e=e.slice(n)})),e}},{key:"box",value:function(t){return ve(t)}}]),n}(Dt),me=function(t,e){var n={};return n[t]=e,n},ge=function(t,e){var n=ye(t);for(var r in e){var i=e[r];n[r]=i}return n},ye=function(t,e){var n={};return Object.keys(t).sort().forEach((function(r){r!==e&&(n[r]=t[r])})),n},ve=function(t){return t instanceof pe?t:new pe(t)},_e=function(t){return t instanceof pe?t.values:t},be=function(){function t(){w(this,t);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=n.depth,i=n.asTree;this.objects=e,i&&(this.depth=r,this.objects=this.constructor.groupObjects(this.objects,{asTree:i,depth:this.depth+1}))}return S(t,[{key:"getObjects",value:function(){return this.objects}},{key:"getDepth",value:function(){return this.depth}},{key:"getCacheKey",value:function(){var t=["objectGroup"];return Array.from(this.getObjects()).forEach((function(e){t.push(e.getCacheKey())})),t.join("/")}}],[{key:"groupObjects",value:function(){var t,e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.depth,o=r.asTree;o&&null==i&&(i=0);var a=[];return Array.from(n).forEach((function(n){var r;if(t){var s,u,l;if(null!==(s=n.canBeGrouped)&&void 0!==s&&s.call(n,i)&&null!==(u=(l=t[t.length-1]).canBeGroupedWith)&&void 0!==u&&u.call(l,n,i))return void t.push(n);a.push(new e(t,{depth:i,asTree:o})),t=null}null!==(r=n.canBeGrouped)&&void 0!==r&&r.call(n,i)?t=[n]:a.push(n)})),t&&a.push(new this(t,{depth:i,asTree:o})),a}}]),t}(),we=function(t){m(n,t);var e=y(n);function n(){var t;w(this,n);var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(t=e.apply(this,arguments)).objects={},Array.from(r).forEach((function(e){var n=JSON.stringify(e);null==t.objects[n]&&(t.objects[n]=e)})),t}return S(n,[{key:"find",value:function(t){var e=JSON.stringify(t);return this.objects[e]}}]),n}(vt),ke=function(){function t(e){w(this,t),this.reset(e)}return S(t,[{key:"add",value:function(t){var e=Se(t);this.elements[e]=t}},{key:"remove",value:function(t){var e=Se(t),n=this.elements[e];if(n)return delete this.elements[e],n}},{key:"reset",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return this.elements={},Array.from(e).forEach((function(e){t.add(e)})),e}}]),t}(),Se=function(t){return t.dataset.trixStoreKey},Ee=function(t){m(n,t);var e=y(n);function n(){return w(this,n),e.apply(this,arguments)}return S(n,[{key:"isPerforming",value:function(){return!0===this.performing}},{key:"hasPerformed",value:function(){return!0===this.performed}},{key:"hasSucceeded",value:function(){return this.performed&&this.succeeded}},{key:"hasFailed",value:function(){return this.performed&&!this.succeeded}},{key:"getPromise",value:function(){var t=this;return this.promise||(this.promise=new Promise((function(e,n){return t.performing=!0,t.perform((function(r,i){t.succeeded=r,t.performing=!1,t.performed=!0,t.succeeded?e(i):n(i)}))}))),this.promise}},{key:"perform",value:function(t){return t(!1)}},{key:"release",value:function(){var t,e;null===(t=this.promise)||void 0===t||null===(e=t.cancel)||void 0===e||e.call(t),this.promise=null,this.performing=null,this.performed=null,this.succeeded=null}}]),n}(vt);Ee.proxyMethod("getPromise().then"),Ee.proxyMethod("getPromise().catch");var Ce=function(t){m(n,t);var e=y(n);function n(t){var r;w(this,n);var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r=e.apply(this,arguments)).object=t,r.options=i,r.childViews=[],r.rootView=v(r),r}return S(n,[{key:"getNodes",value:function(){return this.nodes||(this.nodes=this.createNodes()),this.nodes.map((function(t){return t.cloneNode(!0)}))}},{key:"invalidate",value:function(){var t;return this.nodes=null,this.childViews=[],null===(t=this.parentView)||void 0===t?void 0:t.invalidate()}},{key:"invalidateViewForObject",value:function(t){var e;return null===(e=this.findViewForObject(t))||void 0===e?void 0:e.invalidate()}},{key:"findOrCreateCachedChildView",value:function(t,e,n){var r=this.getCachedViewForObject(e);return r?this.recordChildView(r):(r=this.createChildView.apply(this,arguments),this.cacheViewForObject(r,e)),r}},{key:"createChildView",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof be&&(n.viewClass=t,t=xe);var r=new t(e,n);return this.recordChildView(r)}},{key:"recordChildView",value:function(t){return t.parentView=this,t.rootView=this.rootView,this.childViews.push(t),t}},{key:"getAllChildViews",value:function(){var t=[];return this.childViews.forEach((function(e){t.push(e),t=t.concat(e.getAllChildViews())})),t}},{key:"findElement",value:function(){return this.findElementForObject(this.object)}},{key:"findElementForObject",value:function(t){var e=null==t?void 0:t.id;if(e)return this.rootView.element.querySelector("[data-trix-id='".concat(e,"']"))}},{key:"findViewForObject",value:function(t){var e,n=s(this.getAllChildViews());try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.object===t)return r}}catch(i){n.e(i)}finally{n.f()}}},{key:"getViewCache",value:function(){return this.rootView!==this?this.rootView.getViewCache():this.isViewCachingEnabled()?(this.viewCache||(this.viewCache={}),this.viewCache):void 0}},{key:"isViewCachingEnabled",value:function(){return!1!==this.shouldCacheViews}},{key:"enableViewCaching",value:function(){this.shouldCacheViews=!0}},{key:"disableViewCaching",value:function(){this.shouldCacheViews=!1}},{key:"getCachedViewForObject",value:function(t){var e;return null===(e=this.getViewCache())||void 0===e?void 0:e[t.getCacheKey()]}},{key:"cacheViewForObject",value:function(t,e){var n=this.getViewCache();n&&(n[e.getCacheKey()]=t)}},{key:"garbageCollectCachedViews",value:function(){var t=this.getViewCache();if(t){var e=this.getAllChildViews().concat(this).map((function(t){return t.object.getCacheKey()}));for(var n in t)e.includes(n)||delete t[n]}}}]),n}(vt),xe=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).objectGroup=t.object,t.viewClass=t.options.viewClass,delete t.options.viewClass,t}return S(n,[{key:"getChildViews",value:function(){var t=this;return this.childViews.length||Array.from(this.objectGroup.getObjects()).forEach((function(e){t.findOrCreateCachedChildView(t.viewClass,e,t.options)})),this.childViews}},{key:"createNodes",value:function(){var t=this.createContainerElement();return this.getChildViews().forEach((function(e){Array.from(e.getNodes()).forEach((function(e){t.appendChild(e)}))})),[t]}},{key:"createContainerElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.objectGroup.getDepth();return this.getChildViews()[0].createContainerElement(t)}}]),n}(Ce),De=yt.css,Ae=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).attachment=t.object,t.attachment.uploadProgressDelegate=v(t),t.attachmentPiece=t.options.piece,t}return S(n,[{key:"createContentNodes",value:function(){return[]}},{key:"createNodes",value:function(){var t,e=t=nt({tagName:"figure",className:this.getClassName(),data:this.getData(),editable:!1}),n=this.getHref();return n&&(t=nt({tagName:"a",editable:!1,attributes:{href:n,tabindex:-1}}),e.appendChild(t)),this.attachment.hasContent()?t.innerHTML=this.attachment.getContent():this.createContentNodes().forEach((function(e){t.appendChild(e)})),t.appendChild(this.createCaptionElement()),this.attachment.isPending()&&(this.progressElement=nt({tagName:"progress",attributes:{class:De.attachmentProgress,value:this.attachment.getUploadProgress(),max:100},data:{trixMutable:!0,trixStoreKey:["progressElement",this.attachment.id].join("/")}}),e.appendChild(this.progressElement)),[Te("left"),e,Te("right")]}},{key:"createCaptionElement",value:function(){var t=nt({tagName:"figcaption",className:De.attachmentCaption}),e=this.attachmentPiece.getCaption();if(e)t.classList.add("".concat(De.attachmentCaption,"--edited")),t.textContent=e;else{var n,r,i=this.getCaptionConfig();if(i.name&&(n=this.attachment.getFilename()),i.size&&(r=this.attachment.getFormattedFilesize()),n){var o=nt({tagName:"span",className:De.attachmentName,textContent:n});t.appendChild(o)}if(r){n&&t.appendChild(document.createTextNode(" "));var a=nt({tagName:"span",className:De.attachmentSize,textContent:r});t.appendChild(a)}}return t}},{key:"getClassName",value:function(){var t=[De.attachment,"".concat(De.attachment,"--").concat(this.attachment.getType())],e=this.attachment.getExtension();return e&&t.push("".concat(De.attachment,"--").concat(e)),t.join(" ")}},{key:"getData",value:function(){var t={trixAttachment:JSON.stringify(this.attachment),trixContentType:this.attachment.getContentType(),trixId:this.attachment.id},e=this.attachmentPiece.attributes;return e.isEmpty()||(t.trixAttributes=JSON.stringify(e)),this.attachment.isPending()&&(t.trixSerialize=!1),t}},{key:"getHref",value:function(){if(!Me(this.attachment.getContent(),"a"))return this.attachment.getHref()}},{key:"getCaptionConfig",value:function(){var t,e=this.attachment.getType(),n=Kt(null===(t=O[e])||void 0===t?void 0:t.caption);return"file"===e&&(n.name=!0),n}},{key:"findProgressElement",value:function(){var t;return null===(t=this.findElement())||void 0===t?void 0:t.querySelector("progress")}},{key:"attachmentDidChangeUploadProgress",value:function(){var t=this.attachment.getUploadProgress(),e=this.findProgressElement();e&&(e.value=t)}}]),n}(Ce),Te=function(t){return nt({tagName:"span",textContent:H,data:{trixCursorTarget:t,trixSerialize:!1}})},Me=function(t,e){var n=nt("div");return n.innerHTML=t||"",n.querySelector(e)},Le=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).attachment.previewDelegate=v(t),t}return S(n,[{key:"createContentNodes",value:function(){return this.image=nt({tagName:"img",attributes:{src:""},data:{trixMutable:!0}}),this.refresh(this.image),[this.image]}},{key:"createCaptionElement",value:function(){var t=a(b(n.prototype),"createCaptionElement",this).apply(this,arguments);return t.textContent||t.setAttribute("data-trix-placeholder",j.captionPlaceholder),t}},{key:"refresh",value:function(t){var e;if(t||(t=null===(e=this.findElement())||void 0===e?void 0:e.querySelector("img")),t)return this.updateAttributesForImage(t)}},{key:"updateAttributesForImage",value:function(t){var e=this.attachment.getURL(),n=this.attachment.getPreviewURL();if(t.src=n||e,n===e)t.removeAttribute("data-trix-serialized-attributes");else{var r=JSON.stringify({src:e});t.setAttribute("data-trix-serialized-attributes",r)}var i=this.attachment.getWidth(),o=this.attachment.getHeight();null!=i&&(t.width=i),null!=o&&(t.height=o);var a=["imageElement",this.attachment.id,t.src,t.width,t.height].join("/");t.dataset.trixStoreKey=a}},{key:"attachmentDidChangeAttributes",value:function(){return this.refresh(this.image),this.refresh()}}]),n}(Ae),Oe=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).piece=t.object,t.attributes=t.piece.getAttributes(),t.textConfig=t.options.textConfig,t.context=t.options.context,t.piece.attachment?t.attachment=t.piece.attachment:t.string=t.piece.toString(),t}return S(n,[{key:"createNodes",value:function(){var t=this.attachment?this.createAttachmentNodes():this.createStringNodes(),e=this.createElement();if(e){var n=function(t){for(;null!==(e=t)&&void 0!==e&&e.firstElementChild;){var e;t=t.firstElementChild}return t}(e);Array.from(t).forEach((function(t){n.appendChild(t)})),t=[e]}return t}},{key:"createAttachmentNodes",value:function(){var t=this.attachment.isPreviewable()?Le:Ae;return this.createChildView(t,this.piece.attachment,{piece:this.piece}).getNodes()}},{key:"createStringNodes",value:function(){var t;if(null!==(t=this.textConfig)&&void 0!==t&&t.plaintext)return[document.createTextNode(this.string)];for(var e=[],n=this.string.split("\n"),r=0;r<n.length;r++){var i=n[r];if(r>0){var o=nt("br");e.push(o)}if(i.length){var a=document.createTextNode(this.preserveSpaces(i));e.push(a)}}return e}},{key:"createElement",value:function(){var t,e,n,r={};for(e in this.attributes){n=this.attributes[e];var i=Bt(e);if(i){if(i.tagName){var o,a=nt(i.tagName);o?(o.appendChild(a),o=a):t=o=a}if(i.styleProperty&&(r[i.styleProperty]=n),i.style)for(e in i.style)n=i.style[e],r[e]=n}}if(Object.keys(r).length)for(e in t||(t=nt("span")),r)n=r[e],t.style[e]=n;return t}},{key:"createContainerElement",value:function(){for(var t in this.attributes){var e=this.attributes[t],n=Bt(t);if(n&&n.groupTagName){var r={};return r[t]=e,nt(n.groupTagName,r)}}}},{key:"preserveSpaces",value:function(t){return this.context.isLast&&(t=t.replace(/\ $/,z)),t=t.replace(/(\S)\ {3}(\S)/g,"$1 ".concat(z," $2")).replace(/\ {2}/g,"".concat(z," ")).replace(/\ {2}/g," ".concat(z)),(this.context.isFirst||this.context.followsWhitespace)&&(t=t.replace(/^\ /,z)),t}}]),n}(Ce),Ie=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).text=t.object,t.textConfig=t.options.textConfig,t}return S(n,[{key:"createNodes",value:function(){for(var t=[],e=be.groupObjects(this.getPieces()),n=e.length-1,r=0;r<e.length;r++){var i=e[r],o={};0===r&&(o.isFirst=!0),r===n&&(o.isLast=!0),Pe(s)&&(o.followsWhitespace=!0);var a=this.findOrCreateCachedChildView(Oe,i,{textConfig:this.textConfig,context:o});t.push.apply(t,d(Array.from(a.getNodes()||[])));var s=i}return t}},{key:"getPieces",value:function(){return Array.from(this.text.getPieces()).filter((function(t){return!t.hasAttribute("blockBreak")}))}}]),n}(Ce),Pe=function(t){return/\s$/.test(null==t?void 0:t.toString())},Re=yt.css,Ne=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).block=t.object,t.attributes=t.block.getAttributes(),t}return S(n,[{key:"createNodes",value:function(){var t=[document.createComment("block")];if(this.block.isEmpty())t.push(nt("br"));else{var e,n=null===(e=Ft(this.block.getLastAttribute()))||void 0===e?void 0:e.text,r=this.findOrCreateCachedChildView(Ie,this.block.text,{textConfig:n});t.push.apply(t,d(Array.from(r.getNodes()||[]))),this.shouldAddExtraNewlineElement()&&t.push(nt("br"))}if(this.attributes.length)return t;var i,o=I.default.tagName;this.block.isRTL()&&(i={dir:"rtl"});var a=nt({tagName:o,attributes:i});return t.forEach((function(t){return a.appendChild(t)})),[a]}},{key:"createContainerElement",value:function(t){var e,n,r=this.attributes[t],i=Ft(r).tagName;if(0===t&&this.block.isRTL()&&(e={dir:"rtl"}),"attachmentGallery"===r){var o=this.block.getBlockBreakPosition();n="".concat(Re.attachmentGallery," ").concat(Re.attachmentGallery,"--").concat(o)}return nt({tagName:i,className:n,attributes:e})}},{key:"shouldAddExtraNewlineElement",value:function(){return/\n\n$/.test(this.block.toString())}}]),n}(Ce),Fe=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).element=t.options.element,t.elementStore=new ke,t.setDocument(t.object),t}return S(n,[{key:"setDocument",value:function(t){t.isEqualTo(this.document)||(this.document=this.object=t)}},{key:"render",value:function(){var t=this;if(this.childViews=[],this.shadowElement=nt("div"),!this.document.isEmpty()){var e=be.groupObjects(this.document.getBlocks(),{asTree:!0});Array.from(e).forEach((function(e){var n=t.findOrCreateCachedChildView(Ne,e);Array.from(n.getNodes()).map((function(e){return t.shadowElement.appendChild(e)}))}))}}},{key:"isSynced",value:function(){return Be(this.shadowElement,this.element)}},{key:"sync",value:function(){for(var t=this.createDocumentFragmentForSync();this.element.lastChild;)this.element.removeChild(this.element.lastChild);return this.element.appendChild(t),this.didSync()}},{key:"didSync",value:function(){var t=this;return this.elementStore.reset(je(this.element)),$t((function(){return t.garbageCollectCachedViews()}))}},{key:"createDocumentFragmentForSync",value:function(){var t=this,e=document.createDocumentFragment();return Array.from(this.shadowElement.childNodes).forEach((function(t){e.appendChild(t.cloneNode(!0))})),Array.from(je(e)).forEach((function(e){var n=t.elementStore.remove(e);n&&e.parentNode.replaceChild(n,e)})),e}}],[{key:"render",value:function(t){var e=nt("div"),n=new this(t,{element:e});return n.render(),n.sync(),e}}]),n}(Ce),je=function(t){return t.querySelectorAll("[data-trix-store-key]")},Be=function(t,e){return Ye(t.innerHTML)===Ye(e.innerHTML)},Ye=function(t){return t.replace(/&nbsp;/g," ")};function He(t){var e,n;function r(e,n){try{var o=t[e](n),a=o.value,s=a instanceof ze;Promise.resolve(s?a.v:a).then((function(n){if(s){var u="return"===e?"return":"next";if(!a.k||n.done)return r(u,n);n=t[u](n).value}i(o.done?"return":"normal",n)}),(function(t){r("throw",t)}))}catch(t){i("throw",t)}}function i(t,i){switch(t){case"return":e.resolve({value:i,done:!0});break;case"throw":e.reject(i);break;default:e.resolve({value:i,done:!1})}(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,i){return new Promise((function(o,a){var s={key:t,arg:i,resolve:o,reject:a,next:null};n?n=n.next=s:(e=n=s,r(t,i))}))},"function"!=typeof t.return&&(this.return=void 0)}function ze(t,e){this.v=t,this.k=e}function We(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=E(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==E(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}He.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},He.prototype.next=function(t){return this._invoke("next",t)},He.prototype.throw=function(t){return this._invoke("throw",t)},He.prototype.return=function(t){return this._invoke("return",t)};var Ve=function(t){m(n,t);var e=y(n);function n(t){var r;w(this,n);var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(r=e.apply(this,arguments)).attributes=pe.box(i),r}return S(n,[{key:"copyWithAttributes",value:function(t){return new this.constructor(this.getValue(),t)}},{key:"copyWithAdditionalAttributes",value:function(t){return this.copyWithAttributes(this.attributes.merge(t))}},{key:"copyWithoutAttribute",value:function(t){return this.copyWithAttributes(this.attributes.remove(t))}},{key:"copy",value:function(){return this.copyWithAttributes(this.attributes)}},{key:"getAttribute",value:function(t){return this.attributes.get(t)}},{key:"getAttributesHash",value:function(){return this.attributes}},{key:"getAttributes",value:function(){return this.attributes.toObject()}},{key:"hasAttribute",value:function(t){return this.attributes.has(t)}},{key:"hasSameStringValueAsPiece",value:function(t){return t&&this.toString()===t.toString()}},{key:"hasSameAttributesAsPiece",value:function(t){return t&&(this.attributes===t.attributes||this.attributes.isEqualTo(t.attributes))}},{key:"isBlockBreak",value:function(){return!1}},{key:"isEqualTo",value:function(t){return a(b(n.prototype),"isEqualTo",this).apply(this,arguments)||this.hasSameConstructorAs(t)&&this.hasSameStringValueAsPiece(t)&&this.hasSameAttributesAsPiece(t)}},{key:"isEmpty",value:function(){return 0===this.length}},{key:"isSerializable",value:function(){return!0}},{key:"toJSON",value:function(){return{type:this.constructor.type,attributes:this.getAttributes()}}},{key:"contentsForInspection",value:function(){return{type:this.constructor.type,attributes:this.attributes.inspect()}}},{key:"canBeGrouped",value:function(){return this.hasAttribute("href")}},{key:"canBeGroupedWith",value:function(t){return this.getAttribute("href")===t.getAttribute("href")}},{key:"getLength",value:function(){return this.length}},{key:"canBeConsolidatedWith",value:function(t){return!1}}],[{key:"registerType",value:function(t,e){e.type=t,this.types[t]=e}},{key:"fromJSON",value:function(t){var e=this.types[t.type];if(e)return e.fromJSON(t)}}]),n}(Dt);We(Ve,"types",{});var Ue=function(t){m(n,t);var e=y(n);function n(t){var r;return w(this,n),(r=e.apply(this,arguments)).url=t,r}return S(n,[{key:"perform",value:function(t){var e=this,n=new Image;n.onload=function(){return n.width=e.width=n.naturalWidth,n.height=e.height=n.naturalHeight,t(!0,n)},n.onerror=function(){return t(!1)},n.src=this.url}}]),n}(Ee),qe=function(t){m(n,t);var e=y(n);function n(){var t;w(this,n);var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=e.call(this,r)).releaseFile=t.releaseFile.bind(v(t)),t.attributes=pe.box(r),t.didChangeAttributes(),t}return S(n,[{key:"getAttribute",value:function(t){return this.attributes.get(t)}},{key:"hasAttribute",value:function(t){return this.attributes.has(t)}},{key:"getAttributes",value:function(){return this.attributes.toObject()}},{key:"setAttributes",value:function(){var t,e,n,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=this.attributes.merge(i);if(!this.attributes.isEqualTo(o))return this.attributes=o,this.didChangeAttributes(),null===(t=this.previewDelegate)||void 0===t||null===(e=t.attachmentDidChangeAttributes)||void 0===e||e.call(t,this),null===(n=this.delegate)||void 0===n||null===(r=n.attachmentDidChangeAttributes)||void 0===r?void 0:r.call(n,this)}},{key:"didChangeAttributes",value:function(){if(this.isPreviewable())return this.preloadURL()}},{key:"isPending",value:function(){return null!=this.file&&!(this.getURL()||this.getHref())}},{key:"isPreviewable",value:function(){return this.attributes.has("previewable")?this.attributes.get("previewable"):n.previewablePattern.test(this.getContentType())}},{key:"getType",value:function(){return this.hasContent()?"content":this.isPreviewable()?"preview":"file"}},{key:"getURL",value:function(){return this.attributes.get("url")}},{key:"getHref",value:function(){return this.attributes.get("href")}},{key:"getFilename",value:function(){return this.attributes.get("filename")||""}},{key:"getFilesize",value:function(){return this.attributes.get("filesize")}},{key:"getFormattedFilesize",value:function(){var t=this.attributes.get("filesize");return"number"==typeof t?Y.formatter(t):""}},{key:"getExtension",value:function(){var t;return null===(t=this.getFilename().match(/\.(\w+)$/))||void 0===t?void 0:t[1].toLowerCase()}},{key:"getContentType",value:function(){return this.attributes.get("contentType")}},{key:"hasContent",value:function(){return this.attributes.has("content")}},{key:"getContent",value:function(){return this.attributes.get("content")}},{key:"getWidth",value:function(){return this.attributes.get("width")}},{key:"getHeight",value:function(){return this.attributes.get("height")}},{key:"getFile",value:function(){return this.file}},{key:"setFile",value:function(t){if(this.file=t,this.isPreviewable())return this.preloadFile()}},{key:"releaseFile",value:function(){this.releasePreloadedFile(),this.file=null}},{key:"getUploadProgress",value:function(){return null!=this.uploadProgress?this.uploadProgress:0}},{key:"setUploadProgress",value:function(t){var e,n;if(this.uploadProgress!==t)return this.uploadProgress=t,null===(e=this.uploadProgressDelegate)||void 0===e||null===(n=e.attachmentDidChangeUploadProgress)||void 0===n?void 0:n.call(e,this)}},{key:"toJSON",value:function(){return this.getAttributes()}},{key:"getCacheKey",value:function(){return[a(b(n.prototype),"getCacheKey",this).apply(this,arguments),this.attributes.getCacheKey(),this.getPreviewURL()].join("/")}},{key:"getPreviewURL",value:function(){return this.previewURL||this.preloadingURL}},{key:"setPreviewURL",value:function(t){var e,n,r,i;if(t!==this.getPreviewURL())return this.previewURL=t,null===(e=this.previewDelegate)||void 0===e||null===(n=e.attachmentDidChangeAttributes)||void 0===n||n.call(e,this),null===(r=this.delegate)||void 0===r||null===(i=r.attachmentDidChangePreviewURL)||void 0===i?void 0:i.call(r,this)}},{key:"preloadURL",value:function(){return this.preload(this.getURL(),this.releaseFile)}},{key:"preloadFile",value:function(){if(this.file)return this.fileObjectURL=URL.createObjectURL(this.file),this.preload(this.fileObjectURL)}},{key:"releasePreloadedFile",value:function(){this.fileObjectURL&&(URL.revokeObjectURL(this.fileObjectURL),this.fileObjectURL=null)}},{key:"preload",value:function(t,e){var n=this;if(t&&t!==this.getPreviewURL())return this.preloadingURL=t,new Ue(t).then((function(r){var i=r.width,o=r.height;return n.getWidth()&&n.getHeight()||n.setAttributes({width:i,height:o}),n.preloadingURL=null,n.setPreviewURL(t),null==e?void 0:e()})).catch((function(){return n.preloadingURL=null,null==e?void 0:e()}))}}],[{key:"attachmentForFile",value:function(t){var e=new this(this.attributesForFile(t));return e.setFile(t),e}},{key:"attributesForFile",value:function(t){return new pe({filename:t.name,filesize:t.size,contentType:t.type})}},{key:"fromJSON",value:function(t){return new this(t)}}]),n}(Dt);We(qe,"previewablePattern",/^image(\/(gif|png|webp|jpe?g)|$)/);var Ge=function(t){m(n,t);var e=y(n);function n(t){var r;return w(this,n),(r=e.apply(this,arguments)).attachment=t,r.length=1,r.ensureAttachmentExclusivelyHasAttribute("href"),r.attachment.hasContent()||r.removeProhibitedAttributes(),r}return S(n,[{key:"ensureAttachmentExclusivelyHasAttribute",value:function(t){this.hasAttribute(t)&&(this.attachment.hasAttribute(t)||this.attachment.setAttributes(this.attributes.slice([t])),this.attributes=this.attributes.remove(t))}},{key:"removeProhibitedAttributes",value:function(){var t=this.attributes.slice(n.permittedAttributes);t.isEqualTo(this.attributes)||(this.attributes=t)}},{key:"getValue",value:function(){return this.attachment}},{key:"isSerializable",value:function(){return!this.attachment.isPending()}},{key:"getCaption",value:function(){return this.attributes.get("caption")||""}},{key:"isEqualTo",value:function(t){var e;return a(b(n.prototype),"isEqualTo",this).call(this,t)&&this.attachment.id===(null==t||null===(e=t.attachment)||void 0===e?void 0:e.id)}},{key:"toString",value:function(){return"\ufffc"}},{key:"toJSON",value:function(){var t=a(b(n.prototype),"toJSON",this).apply(this,arguments);return t.attachment=this.attachment,t}},{key:"getCacheKey",value:function(){return[a(b(n.prototype),"getCacheKey",this).apply(this,arguments),this.attachment.getCacheKey()].join("/")}},{key:"toConsole",value:function(){return JSON.stringify(this.toString())}}],[{key:"fromJSON",value:function(t){return new this(qe.fromJSON(t.attachment),t.attributes)}}]),n}(Ve);We(Ge,"permittedAttributes",["caption","presentation"]),Ve.registerType("attachment",Ge);var $e=function(t){m(n,t);var e=y(n);function n(t){var r;return w(this,n),(r=e.apply(this,arguments)).string=function(t){return t.replace(/\r\n?/g,"\n")}(t),r.length=r.string.length,r}return S(n,[{key:"getValue",value:function(){return this.string}},{key:"toString",value:function(){return this.string.toString()}},{key:"isBlockBreak",value:function(){return"\n"===this.toString()&&!0===this.getAttribute("blockBreak")}},{key:"toJSON",value:function(){var t=a(b(n.prototype),"toJSON",this).apply(this,arguments);return t.string=this.string,t}},{key:"canBeConsolidatedWith",value:function(t){return t&&this.hasSameConstructorAs(t)&&this.hasSameAttributesAsPiece(t)}},{key:"consolidateWith",value:function(t){return new this.constructor(this.toString()+t.toString(),this.attributes)}},{key:"splitAtOffset",value:function(t){var e,n;return 0===t?(e=null,n=this):t===this.length?(e=this,n=null):(e=new this.constructor(this.string.slice(0,t),this.attributes),n=new this.constructor(this.string.slice(t),this.attributes)),[e,n]}},{key:"toConsole",value:function(){var t=this.string;return t.length>15&&(t=t.slice(0,14)+"\u2026"),JSON.stringify(t.toString())}}],[{key:"fromJSON",value:function(t){return new this(t.string,t.attributes)}}]),n}(Ve);Ve.registerType("string",$e);var Ke=function(t){m(n,t);var e=y(n);function n(){var t;w(this,n);var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(t=e.apply(this,arguments)).objects=r.slice(0),t.length=t.objects.length,t}return S(n,[{key:"indexOf",value:function(t){return this.objects.indexOf(t)}},{key:"splice",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new this.constructor(Tt.apply(void 0,[this.objects].concat(e)))}},{key:"eachObject",value:function(t){return this.objects.map((function(e,n){return t(e,n)}))}},{key:"insertObjectAtIndex",value:function(t,e){return this.splice(e,0,t)}},{key:"insertSplittableListAtIndex",value:function(t,e){return this.splice.apply(this,[e,0].concat(d(t.objects)))}},{key:"insertSplittableListAtPosition",value:function(t,e){var n=u(this.splitObjectAtPosition(e),2),r=n[0],i=n[1];return new this.constructor(r).insertSplittableListAtIndex(t,i)}},{key:"editObjectAtIndex",value:function(t,e){return this.replaceObjectAtIndex(e(this.objects[t]),t)}},{key:"replaceObjectAtIndex",value:function(t,e){return this.splice(e,1,t)}},{key:"removeObjectAtIndex",value:function(t){return this.splice(t,1)}},{key:"getObjectAtIndex",value:function(t){return this.objects[t]}},{key:"getSplittableListInRange",value:function(t){var e=u(this.splitObjectsAtRange(t),3),n=e[0],r=e[1],i=e[2];return new this.constructor(n.slice(r,i+1))}},{key:"selectSplittableList",value:function(t){var e=this.objects.filter((function(e){return t(e)}));return new this.constructor(e)}},{key:"removeObjectsInRange",value:function(t){var e=u(this.splitObjectsAtRange(t),3),n=e[0],r=e[1],i=e[2];return new this.constructor(n).splice(r,i-r+1)}},{key:"transformObjectsInRange",value:function(t,e){var n=u(this.splitObjectsAtRange(t),3),r=n[0],i=n[1],o=n[2],a=r.map((function(t,n){return i<=n&&n<=o?e(t):t}));return new this.constructor(a)}},{key:"splitObjectsAtRange",value:function(t){var e,n=u(this.splitObjectAtPosition(Xe(t)),3),r=n[0],i=n[1],o=n[2];return[r=(e=u(new this.constructor(r).splitObjectAtPosition(Je(t)+o),2))[0],i,e[1]-1]}},{key:"getObjectAtPosition",value:function(t){var e=this.findIndexAndOffsetAtPosition(t).index;return this.objects[e]}},{key:"splitObjectAtPosition",value:function(t){var e,n,r=this.findIndexAndOffsetAtPosition(t),i=r.index,o=r.offset,a=this.objects.slice(0);if(null!=i)if(0===o)e=i,n=0;else{var s=u(this.getObjectAtIndex(i).splitAtOffset(o),2),l=s[0],c=s[1];a.splice(i,1,l,c),e=i+1,n=l.getLength()-o}else e=a.length,n=0;return[a,e,n]}},{key:"consolidate",value:function(){var t=[],e=this.objects[0];return this.objects.slice(1).forEach((function(n){var r,i;null!==(r=(i=e).canBeConsolidatedWith)&&void 0!==r&&r.call(i,n)?e=e.consolidateWith(n):(t.push(e),e=n)})),e&&t.push(e),new this.constructor(t)}},{key:"consolidateFromIndexToIndex",value:function(t,e){var n=this.objects.slice(0).slice(t,e+1),r=new this.constructor(n).consolidate().toArray();return this.splice.apply(this,[t,n.length].concat(d(r)))}},{key:"findIndexAndOffsetAtPosition",value:function(t){var e,n=0;for(e=0;e<this.objects.length;e++){var r=n+this.objects[e].getLength();if(n<=t&&t<r)return{index:e,offset:t-n};n=r}return{index:null,offset:null}}},{key:"findPositionAtIndexAndOffset",value:function(t,e){for(var n=0,r=0;r<this.objects.length;r++){var i=this.objects[r];if(r<t)n+=i.getLength();else if(r===t){n+=e;break}}return n}},{key:"getEndPosition",value:function(){var t=this;return null==this.endPosition&&(this.endPosition=0,this.objects.forEach((function(e){return t.endPosition+=e.getLength()}))),this.endPosition}},{key:"toString",value:function(){return this.objects.join("")}},{key:"toArray",value:function(){return this.objects.slice(0)}},{key:"toJSON",value:function(){return this.toArray()}},{key:"isEqualTo",value:function(t){return a(b(n.prototype),"isEqualTo",this).apply(this,arguments)||Ze(this.objects,null==t?void 0:t.objects)}},{key:"contentsForInspection",value:function(){return{objects:"[".concat(this.objects.map((function(t){return t.inspect()})).join(", "),"]")}}}],[{key:"box",value:function(t){return t instanceof this?t:new this(t)}}]),n}(Dt),Ze=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length;r++){var i=t[r];n&&!i.isEqualTo(e[r])&&(n=!1)}return n},Xe=function(t){return t[0]},Je=function(t){return t[1]},Qe=function(t){m(n,t);var e=y(n);function n(){var t;w(this,n);var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t=e.apply(this,arguments);var i=r.filter((function(t){return!t.isEmpty()}));return t.pieceList=new Ke(i),t}return S(n,[{key:"copy",value:function(){return this.copyWithPieceList(this.pieceList)}},{key:"copyWithPieceList",value:function(t){return new this.constructor(t.consolidate().toArray())}},{key:"copyUsingObjectMap",value:function(t){var e=this.getPieces().map((function(e){return t.find(e)||e}));return new this.constructor(e)}},{key:"appendText",value:function(t){return this.insertTextAtPosition(t,this.getLength())}},{key:"insertTextAtPosition",value:function(t,e){return this.copyWithPieceList(this.pieceList.insertSplittableListAtPosition(t.pieceList,e))}},{key:"removeTextAtRange",value:function(t){return this.copyWithPieceList(this.pieceList.removeObjectsInRange(t))}},{key:"replaceTextAtRange",value:function(t,e){return this.removeTextAtRange(e).insertTextAtPosition(t,e[0])}},{key:"moveTextFromRangeToPosition",value:function(t,e){if(!(t[0]<=e&&e<=t[1])){var n=this.getTextAtRange(t),r=n.getLength();return t[0]<e&&(e-=r),this.removeTextAtRange(t).insertTextAtPosition(n,e)}}},{key:"addAttributeAtRange",value:function(t,e,n){var r={};return r[t]=e,this.addAttributesAtRange(r,n)}},{key:"addAttributesAtRange",value:function(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(function(e){return e.copyWithAdditionalAttributes(t)})))}},{key:"removeAttributeAtRange",value:function(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(function(e){return e.copyWithoutAttribute(t)})))}},{key:"setAttributesAtRange",value:function(t,e){return this.copyWithPieceList(this.pieceList.transformObjectsInRange(e,(function(e){return e.copyWithAttributes(t)})))}},{key:"getAttributesAtPosition",value:function(t){var e;return(null===(e=this.pieceList.getObjectAtPosition(t))||void 0===e?void 0:e.getAttributes())||{}}},{key:"getCommonAttributes",value:function(){var t=Array.from(this.pieceList.toArray()).map((function(t){return t.getAttributes()}));return pe.fromCommonAttributesOfObjects(t).toObject()}},{key:"getCommonAttributesAtRange",value:function(t){return this.getTextAtRange(t).getCommonAttributes()||{}}},{key:"getExpandedRangeForAttributeAtOffset",value:function(t,e){for(var n,r=n=e,i=this.getLength();r>0&&this.getCommonAttributesAtRange([r-1,n])[t];)r--;for(;n<i&&this.getCommonAttributesAtRange([e,n+1])[t];)n++;return[r,n]}},{key:"getTextAtRange",value:function(t){return this.copyWithPieceList(this.pieceList.getSplittableListInRange(t))}},{key:"getStringAtRange",value:function(t){return this.pieceList.getSplittableListInRange(t).toString()}},{key:"getStringAtPosition",value:function(t){return this.getStringAtRange([t,t+1])}},{key:"startsWithString",value:function(t){return this.getStringAtRange([0,t.length])===t}},{key:"endsWithString",value:function(t){var e=this.getLength();return this.getStringAtRange([e-t.length,e])===t}},{key:"getAttachmentPieces",value:function(){return this.pieceList.toArray().filter((function(t){return!!t.attachment}))}},{key:"getAttachments",value:function(){return this.getAttachmentPieces().map((function(t){return t.attachment}))}},{key:"getAttachmentAndPositionById",value:function(t){var e,n=0,r=s(this.pieceList.toArray());try{for(r.s();!(e=r.n()).done;){var i,o=e.value;if((null===(i=o.attachment)||void 0===i?void 0:i.id)===t)return{attachment:o.attachment,position:n};n+=o.length}}catch(a){r.e(a)}finally{r.f()}return{attachment:null,position:null}}},{key:"getAttachmentById",value:function(t){return this.getAttachmentAndPositionById(t).attachment}},{key:"getRangeOfAttachment",value:function(t){var e=this.getAttachmentAndPositionById(t.id),n=e.position;if(t=e.attachment)return[n,n+1]}},{key:"updateAttributesForAttachment",value:function(t,e){var n=this.getRangeOfAttachment(e);return n?this.addAttributesAtRange(t,n):this}},{key:"getLength",value:function(){return this.pieceList.getEndPosition()}},{key:"isEmpty",value:function(){return 0===this.getLength()}},{key:"isEqualTo",value:function(t){var e;return a(b(n.prototype),"isEqualTo",this).call(this,t)||(null==t||null===(e=t.pieceList)||void 0===e?void 0:e.isEqualTo(this.pieceList))}},{key:"isBlockBreak",value:function(){return 1===this.getLength()&&this.pieceList.getObjectAtIndex(0).isBlockBreak()}},{key:"eachPiece",value:function(t){return this.pieceList.eachObject(t)}},{key:"getPieces",value:function(){return this.pieceList.toArray()}},{key:"getPieceAtPosition",value:function(t){return this.pieceList.getObjectAtPosition(t)}},{key:"contentsForInspection",value:function(){return{pieceList:this.pieceList.inspect()}}},{key:"toSerializableText",value:function(){var t=this.pieceList.selectSplittableList((function(t){return t.isSerializable()}));return this.copyWithPieceList(t)}},{key:"toString",value:function(){return this.pieceList.toString()}},{key:"toJSON",value:function(){return this.pieceList.toJSON()}},{key:"toConsole",value:function(){return JSON.stringify(this.pieceList.toArray().map((function(t){return JSON.parse(t.toConsole())})))}},{key:"getDirection",value:function(){return Lt(this.toString())}},{key:"isRTL",value:function(){return"rtl"===this.getDirection()}}],[{key:"textForAttachmentWithAttributes",value:function(t,e){return new this([new Ge(t,e)])}},{key:"textForStringWithAttributes",value:function(t,e){return new this([new $e(t,e)])}},{key:"fromJSON",value:function(t){return new this(Array.from(t).map((function(t){return Ve.fromJSON(t)})))}}]),n}(Dt),tn=function(t){m(n,t);var e=y(n);function n(t,r){var i;return w(this,n),(i=e.apply(this,arguments)).text=en(t||new Qe),i.attributes=r||[],i}return S(n,[{key:"isEmpty",value:function(){return this.text.isBlockBreak()}},{key:"isEqualTo",value:function(t){return!!a(b(n.prototype),"isEqualTo",this).call(this,t)||this.text.isEqualTo(null==t?void 0:t.text)&&At(this.attributes,null==t?void 0:t.attributes)}},{key:"copyWithText",value:function(t){return new n(t,this.attributes)}},{key:"copyWithoutText",value:function(){return this.copyWithText(null)}},{key:"copyWithAttributes",value:function(t){return new n(this.text,t)}},{key:"copyWithoutAttributes",value:function(){return this.copyWithAttributes(null)}},{key:"copyUsingObjectMap",value:function(t){var e=t.find(this.text);return e?this.copyWithText(e):this.copyWithText(this.text.copyUsingObjectMap(t))}},{key:"addAttribute",value:function(t){var e=this.attributes.concat(un(t));return this.copyWithAttributes(e)}},{key:"removeAttribute",value:function(t){var e=Ft(t).listAttribute,n=cn(cn(this.attributes,t),e);return this.copyWithAttributes(n)}},{key:"removeLastAttribute",value:function(){return this.removeAttribute(this.getLastAttribute())}},{key:"getLastAttribute",value:function(){return ln(this.attributes)}},{key:"getAttributes",value:function(){return this.attributes.slice(0)}},{key:"getAttributeLevel",value:function(){return this.attributes.length}},{key:"getAttributeAtLevel",value:function(t){return this.attributes[t-1]}},{key:"hasAttribute",value:function(t){return this.attributes.includes(t)}},{key:"hasAttributes",value:function(){return this.getAttributeLevel()>0}},{key:"getLastNestableAttribute",value:function(){return ln(this.getNestableAttributes())}},{key:"getNestableAttributes",value:function(){return this.attributes.filter((function(t){return Ft(t).nestable}))}},{key:"getNestingLevel",value:function(){return this.getNestableAttributes().length}},{key:"decreaseNestingLevel",value:function(){var t=this.getLastNestableAttribute();return t?this.removeAttribute(t):this}},{key:"increaseNestingLevel",value:function(){var t=this.getLastNestableAttribute();if(t){var e=this.attributes.lastIndexOf(t),n=Tt.apply(void 0,[this.attributes,e+1,0].concat(d(un(t))));return this.copyWithAttributes(n)}return this}},{key:"getListItemAttributes",value:function(){return this.attributes.filter((function(t){return Ft(t).listAttribute}))}},{key:"isListItem",value:function(){var t;return null===(t=Ft(this.getLastAttribute()))||void 0===t?void 0:t.listAttribute}},{key:"isTerminalBlock",value:function(){var t;return null===(t=Ft(this.getLastAttribute()))||void 0===t?void 0:t.terminal}},{key:"breaksOnReturn",value:function(){var t;return null===(t=Ft(this.getLastAttribute()))||void 0===t?void 0:t.breakOnReturn}},{key:"findLineBreakInDirectionFromPosition",value:function(t,e){var n,r=this.toString();switch(t){case"forward":n=r.indexOf("\n",e);break;case"backward":n=r.slice(0,e).lastIndexOf("\n")}if(-1!==n)return n}},{key:"contentsForInspection",value:function(){return{text:this.text.inspect(),attributes:this.attributes}}},{key:"toString",value:function(){return this.text.toString()}},{key:"toJSON",value:function(){return{text:this.text,attributes:this.attributes}}},{key:"getDirection",value:function(){return this.text.getDirection()}},{key:"isRTL",value:function(){return this.text.isRTL()}},{key:"getLength",value:function(){return this.text.getLength()}},{key:"canBeConsolidatedWith",value:function(t){return!this.hasAttributes()&&!t.hasAttributes()&&this.getDirection()===t.getDirection()}},{key:"consolidateWith",value:function(t){var e=Qe.textForStringWithAttributes("\n"),n=this.getTextWithoutBlockBreak().appendText(e);return this.copyWithText(n.appendText(t.text))}},{key:"splitAtOffset",value:function(t){var e,n;return 0===t?(e=null,n=this):t===this.getLength()?(e=this,n=null):(e=this.copyWithText(this.text.getTextAtRange([0,t])),n=this.copyWithText(this.text.getTextAtRange([t,this.getLength()]))),[e,n]}},{key:"getBlockBreakPosition",value:function(){return this.text.getLength()-1}},{key:"getTextWithoutBlockBreak",value:function(){return an(this.text)?this.text.getTextAtRange([0,this.getBlockBreakPosition()]):this.text.copy()}},{key:"canBeGrouped",value:function(t){return this.attributes[t]}},{key:"canBeGroupedWith",value:function(t,e){var n=t.getAttributes(),r=n[e],i=this.attributes[e];return i===r&&!(!1===Ft(i).group&&!function(){if(!Rt)for(var t in Rt=[],I){var e=I[t].listAttribute;null!=e&&Rt.push(e)}return Rt}().includes(n[e+1]))&&(this.getDirection()===t.getDirection()||t.isEmpty())}}],[{key:"fromJSON",value:function(t){return new this(Qe.fromJSON(t.text),t.attributes)}}]),n}(Dt),en=function(t){return t=nn(t),on(t)},nn=function(t){var e=!1,n=t.getPieces(),r=n.slice(0,n.length-1),i=n[n.length-1];return i?(r=r.map((function(t){return t.isBlockBreak()?(e=!0,sn(t)):t})),e?new Qe([].concat(d(r),[i])):t):t},rn=Qe.textForStringWithAttributes("\n",{blockBreak:!0}),on=function(t){return an(t)?t:t.appendText(rn)},an=function(t){var e=t.getLength();return 0!==e&&t.getTextAtRange([e-1,e]).isBlockBreak()},sn=function(t){return t.copyWithoutAttribute("blockBreak")},un=function(t){var e=Ft(t).listAttribute;return e?[e,t]:[t]},ln=function(t){return t.slice(-1)[0]},cn=function(t,e){var n=t.lastIndexOf(e);return-1===n?t:Tt(t,n,1)},dn=function(t){m(n,t);var e=y(n);function n(){var t;w(this,n);var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t=e.apply(this,arguments),0===r.length&&(r=[new tn]),t.blockList=Ke.box(r),t}return S(n,[{key:"isEmpty",value:function(){var t=this.getBlockAtIndex(0);return 1===this.blockList.length&&t.isEmpty()&&!t.hasAttributes()}},{key:"copy",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).consolidateBlocks?this.blockList.consolidate().toArray():this.blockList.toArray();return new this.constructor(t)}},{key:"copyUsingObjectsFromDocument",value:function(t){var e=new we(t.getObjects());return this.copyUsingObjectMap(e)}},{key:"copyUsingObjectMap",value:function(t){var e=this.getBlocks().map((function(e){return t.find(e)||e.copyUsingObjectMap(t)}));return new this.constructor(e)}},{key:"copyWithBaseBlockAttributes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.getBlocks().map((function(e){var n=t.concat(e.getAttributes());return e.copyWithAttributes(n)}));return new this.constructor(e)}},{key:"replaceBlock",value:function(t,e){var n=this.blockList.indexOf(t);return-1===n?this:new this.constructor(this.blockList.replaceObjectAtIndex(e,n))}},{key:"insertDocumentAtRange",value:function(t,e){var n=t.blockList,r=u(e=Xt(e),1)[0],i=this.locationFromPosition(r),o=i.index,a=i.offset,s=this,l=this.getBlockAtPosition(r);return Jt(e)&&l.isEmpty()&&!l.hasAttributes()?s=new this.constructor(s.blockList.removeObjectAtIndex(o)):l.getBlockBreakPosition()===a&&r++,s=s.removeTextAtRange(e),new this.constructor(s.blockList.insertSplittableListAtPosition(n,r))}},{key:"mergeDocumentAtRange",value:function(t,e){var n,r,i=u(e=Xt(e),1)[0],o=this.locationFromPosition(i),a=this.getBlockAtIndex(o.index).getAttributes(),s=t.getBaseBlockAttributes(),l=a.slice(-s.length);if(At(s,l)){var c=a.slice(0,-s.length);n=t.copyWithBaseBlockAttributes(c)}else n=t.copy({consolidateBlocks:!0}).copyWithBaseBlockAttributes(a);var d=n.getBlockCount(),h=n.getBlockAtIndex(0);if(At(a,h.getAttributes())){var f=h.getTextWithoutBlockBreak();if(r=this.insertTextAtRange(f,e),d>1){n=new this.constructor(n.getBlocks().slice(1));var p=i+f.getLength();r=r.insertDocumentAtRange(n,p)}}else r=this.insertDocumentAtRange(n,e);return r}},{key:"insertTextAtRange",value:function(t,e){var n=u(e=Xt(e),1)[0],r=this.locationFromPosition(n),i=r.index,o=r.offset,a=this.removeTextAtRange(e);return new this.constructor(a.blockList.editObjectAtIndex(i,(function(e){return e.copyWithText(e.text.insertTextAtPosition(t,o))})))}},{key:"removeTextAtRange",value:function(t){var e,n=u(t=Xt(t),2),r=n[0],i=n[1];if(Jt(t))return this;var o=u(Array.from(this.locationRangeFromRange(t)),2),a=o[0],s=o[1],l=a.index,c=a.offset,d=this.getBlockAtIndex(l),h=s.index,f=s.offset,p=this.getBlockAtIndex(h);if(i-r==1&&d.getBlockBreakPosition()===c&&p.getBlockBreakPosition()!==f&&"\n"===p.text.getStringAtPosition(f))e=this.blockList.editObjectAtIndex(h,(function(t){return t.copyWithText(t.text.removeTextAtRange([f,f+1]))}));else{var m,g=d.text.getTextAtRange([0,c]),y=p.text.getTextAtRange([f,p.getLength()]),v=g.appendText(y);m=l!==h&&0===c&&d.getAttributeLevel()>=p.getAttributeLevel()?p.copyWithText(v):d.copyWithText(v);var _=h+1-l;e=this.blockList.splice(l,_,m)}return new this.constructor(e)}},{key:"moveTextFromRangeToPosition",value:function(t,e){var n,r=u(t=Xt(t),2),i=r[0],o=r[1];if(i<=e&&e<=o)return this;var a=this.getDocumentAtRange(t),s=this.removeTextAtRange(t),d=i<e;d&&(e-=a.getLength());var p,m=a.getBlocks(),g=c(p=m)||f(p)||h(p)||l(),y=g[0],v=g.slice(1);return 0===v.length?(n=y.getTextWithoutBlockBreak(),d&&(e+=1)):n=y.text,s=s.insertTextAtRange(n,e),0===v.length?s:(a=new this.constructor(v),e+=n.getLength(),s.insertDocumentAtRange(a,e))}},{key:"addAttributeAtRange",value:function(t,e,n){var r=this.blockList;return this.eachBlockAtRange(n,(function(n,i,o){return r=r.editObjectAtIndex(o,(function(){return Ft(t)?n.addAttribute(t,e):i[0]===i[1]?n:n.copyWithText(n.text.addAttributeAtRange(t,e,i))}))})),new this.constructor(r)}},{key:"addAttribute",value:function(t,e){var n=this.blockList;return this.eachBlock((function(r,i){return n=n.editObjectAtIndex(i,(function(){return r.addAttribute(t,e)}))})),new this.constructor(n)}},{key:"removeAttributeAtRange",value:function(t,e){var n=this.blockList;return this.eachBlockAtRange(e,(function(e,r,i){Ft(t)?n=n.editObjectAtIndex(i,(function(){return e.removeAttribute(t)})):r[0]!==r[1]&&(n=n.editObjectAtIndex(i,(function(){return e.copyWithText(e.text.removeAttributeAtRange(t,r))})))})),new this.constructor(n)}},{key:"updateAttributesForAttachment",value:function(t,e){var n=this.getRangeOfAttachment(e),r=u(Array.from(n),1)[0],i=this.locationFromPosition(r).index,o=this.getTextAtIndex(i);return new this.constructor(this.blockList.editObjectAtIndex(i,(function(n){return n.copyWithText(o.updateAttributesForAttachment(t,e))})))}},{key:"removeAttributeForAttachment",value:function(t,e){var n=this.getRangeOfAttachment(e);return this.removeAttributeAtRange(t,n)}},{key:"insertBlockBreakAtRange",value:function(t){var e,n=u(t=Xt(t),1)[0],r=this.locationFromPosition(n).offset,i=this.removeTextAtRange(t);return 0===r&&(e=[new tn]),new this.constructor(i.blockList.insertSplittableListAtPosition(new Ke(e),n))}},{key:"applyBlockAttributeAtRange",value:function(t,e,n){var r=this.expandRangeToLineBreaksAndSplitBlocks(n),i=r.document;n=r.range;var o=Ft(t);if(o.listAttribute){var a=(i=i.removeLastListAttributeAtRange(n,{exceptAttributeName:t})).convertLineBreaksToBlockBreaksInRange(n);i=a.document,n=a.range}else i=o.exclusive?i.removeBlockAttributesAtRange(n):o.terminal?i.removeLastTerminalAttributeAtRange(n):i.consolidateBlocksAtRange(n);return i.addAttributeAtRange(t,e,n)}},{key:"removeLastListAttributeAtRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.blockList;return this.eachBlockAtRange(t,(function(t,r,i){var o=t.getLastAttribute();o&&Ft(o).listAttribute&&o!==e.exceptAttributeName&&(n=n.editObjectAtIndex(i,(function(){return t.removeAttribute(o)})))})),new this.constructor(n)}},{key:"removeLastTerminalAttributeAtRange",value:function(t){var e=this.blockList;return this.eachBlockAtRange(t,(function(t,n,r){var i=t.getLastAttribute();i&&Ft(i).terminal&&(e=e.editObjectAtIndex(r,(function(){return t.removeAttribute(i)})))})),new this.constructor(e)}},{key:"removeBlockAttributesAtRange",value:function(t){var e=this.blockList;return this.eachBlockAtRange(t,(function(t,n,r){t.hasAttributes()&&(e=e.editObjectAtIndex(r,(function(){return t.copyWithoutAttributes()})))})),new this.constructor(e)}},{key:"expandRangeToLineBreaksAndSplitBlocks",value:function(t){var e,n=u(t=Xt(t),2),r=n[0],i=n[1],o=this.locationFromPosition(r),a=this.locationFromPosition(i),s=this,l=s.getBlockAtIndex(o.index);if(o.offset=l.findLineBreakInDirectionFromPosition("backward",o.offset),null!=o.offset&&(e=s.positionFromLocation(o),s=s.insertBlockBreakAtRange([e,e+1]),a.index+=1,a.offset-=s.getBlockAtIndex(o.index).getLength(),o.index+=1),o.offset=0,0===a.offset&&a.index>o.index)a.index-=1,a.offset=s.getBlockAtIndex(a.index).getBlockBreakPosition();else{var c=s.getBlockAtIndex(a.index);"\n"===c.text.getStringAtRange([a.offset-1,a.offset])?a.offset-=1:a.offset=c.findLineBreakInDirectionFromPosition("forward",a.offset),a.offset!==c.getBlockBreakPosition()&&(e=s.positionFromLocation(a),s=s.insertBlockBreakAtRange([e,e+1]))}return r=s.positionFromLocation(o),i=s.positionFromLocation(a),{document:s,range:t=Xt([r,i])}}},{key:"convertLineBreaksToBlockBreaksInRange",value:function(t){var e=u(t=Xt(t),1)[0],n=this.getStringAtRange(t).slice(0,-1),r=this;return n.replace(/.*?\n/g,(function(t){e+=t.length,r=r.insertBlockBreakAtRange([e-1,e])})),{document:r,range:t}}},{key:"consolidateBlocksAtRange",value:function(t){var e=u(t=Xt(t),2),n=e[0],r=e[1],i=this.locationFromPosition(n).index,o=this.locationFromPosition(r).index;return new this.constructor(this.blockList.consolidateFromIndexToIndex(i,o))}},{key:"getDocumentAtRange",value:function(t){t=Xt(t);var e=this.blockList.getSplittableListInRange(t).toArray();return new this.constructor(e)}},{key:"getStringAtRange",value:function(t){var e,n=t=Xt(t);return n[n.length-1]!==this.getLength()&&(e=-1),this.getDocumentAtRange(t).toString().slice(0,e)}},{key:"getBlockAtIndex",value:function(t){return this.blockList.getObjectAtIndex(t)}},{key:"getBlockAtPosition",value:function(t){var e=this.locationFromPosition(t).index;return this.getBlockAtIndex(e)}},{key:"getTextAtIndex",value:function(t){var e;return null===(e=this.getBlockAtIndex(t))||void 0===e?void 0:e.text}},{key:"getTextAtPosition",value:function(t){var e=this.locationFromPosition(t).index;return this.getTextAtIndex(e)}},{key:"getPieceAtPosition",value:function(t){var e=this.locationFromPosition(t),n=e.index,r=e.offset;return this.getTextAtIndex(n).getPieceAtPosition(r)}},{key:"getCharacterAtPosition",value:function(t){var e=this.locationFromPosition(t),n=e.index,r=e.offset;return this.getTextAtIndex(n).getStringAtRange([r,r+1])}},{key:"getLength",value:function(){return this.blockList.getEndPosition()}},{key:"getBlocks",value:function(){return this.blockList.toArray()}},{key:"getBlockCount",value:function(){return this.blockList.length}},{key:"getEditCount",value:function(){return this.editCount}},{key:"eachBlock",value:function(t){return this.blockList.eachObject(t)}},{key:"eachBlockAtRange",value:function(t,e){var n,r,i=u(t=Xt(t),2),o=i[0],a=i[1],s=this.locationFromPosition(o),l=this.locationFromPosition(a);if(s.index===l.index)return e(n=this.getBlockAtIndex(s.index),r=[s.offset,l.offset],s.index);for(var c=s.index;c<=l.index;c++)if(n=this.getBlockAtIndex(c)){switch(c){case s.index:r=[s.offset,n.text.getLength()];break;case l.index:r=[0,l.offset];break;default:r=[0,n.text.getLength()]}e(n,r,c)}}},{key:"getCommonAttributesAtRange",value:function(t){var e=u(t=Xt(t),1)[0];if(Jt(t))return this.getCommonAttributesAtPosition(e);var n=[],r=[];return this.eachBlockAtRange(t,(function(t,e){if(e[0]!==e[1])return n.push(t.text.getCommonAttributesAtRange(e)),r.push(hn(t))})),pe.fromCommonAttributesOfObjects(n).merge(pe.fromCommonAttributesOfObjects(r)).toObject()}},{key:"getCommonAttributesAtPosition",value:function(t){var e,n,r=this.locationFromPosition(t),i=r.index,o=r.offset,a=this.getBlockAtIndex(i);if(!a)return{};var s=hn(a),u=a.text.getAttributesAtPosition(o),l=a.text.getAttributesAtPosition(o-1),c=Object.keys(pt).filter((function(t){return pt[t].inheritable}));for(e in l)((n=l[e])===u[e]||c.includes(e))&&(s[e]=n);return s}},{key:"getRangeOfCommonAttributeAtPosition",value:function(t,e){var n=this.locationFromPosition(e),r=n.index,i=n.offset,o=this.getTextAtIndex(r),a=u(Array.from(o.getExpandedRangeForAttributeAtOffset(t,i)),2),s=a[0],l=a[1],c=this.positionFromLocation({index:r,offset:s}),d=this.positionFromLocation({index:r,offset:l});return Xt([c,d])}},{key:"getBaseBlockAttributes",value:function(){for(var t=this,e=this.getBlockAtIndex(0).getAttributes(),n=function(){var n=t.getBlockAtIndex(r).getAttributes(),i=Math.min(e.length,n.length);e=function(){for(var t=[],r=0;r<i&&n[r]===e[r];r++)t.push(n[r]);return t}()},r=1;r<this.getBlockCount();r++)n();return e}},{key:"getAttachmentById",value:function(t){var e,n=s(this.getAttachments());try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.id===t)return r}}catch(i){n.e(i)}finally{n.f()}}},{key:"getAttachmentPieces",value:function(){var t=[];return this.blockList.eachObject((function(e){var n=e.text;return t=t.concat(n.getAttachmentPieces())})),t}},{key:"getAttachments",value:function(){return this.getAttachmentPieces().map((function(t){return t.attachment}))}},{key:"getRangeOfAttachment",value:function(t){for(var e=0,n=this.blockList.toArray(),r=0;r<n.length;r++){var i=n[r].text,o=i.getRangeOfAttachment(t);if(o)return Xt([e+o[0],e+o[1]]);e+=i.getLength()}}},{key:"getLocationRangeOfAttachment",value:function(t){var e=this.getRangeOfAttachment(t);return this.locationRangeFromRange(e)}},{key:"getAttachmentPieceForAttachment",value:function(t){var e,n=s(this.getAttachmentPieces());try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.attachment===t)return r}}catch(i){n.e(i)}finally{n.f()}}},{key:"findRangesForBlockAttribute",value:function(t){var e=0,n=[];return this.getBlocks().forEach((function(r){var i=r.getLength();r.hasAttribute(t)&&n.push([e,e+i]),e+=i})),n}},{key:"findRangesForTextAttribute",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).withValue,n=0,r=[],i=[];return this.getPieces().forEach((function(o){var a=o.getLength();(function(n){return e?n.getAttribute(t)===e:n.hasAttribute(t)})(o)&&(r[1]===n?r[1]=n+a:i.push(r=[n,n+a])),n+=a})),i}},{key:"locationFromPosition",value:function(t){var e=this.blockList.findIndexAndOffsetAtPosition(Math.max(0,t));if(null!=e.index)return e;var n=this.getBlocks();return{index:n.length-1,offset:n[n.length-1].getLength()}}},{key:"positionFromLocation",value:function(t){return this.blockList.findPositionAtIndexAndOffset(t.index,t.offset)}},{key:"locationRangeFromPosition",value:function(t){return Xt(this.locationFromPosition(t))}},{key:"locationRangeFromRange",value:function(t){if(t=Xt(t)){var e=u(Array.from(t),2),n=e[0],r=e[1],i=this.locationFromPosition(n),o=this.locationFromPosition(r);return Xt([i,o])}}},{key:"rangeFromLocationRange",value:function(t){var e;t=Xt(t);var n=this.positionFromLocation(t[0]);return Jt(t)||(e=this.positionFromLocation(t[1])),Xt([n,e])}},{key:"isEqualTo",value:function(t){return this.blockList.isEqualTo(null==t?void 0:t.blockList)}},{key:"getTexts",value:function(){return this.getBlocks().map((function(t){return t.text}))}},{key:"getPieces",value:function(){var t=[];return Array.from(this.getTexts()).forEach((function(e){t.push.apply(t,d(Array.from(e.getPieces()||[])))})),t}},{key:"getObjects",value:function(){return this.getBlocks().concat(this.getTexts()).concat(this.getPieces())}},{key:"toSerializableDocument",value:function(){var t=[];return this.blockList.eachObject((function(e){return t.push(e.copyWithText(e.text.toSerializableText()))})),new this.constructor(t)}},{key:"toString",value:function(){return this.blockList.toString()}},{key:"toJSON",value:function(){return this.blockList.toJSON()}},{key:"toConsole",value:function(){return JSON.stringify(this.blockList.toArray().map((function(t){return JSON.parse(t.text.toConsole())})))}}],[{key:"fromJSON",value:function(t){return new this(Array.from(t).map((function(t){return tn.fromJSON(t)})))}},{key:"fromString",value:function(t,e){var n=Qe.textForStringWithAttributes(t,e);return new this([new tn(n)])}}]),n}(Dt),hn=function(t){var e={},n=t.getLastAttribute();return n&&(e[n]=!0),e},fn="style href src width height class".split(" "),pn="javascript:".split(" "),mn="script iframe form".split(" "),gn=function(t){m(n,t);var e=y(n);function n(t){var r;w(this,n);var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.allowedAttributes,a=i.forbiddenProtocols,s=i.forbiddenElements;return(r=e.apply(this,arguments)).allowedAttributes=o||fn,r.forbiddenProtocols=a||pn,r.forbiddenElements=s||mn,r.body=yn(t),r}return S(n,[{key:"sanitize",value:function(){return this.sanitizeElements(),this.normalizeListElementNesting()}},{key:"getHTML",value:function(){return this.body.innerHTML}},{key:"getBody",value:function(){return this.body}},{key:"sanitizeElements",value:function(){for(var t=tt(this.body),e=[];t.nextNode();){var n=t.currentNode;switch(n.nodeType){case Node.ELEMENT_NODE:this.elementIsRemovable(n)?e.push(n):this.sanitizeElement(n);break;case Node.COMMENT_NODE:e.push(n)}}return e.forEach((function(t){return Q(t)})),this.body}},{key:"sanitizeElement",value:function(t){var e=this;return t.hasAttribute("href")&&this.forbiddenProtocols.includes(t.protocol)&&t.removeAttribute("href"),Array.from(t.attributes).forEach((function(n){var r=n.name;e.allowedAttributes.includes(r)||0===r.indexOf("data-trix")||t.removeAttribute(r)})),t}},{key:"normalizeListElementNesting",value:function(){return Array.from(this.body.querySelectorAll("ul,ol")).forEach((function(t){var e=t.previousElementSibling;e&&"li"===et(e)&&e.appendChild(t)})),this.body}},{key:"elementIsRemovable",value:function(t){if((null==t?void 0:t.nodeType)===Node.ELEMENT_NODE)return this.elementIsForbidden(t)||this.elementIsntSerializable(t)}},{key:"elementIsForbidden",value:function(t){return this.forbiddenElements.includes(et(t))}},{key:"elementIsntSerializable",value:function(t){return"false"===t.getAttribute("data-trix-serialize")&&!lt(t)}}],[{key:"sanitize",value:function(t,e){var n=new this(t,e);return n.sanitize(),n}}]),n}(vt),yn=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t=t.replace(/<\/html[^>]*>[^]*$/i,"</html>");var e=document.implementation.createHTMLDocument("");return e.documentElement.innerHTML=t,Array.from(e.head.querySelectorAll("style")).forEach((function(t){e.body.appendChild(t)})),e.body},vn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{string:t=le(t),attributes:e,type:"string"}},_n=function(t,e){try{return JSON.parse(t.getAttribute("data-trix-".concat(e)))}catch(t){return{}}},bn=function(t){m(n,t);var e=y(n);function n(t){var r;w(this,n);var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).referenceElement;return(r=e.apply(this,arguments)).html=t,r.referenceElement=i,r.blocks=[],r.blockElements=[],r.processedElements=[],r}return S(n,[{key:"getDocument",value:function(){return dn.fromJSON(this.blocks)}},{key:"parse",value:function(){try{this.createHiddenContainer();var t=gn.sanitize(this.html).getHTML();this.containerElement.innerHTML=t;for(var e=tt(this.containerElement,{usingFilter:En});e.nextNode();)this.processNode(e.currentNode);return this.translateBlockElementMarginsToNewlines()}finally{this.removeHiddenContainer()}}},{key:"createHiddenContainer",value:function(){return this.referenceElement?(this.containerElement=this.referenceElement.cloneNode(!1),this.containerElement.removeAttribute("id"),this.containerElement.setAttribute("data-trix-internal",""),this.containerElement.style.display="none",this.referenceElement.parentNode.insertBefore(this.containerElement,this.referenceElement.nextSibling)):(this.containerElement=nt({tagName:"div",style:{display:"none"}}),document.body.appendChild(this.containerElement))}},{key:"removeHiddenContainer",value:function(){return Q(this.containerElement)}},{key:"processNode",value:function(t){switch(t.nodeType){case Node.TEXT_NODE:if(!this.isInsignificantTextNode(t))return this.appendBlockForTextNode(t),this.processTextNode(t);break;case Node.ELEMENT_NODE:return this.appendBlockForElement(t),this.processElement(t)}}},{key:"appendBlockForTextNode",value:function(t){var e=t.parentNode;if(e===this.currentBlockElement&&this.isBlockElement(t.previousSibling))return this.appendStringWithAttributes("\n");if(e===this.containerElement||this.isBlockElement(e)){var n,r=this.getBlockAttributes(e);At(r,null===(n=this.currentBlock)||void 0===n?void 0:n.attributes)||(this.currentBlock=this.appendBlockForAttributesWithElement(r,e),this.currentBlockElement=e)}}},{key:"appendBlockForElement",value:function(t){var e=this.isBlockElement(t),n=X(this.currentBlockElement,t);if(e&&!this.isBlockElement(t.firstChild)){if(!this.isInsignificantTextNode(t.firstChild)||!this.isBlockElement(t.firstElementChild)){var r=this.getBlockAttributes(t);if(t.firstChild){if(n&&At(r,this.currentBlock.attributes))return this.appendStringWithAttributes("\n");this.currentBlock=this.appendBlockForAttributesWithElement(r,t),this.currentBlockElement=t}}}else if(this.currentBlockElement&&!n&&!e){var i=this.findParentBlockElement(t);if(i)return this.appendBlockForElement(i);this.currentBlock=this.appendEmptyBlock(),this.currentBlockElement=null}}},{key:"findParentBlockElement",value:function(t){for(var e=t.parentElement;e&&e!==this.containerElement;){if(this.isBlockElement(e)&&this.blockElements.includes(e))return e;e=e.parentElement}return null}},{key:"processTextNode",value:function(t){var e,n=t.data;return wn(t.parentNode)||(n=de(n),Dn(null===(e=t.previousSibling)||void 0===e?void 0:e.textContent)&&(n=Cn(n))),this.appendStringWithAttributes(n,this.getTextAttributes(t.parentNode))}},{key:"processElement",value:function(t){var e;if(lt(t)){if(e=_n(t,"attachment"),Object.keys(e).length){var n=this.getTextAttributes(t);this.appendAttachmentWithAttributes(e,n),t.innerHTML=""}return this.processedElements.push(t)}switch(et(t)){case"br":return this.isExtraBR(t)||this.isBlockElement(t.nextSibling)||this.appendStringWithAttributes("\n",this.getTextAttributes(t)),this.processedElements.push(t);case"img":e={url:t.getAttribute("src"),contentType:"image"};var r=function(t){var e=t.getAttribute("width"),n=t.getAttribute("height"),r={};return e&&(r.width=parseInt(e,10)),n&&(r.height=parseInt(n,10)),r}(t);for(var i in r){var o=r[i];e[i]=o}return this.appendAttachmentWithAttributes(e,this.getTextAttributes(t)),this.processedElements.push(t);case"tr":if(this.needsTableSeparator(t))return this.appendStringWithAttributes(ft.tableRowSeparator);break;case"td":if(this.needsTableSeparator(t))return this.appendStringWithAttributes(ft.tableCellSeparator)}}},{key:"appendBlockForAttributesWithElement",value:function(t,e){this.blockElements.push(e);var n=function(){return{text:[],attributes:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}}(t);return this.blocks.push(n),n}},{key:"appendEmptyBlock",value:function(){return this.appendBlockForAttributesWithElement([],null)}},{key:"appendStringWithAttributes",value:function(t,e){return this.appendPiece(vn(t,e))}},{key:"appendAttachmentWithAttributes",value:function(t,e){return this.appendPiece(function(t){return{attachment:t,attributes:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},type:"attachment"}}(t,e))}},{key:"appendPiece",value:function(t){return 0===this.blocks.length&&this.appendEmptyBlock(),this.blocks[this.blocks.length-1].text.push(t)}},{key:"appendStringToTextAtIndex",value:function(t,e){var n=this.blocks[e].text,r=n[n.length-1];if("string"!==(null==r?void 0:r.type))return n.push(vn(t));r.string+=t}},{key:"prependStringToTextAtIndex",value:function(t,e){var n=this.blocks[e].text,r=n[0];if("string"!==(null==r?void 0:r.type))return n.unshift(vn(t));r.string=t+r.string}},{key:"getTextAttributes",value:function(t){var e,n={};for(var r in pt){var i=pt[r];if(i.tagName&&K(t,{matchingSelector:i.tagName,untilNode:this.containerElement}))n[r]=!0;else if(i.parser){if(e=i.parser(t)){var o,a=!1,u=s(this.findBlockElementAncestors(t));try{for(u.s();!(o=u.n()).done;){var l=o.value;if(i.parser(l)===e){a=!0;break}}}catch(h){u.e(h)}finally{u.f()}a||(n[r]=e)}}else i.styleProperty&&((e=t.style[i.styleProperty])&&(n[r]=e))}if(lt(t)){var c=_n(t,"attributes");for(var d in c)e=c[d],n[d]=e}return n}},{key:"getBlockAttributes",value:function(t){for(var e=[];t&&t!==this.containerElement;){for(var n in I){var r,i=I[n];!1!==i.parse&&et(t)===i.tagName&&(null!==(r=i.test)&&void 0!==r&&r.call(i,t)||!i.test)&&(e.push(n),i.listAttribute&&e.push(i.listAttribute))}t=t.parentNode}return e.reverse()}},{key:"findBlockElementAncestors",value:function(t){for(var e=[];t&&t!==this.containerElement;){var n=et(t);rt().includes(n)&&e.push(t),t=t.parentNode}return e}},{key:"isBlockElement",value:function(t){if((null==t?void 0:t.nodeType)===Node.ELEMENT_NODE&&!lt(t)&&!K(t,{matchingSelector:"td",untilNode:this.containerElement}))return rt().includes(et(t))||"block"===window.getComputedStyle(t).display}},{key:"isInsignificantTextNode",value:function(t){if((null==t?void 0:t.nodeType)===Node.TEXT_NODE&&xn(t.data)){var e=t.parentNode,n=t.previousSibling,r=t.nextSibling;return kn(e.previousSibling)&&!this.isBlockElement(e.previousSibling)||wn(e)?void 0:!n||this.isBlockElement(n)||!r||this.isBlockElement(r)}}},{key:"isExtraBR",value:function(t){return"br"===et(t)&&this.isBlockElement(t.parentNode)&&t.parentNode.lastChild===t}},{key:"needsTableSeparator",value:function(t){if(ft.removeBlankTableCells){var e,n=null===(e=t.previousSibling)||void 0===e?void 0:e.textContent;return n&&/\S/.test(n)}return t.previousSibling}},{key:"translateBlockElementMarginsToNewlines",value:function(){for(var t=this.getMarginOfDefaultBlockElement(),e=0;e<this.blocks.length;e++){var n=this.getMarginOfBlockElementAtIndex(e);n&&(n.top>2*t.top&&this.prependStringToTextAtIndex("\n",e),n.bottom>2*t.bottom&&this.appendStringToTextAtIndex("\n",e))}}},{key:"getMarginOfBlockElementAtIndex",value:function(t){var e=this.blockElements[t];if(e&&e.textContent&&!rt().includes(et(e))&&!this.processedElements.includes(e))return Sn(e)}},{key:"getMarginOfDefaultBlockElement",value:function(){var t=nt(I.default.tagName);return this.containerElement.appendChild(t),Sn(t)}}],[{key:"parse",value:function(t,e){var n=new this(t,e);return n.parse(),n}}]),n}(vt),wn=function(t){var e=window.getComputedStyle(t).whiteSpace;return["pre","pre-wrap","pre-line"].includes(e)},kn=function(t){return t&&!Dn(t.textContent)},Sn=function(t){var e=window.getComputedStyle(t);if("block"===e.display)return{top:parseInt(e.marginTop),bottom:parseInt(e.marginBottom)}},En=function(t){return"style"===et(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},Cn=function(t){return t.replace(new RegExp("^".concat(ce.source,"+")),"")},xn=function(t){return new RegExp("^".concat(ce.source,"*$")).test(t)},Dn=function(t){return/\s$/.test(t)},An=["contenteditable","data-trix-id","data-trix-store-key","data-trix-mutable","data-trix-placeholder","tabindex"],Tn="data-trix-serialized-attributes",Mn="[".concat(Tn,"]"),Ln=new RegExp("\x3c!--block--\x3e","g"),On={"application/json":function(t){var e;if(t instanceof dn)e=t;else{if(!(t instanceof HTMLElement))throw new Error("unserializable object");e=bn.parse(t.innerHTML).getDocument()}return e.toSerializableDocument().toJSONString()},"text/html":function(t){var e;if(t instanceof dn)e=Fe.render(t);else{if(!(t instanceof HTMLElement))throw new Error("unserializable object");e=t.cloneNode(!0)}return Array.from(e.querySelectorAll("[data-trix-serialize=false]")).forEach((function(t){Q(t)})),An.forEach((function(t){Array.from(e.querySelectorAll("[".concat(t,"]"))).forEach((function(e){e.removeAttribute(t)}))})),Array.from(e.querySelectorAll(Mn)).forEach((function(t){try{var e=JSON.parse(t.getAttribute(Tn));for(var n in t.removeAttribute(Tn),e){var r=e[n];t.setAttribute(n,r)}}catch(t){}})),e.innerHTML.replace(Ln,"")}},In=Object.freeze({__proto__:null}),Pn=function(t){m(n,t);var e=y(n);function n(t,r){var i;return w(this,n),(i=e.apply(this,arguments)).attachmentManager=t,i.attachment=r,i.id=i.attachment.id,i.file=i.attachment.file,i}return S(n,[{key:"remove",value:function(){return this.attachmentManager.requestRemovalOfAttachment(this.attachment)}}]),n}(vt);Pn.proxyMethod("attachment.getAttribute"),Pn.proxyMethod("attachment.hasAttribute"),Pn.proxyMethod("attachment.setAttribute"),Pn.proxyMethod("attachment.getAttributes"),Pn.proxyMethod("attachment.setAttributes"),Pn.proxyMethod("attachment.isPending"),Pn.proxyMethod("attachment.isPreviewable"),Pn.proxyMethod("attachment.getURL"),Pn.proxyMethod("attachment.getHref"),Pn.proxyMethod("attachment.getFilename"),Pn.proxyMethod("attachment.getFilesize"),Pn.proxyMethod("attachment.getFormattedFilesize"),Pn.proxyMethod("attachment.getExtension"),Pn.proxyMethod("attachment.getContentType"),Pn.proxyMethod("attachment.getFile"),Pn.proxyMethod("attachment.setFile"),Pn.proxyMethod("attachment.releaseFile"),Pn.proxyMethod("attachment.getUploadProgress"),Pn.proxyMethod("attachment.setUploadProgress");var Rn=function(t){m(n,t);var e=y(n);function n(){var t;w(this,n);var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(t=e.apply(this,arguments)).managedAttachments={},Array.from(r).forEach((function(e){t.manageAttachment(e)})),t}return S(n,[{key:"getAttachments",value:function(){var t=[];for(var e in this.managedAttachments){var n=this.managedAttachments[e];t.push(n)}return t}},{key:"manageAttachment",value:function(t){return this.managedAttachments[t.id]||(this.managedAttachments[t.id]=new Pn(this,t)),this.managedAttachments[t.id]}},{key:"attachmentIsManaged",value:function(t){return t.id in this.managedAttachments}},{key:"requestRemovalOfAttachment",value:function(t){var e,n;if(this.attachmentIsManaged(t))return null===(e=this.delegate)||void 0===e||null===(n=e.attachmentManagerDidRequestRemovalOfAttachment)||void 0===n?void 0:n.call(e,t)}},{key:"unmanageAttachment",value:function(t){var e=this.managedAttachments[t.id];return delete this.managedAttachments[t.id],e}}]),n}(vt),Nn=function(){function t(e){w(this,t),this.composition=e,this.document=this.composition.document;var n=this.composition.getSelectedRange();this.startPosition=n[0],this.endPosition=n[1],this.startLocation=this.document.locationFromPosition(this.startPosition),this.endLocation=this.document.locationFromPosition(this.endPosition),this.block=this.document.getBlockAtIndex(this.endLocation.index),this.breaksOnReturn=this.block.breaksOnReturn(),this.previousCharacter=this.block.text.getStringAtPosition(this.endLocation.offset-1),this.nextCharacter=this.block.text.getStringAtPosition(this.endLocation.offset)}return S(t,[{key:"shouldInsertBlockBreak",value:function(){return this.block.hasAttributes()&&this.block.isListItem()&&!this.block.isEmpty()?0!==this.startLocation.offset:this.breaksOnReturn&&"\n"!==this.nextCharacter}},{key:"shouldBreakFormattedBlock",value:function(){return this.block.hasAttributes()&&!this.block.isListItem()&&(this.breaksOnReturn&&"\n"===this.nextCharacter||"\n"===this.previousCharacter)}},{key:"shouldDecreaseListLevel",value:function(){return this.block.hasAttributes()&&this.block.isListItem()&&this.block.isEmpty()}},{key:"shouldPrependListItem",value:function(){return this.block.isListItem()&&0===this.startLocation.offset&&!this.block.isEmpty()}},{key:"shouldRemoveLastBlockAttribute",value:function(){return this.block.hasAttributes()&&!this.block.isListItem()&&this.block.isEmpty()}}]),t}(),Fn=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).document=new dn,t.attachments=[],t.currentAttributes={},t.revision=0,t}return S(n,[{key:"setDocument",value:function(t){var e,n;if(!t.isEqualTo(this.document))return this.document=t,this.refreshAttachments(),this.revision++,null===(e=this.delegate)||void 0===e||null===(n=e.compositionDidChangeDocument)||void 0===n?void 0:n.call(e,t)}},{key:"getSnapshot",value:function(){return{document:this.document,selectedRange:this.getSelectedRange()}}},{key:"loadSnapshot",value:function(t){var e,n,r,i,o=t.document,a=t.selectedRange;return null===(e=this.delegate)||void 0===e||null===(n=e.compositionWillLoadSnapshot)||void 0===n||n.call(e),this.setDocument(null!=o?o:new dn),this.setSelection(null!=a?a:[0,0]),null===(r=this.delegate)||void 0===r||null===(i=r.compositionDidLoadSnapshot)||void 0===i?void 0:i.call(r)}},{key:"insertText",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{updatePosition:!0}).updatePosition,n=this.getSelectedRange();this.setDocument(this.document.insertTextAtRange(t,n));var r=n[0],i=r+t.getLength();return e&&this.setSelection(i),this.notifyDelegateOfInsertionAtRange([r,i])}},{key:"insertBlock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new tn,e=new dn([t]);return this.insertDocument(e)}},{key:"insertDocument",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new dn,e=this.getSelectedRange();this.setDocument(this.document.insertDocumentAtRange(t,e));var n=e[0],r=n+t.getLength();return this.setSelection(r),this.notifyDelegateOfInsertionAtRange([n,r])}},{key:"insertString",value:function(t,e){var n=this.getCurrentTextAttributes(),r=Qe.textForStringWithAttributes(t,n);return this.insertText(r,e)}},{key:"insertBlockBreak",value:function(){var t=this.getSelectedRange();this.setDocument(this.document.insertBlockBreakAtRange(t));var e=t[0],n=e+1;return this.setSelection(n),this.notifyDelegateOfInsertionAtRange([e,n])}},{key:"insertLineBreak",value:function(){var t=new Nn(this);if(t.shouldDecreaseListLevel())return this.decreaseListLevel(),this.setSelection(t.startPosition);if(t.shouldPrependListItem()){var e=new dn([t.block.copyWithoutText()]);return this.insertDocument(e)}return t.shouldInsertBlockBreak()?this.insertBlockBreak():t.shouldRemoveLastBlockAttribute()?this.removeLastBlockAttribute():t.shouldBreakFormattedBlock()?this.breakFormattedBlock(t):this.insertString("\n")}},{key:"insertHTML",value:function(t){var e=bn.parse(t).getDocument(),n=this.getSelectedRange();this.setDocument(this.document.mergeDocumentAtRange(e,n));var r=n[0],i=r+e.getLength()-1;return this.setSelection(i),this.notifyDelegateOfInsertionAtRange([r,i])}},{key:"replaceHTML",value:function(t){var e=bn.parse(t).getDocument().copyUsingObjectsFromDocument(this.document),n=this.getLocationRange({strict:!1}),r=this.document.rangeFromLocationRange(n);return this.setDocument(e),this.setSelection(r)}},{key:"insertFile",value:function(t){return this.insertFiles([t])}},{key:"insertFiles",value:function(t){var e=this,n=[];return Array.from(t).forEach((function(t){var r;if(null!==(r=e.delegate)&&void 0!==r&&r.compositionShouldAcceptFile(t)){var i=qe.attachmentForFile(t);n.push(i)}})),this.insertAttachments(n)}},{key:"insertAttachment",value:function(t){return this.insertAttachments([t])}},{key:"insertAttachments",value:function(t){var e=this,n=new Qe;return Array.from(t).forEach((function(t){var r,i=t.getType(),o=null===(r=O[i])||void 0===r?void 0:r.presentation,a=e.getCurrentTextAttributes();o&&(a.presentation=o);var s=Qe.textForAttachmentWithAttributes(t,a);n=n.appendText(s)})),this.insertText(n)}},{key:"shouldManageDeletingInDirection",value:function(t){var e=this.getLocationRange();if(Jt(e)){if("backward"===t&&0===e[0].offset)return!0;if(this.shouldManageMovingCursorInDirection(t))return!0}else if(e[0].index!==e[1].index)return!0;return!1}},{key:"deleteInDirection",value:function(t){var e,n,r,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length,o=this.getLocationRange(),a=this.getSelectedRange(),s=Jt(a);if(s?n="backward"===t&&0===o[0].offset:r=o[0].index!==o[1].index,n&&this.canDecreaseBlockAttributeLevel()){var u=this.getBlock();if(u.isListItem()?this.decreaseListLevel():this.decreaseBlockAttributeLevel(),this.setSelection(a[0]),u.isEmpty())return!1}return s&&(a=this.getExpandedRangeInDirection(t,{length:i}),"backward"===t&&(e=this.getAttachmentAtRange(a))),e?(this.editAttachment(e),!1):(this.setDocument(this.document.removeTextAtRange(a)),this.setSelection(a[0]),!n&&!r&&void 0)}},{key:"moveTextFromRange",value:function(t){var e=u(Array.from(this.getSelectedRange()),1)[0];return this.setDocument(this.document.moveTextFromRangeToPosition(t,e)),this.setSelection(e)}},{key:"removeAttachment",value:function(t){var e=this.document.getRangeOfAttachment(t);if(e)return this.stopEditingAttachment(),this.setDocument(this.document.removeTextAtRange(e)),this.setSelection(e[0])}},{key:"removeLastBlockAttribute",value:function(){var t=u(Array.from(this.getSelectedRange()),2),e=t[0],n=t[1],r=this.document.getBlockAtPosition(n);return this.removeCurrentAttribute(r.getLastAttribute()),this.setSelection(e)}},{key:"insertPlaceholder",value:function(){return this.placeholderPosition=this.getPosition(),this.insertString(" ")}},{key:"selectPlaceholder",value:function(){if(null!=this.placeholderPosition)return this.setSelectedRange([this.placeholderPosition,this.placeholderPosition+1]),this.getSelectedRange()}},{key:"forgetPlaceholder",value:function(){this.placeholderPosition=null}},{key:"hasCurrentAttribute",value:function(t){var e=this.currentAttributes[t];return null!=e&&!1!==e}},{key:"toggleCurrentAttribute",value:function(t){var e=!this.currentAttributes[t];return e?this.setCurrentAttribute(t,e):this.removeCurrentAttribute(t)}},{key:"canSetCurrentAttribute",value:function(t){return Ft(t)?this.canSetCurrentBlockAttribute(t):this.canSetCurrentTextAttribute(t)}},{key:"canSetCurrentTextAttribute",value:function(t){var e=this.getSelectedDocument();if(e){for(var n=0,r=Array.from(e.getAttachments());n<r.length;n++){if(!r[n].hasContent())return!1}return!0}}},{key:"canSetCurrentBlockAttribute",value:function(t){var e=this.getBlock();if(e)return!e.isTerminalBlock()}},{key:"setCurrentAttribute",value:function(t,e){return Ft(t)?this.setBlockAttribute(t,e):(this.setTextAttribute(t,e),this.currentAttributes[t]=e,this.notifyDelegateOfCurrentAttributesChange())}},{key:"setTextAttribute",value:function(t,e){var n=this.getSelectedRange();if(n){var r=u(Array.from(n),2);if(r[0]!==r[1])return this.setDocument(this.document.addAttributeAtRange(t,e,n));if("href"===t){var i=Qe.textForStringWithAttributes(e,{href:e});return this.insertText(i)}}}},{key:"setBlockAttribute",value:function(t,e){var n=this.getSelectedRange();if(this.canSetCurrentAttribute(t))return this.setDocument(this.document.applyBlockAttributeAtRange(t,e,n)),this.setSelection(n)}},{key:"removeCurrentAttribute",value:function(t){return Ft(t)?(this.removeBlockAttribute(t),this.updateCurrentAttributes()):(this.removeTextAttribute(t),delete this.currentAttributes[t],this.notifyDelegateOfCurrentAttributesChange())}},{key:"removeTextAttribute",value:function(t){var e=this.getSelectedRange();if(e)return this.setDocument(this.document.removeAttributeAtRange(t,e))}},{key:"removeBlockAttribute",value:function(t){var e=this.getSelectedRange();if(e)return this.setDocument(this.document.removeAttributeAtRange(t,e))}},{key:"canDecreaseNestingLevel",value:function(){var t;return(null===(t=this.getBlock())||void 0===t?void 0:t.getNestingLevel())>0}},{key:"canIncreaseNestingLevel",value:function(){var t,e=this.getBlock();if(e){if(null===(t=Ft(e.getLastNestableAttribute()))||void 0===t||!t.listAttribute)return e.getNestingLevel()>0;var n=this.getPreviousBlock();if(n)return function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return At((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).slice(0,t.length),t)}(n.getListItemAttributes(),e.getListItemAttributes())}}},{key:"decreaseNestingLevel",value:function(){var t=this.getBlock();if(t)return this.setDocument(this.document.replaceBlock(t,t.decreaseNestingLevel()))}},{key:"increaseNestingLevel",value:function(){var t=this.getBlock();if(t)return this.setDocument(this.document.replaceBlock(t,t.increaseNestingLevel()))}},{key:"canDecreaseBlockAttributeLevel",value:function(){var t;return(null===(t=this.getBlock())||void 0===t?void 0:t.getAttributeLevel())>0}},{key:"decreaseBlockAttributeLevel",value:function(){var t,e=null===(t=this.getBlock())||void 0===t?void 0:t.getLastAttribute();if(e)return this.removeCurrentAttribute(e)}},{key:"decreaseListLevel",value:function(){for(var t=u(Array.from(this.getSelectedRange()),1)[0],e=this.document.locationFromPosition(t).index,n=e,r=this.getBlock().getAttributeLevel(),i=this.document.getBlockAtIndex(n+1);i&&i.isListItem()&&!(i.getAttributeLevel()<=r);)n++,i=this.document.getBlockAtIndex(n+1);t=this.document.positionFromLocation({index:e,offset:0});var o=this.document.positionFromLocation({index:n,offset:0});return this.setDocument(this.document.removeLastListAttributeAtRange([t,o]))}},{key:"updateCurrentAttributes",value:function(){var t=this,e=this.getSelectedRange({ignoreLock:!0});if(e){var n=this.document.getCommonAttributesAtRange(e);if(Array.from(Nt()).forEach((function(e){n[e]||t.canSetCurrentAttribute(e)||(n[e]=!1)})),!Zt(n,this.currentAttributes))return this.currentAttributes=n,this.notifyDelegateOfCurrentAttributesChange()}}},{key:"getCurrentAttributes",value:function(){return W.call({},this.currentAttributes)}},{key:"getCurrentTextAttributes",value:function(){var t={};for(var e in this.currentAttributes){var n=this.currentAttributes[e];!1!==n&&Bt(e)&&(t[e]=n)}return t}},{key:"freezeSelection",value:function(){return this.setCurrentAttribute("frozen",!0)}},{key:"thawSelection",value:function(){return this.removeCurrentAttribute("frozen")}},{key:"hasFrozenSelection",value:function(){return this.hasCurrentAttribute("frozen")}},{key:"setSelection",value:function(t){var e,n=this.document.locationRangeFromRange(t);return null===(e=this.delegate)||void 0===e?void 0:e.compositionDidRequestChangingSelectionToLocationRange(n)}},{key:"getSelectedRange",value:function(){var t=this.getLocationRange();if(t)return this.document.rangeFromLocationRange(t)}},{key:"setSelectedRange",value:function(t){var e=this.document.locationRangeFromRange(t);return this.getSelectionManager().setLocationRange(e)}},{key:"getPosition",value:function(){var t=this.getLocationRange();if(t)return this.document.positionFromLocation(t[0])}},{key:"getLocationRange",value:function(t){return this.targetLocationRange?this.targetLocationRange:this.getSelectionManager().getLocationRange(t)||Xt({index:0,offset:0})}},{key:"withTargetLocationRange",value:function(t,e){var n;this.targetLocationRange=t;try{n=e()}finally{this.targetLocationRange=null}return n}},{key:"withTargetRange",value:function(t,e){var n=this.document.locationRangeFromRange(t);return this.withTargetLocationRange(n,e)}},{key:"withTargetDOMRange",value:function(t,e){var n=this.createLocationRangeFromDOMRange(t,{strict:!1});return this.withTargetLocationRange(n,e)}},{key:"getExpandedRangeInDirection",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length,n=u(Array.from(this.getSelectedRange()),2),r=n[0],i=n[1];return"backward"===t?e?r-=e:r=this.translateUTF16PositionFromOffset(r,-1):e?i+=e:i=this.translateUTF16PositionFromOffset(i,1),Xt([r,i])}},{key:"shouldManageMovingCursorInDirection",value:function(t){if(this.editingAttachment)return!0;var e=this.getExpandedRangeInDirection(t);return null!=this.getAttachmentAtRange(e)}},{key:"moveCursorInDirection",value:function(t){var e,n;if(this.editingAttachment)n=this.document.getRangeOfAttachment(this.editingAttachment);else{var r=this.getSelectedRange();n=this.getExpandedRangeInDirection(t),e=!Qt(r,n)}if("backward"===t?this.setSelectedRange(n[0]):this.setSelectedRange(n[1]),e){var i=this.getAttachmentAtRange(n);if(i)return this.editAttachment(i)}}},{key:"expandSelectionInDirection",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).length,n=this.getExpandedRangeInDirection(t,{length:e});return this.setSelectedRange(n)}},{key:"expandSelectionForEditing",value:function(){if(this.hasCurrentAttribute("href"))return this.expandSelectionAroundCommonAttribute("href")}},{key:"expandSelectionAroundCommonAttribute",value:function(t){var e=this.getPosition(),n=this.document.getRangeOfCommonAttributeAtPosition(t,e);return this.setSelectedRange(n)}},{key:"selectionContainsAttachments",value:function(){var t;return(null===(t=this.getSelectedAttachments())||void 0===t?void 0:t.length)>0}},{key:"selectionIsInCursorTarget",value:function(){return this.editingAttachment||this.positionIsCursorTarget(this.getPosition())}},{key:"positionIsCursorTarget",value:function(t){var e=this.document.locationFromPosition(t);if(e)return this.locationIsCursorTarget(e)}},{key:"positionIsBlockBreak",value:function(t){var e;return null===(e=this.document.getPieceAtPosition(t))||void 0===e?void 0:e.isBlockBreak()}},{key:"getSelectedDocument",value:function(){var t=this.getSelectedRange();if(t)return this.document.getDocumentAtRange(t)}},{key:"getSelectedAttachments",value:function(){var t;return null===(t=this.getSelectedDocument())||void 0===t?void 0:t.getAttachments()}},{key:"getAttachments",value:function(){return this.attachments.slice(0)}},{key:"refreshAttachments",value:function(){var t=this,e=this.document.getAttachments(),n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=[],i=new Set;t.forEach((function(t){i.add(t)}));var o=new Set;return e.forEach((function(t){o.add(t),i.has(t)||n.push(t)})),t.forEach((function(t){o.has(t)||r.push(t)})),{added:n,removed:r}}(this.attachments,e),r=n.added,i=n.removed;return this.attachments=e,Array.from(i).forEach((function(e){var n,r;e.delegate=null,null===(n=t.delegate)||void 0===n||null===(r=n.compositionDidRemoveAttachment)||void 0===r||r.call(n,e)})),function(){var e=[];return Array.from(r).forEach((function(n){var r,i;n.delegate=t,e.push(null===(r=t.delegate)||void 0===r||null===(i=r.compositionDidAddAttachment)||void 0===i?void 0:i.call(r,n))})),e}()}},{key:"attachmentDidChangeAttributes",value:function(t){var e,n;return this.revision++,null===(e=this.delegate)||void 0===e||null===(n=e.compositionDidEditAttachment)||void 0===n?void 0:n.call(e,t)}},{key:"attachmentDidChangePreviewURL",value:function(t){var e,n;return this.revision++,null===(e=this.delegate)||void 0===e||null===(n=e.compositionDidChangeAttachmentPreviewURL)||void 0===n?void 0:n.call(e,t)}},{key:"editAttachment",value:function(t,e){var n,r;if(t!==this.editingAttachment)return this.stopEditingAttachment(),this.editingAttachment=t,null===(n=this.delegate)||void 0===n||null===(r=n.compositionDidStartEditingAttachment)||void 0===r?void 0:r.call(n,this.editingAttachment,e)}},{key:"stopEditingAttachment",value:function(){var t,e;this.editingAttachment&&(null===(t=this.delegate)||void 0===t||null===(e=t.compositionDidStopEditingAttachment)||void 0===e||e.call(t,this.editingAttachment),this.editingAttachment=null)}},{key:"updateAttributesForAttachment",value:function(t,e){return this.setDocument(this.document.updateAttributesForAttachment(t,e))}},{key:"removeAttributeForAttachment",value:function(t,e){return this.setDocument(this.document.removeAttributeForAttachment(t,e))}},{key:"breakFormattedBlock",value:function(t){var e=t.document,n=t.block,r=t.startPosition,i=[r-1,r];n.getBlockBreakPosition()===t.startLocation.offset?(n.breaksOnReturn()&&"\n"===t.nextCharacter?r+=1:e=e.removeTextAtRange(i),i=[r,r]):"\n"===t.nextCharacter?"\n"===t.previousCharacter?i=[r-1,r+1]:(i=[r,r+1],r+=1):t.startLocation.offset-1!=0&&(r+=1);var o=new dn([n.removeLastAttribute().copyWithoutText()]);return this.setDocument(e.insertDocumentAtRange(o,i)),this.setSelection(r)}},{key:"getPreviousBlock",value:function(){var t=this.getLocationRange();if(t){var e=t[0].index;if(e>0)return this.document.getBlockAtIndex(e-1)}}},{key:"getBlock",value:function(){var t=this.getLocationRange();if(t)return this.document.getBlockAtIndex(t[0].index)}},{key:"getAttachmentAtRange",value:function(t){var e=this.document.getDocumentAtRange(t);if(e.toString()==="".concat("\ufffc","\n"))return e.getAttachments()[0]}},{key:"notifyDelegateOfCurrentAttributesChange",value:function(){var t,e;return null===(t=this.delegate)||void 0===t||null===(e=t.compositionDidChangeCurrentAttributes)||void 0===e?void 0:e.call(t,this.currentAttributes)}},{key:"notifyDelegateOfInsertionAtRange",value:function(t){var e,n;return null===(e=this.delegate)||void 0===e||null===(n=e.compositionDidPerformInsertionAtRange)||void 0===n?void 0:n.call(e,t)}},{key:"translateUTF16PositionFromOffset",value:function(t,e){var n=this.document.toUTF16String(),r=n.offsetFromUCS2Offset(t);return n.offsetToUCS2Offset(r+e)}}]),n}(vt);Fn.proxyMethod("getSelectionManager().getPointRange"),Fn.proxyMethod("getSelectionManager().setLocationRangeFromPointRange"),Fn.proxyMethod("getSelectionManager().createLocationRangeFromDOMRange"),Fn.proxyMethod("getSelectionManager().locationIsCursorTarget"),Fn.proxyMethod("getSelectionManager().selectionIsExpanded"),Fn.proxyMethod("delegate?.getSelectionManager");var jn=function(t){m(n,t);var e=y(n);function n(t){var r;return w(this,n),(r=e.apply(this,arguments)).composition=t,r.undoEntries=[],r.redoEntries=[],r}return S(n,[{key:"recordUndoEntry",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.context,r=e.consolidatable,i=this.undoEntries.slice(-1)[0];if(!r||!Bn(i,t,n)){var o=this.createEntry({description:t,context:n});this.undoEntries.push(o),this.redoEntries=[]}}},{key:"undo",value:function(){var t=this.undoEntries.pop();if(t){var e=this.createEntry(t);return this.redoEntries.push(e),this.composition.loadSnapshot(t.snapshot)}}},{key:"redo",value:function(){var t=this.redoEntries.pop();if(t){var e=this.createEntry(t);return this.undoEntries.push(e),this.composition.loadSnapshot(t.snapshot)}}},{key:"canUndo",value:function(){return this.undoEntries.length>0}},{key:"canRedo",value:function(){return this.redoEntries.length>0}},{key:"createEntry",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.description,n=t.context;return{description:null==e?void 0:e.toString(),context:JSON.stringify(n),snapshot:this.composition.getSnapshot()}}}]),n}(vt),Bn=function(t,e,n){return(null==t?void 0:t.description)===(null==e?void 0:e.toString())&&(null==t?void 0:t.context)===JSON.stringify(n)},Yn="attachmentGallery",Hn=function(){function t(e){w(this,t),this.document=e.document,this.selectedRange=e.selectedRange}return S(t,[{key:"perform",value:function(){return this.removeBlockAttribute(),this.applyBlockAttribute()}},{key:"getSnapshot",value:function(){return{document:this.document,selectedRange:this.selectedRange}}},{key:"removeBlockAttribute",value:function(){var t=this;return this.findRangesOfBlocks().map((function(e){return t.document=t.document.removeAttributeAtRange(Yn,e)}))}},{key:"applyBlockAttribute",value:function(){var t=this,e=0;this.findRangesOfPieces().forEach((function(n){n[1]-n[0]>1&&(n[0]+=e,n[1]+=e,"\n"!==t.document.getCharacterAtPosition(n[1])&&(t.document=t.document.insertBlockBreakAtRange(n[1]),n[1]<t.selectedRange[1]&&t.moveSelectedRangeForward(),n[1]++,e++),0!==n[0]&&"\n"!==t.document.getCharacterAtPosition(n[0]-1)&&(t.document=t.document.insertBlockBreakAtRange(n[0]),n[0]<t.selectedRange[0]&&t.moveSelectedRangeForward(),n[0]++,e++),t.document=t.document.applyBlockAttributeAtRange(Yn,!0,n))}))}},{key:"findRangesOfBlocks",value:function(){return this.document.findRangesForBlockAttribute(Yn)}},{key:"findRangesOfPieces",value:function(){return this.document.findRangesForTextAttribute("presentation",{withValue:"gallery"})}},{key:"moveSelectedRangeForward",value:function(){this.selectedRange[0]+=1,this.selectedRange[1]+=1}}]),t}(),zn=function(t){var e=new Hn(t);return e.perform(),e.getSnapshot()},Wn=[zn],Vn=function(){function t(e,n,r){w(this,t),this.insertFiles=this.insertFiles.bind(this),this.composition=e,this.selectionManager=n,this.element=r,this.undoManager=new jn(this.composition),this.filters=Wn.slice(0)}return S(t,[{key:"loadDocument",value:function(t){return this.loadSnapshot({document:t,selectedRange:[0,0]})}},{key:"loadHTML",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=bn.parse(t,{referenceElement:this.element}).getDocument();return this.loadDocument(e)}},{key:"loadJSON",value:function(t){var e=t.document,n=t.selectedRange;return e=dn.fromJSON(e),this.loadSnapshot({document:e,selectedRange:n})}},{key:"loadSnapshot",value:function(t){return this.undoManager=new jn(this.composition),this.composition.loadSnapshot(t)}},{key:"getDocument",value:function(){return this.composition.document}},{key:"getSelectedDocument",value:function(){return this.composition.getSelectedDocument()}},{key:"getSnapshot",value:function(){return this.composition.getSnapshot()}},{key:"toJSON",value:function(){return this.getSnapshot()}},{key:"deleteInDirection",value:function(t){return this.composition.deleteInDirection(t)}},{key:"insertAttachment",value:function(t){return this.composition.insertAttachment(t)}},{key:"insertAttachments",value:function(t){return this.composition.insertAttachments(t)}},{key:"insertDocument",value:function(t){return this.composition.insertDocument(t)}},{key:"insertFile",value:function(t){return this.composition.insertFile(t)}},{key:"insertFiles",value:function(t){return this.composition.insertFiles(t)}},{key:"insertHTML",value:function(t){return this.composition.insertHTML(t)}},{key:"insertString",value:function(t){return this.composition.insertString(t)}},{key:"insertText",value:function(t){return this.composition.insertText(t)}},{key:"insertLineBreak",value:function(){return this.composition.insertLineBreak()}},{key:"getSelectedRange",value:function(){return this.composition.getSelectedRange()}},{key:"getPosition",value:function(){return this.composition.getPosition()}},{key:"getClientRectAtPosition",value:function(t){var e=this.getDocument().locationRangeFromRange([t,t+1]);return this.selectionManager.getClientRectAtLocationRange(e)}},{key:"expandSelectionInDirection",value:function(t){return this.composition.expandSelectionInDirection(t)}},{key:"moveCursorInDirection",value:function(t){return this.composition.moveCursorInDirection(t)}},{key:"setSelectedRange",value:function(t){return this.composition.setSelectedRange(t)}},{key:"activateAttribute",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.composition.setCurrentAttribute(t,e)}},{key:"attributeIsActive",value:function(t){return this.composition.hasCurrentAttribute(t)}},{key:"canActivateAttribute",value:function(t){return this.composition.canSetCurrentAttribute(t)}},{key:"deactivateAttribute",value:function(t){return this.composition.removeCurrentAttribute(t)}},{key:"canDecreaseNestingLevel",value:function(){return this.composition.canDecreaseNestingLevel()}},{key:"canIncreaseNestingLevel",value:function(){return this.composition.canIncreaseNestingLevel()}},{key:"decreaseNestingLevel",value:function(){if(this.canDecreaseNestingLevel())return this.composition.decreaseNestingLevel()}},{key:"increaseNestingLevel",value:function(){if(this.canIncreaseNestingLevel())return this.composition.increaseNestingLevel()}},{key:"canRedo",value:function(){return this.undoManager.canRedo()}},{key:"canUndo",value:function(){return this.undoManager.canUndo()}},{key:"recordUndoEntry",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.context,r=e.consolidatable;return this.undoManager.recordUndoEntry(t,{context:n,consolidatable:r})}},{key:"redo",value:function(){if(this.canRedo())return this.undoManager.redo()}},{key:"undo",value:function(){if(this.canUndo())return this.undoManager.undo()}}]),t}(),Un=function(){function t(e){w(this,t),this.element=e}return S(t,[{key:"findLocationFromContainerAndOffset",value:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!0}).strict,r=0,i=!1,o={index:0,offset:0},a=this.findAttachmentElementParentForNode(t);a&&(t=a.parentNode,e=J(a));for(var s=tt(this.element,{usingFilter:Kn});s.nextNode();){var u=s.currentNode;if(u===t&&dt(t)){ut(u)||(o.offset+=e);break}if(u.parentNode===t){if(r++===e)break}else if(!X(t,u)&&r>0)break;ot(u,{strict:n})?(i&&o.index++,o.offset=0,i=!0):o.offset+=qn(u)}return o}},{key:"findContainerAndOffsetFromLocation",value:function(t){var e,n;if(0===t.index&&0===t.offset){for(e=this.element,n=0;e.firstChild;)if(e=e.firstChild,it(e)){n=1;break}return[e,n]}var r=u(this.findNodeAndOffsetFromLocation(t),2),i=r[0],o=r[1];if(i){if(dt(i))0===qn(i)?(e=i.parentNode.parentNode,n=J(i.parentNode),ut(i,{name:"right"})&&n++):(e=i,n=t.offset-o);else{if(e=i.parentNode,!ot(i.previousSibling)&&!it(e))for(;i===e.lastChild&&(i=e,e=e.parentNode,!it(e)););n=J(i),0!==t.offset&&n++}return[e,n]}}},{key:"findNodeAndOffsetFromLocation",value:function(t){var e,n,r,i=0,o=s(this.getSignificantNodesForIndex(t.index));try{for(o.s();!(r=o.n()).done;){var a=r.value,u=qn(a);if(t.offset<=i+u)if(dt(a)){if(e=a,n=i,t.offset===n&&ut(e))break}else e||(e=a,n=i);if((i+=u)>t.offset)break}}catch(l){o.e(l)}finally{o.f()}return[e,n]}},{key:"findAttachmentElementParentForNode",value:function(t){for(;t&&t!==this.element;){if(lt(t))return t;t=t.parentNode}}},{key:"getSignificantNodesForIndex",value:function(t){for(var e=[],n=tt(this.element,{usingFilter:Gn}),r=!1;n.nextNode();){var i,o=n.currentNode;if(at(o)){if(null!=i?i++:i=0,i===t)r=!0;else if(r)break}else r&&e.push(o)}return e}}]),t}(),qn=function(t){return t.nodeType===Node.TEXT_NODE?ut(t)?0:t.textContent.length:"br"===et(t)||lt(t)?1:0},Gn=function(t){return $n(t)===NodeFilter.FILTER_ACCEPT?Kn(t):NodeFilter.FILTER_REJECT},$n=function(t){return ct(t)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},Kn=function(t){return lt(t.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},Zn=function(){function t(){w(this,t)}return S(t,[{key:"createDOMRangeFromPoint",value:function(t){var e,n=t.x,r=t.y;if(document.caretPositionFromPoint){var i=document.caretPositionFromPoint(n,r),o=i.offsetNode,a=i.offset;return(e=document.createRange()).setStart(o,a),e}if(document.caretRangeFromPoint)return document.caretRangeFromPoint(n,r);if(document.body.createTextRange){var s=oe();try{var u=document.body.createTextRange();u.moveToPoint(n,r),u.select()}catch(t){}return e=oe(),ae(s),e}}},{key:"getClientRectsForDOMRange",value:function(t){var e=Array.from(t.getClientRects());return[e[0],e[e.length-1]]}}]),t}(),Xn=function(t){m(n,t);var e=y(n);function n(t){var r;return w(this,n),(r=e.apply(this,arguments)).didMouseDown=r.didMouseDown.bind(v(r)),r.selectionDidChange=r.selectionDidChange.bind(v(r)),r.element=t,r.locationMapper=new Un(r.element),r.pointMapper=new Zn,r.lockCount=0,q("mousedown",{onElement:r.element,withCallback:r.didMouseDown}),r}return S(n,[{key:"getLocationRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!1===t.strict?this.createLocationRangeFromDOMRange(oe()):t.ignoreLock?this.currentLocationRange:this.lockedLocationRange?this.lockedLocationRange:this.currentLocationRange}},{key:"setLocationRange",value:function(t){if(!this.lockedLocationRange){t=Xt(t);var e=this.createDOMRangeFromLocationRange(t);e&&(ae(e),this.updateCurrentLocationRange(t))}}},{key:"setLocationRangeFromPointRange",value:function(t){t=Xt(t);var e=this.getLocationAtPoint(t[0]),n=this.getLocationAtPoint(t[1]);this.setLocationRange([e,n])}},{key:"getClientRectAtLocationRange",value:function(t){var e=this.createDOMRangeFromLocationRange(t);if(e)return this.getClientRectsForDOMRange(e)[1]}},{key:"locationIsCursorTarget",value:function(t){var e=Array.from(this.findNodeAndOffsetFromLocation(t))[0];return ut(e)}},{key:"lock",value:function(){0==this.lockCount++&&(this.updateCurrentLocationRange(),this.lockedLocationRange=this.getLocationRange())}},{key:"unlock",value:function(){if(0==--this.lockCount){var t=this.lockedLocationRange;if(this.lockedLocationRange=null,null!=t)return this.setLocationRange(t)}}},{key:"clearSelection",value:function(){var t;return null===(t=ie())||void 0===t?void 0:t.removeAllRanges()}},{key:"selectionIsCollapsed",value:function(){var t;return!0===(null===(t=oe())||void 0===t?void 0:t.collapsed)}},{key:"selectionIsExpanded",value:function(){return!this.selectionIsCollapsed()}},{key:"createLocationRangeFromDOMRange",value:function(t,e){if(null!=t&&this.domRangeWithinElement(t)){var n=this.findLocationFromContainerAndOffset(t.startContainer,t.startOffset,e);if(n){var r=t.collapsed?void 0:this.findLocationFromContainerAndOffset(t.endContainer,t.endOffset,e);return Xt([n,r])}}}},{key:"didMouseDown",value:function(){return this.pauseTemporarily()}},{key:"pauseTemporarily",value:function(){var t,e=this;this.paused=!0;var n=function(){if(e.paused=!1,clearTimeout(r),Array.from(t).forEach((function(t){t.destroy()})),X(document,e.element))return e.selectionDidChange()},r=setTimeout(n,200);t=["mousemove","keydown"].map((function(t){return q(t,{onElement:document,withCallback:n})}))}},{key:"selectionDidChange",value:function(){if(!this.paused&&!Z(this.element))return this.updateCurrentLocationRange()}},{key:"updateCurrentLocationRange",value:function(t){var e,n;if((null!=t?t:t=this.createLocationRangeFromDOMRange(oe()))&&!Qt(t,this.currentLocationRange))return this.currentLocationRange=t,null===(e=this.delegate)||void 0===e||null===(n=e.locationRangeDidChange)||void 0===n?void 0:n.call(e,this.currentLocationRange.slice(0))}},{key:"createDOMRangeFromLocationRange",value:function(t){var e=this.findContainerAndOffsetFromLocation(t[0]),n=Jt(t)?e:this.findContainerAndOffsetFromLocation(t[1])||e;if(null!=e&&null!=n){var r=document.createRange();return r.setStart.apply(r,d(Array.from(e||[]))),r.setEnd.apply(r,d(Array.from(n||[]))),r}}},{key:"getLocationAtPoint",value:function(t){var e,n=this.createDOMRangeFromPoint(t);if(n)return null===(e=this.createLocationRangeFromDOMRange(n))||void 0===e?void 0:e[0]}},{key:"domRangeWithinElement",value:function(t){return t.collapsed?X(this.element,t.startContainer):X(this.element,t.startContainer)&&X(this.element,t.endContainer)}}]),n}(vt);Xn.proxyMethod("locationMapper.findLocationFromContainerAndOffset"),Xn.proxyMethod("locationMapper.findContainerAndOffsetFromLocation"),Xn.proxyMethod("locationMapper.findNodeAndOffsetFromLocation"),Xn.proxyMethod("pointMapper.createDOMRangeFromPoint"),Xn.proxyMethod("pointMapper.getClientRectsForDOMRange");var Jn,Qn=Object.freeze({__proto__:null,Attachment:qe,AttachmentManager:Rn,AttachmentPiece:Ge,Block:tn,Composition:Fn,Document:dn,Editor:Vn,HTMLParser:bn,HTMLSanitizer:gn,LineBreakInsertion:Nn,LocationMapper:Un,ManagedAttachment:Pn,Piece:Ve,PointMapper:Zn,SelectionManager:Xn,SplittableList:Ke,StringPiece:$e,Text:Qe,UndoManager:jn}),tr=Object.freeze({__proto__:null,ObjectView:Ce,AttachmentView:Ae,BlockView:Ne,DocumentView:Fe,PieceView:Oe,PreviewableAttachmentView:Le,TextView:Ie}),er=yt.lang,nr=yt.css,rr=yt.keyNames,ir=function(t){return function(){var e=t.apply(this,arguments);e.do(),this.undos||(this.undos=[]),this.undos.push(e.undo)}},or=function(t){m(n,t);var e=y(n);function n(t,r,i){var o;w(this,n);var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return We(v(o=e.apply(this,arguments)),"makeElementMutable",ir((function(){return{do:function(){o.element.dataset.trixMutable=!0},undo:function(){return delete o.element.dataset.trixMutable}}}))),We(v(o),"addToolbar",ir((function(){var t=nt({tagName:"div",className:nr.attachmentToolbar,data:{trixMutable:!0},childNodes:nt({tagName:"div",className:"trix-button-row",childNodes:nt({tagName:"span",className:"trix-button-group trix-button-group--actions",childNodes:nt({tagName:"button",className:"trix-button trix-button--remove",textContent:er.remove,attributes:{title:er.remove},data:{trixAction:"remove"}})})})});return o.attachment.isPreviewable()&&t.appendChild(nt({tagName:"div",className:nr.attachmentMetadataContainer,childNodes:nt({tagName:"span",className:nr.attachmentMetadata,childNodes:[nt({tagName:"span",className:nr.attachmentName,textContent:o.attachment.getFilename(),attributes:{title:o.attachment.getFilename()}}),nt({tagName:"span",className:nr.attachmentSize,textContent:o.attachment.getFormattedFilesize()})]})})),q("click",{onElement:t,withCallback:o.didClickToolbar}),q("click",{onElement:t,matchingSelector:"[data-trix-action]",withCallback:o.didClickActionButton}),G("trix-attachment-before-toolbar",{onElement:o.element,attributes:{toolbar:t,attachment:o.attachment}}),{do:function(){return o.element.appendChild(t)},undo:function(){return Q(t)}}}))),We(v(o),"installCaptionEditor",ir((function(){var t=nt({tagName:"textarea",className:nr.attachmentCaptionEditor,attributes:{placeholder:er.captionPlaceholder},data:{trixMutable:!0}});t.value=o.attachmentPiece.getCaption();var e=t.cloneNode();e.classList.add("trix-autoresize-clone"),e.tabIndex=-1;var n=function(){e.value=t.value,t.style.height=e.scrollHeight+"px"};q("input",{onElement:t,withCallback:n}),q("input",{onElement:t,withCallback:o.didInputCaption}),q("keydown",{onElement:t,withCallback:o.didKeyDownCaption}),q("change",{onElement:t,withCallback:o.didChangeCaption}),q("blur",{onElement:t,withCallback:o.didBlurCaption});var r=o.element.querySelector("figcaption"),i=r.cloneNode();return{do:function(){if(r.style.display="none",i.appendChild(t),i.appendChild(e),i.classList.add("".concat(nr.attachmentCaption,"--editing")),r.parentElement.insertBefore(i,r),n(),o.options.editCaption)return $t((function(){return t.focus()}))},undo:function(){Q(i),r.style.display=null}}}))),o.didClickToolbar=o.didClickToolbar.bind(v(o)),o.didClickActionButton=o.didClickActionButton.bind(v(o)),o.didKeyDownCaption=o.didKeyDownCaption.bind(v(o)),o.didInputCaption=o.didInputCaption.bind(v(o)),o.didChangeCaption=o.didChangeCaption.bind(v(o)),o.didBlurCaption=o.didBlurCaption.bind(v(o)),o.attachmentPiece=t,o.element=r,o.container=i,o.options=a,o.attachment=o.attachmentPiece.attachment,"a"===et(o.element)&&(o.element=o.element.firstChild),o.install(),o}return S(n,[{key:"install",value:function(){this.makeElementMutable(),this.addToolbar(),this.attachment.isPreviewable()&&this.installCaptionEditor()}},{key:"uninstall",value:function(){var t,e=this.undos.pop();for(this.savePendingCaption();e;)e(),e=this.undos.pop();null===(t=this.delegate)||void 0===t||t.didUninstallAttachmentEditor(this)}},{key:"savePendingCaption",value:function(){if(null!=this.pendingCaption){var t,e,n,r,i=this.pendingCaption;this.pendingCaption=null,i?null===(t=this.delegate)||void 0===t||null===(e=t.attachmentEditorDidRequestUpdatingAttributesForAttachment)||void 0===e||e.call(t,{caption:i},this.attachment):null===(n=this.delegate)||void 0===n||null===(r=n.attachmentEditorDidRequestRemovingAttributeForAttachment)||void 0===r||r.call(n,"caption",this.attachment)}}},{key:"didClickToolbar",value:function(t){return t.preventDefault(),t.stopPropagation()}},{key:"didClickActionButton",value:function(t){var e;if("remove"===t.target.getAttribute("data-trix-action"))return null===(e=this.delegate)||void 0===e?void 0:e.attachmentEditorDidRequestRemovalOfAttachment(this.attachment)}},{key:"didKeyDownCaption",value:function(t){var e,n;if("return"===rr[t.keyCode])return t.preventDefault(),this.savePendingCaption(),null===(e=this.delegate)||void 0===e||null===(n=e.attachmentEditorDidRequestDeselectingAttachment)||void 0===n?void 0:n.call(e,this.attachment)}},{key:"didInputCaption",value:function(t){this.pendingCaption=t.target.value.replace(/\s/g," ").trim()}},{key:"didChangeCaption",value:function(t){return this.savePendingCaption()}},{key:"didBlurCaption",value:function(t){return this.savePendingCaption()}}]),n}(vt),ar=function(t){m(n,t);var e=y(n);function n(t,r){var i;return w(this,n),(i=e.apply(this,arguments)).didFocus=i.didFocus.bind(v(i)),i.didBlur=i.didBlur.bind(v(i)),i.didClickAttachment=i.didClickAttachment.bind(v(i)),i.element=t,i.composition=r,i.documentView=new Fe(i.composition.document,{element:i.element}),q("focus",{onElement:i.element,withCallback:i.didFocus}),q("blur",{onElement:i.element,withCallback:i.didBlur}),q("click",{onElement:i.element,matchingSelector:"a[contenteditable=false]",preventDefault:!0}),q("mousedown",{onElement:i.element,matchingSelector:L,withCallback:i.didClickAttachment}),q("click",{onElement:i.element,matchingSelector:"a".concat(L),preventDefault:!0}),i}return S(n,[{key:"didFocus",value:function(t){var e,n=this,r=function(){var t,e;if(!n.focused)return n.focused=!0,null===(t=n.delegate)||void 0===t||null===(e=t.compositionControllerDidFocus)||void 0===e?void 0:e.call(t)};return(null===(e=this.blurPromise)||void 0===e?void 0:e.then(r))||r()}},{key:"didBlur",value:function(t){var e=this;this.blurPromise=new Promise((function(t){return $t((function(){var n,r;return Z(e.element)||(e.focused=null,null===(n=e.delegate)||void 0===n||null===(r=n.compositionControllerDidBlur)||void 0===r||r.call(n)),e.blurPromise=null,t()}))}))}},{key:"didClickAttachment",value:function(t,e){var n,r,i=this.findAttachmentForElement(e),o=!!K(t.target,{matchingSelector:"figcaption"});return null===(n=this.delegate)||void 0===n||null===(r=n.compositionControllerDidSelectAttachment)||void 0===r?void 0:r.call(n,i,{editCaption:o})}},{key:"getSerializableElement",value:function(){return this.isEditingAttachment()?this.documentView.shadowElement:this.element}},{key:"render",value:function(){var t,e,n,r,i,o;return this.revision!==this.composition.revision&&(this.documentView.setDocument(this.composition.document),this.documentView.render(),this.revision=this.composition.revision),this.canSyncDocumentView()&&!this.documentView.isSynced()&&(null===(n=this.delegate)||void 0===n||null===(r=n.compositionControllerWillSyncDocumentView)||void 0===r||r.call(n),this.documentView.sync(),null===(i=this.delegate)||void 0===i||null===(o=i.compositionControllerDidSyncDocumentView)||void 0===o||o.call(i)),null===(t=this.delegate)||void 0===t||null===(e=t.compositionControllerDidRender)||void 0===e?void 0:e.call(t)}},{key:"rerenderViewForObject",value:function(t){return this.invalidateViewForObject(t),this.render()}},{key:"invalidateViewForObject",value:function(t){return this.documentView.invalidateViewForObject(t)}},{key:"isViewCachingEnabled",value:function(){return this.documentView.isViewCachingEnabled()}},{key:"enableViewCaching",value:function(){return this.documentView.enableViewCaching()}},{key:"disableViewCaching",value:function(){return this.documentView.disableViewCaching()}},{key:"refreshViewCache",value:function(){return this.documentView.garbageCollectCachedViews()}},{key:"isEditingAttachment",value:function(){return!!this.attachmentEditor}},{key:"installAttachmentEditorForAttachment",value:function(t,e){var n;if((null===(n=this.attachmentEditor)||void 0===n?void 0:n.attachment)!==t){var r=this.documentView.findElementForObject(t);if(r){this.uninstallAttachmentEditor();var i=this.composition.document.getAttachmentPieceForAttachment(t);this.attachmentEditor=new or(i,r,this.element,e),this.attachmentEditor.delegate=this}}}},{key:"uninstallAttachmentEditor",value:function(){var t;return null===(t=this.attachmentEditor)||void 0===t?void 0:t.uninstall()}},{key:"didUninstallAttachmentEditor",value:function(){return this.attachmentEditor=null,this.render()}},{key:"attachmentEditorDidRequestUpdatingAttributesForAttachment",value:function(t,e){var n,r;return null===(n=this.delegate)||void 0===n||null===(r=n.compositionControllerWillUpdateAttachment)||void 0===r||r.call(n,e),this.composition.updateAttributesForAttachment(t,e)}},{key:"attachmentEditorDidRequestRemovingAttributeForAttachment",value:function(t,e){var n,r;return null===(n=this.delegate)||void 0===n||null===(r=n.compositionControllerWillUpdateAttachment)||void 0===r||r.call(n,e),this.composition.removeAttributeForAttachment(t,e)}},{key:"attachmentEditorDidRequestRemovalOfAttachment",value:function(t){var e,n;return null===(e=this.delegate)||void 0===e||null===(n=e.compositionControllerDidRequestRemovalOfAttachment)||void 0===n?void 0:n.call(e,t)}},{key:"attachmentEditorDidRequestDeselectingAttachment",value:function(t){var e,n;return null===(e=this.delegate)||void 0===e||null===(n=e.compositionControllerDidRequestDeselectingAttachment)||void 0===n?void 0:n.call(e,t)}},{key:"canSyncDocumentView",value:function(){return!this.isEditingAttachment()}},{key:"findAttachmentForElement",value:function(t){return this.composition.document.getAttachmentById(parseInt(t.dataset.trixId,10))}}]),n}(vt),sr=function(t){m(n,t);var e=y(n);function n(){return w(this,n),e.apply(this,arguments)}return S(n)}(vt),ur="data-trix-mutable",lr="[".concat(ur,"]"),cr={attributes:!0,childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},dr=function(t){m(n,t);var e=y(n);function n(t){var r;return w(this,n),(r=e.call(this,t)).didMutate=r.didMutate.bind(v(r)),r.element=t,r.observer=new window.MutationObserver(r.didMutate),r.start(),r}return S(n,[{key:"start",value:function(){return this.reset(),this.observer.observe(this.element,cr)}},{key:"stop",value:function(){return this.observer.disconnect()}},{key:"didMutate",value:function(t){var e,n,r;if((e=this.mutations).push.apply(e,d(Array.from(this.findSignificantMutations(t)||[]))),this.mutations.length)return null===(n=this.delegate)||void 0===n||null===(r=n.elementDidMutate)||void 0===r||r.call(n,this.getMutationSummary()),this.reset()}},{key:"reset",value:function(){this.mutations=[]}},{key:"findSignificantMutations",value:function(t){var e=this;return t.filter((function(t){return e.mutationIsSignificant(t)}))}},{key:"mutationIsSignificant",value:function(t){if(this.nodeIsMutable(t.target))return!1;for(var e=0,n=Array.from(this.nodesModifiedByMutation(t));e<n.length;e++){var r=n[e];if(this.nodeIsSignificant(r))return!0}return!1}},{key:"nodeIsSignificant",value:function(t){return t!==this.element&&!this.nodeIsMutable(t)&&!ct(t)}},{key:"nodeIsMutable",value:function(t){return K(t,{matchingSelector:lr})}},{key:"nodesModifiedByMutation",value:function(t){var e=[];switch(t.type){case"attributes":t.attributeName!==ur&&e.push(t.target);break;case"characterData":e.push(t.target.parentNode),e.push(t.target);break;case"childList":e.push.apply(e,d(Array.from(t.addedNodes||[]))),e.push.apply(e,d(Array.from(t.removedNodes||[])))}return e}},{key:"getMutationSummary",value:function(){return this.getTextMutationSummary()}},{key:"getTextMutationSummary",value:function(){var t=this.getTextChangesFromCharacterData(),e=t.additions,n=t.deletions,r=this.getTextChangesFromChildList();Array.from(r.additions).forEach((function(t){Array.from(e).includes(t)||e.push(t)})),n.push.apply(n,d(Array.from(r.deletions||[])));var i={},o=e.join("");o&&(i.textAdded=o);var a=n.join("");return a&&(i.textDeleted=a),i}},{key:"getMutationsByType",value:function(t){return Array.from(this.mutations).filter((function(e){return e.type===t}))}},{key:"getTextChangesFromChildList",value:function(){var t,e,n=[],r=[];return Array.from(this.getMutationsByType("childList")).forEach((function(t){n.push.apply(n,d(Array.from(t.addedNodes||[]))),r.push.apply(r,d(Array.from(t.removedNodes||[])))})),0===n.length&&1===r.length&&at(r[0])?(t=[],e=["\n"]):(t=hr(n),e=hr(r)),{additions:t.filter((function(t,n){return t!==e[n]})).map(le),deletions:e.filter((function(e,n){return e!==t[n]})).map(le)}}},{key:"getTextChangesFromCharacterData",value:function(){var t,e,n=this.getMutationsByType("characterData");if(n.length){var r=n[0],i=n[n.length-1],o=function(t,e){var n,r,i,o;return t=kt.box(t),(e=kt.box(e)).length<t.length?(o=(n=u(he(t,e),2))[0],i=n[1]):(i=(r=u(he(e,t),2))[0],o=r[1]),{added:i,removed:o}}(le(r.oldValue),le(i.target.data));t=o.added,e=o.removed}return{additions:t?[t]:[],deletions:e?[e]:[]}}}]),n}(vt),hr=function t(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],r=0,i=Array.from(e);r<i.length;r++){var o=i[r];switch(o.nodeType){case Node.TEXT_NODE:n.push(o.data);break;case Node.ELEMENT_NODE:"br"===et(o)?n.push("\n"):n.push.apply(n,d(Array.from(t(o.childNodes)||[])))}}return n},fr=function(t){m(n,t);var e=y(n);function n(t){var r;return w(this,n),(r=e.apply(this,arguments)).file=t,r}return S(n,[{key:"perform",value:function(t){var e=this,n=new FileReader;return n.onerror=function(){return t(!1)},n.onload=function(){n.onerror=null;try{n.abort()}catch(t){}return t(!0,e.file)},n.readAsArrayBuffer(this.file)}}]),n}(Ee),pr=function(){function t(e){w(this,t),this.element=e}return S(t,[{key:"shouldIgnore",value:function(t){return!!F.samsungAndroid&&(this.previousEvent=this.event,this.event=t,this.checkSamsungKeyboardBuggyModeStart(),this.checkSamsungKeyboardBuggyModeEnd(),this.buggyMode)}},{key:"checkSamsungKeyboardBuggyModeStart",value:function(){this.insertingLongTextAfterUnidentifiedChar()&&mr(this.element.innerText,this.event.data)&&(this.buggyMode=!0,this.event.preventDefault())}},{key:"checkSamsungKeyboardBuggyModeEnd",value:function(){this.buggyMode&&"insertText"!==this.event.inputType&&(this.buggyMode=!1)}},{key:"insertingLongTextAfterUnidentifiedChar",value:function(){var t;return this.isBeforeInputInsertText()&&this.previousEventWasUnidentifiedKeydown()&&(null===(t=this.event.data)||void 0===t?void 0:t.length)>50}},{key:"isBeforeInputInsertText",value:function(){return"beforeinput"===this.event.type&&"insertText"===this.event.inputType}},{key:"previousEventWasUnidentifiedKeydown",value:function(){var t,e;return"keydown"===(null===(t=this.previousEvent)||void 0===t?void 0:t.type)&&"Unidentified"===(null===(e=this.previousEvent)||void 0===e?void 0:e.key)}}]),t}(),mr=function(t,e){return yr(t)===yr(e)},gr=new RegExp("(".concat("\ufffc","|").concat(H,"|").concat(z,"|\\s)+"),"g"),yr=function(t){return t.replace(gr," ").trim()},vr=function(t){m(n,t);var e=y(n);function n(t){var r;for(var i in w(this,n),(r=e.apply(this,arguments)).element=t,r.mutationObserver=new dr(r.element),r.mutationObserver.delegate=v(r),r.flakyKeyboardDetector=new pr(r.element),r.constructor.events)q(i,{onElement:r.element,withCallback:r.handlerFor(i)});return r}return S(n,[{key:"elementDidMutate",value:function(t){}},{key:"editorWillSyncDocumentView",value:function(){return this.mutationObserver.stop()}},{key:"editorDidSyncDocumentView",value:function(){return this.mutationObserver.start()}},{key:"requestRender",value:function(){var t,e;return null===(t=this.delegate)||void 0===t||null===(e=t.inputControllerDidRequestRender)||void 0===e?void 0:e.call(t)}},{key:"requestReparse",value:function(){var t,e;return null===(t=this.delegate)||void 0===t||null===(e=t.inputControllerDidRequestReparse)||void 0===e||e.call(t),this.requestRender()}},{key:"attachFiles",value:function(t){var e=this,n=Array.from(t).map((function(t){return new fr(t)}));return Promise.all(n).then((function(t){e.handleInput((function(){var e,n;return null===(e=this.delegate)||void 0===e||e.inputControllerWillAttachFiles(),null===(n=this.responder)||void 0===n||n.insertFiles(t),this.requestRender()}))}))}},{key:"handlerFor",value:function(t){var e=this;return function(n){n.defaultPrevented||e.handleInput((function(){if(!Z(e.element)){if(e.flakyKeyboardDetector.shouldIgnore(n))return;e.eventName=t,e.constructor.events[t].call(e,n)}}))}}},{key:"handleInput",value:function(t){try{var e;null===(e=this.delegate)||void 0===e||e.inputControllerWillHandleInput(),t.call(this)}finally{var n;null===(n=this.delegate)||void 0===n||n.inputControllerDidHandleInput()}}},{key:"createLinkHTML",value:function(t,e){var n=document.createElement("a");return n.href=t,n.textContent=e||t,n.outerHTML}}]),n}(vt);We(vr,"events",{});var _r=yt.browser,br=yt.keyNames,wr=0,kr=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).resetInputSummary(),t}return S(n,[{key:"setInputSummary",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var e in this.inputSummary.eventName=this.eventName,t){var n=t[e];this.inputSummary[e]=n}return this.inputSummary}},{key:"resetInputSummary",value:function(){this.inputSummary={}}},{key:"reset",value:function(){return this.resetInputSummary(),re.reset()}},{key:"elementDidMutate",value:function(t){var e,n;return this.isComposing()?null===(e=this.delegate)||void 0===e||null===(n=e.inputControllerDidAllowUnhandledInput)||void 0===n?void 0:n.call(e):this.handleInput((function(){return this.mutationIsSignificant(t)&&(this.mutationIsExpected(t)?this.requestRender():this.requestReparse()),this.reset()}))}},{key:"mutationIsExpected",value:function(t){var e=t.textAdded,n=t.textDeleted;if(this.inputSummary.preferDocument)return!0;var r=null!=e?e===this.inputSummary.textAdded:!this.inputSummary.textAdded,i=null!=n?this.inputSummary.didDelete:!this.inputSummary.didDelete,o=["\n"," \n"].includes(e)&&!r,a="\n"===n&&!i;if(o&&!a||a&&!o){var s=this.getSelectedRange();if(s){var u,l=o?e.replace(/\n$/,"").length||-1:(null==e?void 0:e.length)||1;if(null!==(u=this.responder)&&void 0!==u&&u.positionIsBlockBreak(s[1]+l))return!0}}return r&&i}},{key:"mutationIsSignificant",value:function(t){var e,n=Object.keys(t).length>0,r=""===(null===(e=this.compositionInput)||void 0===e?void 0:e.getEndData());return n||!r}},{key:"getCompositionInput",value:function(){if(this.isComposing())return this.compositionInput;this.compositionInput=new Dr(this)}},{key:"isComposing",value:function(){return this.compositionInput&&!this.compositionInput.isEnded()}},{key:"deleteInDirection",value:function(t,e){var n;return!1!==(null===(n=this.responder)||void 0===n?void 0:n.deleteInDirection(t))?this.setInputSummary({didDelete:!0}):e?(e.preventDefault(),this.requestRender()):void 0}},{key:"serializeSelectionToDataTransfer",value:function(t){var e;if(function(t){if(null==t||!t.setData)return!1;for(var e in Ut){var n=Ut[e];try{if(t.setData(e,n),!t.getData(e)===n)return!1}catch(t){return!1}}return!0}(t)){var n=null===(e=this.responder)||void 0===e?void 0:e.getSelectedDocument().toSerializableDocument();return t.setData("application/x-trix-document",JSON.stringify(n)),t.setData("text/html",Fe.render(n).innerHTML),t.setData("text/plain",n.toString().replace(/\n$/,"")),!0}}},{key:"canAcceptDataTransfer",value:function(t){var e={};return Array.from((null==t?void 0:t.types)||[]).forEach((function(t){e[t]=!0})),e.Files||e["application/x-trix-document"]||e["text/html"]||e["text/plain"]}},{key:"getPastedHTMLUsingHiddenElement",value:function(t){var e=this,n=this.getSelectedRange(),r={position:"absolute",left:"".concat(window.pageXOffset,"px"),top:"".concat(window.pageYOffset,"px"),opacity:0},i=nt({style:r,tagName:"div",editable:!0});return document.body.appendChild(i),i.focus(),requestAnimationFrame((function(){var r=i.innerHTML;return Q(i),e.setSelectedRange(n),t(r)}))}}]),n}(vr);We(kr,"events",{keydown:function(t){this.isComposing()||this.resetInputSummary(),this.inputSummary.didInput=!0;var e=br[t.keyCode];if(e){var n,r=this.keys;["ctrl","alt","shift","meta"].forEach((function(e){var n;t["".concat(e,"Key")]&&("ctrl"===e&&(e="control"),r=null===(n=r)||void 0===n?void 0:n[e])})),null!=(null===(n=r)||void 0===n?void 0:n[e])&&(this.setInputSummary({keyName:e}),re.reset(),r[e].call(this,t))}if(Gt(t)){var i=String.fromCharCode(t.keyCode).toLowerCase();if(i){var o,a=["alt","shift"].map((function(e){if(t["".concat(e,"Key")])return e})).filter((function(t){return t}));a.push(i),null!==(o=this.delegate)&&void 0!==o&&o.inputControllerDidReceiveKeyboardCommand(a)&&t.preventDefault()}}},keypress:function(t){if(null==this.inputSummary.eventName&&!t.metaKey&&(!t.ctrlKey||t.altKey)){var e,n,r=Cr(t);return r?(null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.insertString(r),this.setInputSummary({textAdded:r,didDelete:this.selectionIsExpanded()})):void 0}},textInput:function(t){var e=t.data,n=this.inputSummary.textAdded;if(n&&n!==e&&n.toUpperCase()===e){var r,i=this.getSelectedRange();return this.setSelectedRange([i[0],i[1]+n.length]),null===(r=this.responder)||void 0===r||r.insertString(e),this.setInputSummary({textAdded:e}),this.setSelectedRange(i)}},dragenter:function(t){t.preventDefault()},dragstart:function(t){var e,n;return this.serializeSelectionToDataTransfer(t.dataTransfer),this.draggedRange=this.getSelectedRange(),null===(e=this.delegate)||void 0===e||null===(n=e.inputControllerDidStartDrag)||void 0===n?void 0:n.call(e)},dragover:function(t){if(this.draggedRange||this.canAcceptDataTransfer(t.dataTransfer)){t.preventDefault();var e,n,r={x:t.clientX,y:t.clientY};if(!Zt(r,this.draggingPoint))return this.draggingPoint=r,null===(e=this.delegate)||void 0===e||null===(n=e.inputControllerDidReceiveDragOverPoint)||void 0===n?void 0:n.call(e,this.draggingPoint)}},dragend:function(t){var e,n;null===(e=this.delegate)||void 0===e||null===(n=e.inputControllerDidCancelDrag)||void 0===n||n.call(e),this.draggedRange=null,this.draggingPoint=null},drop:function(t){var e,n;t.preventDefault();var r=null===(e=t.dataTransfer)||void 0===e?void 0:e.files,i=t.dataTransfer.getData("application/x-trix-document"),o={x:t.clientX,y:t.clientY};if(null===(n=this.responder)||void 0===n||n.setLocationRangeFromPointRange(o),null!=r&&r.length)this.attachFiles(r);else if(this.draggedRange){var a,s;null===(a=this.delegate)||void 0===a||a.inputControllerWillMoveText(),null===(s=this.responder)||void 0===s||s.moveTextFromRange(this.draggedRange),this.draggedRange=null,this.requestRender()}else if(i){var u,l=dn.fromJSONString(i);null===(u=this.responder)||void 0===u||u.insertDocument(l),this.requestRender()}this.draggedRange=null,this.draggingPoint=null},cut:function(t){var e,n;if(null!==(e=this.responder)&&void 0!==e&&e.selectionIsExpanded()&&(this.serializeSelectionToDataTransfer(t.clipboardData)&&t.preventDefault(),null===(n=this.delegate)||void 0===n||n.inputControllerWillCutText(),this.deleteInDirection("backward"),t.defaultPrevented))return this.requestRender()},copy:function(t){var e;null!==(e=this.responder)&&void 0!==e&&e.selectionIsExpanded()&&this.serializeSelectionToDataTransfer(t.clipboardData)&&t.preventDefault()},paste:function(t){var e=this,n=t.clipboardData||t.testClipboardData,r={clipboard:n};if(n&&!xr(t)){var i,o,a,s,u=n.getData("URL"),l=n.getData("text/html"),c=n.getData("public.url-name");if(u)r.type="text/html",s=c?de(c).trim():u,r.html=this.createLinkHTML(u,s),null===(i=this.delegate)||void 0===i||i.inputControllerWillPaste(r),this.setInputSummary({textAdded:s,didDelete:this.selectionIsExpanded()}),null===(o=this.responder)||void 0===o||o.insertHTML(r.html),this.requestRender(),null===(a=this.delegate)||void 0===a||a.inputControllerDidPaste(r);else if(qt(n)){var d,h,f;r.type="text/plain",r.string=n.getData("text/plain"),null===(d=this.delegate)||void 0===d||d.inputControllerWillPaste(r),this.setInputSummary({textAdded:r.string,didDelete:this.selectionIsExpanded()}),null===(h=this.responder)||void 0===h||h.insertString(r.string),this.requestRender(),null===(f=this.delegate)||void 0===f||f.inputControllerDidPaste(r)}else if(l){var p,m,g;r.type="text/html",r.html=l,null===(p=this.delegate)||void 0===p||p.inputControllerWillPaste(r),null===(m=this.responder)||void 0===m||m.insertHTML(r.html),this.requestRender(),null===(g=this.delegate)||void 0===g||g.inputControllerDidPaste(r)}else if(Array.from(n.types).includes("Files")){var y,v,_=null===(y=n.items)||void 0===y||null===(y=y[0])||void 0===y||null===(v=y.getAsFile)||void 0===v?void 0:v.call(y);if(_){var b,w,k,S=Sr(_);!_.name&&S&&(_.name="pasted-file-".concat(++wr,".").concat(S)),r.type="File",r.file=_,null===(b=this.delegate)||void 0===b||b.inputControllerWillAttachFiles(),null===(w=this.responder)||void 0===w||w.insertFile(r.file),this.requestRender(),null===(k=this.delegate)||void 0===k||k.inputControllerDidPaste(r)}}t.preventDefault()}else this.getPastedHTMLUsingHiddenElement((function(t){var n,i,o;return r.type="text/html",r.html=t,null===(n=e.delegate)||void 0===n||n.inputControllerWillPaste(r),null===(i=e.responder)||void 0===i||i.insertHTML(r.html),e.requestRender(),null===(o=e.delegate)||void 0===o?void 0:o.inputControllerDidPaste(r)}))},compositionstart:function(t){return this.getCompositionInput().start(t.data)},compositionupdate:function(t){return this.getCompositionInput().update(t.data)},compositionend:function(t){return this.getCompositionInput().end(t.data)},beforeinput:function(t){this.inputSummary.didInput=!0},input:function(t){return this.inputSummary.didInput=!0,t.stopPropagation()}}),We(kr,"keys",{backspace:function(t){var e;return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),this.deleteInDirection("backward",t)},delete:function(t){var e;return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),this.deleteInDirection("forward",t)},return:function(t){var e,n;return this.setInputSummary({preferDocument:!0}),null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n?void 0:n.insertLineBreak()},tab:function(t){var e,n;null!==(e=this.responder)&&void 0!==e&&e.canIncreaseNestingLevel()&&(null===(n=this.responder)||void 0===n||n.increaseNestingLevel(),this.requestRender(),t.preventDefault())},left:function(t){var e;if(this.selectionIsInCursorTarget())return t.preventDefault(),null===(e=this.responder)||void 0===e?void 0:e.moveCursorInDirection("backward")},right:function(t){var e;if(this.selectionIsInCursorTarget())return t.preventDefault(),null===(e=this.responder)||void 0===e?void 0:e.moveCursorInDirection("forward")},control:{d:function(t){var e;return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),this.deleteInDirection("forward",t)},h:function(t){var e;return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),this.deleteInDirection("backward",t)},o:function(t){var e,n;return t.preventDefault(),null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.insertString("\n",{updatePosition:!1}),this.requestRender()}},shift:{return:function(t){var e,n;null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.insertString("\n"),this.requestRender(),t.preventDefault()},tab:function(t){var e,n;null!==(e=this.responder)&&void 0!==e&&e.canDecreaseNestingLevel()&&(null===(n=this.responder)||void 0===n||n.decreaseNestingLevel(),this.requestRender(),t.preventDefault())},left:function(t){if(this.selectionIsInCursorTarget())return t.preventDefault(),this.expandSelectionInDirection("backward")},right:function(t){if(this.selectionIsInCursorTarget())return t.preventDefault(),this.expandSelectionInDirection("forward")}},alt:{backspace:function(t){var e;return this.setInputSummary({preferDocument:!1}),null===(e=this.delegate)||void 0===e?void 0:e.inputControllerWillPerformTyping()}},meta:{backspace:function(t){var e;return this.setInputSummary({preferDocument:!1}),null===(e=this.delegate)||void 0===e?void 0:e.inputControllerWillPerformTyping()}}}),kr.proxyMethod("responder?.getSelectedRange"),kr.proxyMethod("responder?.setSelectedRange"),kr.proxyMethod("responder?.expandSelectionInDirection"),kr.proxyMethod("responder?.selectionIsInCursorTarget"),kr.proxyMethod("responder?.selectionIsExpanded");var Sr=function(t){var e;return null===(e=t.type)||void 0===e||null===(e=e.match(/\/(\w+)$/))||void 0===e?void 0:e[1]},Er=!(null===(Jn=" ".codePointAt)||void 0===Jn||!Jn.call(" ",0)),Cr=function(t){return t.key&&Er&&t.key.codePointAt(0)===t.keyCode?t.key:(null===t.which?e=t.keyCode:0!==t.which&&0!==t.charCode&&(e=t.charCode),null!=e&&"escape"!==br[e]?kt.fromCodepoints([e]).toString():void 0);var e},xr=function(t){var e=t.clipboardData;if(e){if(e.types.includes("text/html")){var n,r=s(e.types);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=/^CorePasteboardFlavorType/.test(i),a=/^dyn\./.test(i)&&e.getData(i);if(o||a)return!0}}catch(c){r.e(c)}finally{r.f()}return!1}var u=e.types.includes("com.apple.webarchive"),l=e.types.includes("com.apple.flat-rtfd");return u||l}},Dr=function(t){m(n,t);var e=y(n);function n(t){var r;return w(this,n),(r=e.apply(this,arguments)).inputController=t,r.responder=r.inputController.responder,r.delegate=r.inputController.delegate,r.inputSummary=r.inputController.inputSummary,r.data={},r}return S(n,[{key:"start",value:function(t){var e,n;(this.data.start=t,this.isSignificant())&&("keypress"===this.inputSummary.eventName&&this.inputSummary.textAdded&&(null===(n=this.responder)||void 0===n||n.deleteInDirection("left")),this.selectionIsExpanded()||(this.insertPlaceholder(),this.requestRender()),this.range=null===(e=this.responder)||void 0===e?void 0:e.getSelectedRange())}},{key:"update",value:function(t){if(this.data.update=t,this.isSignificant()){var e=this.selectPlaceholder();e&&(this.forgetPlaceholder(),this.range=e)}}},{key:"end",value:function(t){return this.data.end=t,this.isSignificant()?(this.forgetPlaceholder(),this.canApplyToDocument()?(this.setInputSummary({preferDocument:!0,didInput:!1}),null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.setSelectedRange(this.range),null===(r=this.responder)||void 0===r||r.insertString(this.data.end),null===(i=this.responder)||void 0===i?void 0:i.setSelectedRange(this.range[0]+this.data.end.length)):null!=this.data.start||null!=this.data.update?(this.requestReparse(),this.inputController.reset()):void 0):this.inputController.reset();var e,n,r,i}},{key:"getEndData",value:function(){return this.data.end}},{key:"isEnded",value:function(){return null!=this.getEndData()}},{key:"isSignificant",value:function(){return!_r.composesExistingText||this.inputSummary.didInput}},{key:"canApplyToDocument",value:function(){var t,e;return 0===(null===(t=this.data.start)||void 0===t?void 0:t.length)&&(null===(e=this.data.end)||void 0===e?void 0:e.length)>0&&this.range}}]),n}(vt);Dr.proxyMethod("inputController.setInputSummary"),Dr.proxyMethod("inputController.requestRender"),Dr.proxyMethod("inputController.requestReparse"),Dr.proxyMethod("responder?.selectionIsExpanded"),Dr.proxyMethod("responder?.insertPlaceholder"),Dr.proxyMethod("responder?.selectPlaceholder"),Dr.proxyMethod("responder?.forgetPlaceholder");var Ar=function(t){m(n,t);var e=y(n);function n(){var t;return w(this,n),(t=e.apply(this,arguments)).render=t.render.bind(v(t)),t}return S(n,[{key:"elementDidMutate",value:function(){return this.scheduledRender?this.composing?null===(t=this.delegate)||void 0===t||null===(e=t.inputControllerDidAllowUnhandledInput)||void 0===e?void 0:e.call(t):void 0:this.reparse();var t,e}},{key:"scheduleRender",value:function(){return this.scheduledRender?this.scheduledRender:this.scheduledRender=requestAnimationFrame(this.render)}},{key:"render",value:function(){var t,e;cancelAnimationFrame(this.scheduledRender),this.scheduledRender=null,this.composing||null===(e=this.delegate)||void 0===e||e.render(),null===(t=this.afterRender)||void 0===t||t.call(this),this.afterRender=null}},{key:"reparse",value:function(){var t;return null===(t=this.delegate)||void 0===t?void 0:t.reparse()}},{key:"insertString",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0;return null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertString(e,n)}))}},{key:"toggleAttributeIfSupported",value:function(t){var e;if(Nt().includes(t))return null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var e;return null===(e=this.responder)||void 0===e?void 0:e.toggleCurrentAttribute(t)}))}},{key:"activateAttributeIfSupported",value:function(t,e){var n;if(Nt().includes(t))return null===(n=this.delegate)||void 0===n||n.inputControllerWillPerformFormatting(t),this.withTargetDOMRange((function(){var n;return null===(n=this.responder)||void 0===n?void 0:n.setCurrentAttribute(t,e)}))}},{key:"deleteInDirection",value:function(t){var e,n=this;(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{recordUndoEntry:!0}).recordUndoEntry&&(null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping());var r=function(){var e;return null===(e=n.responder)||void 0===e?void 0:e.deleteInDirection(t)},i=this.getTargetDOMRange({minLength:2});return i?this.withTargetDOMRange(i,r):r()}},{key:"withTargetDOMRange",value:function(t,e){var n;return"function"==typeof t&&(e=t,t=this.getTargetDOMRange()),t?null===(n=this.responder)||void 0===n?void 0:n.withTargetDOMRange(t,e.bind(this)):(re.reset(),e.call(this))}},{key:"getTargetDOMRange",value:function(){var t,e,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{minLength:0}).minLength,r=null===(t=(e=this.event).getTargetRanges)||void 0===t?void 0:t.call(e);if(r&&r.length){var i=Tr(r[0]);if(0===n||i.toString().length>=n)return i}}},{key:"withEvent",value:function(t,e){var n;this.event=t;try{n=e.call(this)}finally{this.event=null}return n}}]),n}(vr);We(Ar,"events",{keydown:function(t){if(Gt(t)){var e,n=Ir(t);null!==(e=this.delegate)&&void 0!==e&&e.inputControllerDidReceiveKeyboardCommand(n)&&t.preventDefault()}else{var r=t.key;t.altKey&&(r+="+Alt"),t.shiftKey&&(r+="+Shift");var i=this.constructor.keys[r];if(i)return this.withEvent(t,i)}},paste:function(t){var e,n,r,i,o,a,s,u,l=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("URL");return Lr(t)?(t.preventDefault(),this.attachFiles(t.clipboardData.files)):Or(t)?(t.preventDefault(),n={type:"text/plain",string:t.clipboardData.getData("text/plain")},null===(r=this.delegate)||void 0===r||r.inputControllerWillPaste(n),null===(i=this.responder)||void 0===i||i.insertString(n.string),this.render(),null===(o=this.delegate)||void 0===o?void 0:o.inputControllerDidPaste(n)):l?(t.preventDefault(),n={type:"text/html",html:this.createLinkHTML(l)},null===(a=this.delegate)||void 0===a||a.inputControllerWillPaste(n),null===(s=this.responder)||void 0===s||s.insertHTML(n.html),this.render(),null===(u=this.delegate)||void 0===u?void 0:u.inputControllerDidPaste(n)):void 0},beforeinput:function(t){var e=this.constructor.inputTypes[t.inputType];e&&(this.withEvent(t,e),this.scheduleRender())},input:function(t){re.reset()},dragstart:function(t){var e,n;null!==(e=this.responder)&&void 0!==e&&e.selectionContainsAttachments()&&(t.dataTransfer.setData("application/x-trix-dragging",!0),this.dragging={range:null===(n=this.responder)||void 0===n?void 0:n.getSelectedRange(),point:Pr(t)})},dragenter:function(t){Mr(t)&&t.preventDefault()},dragover:function(t){if(this.dragging){t.preventDefault();var e,n=Pr(t);if(!Zt(n,this.dragging.point))return this.dragging.point=n,null===(e=this.responder)||void 0===e?void 0:e.setLocationRangeFromPointRange(n)}else Mr(t)&&t.preventDefault()},drop:function(t){var e,n;if(this.dragging)return t.preventDefault(),null===(e=this.delegate)||void 0===e||e.inputControllerWillMoveText(),null===(n=this.responder)||void 0===n||n.moveTextFromRange(this.dragging.range),this.dragging=null,this.scheduleRender();if(Mr(t)){var r;t.preventDefault();var i=Pr(t);return null===(r=this.responder)||void 0===r||r.setLocationRangeFromPointRange(i),this.attachFiles(t.dataTransfer.files)}},dragend:function(){var t;this.dragging&&(null===(t=this.responder)||void 0===t||t.setSelectedRange(this.dragging.range),this.dragging=null)},compositionend:function(t){this.composing&&(this.composing=!1,F.recentAndroid||this.scheduleRender())}}),We(Ar,"keys",{ArrowLeft:function(){var t,e;if(null!==(t=this.responder)&&void 0!==t&&t.shouldManageMovingCursorInDirection("backward"))return this.event.preventDefault(),null===(e=this.responder)||void 0===e?void 0:e.moveCursorInDirection("backward")},ArrowRight:function(){var t,e;if(null!==(t=this.responder)&&void 0!==t&&t.shouldManageMovingCursorInDirection("forward"))return this.event.preventDefault(),null===(e=this.responder)||void 0===e?void 0:e.moveCursorInDirection("forward")},Backspace:function(){var t,e,n;if(null!==(t=this.responder)&&void 0!==t&&t.shouldManageDeletingInDirection("backward"))return this.event.preventDefault(),null===(e=this.delegate)||void 0===e||e.inputControllerWillPerformTyping(),null===(n=this.responder)||void 0===n||n.deleteInDirection("backward"),this.render()},Tab:function(){var t,e;if(null!==(t=this.responder)&&void 0!==t&&t.canIncreaseNestingLevel())return this.event.preventDefault(),null===(e=this.responder)||void 0===e||e.increaseNestingLevel(),this.render()},"Tab+Shift":function(){var t,e;if(null!==(t=this.responder)&&void 0!==t&&t.canDecreaseNestingLevel())return this.event.preventDefault(),null===(e=this.responder)||void 0===e||e.decreaseNestingLevel(),this.render()}}),We(Ar,"inputTypes",{deleteByComposition:function(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteByCut:function(){return this.deleteInDirection("backward")},deleteByDrag:function(){return this.event.preventDefault(),this.withTargetDOMRange((function(){var t;this.deleteByDragRange=null===(t=this.responder)||void 0===t?void 0:t.getSelectedRange()}))},deleteCompositionText:function(){return this.deleteInDirection("backward",{recordUndoEntry:!1})},deleteContent:function(){return this.deleteInDirection("backward")},deleteContentBackward:function(){return this.deleteInDirection("backward")},deleteContentForward:function(){return this.deleteInDirection("forward")},deleteEntireSoftLine:function(){return this.deleteInDirection("forward")},deleteHardLineBackward:function(){return this.deleteInDirection("backward")},deleteHardLineForward:function(){return this.deleteInDirection("forward")},deleteSoftLineBackward:function(){return this.deleteInDirection("backward")},deleteSoftLineForward:function(){return this.deleteInDirection("forward")},deleteWordBackward:function(){return this.deleteInDirection("backward")},deleteWordForward:function(){return this.deleteInDirection("forward")},formatBackColor:function(){return this.activateAttributeIfSupported("backgroundColor",this.event.data)},formatBold:function(){return this.toggleAttributeIfSupported("bold")},formatFontColor:function(){return this.activateAttributeIfSupported("color",this.event.data)},formatFontName:function(){return this.activateAttributeIfSupported("font",this.event.data)},formatIndent:function(){var t;if(null!==(t=this.responder)&&void 0!==t&&t.canIncreaseNestingLevel())return this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.increaseNestingLevel()}))},formatItalic:function(){return this.toggleAttributeIfSupported("italic")},formatJustifyCenter:function(){return this.toggleAttributeIfSupported("justifyCenter")},formatJustifyFull:function(){return this.toggleAttributeIfSupported("justifyFull")},formatJustifyLeft:function(){return this.toggleAttributeIfSupported("justifyLeft")},formatJustifyRight:function(){return this.toggleAttributeIfSupported("justifyRight")},formatOutdent:function(){var t;if(null!==(t=this.responder)&&void 0!==t&&t.canDecreaseNestingLevel())return this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.decreaseNestingLevel()}))},formatRemove:function(){this.withTargetDOMRange((function(){for(var t in null===(e=this.responder)||void 0===e?void 0:e.getCurrentAttributes()){var e,n;null===(n=this.responder)||void 0===n||n.removeCurrentAttribute(t)}}))},formatSetBlockTextDirection:function(){return this.activateAttributeIfSupported("blockDir",this.event.data)},formatSetInlineTextDirection:function(){return this.activateAttributeIfSupported("textDir",this.event.data)},formatStrikeThrough:function(){return this.toggleAttributeIfSupported("strike")},formatSubscript:function(){return this.toggleAttributeIfSupported("sub")},formatSuperscript:function(){return this.toggleAttributeIfSupported("sup")},formatUnderline:function(){return this.toggleAttributeIfSupported("underline")},historyRedo:function(){var t;return null===(t=this.delegate)||void 0===t?void 0:t.inputControllerWillPerformRedo()},historyUndo:function(){var t;return null===(t=this.delegate)||void 0===t?void 0:t.inputControllerWillPerformUndo()},insertCompositionText:function(){return this.composing=!0,this.insertString(this.event.data)},insertFromComposition:function(){return this.composing=!1,this.insertString(this.event.data)},insertFromDrop:function(){var t,e=this.deleteByDragRange;if(e)return this.deleteByDragRange=null,null===(t=this.delegate)||void 0===t||t.inputControllerWillMoveText(),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.moveTextFromRange(e)}))},insertFromPaste:function(){var t,e=this,n=this.event.dataTransfer,r={dataTransfer:n},i=n.getData("URL"),o=n.getData("text/html");if(i){var a,s;this.event.preventDefault(),r.type="text/html";var u=n.getData("public.url-name");s=u?de(u).trim():i,r.html=this.createLinkHTML(i,s),null===(a=this.delegate)||void 0===a||a.inputControllerWillPaste(r),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertHTML(r.html)})),this.afterRender=function(){var t;return null===(t=e.delegate)||void 0===t?void 0:t.inputControllerDidPaste(r)}}else if(qt(n)){var l;r.type="text/plain",r.string=n.getData("text/plain"),null===(l=this.delegate)||void 0===l||l.inputControllerWillPaste(r),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertString(r.string)})),this.afterRender=function(){var t;return null===(t=e.delegate)||void 0===t?void 0:t.inputControllerDidPaste(r)}}else if(o){var c;this.event.preventDefault(),r.type="text/html",r.html=o,null===(c=this.delegate)||void 0===c||c.inputControllerWillPaste(r),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertHTML(r.html)})),this.afterRender=function(){var t;return null===(t=e.delegate)||void 0===t?void 0:t.inputControllerDidPaste(r)}}else if(null!==(t=n.files)&&void 0!==t&&t.length){var d;r.type="File",r.file=n.files[0],null===(d=this.delegate)||void 0===d||d.inputControllerWillPaste(r),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertFile(r.file)})),this.afterRender=function(){var t;return null===(t=e.delegate)||void 0===t?void 0:t.inputControllerDidPaste(r)}}},insertFromYank:function(){return this.insertString(this.event.data)},insertLineBreak:function(){return this.insertString("\n")},insertLink:function(){return this.activateAttributeIfSupported("href",this.event.data)},insertOrderedList:function(){return this.toggleAttributeIfSupported("number")},insertParagraph:function(){var t;return null===(t=this.delegate)||void 0===t||t.inputControllerWillPerformTyping(),this.withTargetDOMRange((function(){var t;return null===(t=this.responder)||void 0===t?void 0:t.insertLineBreak()}))},insertReplacementText:function(){return this.insertString(this.event.dataTransfer.getData("text/plain"),{updatePosition:!1})},insertText:function(){var t;return this.insertString(this.event.data||(null===(t=this.event.dataTransfer)||void 0===t?void 0:t.getData("text/plain")))},insertTranspose:function(){return this.insertString(this.event.data)},insertUnorderedList:function(){return this.toggleAttributeIfSupported("bullet")}});var Tr=function(t){var e=document.createRange();return e.setStart(t.startContainer,t.startOffset),e.setEnd(t.endContainer,t.endOffset),e},Mr=function(t){var e;return Array.from((null===(e=t.dataTransfer)||void 0===e?void 0:e.types)||[]).includes("Files")},Lr=function(t){var e=t.clipboardData;if(e)return e.types.includes("Files")&&1===e.types.length&&e.files.length>=1},Or=function(t){var e=t.clipboardData;if(e)return e.types.includes("text/plain")&&1===e.types.length},Ir=function(t){var e=[];return t.altKey&&e.push("alt"),t.shiftKey&&e.push("shift"),e.push(t.key),e},Pr=function(t){return{x:t.clientX,y:t.clientY}},Rr="[data-trix-attribute]",Nr="[data-trix-action]",Fr="".concat(Rr,", ").concat(Nr),jr="[data-trix-dialog]",Br="".concat(jr,"[data-trix-active]"),Yr="".concat(jr," [data-trix-method]"),Hr="".concat(jr," [data-trix-input]"),zr=function(t,e){return e||(e=Vr(t)),t.querySelector("[data-trix-input][name='".concat(e,"']"))},Wr=function(t){return t.getAttribute("data-trix-action")},Vr=function(t){return t.getAttribute("data-trix-attribute")||t.getAttribute("data-trix-dialog-attribute")},Ur=function(t){m(n,t);var e=y(n);function n(t){var r;return w(this,n),(r=e.call(this,t)).didClickActionButton=r.didClickActionButton.bind(v(r)),r.didClickAttributeButton=r.didClickAttributeButton.bind(v(r)),r.didClickDialogButton=r.didClickDialogButton.bind(v(r)),r.didKeyDownDialogInput=r.didKeyDownDialogInput.bind(v(r)),r.element=t,r.attributes={},r.actions={},r.resetDialogInputs(),q("mousedown",{onElement:r.element,matchingSelector:Nr,withCallback:r.didClickActionButton}),q("mousedown",{onElement:r.element,matchingSelector:Rr,withCallback:r.didClickAttributeButton}),q("click",{onElement:r.element,matchingSelector:Fr,preventDefault:!0}),q("click",{onElement:r.element,matchingSelector:Yr,withCallback:r.didClickDialogButton}),q("keydown",{onElement:r.element,matchingSelector:Hr,withCallback:r.didKeyDownDialogInput}),r}return S(n,[{key:"didClickActionButton",value:function(t,e){var n;null===(n=this.delegate)||void 0===n||n.toolbarDidClickButton(),t.preventDefault();var r,i=Wr(e);return this.getDialog(i)?this.toggleDialog(i):null===(r=this.delegate)||void 0===r?void 0:r.toolbarDidInvokeAction(i)}},{key:"didClickAttributeButton",value:function(t,e){var n;null===(n=this.delegate)||void 0===n||n.toolbarDidClickButton(),t.preventDefault();var r,i=Vr(e);return this.getDialog(i)?this.toggleDialog(i):null===(r=this.delegate)||void 0===r||r.toolbarDidToggleAttribute(i),this.refreshAttributeButtons()}},{key:"didClickDialogButton",value:function(t,e){var n=K(e,{matchingSelector:jr});return this[e.getAttribute("data-trix-method")].call(this,n)}},{key:"didKeyDownDialogInput",value:function(t,e){if(13===t.keyCode){t.preventDefault();var n=e.getAttribute("name"),r=this.getDialog(n);this.setAttribute(r)}if(27===t.keyCode)return t.preventDefault(),this.hideDialog()}},{key:"updateActions",value:function(t){return this.actions=t,this.refreshActionButtons()}},{key:"refreshActionButtons",value:function(){var t=this;return this.eachActionButton((function(e,n){e.disabled=!1===t.actions[n]}))}},{key:"eachActionButton",value:function(t){return Array.from(this.element.querySelectorAll(Nr)).map((function(e){return t(e,Wr(e))}))}},{key:"updateAttributes",value:function(t){return this.attributes=t,this.refreshAttributeButtons()}},{key:"refreshAttributeButtons",value:function(){var t=this;return this.eachAttributeButton((function(e,n){return e.disabled=!1===t.attributes[n],t.attributes[n]||t.dialogIsVisible(n)?(e.setAttribute("data-trix-active",""),e.classList.add("trix-active")):(e.removeAttribute("data-trix-active"),e.classList.remove("trix-active"))}))}},{key:"eachAttributeButton",value:function(t){return Array.from(this.element.querySelectorAll(Rr)).map((function(e){return t(e,Vr(e))}))}},{key:"applyKeyboardCommand",value:function(t){for(var e=JSON.stringify(t.sort()),n=0,r=Array.from(this.element.querySelectorAll("[data-trix-key]"));n<r.length;n++){var i=r[n],o=i.getAttribute("data-trix-key").split("+");if(JSON.stringify(o.sort())===e)return G("mousedown",{onElement:i}),!0}return!1}},{key:"dialogIsVisible",value:function(t){var e=this.getDialog(t);if(e)return e.hasAttribute("data-trix-active")}},{key:"toggleDialog",value:function(t){return this.dialogIsVisible(t)?this.hideDialog():this.showDialog(t)}},{key:"showDialog",value:function(t){var e,n;this.hideDialog(),null===(e=this.delegate)||void 0===e||e.toolbarWillShowDialog();var r=this.getDialog(t);r.setAttribute("data-trix-active",""),r.classList.add("trix-active"),Array.from(r.querySelectorAll("input[disabled]")).forEach((function(t){t.removeAttribute("disabled")}));var i=Vr(r);if(i){var o=zr(r,t);o&&(o.value=this.attributes[i]||"",o.select())}return null===(n=this.delegate)||void 0===n?void 0:n.toolbarDidShowDialog(t)}},{key:"setAttribute",value:function(t){var e,n=Vr(t),r=zr(t,n);return r.willValidate&&!r.checkValidity()?(r.setAttribute("data-trix-validate",""),r.classList.add("trix-validate"),r.focus()):(null===(e=this.delegate)||void 0===e||e.toolbarDidUpdateAttribute(n,r.value),this.hideDialog())}},{key:"removeAttribute",value:function(t){var e,n=Vr(t);return null===(e=this.delegate)||void 0===e||e.toolbarDidRemoveAttribute(n),this.hideDialog()}},{key:"hideDialog",value:function(){var t,e=this.element.querySelector(Br);if(e)return e.removeAttribute("data-trix-active"),e.classList.remove("trix-active"),this.resetDialogInputs(),null===(t=this.delegate)||void 0===t?void 0:t.toolbarDidHideDialog(function(t){return t.getAttribute("data-trix-dialog")}(e))}},{key:"resetDialogInputs",value:function(){Array.from(this.element.querySelectorAll(Hr)).forEach((function(t){t.setAttribute("disabled","disabled"),t.removeAttribute("data-trix-validate"),t.classList.remove("trix-validate")}))}},{key:"getDialog",value:function(t){return this.element.querySelector("[data-trix-dialog=".concat(t,"]"))}}]),n}(vt),qr=function(t){m(n,t);var e=y(n);function n(t){var r;w(this,n);var i=t.editorElement,o=t.document,a=t.html;return(r=e.apply(this,arguments)).editorElement=i,r.selectionManager=new Xn(r.editorElement),r.selectionManager.delegate=v(r),r.composition=new Fn,r.composition.delegate=v(r),r.attachmentManager=new Rn(r.composition.getAttachments()),r.attachmentManager.delegate=v(r),r.inputController=2===ht.getLevel()?new Ar(r.editorElement):new kr(r.editorElement),r.inputController.delegate=v(r),r.inputController.responder=r.composition,r.compositionController=new ar(r.editorElement,r.composition),r.compositionController.delegate=v(r),r.toolbarController=new Ur(r.editorElement.toolbarElement),r.toolbarController.delegate=v(r),r.editor=new Vn(r.composition,r.selectionManager,r.editorElement),o?r.editor.loadDocument(o):r.editor.loadHTML(a),r}return S(n,[{key:"registerSelectionManager",value:function(){return re.registerSelectionManager(this.selectionManager)}},{key:"unregisterSelectionManager",value:function(){return re.unregisterSelectionManager(this.selectionManager)}},{key:"render",value:function(){return this.compositionController.render()}},{key:"reparse",value:function(){return this.composition.replaceHTML(this.editorElement.innerHTML)}},{key:"compositionDidChangeDocument",value:function(t){if(this.notifyEditorElement("document-change"),!this.handlingInput)return this.render()}},{key:"compositionDidChangeCurrentAttributes",value:function(t){return this.currentAttributes=t,this.toolbarController.updateAttributes(this.currentAttributes),this.updateCurrentActions(),this.notifyEditorElement("attributes-change",{attributes:this.currentAttributes})}},{key:"compositionDidPerformInsertionAtRange",value:function(t){this.pasting&&(this.pastedRange=t)}},{key:"compositionShouldAcceptFile",value:function(t){return this.notifyEditorElement("file-accept",{file:t})}},{key:"compositionDidAddAttachment",value:function(t){var e=this.attachmentManager.manageAttachment(t);return this.notifyEditorElement("attachment-add",{attachment:e})}},{key:"compositionDidEditAttachment",value:function(t){this.compositionController.rerenderViewForObject(t);var e=this.attachmentManager.manageAttachment(t);return this.notifyEditorElement("attachment-edit",{attachment:e}),this.notifyEditorElement("change")}},{key:"compositionDidChangeAttachmentPreviewURL",value:function(t){return this.compositionController.invalidateViewForObject(t),this.notifyEditorElement("change")}},{key:"compositionDidRemoveAttachment",value:function(t){var e=this.attachmentManager.unmanageAttachment(t);return this.notifyEditorElement("attachment-remove",{attachment:e})}},{key:"compositionDidStartEditingAttachment",value:function(t,e){return this.attachmentLocationRange=this.composition.document.getLocationRangeOfAttachment(t),this.compositionController.installAttachmentEditorForAttachment(t,e),this.selectionManager.setLocationRange(this.attachmentLocationRange)}},{key:"compositionDidStopEditingAttachment",value:function(t){this.compositionController.uninstallAttachmentEditor(),this.attachmentLocationRange=null}},{key:"compositionDidRequestChangingSelectionToLocationRange",value:function(t){if(!this.loadingSnapshot||this.isFocused())return this.requestedLocationRange=t,this.compositionRevisionWhenLocationRangeRequested=this.composition.revision,this.handlingInput?void 0:this.render()}},{key:"compositionWillLoadSnapshot",value:function(){this.loadingSnapshot=!0}},{key:"compositionDidLoadSnapshot",value:function(){this.compositionController.refreshViewCache(),this.render(),this.loadingSnapshot=!1}},{key:"getSelectionManager",value:function(){return this.selectionManager}},{key:"attachmentManagerDidRequestRemovalOfAttachment",value:function(t){return this.removeAttachment(t)}},{key:"compositionControllerWillSyncDocumentView",value:function(){return this.inputController.editorWillSyncDocumentView(),this.selectionManager.lock(),this.selectionManager.clearSelection()}},{key:"compositionControllerDidSyncDocumentView",value:function(){return this.inputController.editorDidSyncDocumentView(),this.selectionManager.unlock(),this.updateCurrentActions(),this.notifyEditorElement("sync")}},{key:"compositionControllerDidRender",value:function(){this.requestedLocationRange&&(this.compositionRevisionWhenLocationRangeRequested===this.composition.revision&&this.selectionManager.setLocationRange(this.requestedLocationRange),this.requestedLocationRange=null,this.compositionRevisionWhenLocationRangeRequested=null),this.renderedCompositionRevision!==this.composition.revision&&(this.runEditorFilters(),this.composition.updateCurrentAttributes(),this.notifyEditorElement("render")),this.renderedCompositionRevision=this.composition.revision}},{key:"compositionControllerDidFocus",value:function(){return this.isFocusedInvisibly()&&this.setLocationRange({index:0,offset:0}),this.toolbarController.hideDialog(),this.notifyEditorElement("focus")}},{key:"compositionControllerDidBlur",value:function(){return this.notifyEditorElement("blur")}},{key:"compositionControllerDidSelectAttachment",value:function(t,e){return this.toolbarController.hideDialog(),this.composition.editAttachment(t,e)}},{key:"compositionControllerDidRequestDeselectingAttachment",value:function(t){var e=this.attachmentLocationRange||this.composition.document.getLocationRangeOfAttachment(t);return this.selectionManager.setLocationRange(e[1])}},{key:"compositionControllerWillUpdateAttachment",value:function(t){return this.editor.recordUndoEntry("Edit Attachment",{context:t.id,consolidatable:!0})}},{key:"compositionControllerDidRequestRemovalOfAttachment",value:function(t){return this.removeAttachment(t)}},{key:"inputControllerWillHandleInput",value:function(){this.handlingInput=!0,this.requestedRender=!1}},{key:"inputControllerDidRequestRender",value:function(){this.requestedRender=!0}},{key:"inputControllerDidHandleInput",value:function(){if(this.handlingInput=!1,this.requestedRender)return this.requestedRender=!1,this.render()}},{key:"inputControllerDidAllowUnhandledInput",value:function(){return this.notifyEditorElement("change")}},{key:"inputControllerDidRequestReparse",value:function(){return this.reparse()}},{key:"inputControllerWillPerformTyping",value:function(){return this.recordTypingUndoEntry()}},{key:"inputControllerWillPerformFormatting",value:function(t){return this.recordFormattingUndoEntry(t)}},{key:"inputControllerWillCutText",value:function(){return this.editor.recordUndoEntry("Cut")}},{key:"inputControllerWillPaste",value:function(t){return this.editor.recordUndoEntry("Paste"),this.pasting=!0,this.notifyEditorElement("before-paste",{paste:t})}},{key:"inputControllerDidPaste",value:function(t){return t.range=this.pastedRange,this.pastedRange=null,this.pasting=null,this.notifyEditorElement("paste",{paste:t})}},{key:"inputControllerWillMoveText",value:function(){return this.editor.recordUndoEntry("Move")}},{key:"inputControllerWillAttachFiles",value:function(){return this.editor.recordUndoEntry("Drop Files")}},{key:"inputControllerWillPerformUndo",value:function(){return this.editor.undo()}},{key:"inputControllerWillPerformRedo",value:function(){return this.editor.redo()}},{key:"inputControllerDidReceiveKeyboardCommand",value:function(t){return this.toolbarController.applyKeyboardCommand(t)}},{key:"inputControllerDidStartDrag",value:function(){this.locationRangeBeforeDrag=this.selectionManager.getLocationRange()}},{key:"inputControllerDidReceiveDragOverPoint",value:function(t){return this.selectionManager.setLocationRangeFromPointRange(t)}},{key:"inputControllerDidCancelDrag",value:function(){this.selectionManager.setLocationRange(this.locationRangeBeforeDrag),this.locationRangeBeforeDrag=null}},{key:"locationRangeDidChange",value:function(t){return this.composition.updateCurrentAttributes(),this.updateCurrentActions(),this.attachmentLocationRange&&!Qt(this.attachmentLocationRange,t)&&this.composition.stopEditingAttachment(),this.notifyEditorElement("selection-change")}},{key:"toolbarDidClickButton",value:function(){if(!this.getLocationRange())return this.setLocationRange({index:0,offset:0})}},{key:"toolbarDidInvokeAction",value:function(t){return this.invokeAction(t)}},{key:"toolbarDidToggleAttribute",value:function(t){if(this.recordFormattingUndoEntry(t),this.composition.toggleCurrentAttribute(t),this.render(),!this.selectionFrozen)return this.editorElement.focus()}},{key:"toolbarDidUpdateAttribute",value:function(t,e){if(this.recordFormattingUndoEntry(t),this.composition.setCurrentAttribute(t,e),this.render(),!this.selectionFrozen)return this.editorElement.focus()}},{key:"toolbarDidRemoveAttribute",value:function(t){if(this.recordFormattingUndoEntry(t),this.composition.removeCurrentAttribute(t),this.render(),!this.selectionFrozen)return this.editorElement.focus()}},{key:"toolbarWillShowDialog",value:function(t){return this.composition.expandSelectionForEditing(),this.freezeSelection()}},{key:"toolbarDidShowDialog",value:function(t){return this.notifyEditorElement("toolbar-dialog-show",{dialogName:t})}},{key:"toolbarDidHideDialog",value:function(t){return this.thawSelection(),this.editorElement.focus(),this.notifyEditorElement("toolbar-dialog-hide",{dialogName:t})}},{key:"freezeSelection",value:function(){if(!this.selectionFrozen)return this.selectionManager.lock(),this.composition.freezeSelection(),this.selectionFrozen=!0,this.render()}},{key:"thawSelection",value:function(){if(this.selectionFrozen)return this.composition.thawSelection(),this.selectionManager.unlock(),this.selectionFrozen=!1,this.render()}},{key:"canInvokeAction",value:function(t){return!!this.actionIsExternal(t)||!(null===(e=this.actions[t])||void 0===e||null===(e=e.test)||void 0===e||!e.call(this));var e}},{key:"invokeAction",value:function(t){return this.actionIsExternal(t)?this.notifyEditorElement("action-invoke",{actionName:t}):null===(e=this.actions[t])||void 0===e||null===(e=e.perform)||void 0===e?void 0:e.call(this);var e}},{key:"actionIsExternal",value:function(t){return/^x-./.test(t)}},{key:"getCurrentActions",value:function(){var t={};for(var e in this.actions)t[e]=this.canInvokeAction(e);return t}},{key:"updateCurrentActions",value:function(){var t=this.getCurrentActions();if(!Zt(t,this.currentActions))return this.currentActions=t,this.toolbarController.updateActions(this.currentActions),this.notifyEditorElement("actions-change",{actions:this.currentActions})}},{key:"runEditorFilters",value:function(){var t,e,n=this,r=this.composition.getSnapshot();if(Array.from(this.editor.filters).forEach((function(t){var e=r,i=e.document,o=e.selectedRange;(r=t.call(n.editor,r)||{}).document||(r.document=i),r.selectedRange||(r.selectedRange=o)})),t=r,e=this.composition.getSnapshot(),!Qt(t.selectedRange,e.selectedRange)||!t.document.isEqualTo(e.document))return this.composition.loadSnapshot(r)}},{key:"updateInputElement",value:function(){var t=function(t,e){var n=On[e];if(n)return n(t);throw new Error("unknown content type: ".concat(e))}(this.compositionController.getSerializableElement(),"text/html");return this.editorElement.setInputElementValue(t)}},{key:"notifyEditorElement",value:function(t,e){switch(t){case"document-change":this.documentChangedSinceLastRender=!0;break;case"render":this.documentChangedSinceLastRender&&(this.documentChangedSinceLastRender=!1,this.notifyEditorElement("change"));break;case"change":case"attachment-add":case"attachment-edit":case"attachment-remove":this.updateInputElement()}return this.editorElement.notify(t,e)}},{key:"removeAttachment",value:function(t){return this.editor.recordUndoEntry("Delete Attachment"),this.composition.removeAttachment(t),this.render()}},{key:"recordFormattingUndoEntry",value:function(t){var e=Ft(t),n=this.selectionManager.getLocationRange();if(e||!Jt(n))return this.editor.recordUndoEntry("Formatting",{context:this.getUndoContext(),consolidatable:!0})}},{key:"recordTypingUndoEntry",value:function(){return this.editor.recordUndoEntry("Typing",{context:this.getUndoContext(this.currentAttributes),consolidatable:!0})}},{key:"getUndoContext",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return[this.getLocationContext(),this.getTimeContext()].concat(d(Array.from(e)))}},{key:"getLocationContext",value:function(){var t=this.selectionManager.getLocationRange();return Jt(t)?t[0].index:t}},{key:"getTimeContext",value:function(){return gt.interval>0?Math.floor((new Date).getTime()/gt.interval):0}},{key:"isFocused",value:function(){var t;return this.editorElement===(null===(t=this.editorElement.ownerDocument)||void 0===t?void 0:t.activeElement)}},{key:"isFocusedInvisibly",value:function(){return this.isFocused()&&!this.getLocationRange()}},{key:"actions",get:function(){return this.constructor.actions}}]),n}(sr);We(qr,"actions",{undo:{test:function(){return this.editor.canUndo()},perform:function(){return this.editor.undo()}},redo:{test:function(){return this.editor.canRedo()},perform:function(){return this.editor.redo()}},link:{test:function(){return this.editor.canActivateAttribute("href")}},increaseNestingLevel:{test:function(){return this.editor.canIncreaseNestingLevel()},perform:function(){return this.editor.increaseNestingLevel()&&this.render()}},decreaseNestingLevel:{test:function(){return this.editor.canDecreaseNestingLevel()},perform:function(){return this.editor.decreaseNestingLevel()&&this.render()}},attachFiles:{test:function(){return!0},perform:function(){return ht.pickFiles(this.editor.insertFiles)}}}),qr.proxyMethod("getSelectionManager().setLocationRange"),qr.proxyMethod("getSelectionManager().getLocationRange");var Gr=Object.freeze({__proto__:null,AttachmentEditorController:or,CompositionController:ar,Controller:sr,EditorController:qr,InputController:vr,Level0InputController:kr,Level2InputController:Ar,ToolbarController:Ur}),$r=Object.freeze({__proto__:null,MutationObserver:dr,SelectionChangeObserver:ne}),Kr=Object.freeze({__proto__:null,FileVerificationOperation:fr,ImagePreloadOperation:Ue});Ht("trix-toolbar","%t {\n  display: block;\n}\n\n%t {\n  white-space: nowrap;\n}\n\n%t [data-trix-dialog] {\n  display: none;\n}\n\n%t [data-trix-dialog][data-trix-active] {\n  display: block;\n}\n\n%t [data-trix-dialog] [data-trix-validate]:invalid {\n  background-color: #ffdddd;\n}");var Zr=function(t){m(n,t);var e=y(n);function n(){return w(this,n),e.apply(this,arguments)}return S(n,[{key:"connectedCallback",value:function(){""===this.innerHTML&&(this.innerHTML=mt.getDefaultHTML())}}]),n}(i(HTMLElement)),Xr=0,Jr=function(t){return Qr(t),ti(t)},Qr=function(t){var e,n;if(null!==(e=(n=document).queryCommandSupported)&&void 0!==e&&e.call(n,"enableObjectResizing"))return document.execCommand("enableObjectResizing",!1,!1),q("mscontrolselect",{onElement:t,preventDefault:!0})},ti=function(t){var e,n;if(null!==(e=(n=document).queryCommandSupported)&&void 0!==e&&e.call(n,"DefaultParagraphSeparator")){var r=I.default.tagName;if(["div","p"].includes(r))return document.execCommand("DefaultParagraphSeparator",!1,r)}},ei=F.forcesObjectResizing?{display:"inline",width:"auto"}:{display:"inline-block",width:"1px"};Ht("trix-editor","%t {\n    display: block;\n}\n\n%t:empty:not(:focus)::before {\n    content: attr(placeholder);\n    color: graytext;\n    cursor: text;\n    pointer-events: none;\n    white-space: pre-line;\n}\n\n%t a[contenteditable=false] {\n    cursor: text;\n}\n\n%t img {\n    max-width: 100%;\n    height: auto;\n}\n\n%t ".concat(L," figcaption textarea {\n    resize: none;\n}\n\n%t ").concat(L," figcaption textarea.trix-autoresize-clone {\n    position: absolute;\n    left: -9999px;\n    max-height: 0px;\n}\n\n%t ").concat(L," figcaption[data-trix-placeholder]:empty::before {\n    content: attr(data-trix-placeholder);\n    color: graytext;\n}\n\n%t [data-trix-cursor-target] {\n    display: ").concat(ei.display," !important;\n    width: ").concat(ei.width," !important;\n    padding: 0 !important;\n    margin: 0 !important;\n    border: none !important;\n}\n\n%t [data-trix-cursor-target=left] {\n    vertical-align: top !important;\n    margin-left: -1px !important;\n}\n\n%t [data-trix-cursor-target=right] {\n    vertical-align: bottom !important;\n    margin-right: -1px !important;\n}"));var ni=function(t){m(n,t);var e=y(n);function n(){return w(this,n),e.apply(this,arguments)}return S(n,[{key:"trixId",get:function(){return this.hasAttribute("trix-id")?this.getAttribute("trix-id"):(this.setAttribute("trix-id",++Xr),this.trixId)}},{key:"labels",get:function(){var t=[];this.id&&this.ownerDocument&&t.push.apply(t,d(Array.from(this.ownerDocument.querySelectorAll("label[for='".concat(this.id,"']"))||[])));var e=K(this,{matchingSelector:"label"});return e&&[this,null].includes(e.control)&&t.push(e),t}},{key:"toolbarElement",get:function(){var t;if(this.hasAttribute("toolbar"))return null===(t=this.ownerDocument)||void 0===t?void 0:t.getElementById(this.getAttribute("toolbar"));if(this.parentNode){var e="trix-toolbar-".concat(this.trixId);this.setAttribute("toolbar",e);var n=nt("trix-toolbar",{id:e});return this.parentNode.insertBefore(n,this),n}}},{key:"form",get:function(){var t;return null===(t=this.inputElement)||void 0===t?void 0:t.form}},{key:"inputElement",get:function(){var t;if(this.hasAttribute("input"))return null===(t=this.ownerDocument)||void 0===t?void 0:t.getElementById(this.getAttribute("input"));if(this.parentNode){var e="trix-input-".concat(this.trixId);this.setAttribute("input",e);var n=nt("input",{type:"hidden",id:e});return this.parentNode.insertBefore(n,this.nextElementSibling),n}}},{key:"editor",get:function(){var t;return null===(t=this.editorController)||void 0===t?void 0:t.editor}},{key:"name",get:function(){var t;return null===(t=this.inputElement)||void 0===t?void 0:t.name}},{key:"value",get:function(){var t;return null===(t=this.inputElement)||void 0===t?void 0:t.value},set:function(t){var e;this.defaultValue=t,null===(e=this.editor)||void 0===e||e.loadHTML(this.defaultValue)}},{key:"notify",value:function(t,e){if(this.editorController)return G("trix-".concat(t),{onElement:this,attributes:e})}},{key:"setInputElementValue",value:function(t){this.inputElement&&(this.inputElement.value=t)}},{key:"connectedCallback",value:function(){var t=this;this.hasAttribute("data-trix-internal")||(function(t){if(!t.hasAttribute("contenteditable"))t.setAttribute("contenteditable",""),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.times=1,q(t,e)}("focus",{onElement:t,withCallback:function(){return Jr(t)}})}(this),function(t){t.hasAttribute("role")||t.setAttribute("role","textbox")}(this),function(t){if(!t.hasAttribute("aria-label")&&!t.hasAttribute("aria-labelledby")){var e=function(){var e=Array.from(t.labels).map((function(e){if(!e.contains(t))return e.textContent})).filter((function(t){return t})),n=e.join(" ");return n?t.setAttribute("aria-label",n):t.removeAttribute("aria-label")};e(),q("focus",{onElement:t,withCallback:e})}}(this),this.editorController||(G("trix-before-initialize",{onElement:this}),this.editorController=new qr({editorElement:this,html:this.defaultValue=this.value}),requestAnimationFrame((function(){return G("trix-initialize",{onElement:t})}))),this.editorController.registerSelectionManager(),this.registerResetListener(),this.registerClickListener(),function(t){!document.querySelector(":focus")&&t.hasAttribute("autofocus")&&document.querySelector("[autofocus]")===t&&t.focus()}(this))}},{key:"disconnectedCallback",value:function(){var t;return null===(t=this.editorController)||void 0===t||t.unregisterSelectionManager(),this.unregisterResetListener(),this.unregisterClickListener()}},{key:"registerResetListener",value:function(){return this.resetListener=this.resetBubbled.bind(this),window.addEventListener("reset",this.resetListener,!1)}},{key:"unregisterResetListener",value:function(){return window.removeEventListener("reset",this.resetListener,!1)}},{key:"registerClickListener",value:function(){return this.clickListener=this.clickBubbled.bind(this),window.addEventListener("click",this.clickListener,!1)}},{key:"unregisterClickListener",value:function(){return window.removeEventListener("click",this.clickListener,!1)}},{key:"resetBubbled",value:function(t){if(!t.defaultPrevented&&t.target===this.form)return this.reset()}},{key:"clickBubbled",value:function(t){if(!t.defaultPrevented&&!this.contains(t.target)){var e=K(t.target,{matchingSelector:"label"});return e&&Array.from(this.labels).includes(e)?this.focus():void 0}}},{key:"reset",value:function(){this.value=this.defaultValue}}]),n}(i(HTMLElement)),ri={VERSION:"2.0.8",config:yt,core:In,models:Qn,views:tr,controllers:Gr,observers:$r,operations:Kr,elements:Object.freeze({__proto__:null,TrixEditorElement:ni,TrixToolbarElement:Zr}),filters:Object.freeze({__proto__:null,Filter:Hn,attachmentGalleryFilter:zn})};Object.assign(ri,Qn),window.Trix=ri,setTimeout((function(){customElements.get("trix-toolbar")||customElements.define("trix-toolbar",Zr),customElements.get("trix-editor")||customElements.define("trix-editor",ni)}),0);n(561);var ii=r.a.start();ii.debug=!1,window.Stimulus=ii},function(t,e,n){"use strict";var r=function(){function t(){}return t.numberOfTrailingZeros=function(t){var e;if(0===t)return 32;var n=31;return 0!==(e=t<<16)&&(n-=16,t=e),0!==(e=t<<8)&&(n-=8,t=e),0!==(e=t<<4)&&(n-=4,t=e),0!==(e=t<<2)&&(n-=2,t=e),n-(t<<1>>>31)},t.numberOfLeadingZeros=function(t){if(0===t)return 32;var e=1;return t>>>16===0&&(e+=16,t<<=16),t>>>24===0&&(e+=8,t<<=8),t>>>28===0&&(e+=4,t<<=4),t>>>30===0&&(e+=2,t<<=2),e-=t>>>31},t.toHexString=function(t){return t.toString(16)},t.toBinaryString=function(t){return String(parseInt(String(t),2))},t.bitCount=function(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,t+=t>>>8,63&(t+=t>>>16)},t.truncDivision=function(t,e){return Math.trunc(t/e)},t.parseInt=function(t,e){return void 0===e&&(e=void 0),parseInt(t,e)},t.MIN_VALUE_32_BITS=-2147483648,t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}();e.a=r},function(t,e,n){(function(r){var 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(65),n(36),n(162),n(198),n(199),n(200),n(163),n(391),n(201),n(51)],o=function(t,e,n,r,i,o,s,u,l,c){var d="@VERSION",h=function t(e,n){return new t.fn.init(e,n)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,m=/-([\da-z])/gi,g=function(t,e){return e.toUpperCase()};function y(t){var e=!!t&&"length"in t&&t.length,n=h.type(t);return"function"!==n&&!h.isWindow(t)&&("array"===n||0===e||"number"===typeof e&&e>0&&e-1 in t)}return h.fn=h.prototype={jquery:d,constructor:h,selector:"",length:0,toArray:function(){return n.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:n.call(this)},pushStack:function(t){var e=h.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return h.each(this,t)},map:function(t){return this.pushStack(h.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:i,sort:t.sort,splice:t.splice},h.extend=h.fn.extend=function(){var t,e,n,r,i,o,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"===typeof s&&(c=s,s=arguments[u]||{},u++),"object"===a(s)||h.isFunction(s)||(s={}),u===l&&(s=this,u--);u<l;u++)if(null!=(i=arguments[u]))for(r in i)t=s[r],s!==(n=i[r])&&(c&&n&&(h.isPlainObject(n)||(e=h.isArray(n)))?(e?(e=!1,o=t&&h.isArray(t)?t:[]):o=t&&h.isPlainObject(t)?t:{},s[r]=h.extend(c,o,n)):void 0!==n&&(s[r]=n));return s},h.extend({expando:"jQuery"+(d+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===h.type(t)},isArray:Array.isArray||function(t){return"array"===h.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!h.isArray(t)&&e-parseFloat(e)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==h.type(t)||t.nodeType||h.isWindow(t))return!1;try{if(t.constructor&&!l.call(t,"constructor")&&!l.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!c.ownFirst)for(e in t)return l.call(t,e);for(e in t);return void 0===e||l.call(t,e)},type:function(t){return null==t?t+"":"object"===a(t)||"function"===typeof t?s[u.call(t)]||"object":a(t)},globalEval:function(t){t&&h.trim(t)&&(window.execScript||function(t){window.eval.call(window,t)})(t)},camelCase:function(t){return t.replace(p,"ms-").replace(m,g)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,r=0;if(y(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(f,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(y(Object(t))?h.merge(n,"string"===typeof t?[t]:t):i.call(n,t)),n},inArray:function(t,e,n){var r;if(e){if(o)return o.call(e,t,n);for(r=e.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;)t[i++]=e[r++];if(n!==n)for(;void 0!==e[r];)t[i++]=e[r++];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var i,o,a=0,s=[];if(y(t))for(i=t.length;a<i;a++)null!=(o=e(t[a],a,n))&&s.push(o);else for(a in t)null!=(o=e(t[a],a,n))&&s.push(o);return r.apply([],s)},guid:1,proxy:function(t,e){var r,i,o;if("string"===typeof e&&(o=t[e],e=t,t=o),h.isFunction(t))return r=n.call(arguments,2),i=function(){return t.apply(e||this,r.concat(n.call(arguments)))},i.guid=t.guid=t.guid||h.guid++,i},now:function(){return+new Date},support:c}),"function"===typeof Symbol&&(h.fn[Symbol.iterator]=t[Symbol.iterator]),h.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){s["[object "+e+"]"]=e.toLowerCase()})),h}.apply(e,i),void 0===o||(t.exports=o)}).call(this,n(15))},function(t,e,n){"use strict";var r=n(21),i=n(32),o=n(37);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)}var s=function(){function t(){}return t.castAsNonUtf8Char=function(t,e){void 0===e&&(e=null);var n=e?e.getName():this.ISO88591;return o.a.decode(new Uint8Array([t]),n)},t.guessEncoding=function(e,n){if(null!==n&&void 0!==n&&void 0!==n.get(r.a.CHARACTER_SET))return n.get(r.a.CHARACTER_SET).toString();for(var i=e.length,o=!0,a=!0,s=!0,u=0,l=0,c=0,d=0,h=0,f=0,p=0,m=0,g=0,y=0,v=0,_=e.length>3&&239===e[0]&&187===e[1]&&191===e[2],b=0;b<i&&(o||a||s);b++){var w=255&e[b];s&&(u>0?0===(128&w)?s=!1:u--:0!==(128&w)&&(0===(64&w)?s=!1:(u++,0===(32&w)?l++:(u++,0===(16&w)?c++:(u++,0===(8&w)?d++:s=!1))))),o&&(w>127&&w<160?o=!1:w>159&&(w<192||215===w||247===w)&&v++),a&&(h>0?w<64||127===w||w>252?a=!1:h--:128===w||160===w||w>239?a=!1:w>160&&w<224?(f++,m=0,++p>g&&(g=p)):w>127?(h++,p=0,++m>y&&(y=m)):(p=0,m=0))}return s&&u>0&&(s=!1),a&&h>0&&(a=!1),s&&(_||l+c+d>0)?t.UTF8:a&&(t.ASSUME_SHIFT_JIS||g>=3||y>=3)?t.SHIFT_JIS:o&&a?2===g&&2===f||10*v>=i?t.SHIFT_JIS:t.ISO88591:o?t.ISO88591:a?t.SHIFT_JIS:s?t.UTF8:t.PLATFORM_DEFAULT_ENCODING},t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=-1;return t.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,(function(t,n,i,o,s,u){if("%%"===t)return"%";if(void 0!==e[++r]){t=o?parseInt(o.substr(1)):void 0;var l,c=s?parseInt(s.substr(1)):void 0;switch(u){case"s":l=e[r];break;case"c":l=e[r][0];break;case"f":l=parseFloat(e[r]).toFixed(t);break;case"p":l=parseFloat(e[r]).toPrecision(t);break;case"e":l=parseFloat(e[r]).toExponential(t);break;case"x":l=parseInt(e[r]).toString(c||16);break;case"d":l=parseFloat(parseInt(e[r],c||10).toPrecision(t)).toFixed(0)}l="object"===a(l)?JSON.stringify(l):(+l).toString(c);for(var d=parseInt(i),h=i&&i[0]+""==="0"?"0":" ";l.length<d;)l=void 0!==n?l+h:h+l;return l}}))},t.getBytes=function(t,e){return o.a.encode(t,e)},t.getCharCode=function(t,e){return void 0===e&&(e=0),t.charCodeAt(e)},t.getCharAt=function(t){return String.fromCharCode(t)},t.SHIFT_JIS=i.a.SJIS.getName(),t.GB2312="GB2312",t.ISO88591=i.a.ISO8859_1.getName(),t.EUC_JP="EUC_JP",t.UTF8=i.a.UTF8.getName(),t.PLATFORM_DEFAULT_ENCODING=t.UTF8,t.ASSUME_SHIFT_JIS=!1,t}();e.a=s},function(t,e,n){var r,i;r=[n(13),n(39),n(66),n(164),n(95),n(165),n(396),n(205),n(167),n(398),n(403),n(122),n(224),n(121),n(406),n(410),n(79),n(411),n(412),n(80),n(413),n(414),n(415),n(416),n(418),n(168),n(419),n(420),n(421),n(422),n(423)],void 0===(i=function(t){return window.jQuery=window.$=t}.apply(e,r))||(t.exports=i)},function(t,e,n){"use strict";function r(t){return r="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},r(t)}function i(){i=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(M){c=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),s=new D(r||[]);return o(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(M){return{type:"throw",arg:M}}}t.wrap=d;var f={};function p(){}function m(){}function g(){}var y={};c(y,s,(function(){return this}));var v=Object.getPrototypeOf,_=v&&v(v(A([])));_&&_!==e&&n.call(_,s)&&(y=_);var b=g.prototype=p.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function i(o,a,s,u){var l=h(t[o],t,a);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==r(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,s,u)}),(function(t){i("throw",t,s,u)})):e.resolve(d).then((function(t){c.value=t,s(c)}),(function(t){return i("throw",t,s,u)}))}u(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=h(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=h(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=g,o(b,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:m,configurable:!0}),m.displayName=c(g,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(k.prototype),c(k.prototype,u,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,l,"Generator"),c(b,s,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(o=i.key,a=void 0,a=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===r(a)?a:String(a)),i)}var o,a}n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return A}));var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.response=e}var e,n,r,s,u;return e=t,n=[{key:"statusCode",get:function(){return this.response.status}},{key:"redirected",get:function(){return this.response.redirected}},{key:"ok",get:function(){return this.response.ok}},{key:"unauthenticated",get:function(){return 401===this.statusCode}},{key:"unprocessableEntity",get:function(){return 422===this.statusCode}},{key:"authenticationURL",get:function(){return this.response.headers.get("WWW-Authenticate")}},{key:"contentType",get:function(){return(this.response.headers.get("Content-Type")||"").replace(/;.*$/,"")}},{key:"headers",get:function(){return this.response.headers}},{key:"html",get:function(){return this.contentType.match(/^(application|text)\/(html|xhtml\+xml)$/)?this.text:Promise.reject(new Error('Expected an HTML response but got "'.concat(this.contentType,'" instead')))}},{key:"json",get:function(){return this.contentType.match(/^application\/.*json$/)?this.responseJson||(this.responseJson=this.response.json()):Promise.reject(new Error('Expected a JSON response but got "'.concat(this.contentType,'" instead')))}},{key:"text",get:function(){return this.responseText||(this.responseText=this.response.text())}},{key:"isTurboStream",get:function(){return this.contentType.match(/^text\/vnd\.turbo-stream\.html/)}},{key:"renderTurboStream",value:(s=i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isTurboStream){t.next=13;break}if(!window.Turbo){t.next=10;break}return t.t0=window.Turbo,t.next=5,this.text;case 5:return t.t1=t.sent,t.next=8,t.t0.renderStreamMessage.call(t.t0,t.t1);case 8:t.next=11;break;case 10:console.warn("You must set `window.Turbo = Turbo` to automatically process Turbo Stream events with request.js");case 11:t.next=14;break;case 13:return t.abrupt("return",Promise.reject(new Error('Expected a Turbo Stream response but got "'.concat(this.contentType,'" instead'))));case 14:case"end":return t.stop()}}),t,this)})),u=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=s.apply(t,e);function a(t){o(i,n,r,a,u,"next",t)}function u(t){o(i,n,r,a,u,"throw",t)}a(void 0)}))},function(){return u.apply(this,arguments)})}],n&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function u(t){return u="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},u(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,o=function(t,e){if("object"!==u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===u(o)?o:String(o)),r)}var i,o}var c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"register",value:function(t){this.interceptor=t}},{key:"get",value:function(){return this.interceptor}},{key:"reset",value:function(){this.interceptor=void 0}}],(n=null)&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function d(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||f(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 h(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){if(t){if("string"===typeof t)return p(t,e);var n=Object.prototype.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)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t){var e=document.head.querySelector('meta[name="'.concat(t,'"]'));return e&&e.content}function g(t,e){var n,r=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=f(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(r.s();!(n=r.n()).done;){var i=d(n.value,2),o=i[0],a=i[1];a instanceof window.File||(t.has(o)&&!o.includes("[]")?(t.delete(o),t.set(o,a)):t.append(o,a))}}catch(s){r.e(s)}finally{r.f()}}function y(t){return y="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},y(t)}function v(){v=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(M){u=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new D(i||[]);return r(a,"_invoke",{value:S(t,n,s)}),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(M){return{type:"throw",arg:M}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,_=g&&g(g(A([])));_&&_!==e&&n.call(_,o)&&(m=_);var b=p.prototype=h.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function i(r,o,a,s){var u=c(t[r],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==y(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return f.prototype=p,r(b,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(k.prototype),u(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),u(b,s,"Generator"),u(b,o,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function _(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,o=function(t,e){if("object"!==y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===y(o)?o:String(o)),r)}var i,o}var w=function(){function t(e,n){var r=arguments.length>2&&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.method=e,this.options=r,this.originalUrl=n.toString()}var e,n,r,i,o;return e=t,n=[{key:"perform",value:(i=v().mark((function t(){var e,n;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!(e=c.get())){t.next=5;break}return t.next=5,e(this);case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error(t.t0);case 10:return t.t1=s,t.next=13,window.fetch(this.url,this.fetchOptions);case 13:if(t.t2=t.sent,!(n=new t.t1(t.t2)).unauthenticated||!n.authenticationURL){t.next=17;break}return t.abrupt("return",Promise.reject(window.location.href=n.authenticationURL));case 17:if(!n.ok||!n.isTurboStream){t.next=20;break}return t.next=20,n.renderTurboStream();case 20:return t.abrupt("return",n);case 21:case"end":return t.stop()}}),t,this,[[0,7]])})),o=function(){var t=this,e=arguments;return new Promise((function(n,r){var o=i.apply(t,e);function a(t){_(o,n,r,a,s,"next",t)}function s(t){_(o,n,r,a,s,"throw",t)}a(void 0)}))},function(){return o.apply(this,arguments)})},{key:"addHeader",value:function(t,e){var n=this.additionalHeaders;n[t]=e,this.options.headers=n}},{key:"sameHostname",value:function(){if(!this.originalUrl.startsWith("http:"))return!0;try{return new URL(this.originalUrl).hostname===window.location.hostname}catch(t){return!0}}},{key:"fetchOptions",get:function(){return{method:this.method.toUpperCase(),headers:this.headers,body:this.formattedBody,signal:this.signal,credentials:"same-origin",redirect:this.redirect}}},{key:"headers",get:function(){var t={"X-Requested-With":"XMLHttpRequest","Content-Type":this.contentType,Accept:this.accept};return this.sameHostname()&&(t["X-CSRF-Token"]=this.csrfToken),function(t){var e={};for(var n in t){var r=t[n];void 0!==r&&(e[n]=r)}return e}(Object.assign(t,this.additionalHeaders))}},{key:"csrfToken",get:function(){return function(t){var e=document.cookie?document.cookie.split("; "):[],n="".concat(encodeURIComponent(t),"="),r=e.find((function(t){return t.startsWith(n)}));if(r){var i=r.split("=").slice(1).join("=");if(i)return decodeURIComponent(i)}}(m("csrf-param"))||m("csrf-token")}},{key:"contentType",get:function(){return this.options.contentType?this.options.contentType:null==this.body||this.body instanceof window.FormData?void 0:this.body instanceof window.File?this.body.type:"application/json"}},{key:"accept",get:function(){switch(this.responseKind){case"html":return"text/html, application/xhtml+xml";case"turbo-stream":return"text/vnd.turbo-stream.html, text/html, application/xhtml+xml";case"json":return"application/json, application/vnd.api+json";default:return"*/*"}}},{key:"body",get:function(){return this.options.body}},{key:"query",get:function(){var t=(this.originalUrl.split("?")[1]||"").split("#")[0],e=new URLSearchParams(t),n=this.options.query;g(e,n=n instanceof window.FormData?h(n).reduce((function(t,e){var n=d(e,2),r=n[0],i=n[1];return t.concat("string"===typeof i?[[r,i]]:[])}),[]):n instanceof window.URLSearchParams?n.entries():Object.entries(n||{}));var r=e.toString();return r.length>0?"?".concat(r):""}},{key:"url",get:function(){return this.originalUrl.split("?")[0].split("#")[0]+this.query}},{key:"responseKind",get:function(){return this.options.responseKind||"html"}},{key:"signal",get:function(){return this.options.signal}},{key:"redirect",get:function(){return this.options.redirect||"follow"}},{key:"additionalHeaders",get:function(){return this.options.headers||{}}},{key:"formattedBody",get:function(){var t="[object String]"===Object.prototype.toString.call(this.body);return"application/json"!==this.headers["Content-Type"]||t?this.body:JSON.stringify(this.body)}}],n&&b(e.prototype,n),r&&b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function k(t){return k="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},k(t)}function S(){S=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(M){u=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new D(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(M){return{type:"throw",arg:M}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(A([])));y&&y!==e&&n.call(y,o)&&(m=y);var v=p.prototype=h.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function i(r,o,a,s){var u=c(t[r],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==k(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return f.prototype=p,r(v,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(v),u(v,s,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function E(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function C(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){E(o,r,i,a,s,"next",t)}function s(t){E(o,r,i,a,s,"throw",t)}a(void 0)}))}}function x(t,e){return D.apply(this,arguments)}function D(){return(D=C(S().mark((function t(e,n){var r;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new w("get",e,n),t.abrupt("return",r.perform());case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t,e){return T.apply(this,arguments)}function T(){return(T=C(S().mark((function t(e,n){var r;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new w("post",e,n),t.abrupt("return",r.perform());case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},function(t,e,n){"use strict";var r=n(141),i=n(142),o=n(61),a=n(2),s=n(143),u=n(144),l=n(145),c=n(146),d=n(24),h=n(12),f=function(){function t(){}return t.randomize253State=function(t){var e=149*t%253+1,n=a.t+e;return n<=254?n:n-254},t.encodeHighLevel=function(t,e,n,d,h){void 0===e&&(e=0),void 0===n&&(n=null),void 0===d&&(d=null),void 0===h&&(h=!1);var f=new o.a,p=[new r.a,f,new c.a,new l.a,new s.a,new i.a],m=new u.a(t);m.setSymbolShape(e),m.setSizeConstraints(n,d),t.startsWith(a.p)&&t.endsWith(a.s)?(m.writeCodeword(a.o),m.setSkipAtEnd(2),m.pos+=a.p.length):t.startsWith(a.r)&&t.endsWith(a.s)&&(m.writeCodeword(a.q),m.setSkipAtEnd(2),m.pos+=a.r.length);var g=a.b;for(h&&(f.encodeMaximal(m),g=m.getNewEncoding(),m.resetEncoderSignal());m.hasMoreCharacters();)p[g].encode(m),m.getNewEncoding()>=0&&(g=m.getNewEncoding(),m.resetEncoderSignal());var y=m.getCodewordCount();m.updateSymbolInfo();var v=m.getSymbolInfo().getDataCapacity();y<v&&g!==a.b&&g!==a.c&&g!==a.f&&m.writeCodeword("\xfe");var _=m.getCodewords();for(_.length()<v&&_.append(a.t);_.length()<v;)_.append(this.randomize253State(_.length()+1));return m.getCodewords().toString()},t.lookAheadTest=function(t,e,n){var r=this.lookAheadTestIntern(t,e,n);if(n===a.w&&r===a.w){for(var i=Math.min(e+3,t.length),o=e;o<i;o++)if(!this.isNativeX12(t.charCodeAt(o)))return a.b}else if(n===a.f&&r===a.f)for(i=Math.min(e+4,t.length),o=e;o<i;o++)if(!this.isNativeEDIFACT(t.charCodeAt(o)))return a.b;return r},t.lookAheadTestIntern=function(t,e,n){if(e>=t.length)return n;var r;n===a.b?r=[0,1,1,1,1,1.25]:(r=[1,2,2,2,2,2.25])[n]=0;for(var i=0,o=new Uint8Array(6),s=[];;){if(e+i===t.length){d.a.fill(o,0),d.a.fill(s,0);var u=this.findMinimums(r,s,h.a.MAX_VALUE,o),l=this.getMinimumCount(o);if(s[a.b]===u)return a.b;if(1===l){if(o[a.c]>0)return a.c;if(o[a.f]>0)return a.f;if(o[a.u]>0)return a.u;if(o[a.w]>0)return a.w}return a.d}var c=t.charCodeAt(e+i);if(i++,this.isDigit(c)?r[a.b]+=.5:this.isExtendedASCII(c)?(r[a.b]=Math.ceil(r[a.b]),r[a.b]+=2):(r[a.b]=Math.ceil(r[a.b]),r[a.b]++),this.isNativeC40(c)?r[a.d]+=2/3:this.isExtendedASCII(c)?r[a.d]+=8/3:r[a.d]+=4/3,this.isNativeText(c)?r[a.u]+=2/3:this.isExtendedASCII(c)?r[a.u]+=8/3:r[a.u]+=4/3,this.isNativeX12(c)?r[a.w]+=2/3:this.isExtendedASCII(c)?r[a.w]+=13/3:r[a.w]+=10/3,this.isNativeEDIFACT(c)?r[a.f]+=3/4:this.isExtendedASCII(c)?r[a.f]+=4.25:r[a.f]+=3.25,this.isSpecialB256(c)?r[a.c]+=4:r[a.c]++,i>=4){if(d.a.fill(o,0),d.a.fill(s,0),this.findMinimums(r,s,h.a.MAX_VALUE,o),s[a.b]<this.min(s[a.c],s[a.d],s[a.u],s[a.w],s[a.f]))return a.b;if(s[a.c]<s[a.b]||s[a.c]+1<this.min(s[a.d],s[a.u],s[a.w],s[a.f]))return a.c;if(s[a.f]+1<this.min(s[a.c],s[a.d],s[a.u],s[a.w],s[a.b]))return a.f;if(s[a.u]+1<this.min(s[a.c],s[a.d],s[a.f],s[a.w],s[a.b]))return a.u;if(s[a.w]+1<this.min(s[a.c],s[a.d],s[a.f],s[a.u],s[a.b]))return a.w;if(s[a.d]+1<this.min(s[a.b],s[a.c],s[a.f],s[a.u])){if(s[a.d]<s[a.w])return a.d;if(s[a.d]===s[a.w]){for(var f=e+i+1;f<t.length;){var p=t.charCodeAt(f);if(this.isX12TermSep(p))return a.w;if(!this.isNativeX12(p))break;f++}return a.d}}}}},t.min=function(t,e,n,r,i){var o=Math.min(t,Math.min(e,Math.min(n,r)));return void 0===i?o:Math.min(o,i)},t.findMinimums=function(t,e,n,r){for(var i=0;i<6;i++){var o=e[i]=Math.ceil(t[i]);n>o&&(n=o,d.a.fill(r,0)),n===o&&(r[i]=r[i]+1)}return n},t.getMinimumCount=function(t){for(var e=0,n=0;n<6;n++)e+=t[n];return e||0},t.isDigit=function(t){return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)},t.isExtendedASCII=function(t){return t>=128&&t<=255},t.isNativeC40=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},t.isNativeText=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)},t.isNativeX12=function(t){return this.isX12TermSep(t)||t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},t.isX12TermSep=function(t){return 13===t||t==="*".charCodeAt(0)||t===">".charCodeAt(0)},t.isNativeEDIFACT=function(t){return t>=" ".charCodeAt(0)&&t<="^".charCodeAt(0)},t.isSpecialB256=function(t){return!1},t.determineConsecutiveDigitCount=function(t,e){void 0===e&&(e=0);for(var n=t.length,r=e;r<n&&this.isDigit(t.charCodeAt(r));)r++;return r-e},t.illegalCharacter=function(t){var e=h.a.toHexString(t.charCodeAt(0));throw e="0000".substring(0,4-e.length)+e,new Error("Illegal character: "+t+" (0x"+e+")")},t}();e.a=f},function(t,e,n){"use strict";var r=function(){function t(){}return t.arraycopy=function(t,e,n,r,i){for(;i--;)n[r++]=t[e++]},t.currentTimeMillis=function(){return Date.now()},t}();e.a=r},function(t,e,n){"use strict";var r=function(){function t(){}return t.round=function(t){return isNaN(t)?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0},t.distance=function(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)},t.sum=function(t){for(var e=0,n=0,r=t.length;n!==r;n++){e+=t[n]}return e},t}();e.a=r},function(t,e,n){"use strict";var r=n(24),i=n(19),o=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function t(){}return t.prototype.PDF417Common=function(){},t.getBitCountSum=function(t){return i.a.sum(t)},t.toIntArray=function(e){var n,r;if(null==e||!e.length)return t.EMPTY_INT_ARRAY;var i=new Int32Array(e.length),a=0;try{for(var s=o(e),u=s.next();!u.done;u=s.next()){var l=u.value;i[a++]=l}}catch(c){n={error:c}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return i},t.getCodeword=function(e){var n=r.a.binarySearch(t.SYMBOL_TABLE,262143&e);return n<0?-1:(t.CODEWORD_TABLE[n]-1)%t.NUMBER_OF_CODEWORDS},t.NUMBER_OF_CODEWORDS=929,t.MAX_CODEWORDS_IN_BARCODE=t.NUMBER_OF_CODEWORDS-1,t.MIN_ROWS_IN_BARCODE=3,t.MAX_ROWS_IN_BARCODE=90,t.MODULES_IN_CODEWORD=17,t.MODULES_IN_STOP_PATTERN=18,t.BARS_IN_MODULE=8,t.EMPTY_INT_ARRAY=new Int32Array([]),t.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),t.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),t}();e.a=a},function(t,e,n){"use strict";var r;!function(t){t[t.OTHER=0]="OTHER",t[t.PURE_BARCODE=1]="PURE_BARCODE",t[t.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",t[t.TRY_HARDER=3]="TRY_HARDER",t[t.CHARACTER_SET=4]="CHARACTER_SET",t[t.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",t[t.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",t[t.ASSUME_GS1=7]="ASSUME_GS1",t[t.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",t[t.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",t[t.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"}(r||(r={})),e.a=r},function(t,e,n){"use strict";var r;!function(t){t[t.ERROR_CORRECTION=0]="ERROR_CORRECTION",t[t.CHARACTER_SET=1]="CHARACTER_SET",t[t.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",t[t.DATA_MATRIX_COMPACT=3]="DATA_MATRIX_COMPACT",t[t.MIN_SIZE=4]="MIN_SIZE",t[t.MAX_SIZE=5]="MAX_SIZE",t[t.MARGIN=6]="MARGIN",t[t.PDF417_COMPACT=7]="PDF417_COMPACT",t[t.PDF417_COMPACTION=8]="PDF417_COMPACTION",t[t.PDF417_DIMENSIONS=9]="PDF417_DIMENSIONS",t[t.AZTEC_LAYERS=10]="AZTEC_LAYERS",t[t.QR_VERSION=11]="QR_VERSION",t[t.GS1_FORMAT=12]="GS1_FORMAT",t[t.FORCE_C40=13]="FORCE_C40"}(r||(r={})),e.a=r},function(t,e,n){"use strict";var r=n(18),i=function(){function t(t,e,n,i,o,a){void 0===n&&(n=null==e?0:8*e.length),void 0===a&&(a=r.a.currentTimeMillis()),this.text=t,this.rawBytes=e,this.numBits=n,this.resultPoints=i,this.format=o,this.timestamp=a,this.text=t,this.rawBytes=e,this.numBits=void 0===n||null===n?null===e||void 0===e?0:8*e.length:n,this.resultPoints=i,this.format=o,this.resultMetadata=null,this.timestamp=void 0===a||null===a?r.a.currentTimeMillis():a}return t.prototype.getText=function(){return this.text},t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.getBarcodeFormat=function(){return this.format},t.prototype.getResultMetadata=function(){return this.resultMetadata},t.prototype.putMetadata=function(t,e){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(t,e)},t.prototype.putAllMetadata=function(t){null!==t&&(null===this.resultMetadata?this.resultMetadata=t:this.resultMetadata=new Map(t))},t.prototype.addResultPoints=function(t){var e=this.resultPoints;if(null===e)this.resultPoints=t;else if(null!==t&&t.length>0){var n=new Array(e.length+t.length);r.a.arraycopy(e,0,n,0,e.length),r.a.arraycopy(t,0,n,e.length,t.length),this.resultPoints=n}},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.toString=function(){return this.text},t}();e.a=i},function(t,e,n){"use strict";var r,i=n(18),o=n(6),a=n(92),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e,n){void 0===e&&(e=void 0),void 0===n&&(n=void 0);var r=t.call(this,n)||this;return r.index=e,r.message=n,r}return s(e,t),e.kind="ArrayIndexOutOfBoundsException",e}(a.a),l=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(){function t(){}return t.fill=function(t,e){for(var n=0,r=t.length;n<r;n++)t[n]=e},t.fillWithin=function(e,n,r,i){t.rangeCheck(e.length,n,r);for(var o=n;o<r;o++)e[o]=i},t.rangeCheck=function(t,e,n){if(e>n)throw new o.a("fromIndex("+e+") > toIndex("+n+")");if(e<0)throw new u(e);if(n>t)throw new u(n)},t.asList=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t},t.create=function(t,e,n){return Array.from({length:t}).map((function(t){return Array.from({length:e}).fill(n)}))},t.createInt32Array=function(t,e,n){return Array.from({length:t}).map((function(t){return Int32Array.from({length:e}).fill(n)}))},t.equals=function(t,e){if(!t)return!1;if(!e)return!1;if(!t.length)return!1;if(!e.length)return!1;if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0},t.hashCode=function(t){var e,n;if(null===t)return 0;var r=1;try{for(var i=l(t),o=i.next();!o.done;o=i.next()){r=31*r+o.value}}catch(a){e={error:a}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},t.fillUint8Array=function(t,e){for(var n=0;n!==t.length;n++)t[n]=e},t.copyOf=function(t,e){return t.slice(0,e)},t.copyOfUint8Array=function(t,e){if(t.length<=e){var n=new Uint8Array(e);return n.set(t),n}return t.slice(0,e)},t.copyOfRange=function(t,e,n){var r=n-e,o=new Int32Array(r);return i.a.arraycopy(t,e,o,0,r),o},t.binarySearch=function(e,n,r){void 0===r&&(r=t.numberComparator);for(var i=0,o=e.length-1;i<=o;){var a=o+i>>1,s=r(n,e[a]);if(s>0)i=a+1;else{if(!(s<0))return a;o=a-1}}return-i-1},t.numberComparator=function(t,e){return t-e},t}();e.a=c},function(t,e,n){"use strict";var r=n(31),i=n(21),o=n(33),a=n(8),s=n(1);function u(t){return u="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},u(t)}var l=function(){function t(){}return t.prototype.decode=function(t,e){try{return this.doDecode(t,e)}catch(f){if(e&&!0===e.get(i.a.TRY_HARDER)&&t.isRotateSupported()){var n=t.rotateCounterClockwise(),r=this.doDecode(n,e),u=r.getResultMetadata(),l=270;null!==u&&!0===u.get(o.a.ORIENTATION)&&(l+=u.get(o.a.ORIENTATION)%360),r.putMetadata(o.a.ORIENTATION,l);var c=r.getResultPoints();if(null!==c)for(var d=n.getHeight(),h=0;h<c.length;h++)c[h]=new a.a(d-c[h].getY()-1,c[h].getX());return r}throw new s.a}},t.prototype.reset=function(){},t.prototype.doDecode=function(t,e){var n,l=t.getWidth(),c=t.getHeight(),d=new r.a(l),h=e&&!0===e.get(i.a.TRY_HARDER),f=Math.max(1,c>>(h?8:5));n=h?c:15;for(var p=Math.trunc(c/2),m=0;m<n;m++){var g=Math.trunc((m+1)/2),y=p+f*(0===(1&m)?g:-g);if(y<0||y>=c)break;try{d=t.getBlackRow(y,d)}catch(k){continue}for(var v=function(t){if(1===t&&(d.reverse(),e&&!0===e.get(i.a.NEED_RESULT_POINT_CALLBACK))){var n=new Map;e.forEach((function(t,e){return n.set(e,t)})),n.delete(i.a.NEED_RESULT_POINT_CALLBACK),e=n}try{var r=_.decodeRow(y,d,e);if(1===t){r.putMetadata(o.a.ORIENTATION,180);var s=r.getResultPoints();null!==s&&(s[0]=new a.a(l-s[0].getX()-1,s[0].getY()),s[1]=new a.a(l-s[1].getX()-1,s[1].getY()))}return{value:r}}catch(u){}},_=this,b=0;b<2;b++){var w=v(b);if("object"===u(w))return w.value}}throw new s.a},t.recordPattern=function(t,e,n){for(var r=n.length,i=0;i<r;i++)n[i]=0;var o=t.getSize();if(e>=o)throw new s.a;for(var a=!t.get(e),u=0,l=e;l<o;){if(t.get(l)!==a)n[u]++;else{if(++u===r)break;n[u]=1,a=!a}l++}if(u!==r&&(u!==r-1||l!==o))throw new s.a},t.recordPatternInReverse=function(e,n,r){for(var i=r.length,o=e.get(n);n>0&&i>=0;)e.get(--n)!==o&&(i--,o=!o);if(i>=0)throw new s.a;t.recordPattern(e,n+1,r)},t.patternMatchVariance=function(t,e,n){for(var r=t.length,i=0,o=0,a=0;a<r;a++)i+=t[a],o+=e[a];if(i<o)return Number.POSITIVE_INFINITY;var s=i/o;n*=s;for(var u=0,l=0;l<r;l++){var c=t[l],d=e[l]*s,h=c>d?c-d:d-c;if(h>n)return Number.POSITIVE_INFINITY;u+=h}return u/i},t}();e.a=l},function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=t.constructor);var n=Error.captureStackTrace;n&&n(t,e)}var i,o=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(e,n){var i,o,a,s=this.constructor,u=t.call(this,e,n)||this;return Object.defineProperty(u,"name",{value:s.name,enumerable:!1,configurable:!0}),i=u,o=s.prototype,(a=Object.setPrototypeOf)?a(i,o):i.__proto__=o,r(u),u}return o(e,t),e}(Error);var s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(t){function e(e){void 0===e&&(e=void 0);var n=t.call(this,e)||this;return n.message=e,n}return s(e,t),e.prototype.getKind=function(){return this.constructor.kind},e.kind="Exception",e}(a);e.a=u},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e}(i.a);e.a=a},function(t,e,n){"use strict";var r,i=n(6);!function(t){t[t.TERMINATOR=0]="TERMINATOR",t[t.NUMERIC=1]="NUMERIC",t[t.ALPHANUMERIC=2]="ALPHANUMERIC",t[t.STRUCTURED_APPEND=3]="STRUCTURED_APPEND",t[t.BYTE=4]="BYTE",t[t.ECI=5]="ECI",t[t.KANJI=6]="KANJI",t[t.FNC1_FIRST_POSITION=7]="FNC1_FIRST_POSITION",t[t.FNC1_SECOND_POSITION=8]="FNC1_SECOND_POSITION",t[t.HANZI=9]="HANZI"}(r||(r={}));var o=function(){function t(e,n,r,i){this.value=e,this.stringValue=n,this.characterCountBitsForVersions=r,this.bits=i,t.FOR_BITS.set(i,this),t.FOR_VALUE.set(e,this)}return t.forBits=function(e){var n=t.FOR_BITS.get(e);if(void 0===n)throw new i.a;return n},t.prototype.getCharacterCountBits=function(t){var e,n=t.getVersionNumber();return e=n<=9?0:n<=26?1:2,this.characterCountBitsForVersions[e]},t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value},t.prototype.toString=function(){return this.stringValue},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.TERMINATOR=new t(r.TERMINATOR,"TERMINATOR",Int32Array.from([0,0,0]),0),t.NUMERIC=new t(r.NUMERIC,"NUMERIC",Int32Array.from([10,12,14]),1),t.ALPHANUMERIC=new t(r.ALPHANUMERIC,"ALPHANUMERIC",Int32Array.from([9,11,13]),2),t.STRUCTURED_APPEND=new t(r.STRUCTURED_APPEND,"STRUCTURED_APPEND",Int32Array.from([0,0,0]),3),t.BYTE=new t(r.BYTE,"BYTE",Int32Array.from([8,16,16]),4),t.ECI=new t(r.ECI,"ECI",Int32Array.from([0,0,0]),7),t.KANJI=new t(r.KANJI,"KANJI",Int32Array.from([8,10,12]),8),t.FNC1_FIRST_POSITION=new t(r.FNC1_FIRST_POSITION,"FNC1_FIRST_POSITION",Int32Array.from([0,0,0]),5),t.FNC1_SECOND_POSITION=new t(r.FNC1_SECOND_POSITION,"FNC1_SECOND_POSITION",Int32Array.from([0,0,0]),9),t.HANZI=new t(r.HANZI,"HANZI",Int32Array.from([8,10,12]),13),t}();e.a=o},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="WriterException",e}(i.a);e.a=a},function(t,e,n){"use strict";var r=n(31),i=n(18),o=n(24),a=n(9),s=n(6),u=function(){function t(t,e,n,r){if(this.width=t,this.height=e,this.rowSize=n,this.bits=r,void 0!==e&&null!==e||(e=t),this.height=e,t<1||e<1)throw new s.a("Both dimensions must be greater than 0");void 0!==n&&null!==n||(n=Math.floor((t+31)/32)),this.rowSize=n,void 0!==r&&null!==r||(this.bits=new Int32Array(this.rowSize*this.height))}return t.parseFromBooleanArray=function(e){for(var n=e.length,r=e[0].length,i=new t(r,n),o=0;o<n;o++)for(var a=e[o],s=0;s<r;s++)a[s]&&i.set(s,o);return i},t.parseFromString=function(e,n,r){if(null===e)throw new s.a("stringRepresentation cannot be null");for(var i=new Array(e.length),o=0,a=0,u=-1,l=0,c=0;c<e.length;)if("\n"===e.charAt(c)||"\r"===e.charAt(c)){if(o>a){if(-1===u)u=o-a;else if(o-a!==u)throw new s.a("row lengths do not match");a=o,l++}c++}else if(e.substring(c,c+n.length)===n)c+=n.length,i[o]=!0,o++;else{if(e.substring(c,c+r.length)!==r)throw new s.a("illegal character encountered: "+e.substring(c));c+=r.length,i[o]=!1,o++}if(o>a){if(-1===u)u=o-a;else if(o-a!==u)throw new s.a("row lengths do not match");l++}for(var d=new t(u,l),h=0;h<o;h++)i[h]&&d.set(Math.floor(h%u),Math.floor(h/u));return d},t.prototype.get=function(t,e){var n=e*this.rowSize+Math.floor(t/32);return 0!==(this.bits[n]>>>(31&t)&1)},t.prototype.set=function(t,e){var n=e*this.rowSize+Math.floor(t/32);this.bits[n]|=1<<(31&t)&4294967295},t.prototype.unset=function(t,e){var n=e*this.rowSize+Math.floor(t/32);this.bits[n]&=~(1<<(31&t)&4294967295)},t.prototype.flip=function(t,e){var n=e*this.rowSize+Math.floor(t/32);this.bits[n]^=1<<(31&t)&4294967295},t.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new s.a("input matrix dimensions do not match");for(var e=new r.a(Math.floor(this.width/32)+1),n=this.rowSize,i=this.bits,o=0,a=this.height;o<a;o++)for(var u=o*n,l=t.getRow(o,e).getBitArray(),c=0;c<n;c++)i[u+c]^=l[c]},t.prototype.clear=function(){for(var t=this.bits,e=t.length,n=0;n<e;n++)t[n]=0},t.prototype.setRegion=function(t,e,n,r){if(e<0||t<0)throw new s.a("Left and top must be nonnegative");if(r<1||n<1)throw new s.a("Height and width must be at least 1");var i=t+n,o=e+r;if(o>this.height||i>this.width)throw new s.a("The region must fit inside the matrix");for(var a=this.rowSize,u=this.bits,l=e;l<o;l++)for(var c=l*a,d=t;d<i;d++)u[c+Math.floor(d/32)]|=1<<(31&d)&4294967295},t.prototype.getRow=function(t,e){null===e||void 0===e||e.getSize()<this.width?e=new r.a(this.width):e.clear();for(var n=this.rowSize,i=this.bits,o=t*n,a=0;a<n;a++)e.setBulk(32*a,i[o+a]);return e},t.prototype.setRow=function(t,e){i.a.arraycopy(e.getBitArray(),0,this.bits,t*this.rowSize,this.rowSize)},t.prototype.rotate180=function(){for(var t=this.getWidth(),e=this.getHeight(),n=new r.a(t),i=new r.a(t),o=0,a=Math.floor((e+1)/2);o<a;o++)n=this.getRow(o,n),i=this.getRow(e-1-o,i),n.reverse(),i.reverse(),this.setRow(o,i),this.setRow(e-1-o,n)},t.prototype.getEnclosingRectangle=function(){for(var t=this.width,e=this.height,n=this.rowSize,r=this.bits,i=t,o=e,a=-1,s=-1,u=0;u<e;u++)for(var l=0;l<n;l++){var c=r[u*n+l];if(0!==c){if(u<o&&(o=u),u>s&&(s=u),32*l<i){for(var d=0;0===(c<<31-d&4294967295);)d++;32*l+d<i&&(i=32*l+d)}if(32*l+31>a){for(d=31;c>>>d===0;)d--;32*l+d>a&&(a=32*l+d)}}}return a<i||s<o?null:Int32Array.from([i,o,a-i+1,s-o+1])},t.prototype.getTopLeftOnBit=function(){for(var t=this.rowSize,e=this.bits,n=0;n<e.length&&0===e[n];)n++;if(n===e.length)return null;for(var r=n/t,i=n%t*32,o=e[n],a=0;0===(o<<31-a&4294967295);)a++;return i+=a,Int32Array.from([i,r])},t.prototype.getBottomRightOnBit=function(){for(var t=this.rowSize,e=this.bits,n=e.length-1;n>=0&&0===e[n];)n--;if(n<0)return null;for(var r=Math.floor(n/t),i=32*Math.floor(n%t),o=e[n],a=31;o>>>a===0;)a--;return i+=a,Int32Array.from([i,r])},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRowSize=function(){return this.rowSize},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.width===n.width&&this.height===n.height&&this.rowSize===n.rowSize&&o.a.equals(this.bits,n.bits)},t.prototype.hashCode=function(){var t=this.width;return t=31*(t=31*(t=31*(t=31*t+this.width)+this.height)+this.rowSize)+o.a.hashCode(this.bits)},t.prototype.toString=function(t,e,n){return void 0===t&&(t="X "),void 0===e&&(e="  "),void 0===n&&(n="\n"),this.buildToString(t,e,n)},t.prototype.buildToString=function(t,e,n){for(var r=new a.a,i=0,o=this.height;i<o;i++){for(var s=0,u=this.width;s<u;s++)r.append(this.get(s,i)?t:e);r.append(n)}return r.toString()},t.prototype.clone=function(){return new t(this.width,this.height,this.rowSize,this.bits.slice())},t}();e.a=u},function(t,e,n){"use strict";var r=n(6),i=n(24),o=n(12),a=n(18),s=function(){function t(e,n){void 0===e?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,this.bits=void 0===n||null===n?t.makeArray(e):n)}return t.prototype.getSize=function(){return this.size},t.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},t.prototype.ensureCapacity=function(e){if(e>32*this.bits.length){var n=t.makeArray(e);a.a.arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},t.prototype.get=function(t){return 0!==(this.bits[Math.floor(t/32)]&1<<(31&t))},t.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(31&t)},t.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(31&t)},t.prototype.getNextSet=function(t){var e=this.size;if(t>=e)return e;var n=this.bits,r=Math.floor(t/32),i=n[r];i&=~((1<<(31&t))-1);for(var a=n.length;0===i;){if(++r===a)return e;i=n[r]}var s=32*r+o.a.numberOfTrailingZeros(i);return s>e?e:s},t.prototype.getNextUnset=function(t){var e=this.size;if(t>=e)return e;var n=this.bits,r=Math.floor(t/32),i=~n[r];i&=~((1<<(31&t))-1);for(var a=n.length;0===i;){if(++r===a)return e;i=~n[r]}var s=32*r+o.a.numberOfTrailingZeros(i);return s>e?e:s},t.prototype.setBulk=function(t,e){this.bits[Math.floor(t/32)]=e},t.prototype.setRange=function(t,e){if(e<t||t<0||e>this.size)throw new r.a;if(e!==t){e--;for(var n=Math.floor(t/32),i=Math.floor(e/32),o=this.bits,a=n;a<=i;a++){var s=(2<<(a<i?31:31&e))-(1<<(a>n?0:31&t));o[a]|=s}}},t.prototype.clear=function(){for(var t=this.bits.length,e=this.bits,n=0;n<t;n++)e[n]=0},t.prototype.isRange=function(t,e,n){if(e<t||t<0||e>this.size)throw new r.a;if(e===t)return!0;e--;for(var i=Math.floor(t/32),o=Math.floor(e/32),a=this.bits,s=i;s<=o;s++){var u=(2<<(s<o?31:31&e))-(1<<(s>i?0:31&t))&4294967295;if((a[s]&u)!==(n?u:0))return!1}return!0},t.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},t.prototype.appendBits=function(t,e){if(e<0||e>32)throw new r.a("Num bits must be between 0 and 32");this.ensureCapacity(this.size+e);for(var n=e;n>0;n--)this.appendBit(1===(t>>n-1&1))},t.prototype.appendBitArray=function(t){var e=t.size;this.ensureCapacity(this.size+e);for(var n=0;n<e;n++)this.appendBit(t.get(n))},t.prototype.xor=function(t){if(this.size!==t.size)throw new r.a("Sizes don't match");for(var e=this.bits,n=0,i=e.length;n<i;n++)e[n]^=t.bits[n]},t.prototype.toBytes=function(t,e,n,r){for(var i=0;i<r;i++){for(var o=0,a=0;a<8;a++)this.get(t)&&(o|=1<<7-a),t++;e[n+i]=o}},t.prototype.getBitArray=function(){return this.bits},t.prototype.reverse=function(){for(var t=new Int32Array(this.bits.length),e=Math.floor((this.size-1)/32),n=e+1,r=this.bits,i=0;i<n;i++){var o=r[i];o=(o=(o=(o=(o=o>>1&1431655765|(1431655765&o)<<1)>>2&858993459|(858993459&o)<<2)>>4&252645135|(252645135&o)<<4)>>8&16711935|(16711935&o)<<8)>>16&65535|(65535&o)<<16,t[e-i]=o}if(this.size!==32*n){var a=32*n-this.size,s=t[0]>>>a;for(i=1;i<n;i++){var u=t[i];s|=u<<32-a,t[i-1]=s,s=u>>>a}t[n-1]=s}this.bits=t},t.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.size===n.size&&i.a.equals(this.bits,n.bits)},t.prototype.hashCode=function(){return 31*this.size+i.a.hashCode(this.bits)},t.prototype.toString=function(){for(var t="",e=0,n=this.size;e<n;e++)0===(7&e)&&(t+=" "),t+=this.get(e)?"X":".";return t},t.prototype.clone=function(){return new t(this.size,this.bits.slice())},t.prototype.toArray=function(){for(var t=[],e=0,n=this.size;e<n;e++)t.push(this.get(e));return t},t}();e.a=s},function(t,e,n){"use strict";var r,i=n(5),o=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(t){t[t.Cp437=0]="Cp437",t[t.ISO8859_1=1]="ISO8859_1",t[t.ISO8859_2=2]="ISO8859_2",t[t.ISO8859_3=3]="ISO8859_3",t[t.ISO8859_4=4]="ISO8859_4",t[t.ISO8859_5=5]="ISO8859_5",t[t.ISO8859_6=6]="ISO8859_6",t[t.ISO8859_7=7]="ISO8859_7",t[t.ISO8859_8=8]="ISO8859_8",t[t.ISO8859_9=9]="ISO8859_9",t[t.ISO8859_10=10]="ISO8859_10",t[t.ISO8859_11=11]="ISO8859_11",t[t.ISO8859_13=12]="ISO8859_13",t[t.ISO8859_14=13]="ISO8859_14",t[t.ISO8859_15=14]="ISO8859_15",t[t.ISO8859_16=15]="ISO8859_16",t[t.SJIS=16]="SJIS",t[t.Cp1250=17]="Cp1250",t[t.Cp1251=18]="Cp1251",t[t.Cp1252=19]="Cp1252",t[t.Cp1256=20]="Cp1256",t[t.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",t[t.UTF8=22]="UTF8",t[t.ASCII=23]="ASCII",t[t.Big5=24]="Big5",t[t.GB18030=25]="GB18030",t[t.EUC_KR=26]="EUC_KR"}(r||(r={}));var a=function(){function t(e,n,r){for(var i,a,s=[],u=3;u<arguments.length;u++)s[u-3]=arguments[u];this.valueIdentifier=e,this.name=r,this.values="number"===typeof n?Int32Array.from([n]):n,this.otherEncodingNames=s,t.VALUE_IDENTIFIER_TO_ECI.set(e,this),t.NAME_TO_ECI.set(r,this);for(var l=this.values,c=0,d=l.length;c!==d;c++){var h=l[c];t.VALUES_TO_ECI.set(h,this)}try{for(var f=o(s),p=f.next();!p.done;p=f.next()){var m=p.value;t.NAME_TO_ECI.set(m,this)}}catch(g){i={error:g}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}}return t.prototype.getValueIdentifier=function(){return this.valueIdentifier},t.prototype.getName=function(){return this.name},t.prototype.getValue=function(){return this.values[0]},t.getCharacterSetECIByValue=function(e){if(e<0||e>=900)throw new i.a("incorect value");var n=t.VALUES_TO_ECI.get(e);if(void 0===n)throw new i.a("incorect value");return n},t.getCharacterSetECIByName=function(e){var n=t.NAME_TO_ECI.get(e);if(void 0===n)throw new i.a("incorect value");return n},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.getName()===n.getName()},t.VALUE_IDENTIFIER_TO_ECI=new Map,t.VALUES_TO_ECI=new Map,t.NAME_TO_ECI=new Map,t.Cp437=new t(r.Cp437,Int32Array.from([0,2]),"Cp437"),t.ISO8859_1=new t(r.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),t.ISO8859_2=new t(r.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),t.ISO8859_3=new t(r.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),t.ISO8859_4=new t(r.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),t.ISO8859_5=new t(r.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),t.ISO8859_6=new t(r.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),t.ISO8859_7=new t(r.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),t.ISO8859_8=new t(r.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),t.ISO8859_9=new t(r.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),t.ISO8859_10=new t(r.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),t.ISO8859_11=new t(r.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),t.ISO8859_13=new t(r.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),t.ISO8859_14=new t(r.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),t.ISO8859_15=new t(r.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),t.ISO8859_16=new t(r.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),t.SJIS=new t(r.SJIS,20,"SJIS","Shift_JIS"),t.Cp1250=new t(r.Cp1250,21,"Cp1250","windows-1250"),t.Cp1251=new t(r.Cp1251,22,"Cp1251","windows-1251"),t.Cp1252=new t(r.Cp1252,23,"Cp1252","windows-1252"),t.Cp1256=new t(r.Cp1256,24,"Cp1256","windows-1256"),t.UnicodeBigUnmarked=new t(r.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),t.UTF8=new t(r.UTF8,26,"UTF8","UTF-8"),t.ASCII=new t(r.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),t.Big5=new t(r.Big5,28,"Big5"),t.GB18030=new t(r.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),t.EUC_KR=new t(r.EUC_KR,30,"EUC_KR","EUC-KR"),t}();e.a=a},function(t,e,n){"use strict";var r;!function(t){t[t.OTHER=0]="OTHER",t[t.ORIENTATION=1]="ORIENTATION",t[t.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",t[t.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",t[t.ISSUE_NUMBER=4]="ISSUE_NUMBER",t[t.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",t[t.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",t[t.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",t[t.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",t[t.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",t[t.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"}(r||(r={})),e.a=r},function(t,e,n){"use strict";var r,i=n(44),o=n(76),a=n(12),s=n(6),u=n(83),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e,n,r){var o=t.call(this)||this;o.primitive=e,o.size=n,o.generatorBase=r;for(var a=new Int32Array(n),s=1,u=0;u<n;u++)a[u]=s,(s*=2)>=n&&(s^=e,s&=n-1);o.expTable=a;var l=new Int32Array(n);for(u=0;u<n-1;u++)l[a[u]]=u;return o.logTable=l,o.zero=new i.a(o,Int32Array.from([0])),o.one=new i.a(o,Int32Array.from([1])),o}return l(e,t),e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(t,e){if(t<0)throw new s.a;if(0===e)return this.zero;var n=new Int32Array(t+1);return n[0]=e,new i.a(this,n)},e.prototype.inverse=function(t){if(0===t)throw new u.a;return this.expTable[this.size-this.logTable[t]-1]},e.prototype.multiply=function(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.size-1)]},e.prototype.getSize=function(){return this.size},e.prototype.getGeneratorBase=function(){return this.generatorBase},e.prototype.toString=function(){return"GF(0x"+a.a.toHexString(this.primitive)+","+this.size+")"},e.prototype.equals=function(t){return t===this},e.AZTEC_DATA_12=new e(4201,4096,1),e.AZTEC_DATA_10=new e(1033,1024,1),e.AZTEC_DATA_6=new e(67,64,1),e.AZTEC_PARAM=new e(19,16,1),e.QR_CODE_FIELD_256=new e(285,256,0),e.DATA_MATRIX_FIELD_256=new e(301,256,1),e.AZTEC_DATA_8=e.DATA_MATRIX_FIELD_256,e.MAXICODE_FIELD_64=e.AZTEC_DATA_6,e}(o.a);e.a=c},function(t,e,n){"use strict";var r,i=n(7),o=n(21),a=n(23),s=n(33),u=n(8),l=n(25),c=n(1),d=n(5),h=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.decodeRowStringBuffer="",e}return h(e,t),e.findStartGuardPattern=function(t){for(var n,r=!1,i=0,o=Int32Array.from([0,0,0]);!r;){o=Int32Array.from([0,0,0]);var a=(n=e.findGuardPattern(t,i,!1,this.START_END_PATTERN,o))[0],s=a-((i=n[1])-a);s>=0&&(r=t.isRange(s,a,!1))}return n},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var n=t.length;if(0===n)return!1;var r=parseInt(t.charAt(n-1),10);return e.getStandardUPCEANChecksum(t.substring(0,n-1))===r},e.getStandardUPCEANChecksum=function(t){for(var e=t.length,n=0,r=e-1;r>=0;r-=2){if((i=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0))<0||i>9)throw new d.a;n+=i}n*=3;for(r=e-2;r>=0;r-=2){var i;if((i=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0))<0||i>9)throw new d.a;n+=i}return(1e3-n)%10},e.decodeEnd=function(t,n){return e.findGuardPattern(t,n,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e.findGuardPatternWithoutCounters=function(t,e,n,r){return this.findGuardPattern(t,e,n,r,new Int32Array(r.length))},e.findGuardPattern=function(t,n,r,i,o){for(var a=t.getSize(),s=0,u=n=r?t.getNextUnset(n):t.getNextSet(n),d=i.length,h=r,f=n;f<a;f++)if(t.get(f)!==h)o[s]++;else{if(s===d-1){if(l.a.patternMatchVariance(o,i,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return Int32Array.from([u,f]);u+=o[0]+o[1];for(var p=o.slice(2,o.length),m=0;m<s-1;m++)o[m]=p[m];o[s-1]=0,o[s]=0,s--}else s++;o[s]=1,h=!h}throw new c.a},e.decodeDigit=function(t,n,r,i){this.recordPattern(t,r,n);for(var o=this.MAX_AVG_VARIANCE,a=-1,s=i.length,u=0;u<s;u++){var d=i[u],h=l.a.patternMatchVariance(n,d,e.MAX_INDIVIDUAL_VARIANCE);h<o&&(o=h,a=u)}if(a>=0)return a;throw new c.a},e.MAX_AVG_VARIANCE=.48,e.MAX_INDIVIDUAL_VARIANCE=.7,e.START_END_PATTERN=Int32Array.from([1,1,1]),e.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),e.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],e}(l.a),p=f,m=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(){function t(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,n,r){var o=this.decodeRowStringBuffer,s=this.decodeMiddle(n,r,o),l=o.toString(),c=t.parseExtensionString(l),d=[new u.a((r[0]+r[1])/2,e),new u.a(s,e)],h=new a.a(l,null,0,d,i.a.UPC_EAN_EXTENSION,(new Date).getTime());return null!=c&&h.putAllMetadata(c),h},t.prototype.decodeMiddle=function(e,n,r){var i,o,a=this.decodeMiddleCounters;a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=e.getSize(),u=n[1],l=0,d=0;d<5&&u<s;d++){var h=p.decodeDigit(e,a,u,p.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+h%10);try{for(var f=(i=void 0,m(a)),g=f.next();!g.done;g=f.next()){u+=g.value}}catch(v){i={error:v}}finally{try{g&&!g.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}h>=10&&(l|=1<<4-d),4!==d&&(u=e.getNextSet(u),u=e.getNextUnset(u))}if(5!==r.length)throw new c.a;var y=this.determineCheckDigit(l);if(t.extensionChecksum(r.toString())!==y)throw new c.a;return u},t.extensionChecksum=function(t){for(var e=t.length,n=0,r=e-2;r>=0;r-=2)n+=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);n*=3;for(r=e-1;r>=0;r-=2)n+=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0);return(n*=3)%10},t.prototype.determineCheckDigit=function(t){for(var e=0;e<10;e++)if(t===this.CHECK_DIGIT_ENCODINGS[e])return e;throw new c.a},t.parseExtensionString=function(e){if(5!==e.length)return null;var n=t.parseExtension5String(e);return null==n?null:new Map([[s.a.SUGGESTED_PRICE,n]])},t.parseExtension5String=function(t){var e;switch(t.charAt(0)){case"0":e="\xa3";break;case"5":e="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}e="";break;default:e=""}var n=parseInt(t.substring(1)),r=n%100;return e+(n/100).toString()+"."+(r<10?"0"+r:r.toString())},t}(),y=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function t(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return t.prototype.decodeRow=function(e,n,r){var o=this.decodeRowStringBuffer,s=this.decodeMiddle(n,r,o),l=o.toString(),c=t.parseExtensionString(l),d=[new u.a((r[0]+r[1])/2,e),new u.a(s,e)],h=new a.a(l,null,0,d,i.a.UPC_EAN_EXTENSION,(new Date).getTime());return null!=c&&h.putAllMetadata(c),h},t.prototype.decodeMiddle=function(t,e,n){var r,i,o=this.decodeMiddleCounters;o[0]=0,o[1]=0,o[2]=0,o[3]=0;for(var a=t.getSize(),s=e[1],u=0,l=0;l<2&&s<a;l++){var d=p.decodeDigit(t,o,s,p.L_AND_G_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+d%10);try{for(var h=(r=void 0,y(o)),f=h.next();!f.done;f=h.next()){s+=f.value}}catch(m){r={error:m}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}d>=10&&(u|=1<<1-l),1!==l&&(s=t.getNextSet(s),s=t.getNextUnset(s))}if(2!==n.length)throw new c.a;if(parseInt(n.toString())%4!==u)throw new c.a;return s},t.parseExtensionString=function(t){return 2!==t.length?null:new Map([[s.a.ISSUE_NUMBER,parseInt(t)]])},t}(),_=function(){function t(){}return t.decodeRow=function(t,e,n){var r=p.findGuardPattern(e,n,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new g).decodeRow(t,e,r)}catch(i){return(new v).decodeRow(t,e,r)}},t.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),t}(),b=n(27),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(t){function e(){var n=t.call(this)||this;n.decodeRowStringBuffer="",e.L_AND_G_PATTERNS=e.L_PATTERNS.map((function(t){return Int32Array.from(t)}));for(var r=10;r<20;r++){for(var i=e.L_PATTERNS[r-10],o=new Int32Array(i.length),a=0;a<i.length;a++)o[a]=i[i.length-a-1];e.L_AND_G_PATTERNS[r]=o}return n}return w(e,t),e.prototype.decodeRow=function(t,n,r){var l=e.findStartGuardPattern(n),h=null==r?null:r.get(o.a.NEED_RESULT_POINT_CALLBACK);if(null!=h){var f=new u.a((l[0]+l[1])/2,t);h.foundPossibleResultPoint(f)}var p=this.decodeMiddle(n,l,this.decodeRowStringBuffer),m=p.rowOffset,g=p.resultString;if(null!=h){var y=new u.a(m,t);h.foundPossibleResultPoint(y)}var v=e.decodeEnd(n,m);if(null!=h){var w=new u.a((v[0]+v[1])/2,t);h.foundPossibleResultPoint(w)}var k=v[1],S=k+(k-v[0]);if(S>=n.getSize()||!n.isRange(k,S,!1))throw new c.a;var E=g.toString();if(E.length<8)throw new d.a;if(!e.checkChecksum(E))throw new b.a;var C=(l[1]+l[0])/2,x=(v[1]+v[0])/2,D=this.getBarcodeFormat(),A=[new u.a(C,t),new u.a(x,t)],T=new a.a(E,null,0,A,D,(new Date).getTime()),M=0;try{var L=_.decodeRow(t,n,v[1]);T.putMetadata(s.a.UPC_EAN_EXTENSION,L.getText()),T.putAllMetadata(L.getResultMetadata()),T.addResultPoints(L.getResultPoints()),M=L.getText().length}catch(R){}var O=null==r?null:r.get(o.a.ALLOWED_EAN_EXTENSIONS);if(null!=O){var I=!1;for(var P in O)if(M.toString()===P){I=!0;break}if(!I)throw new c.a}return D===i.a.EAN_13||i.a.UPC_A,T},e.checkChecksum=function(t){return e.checkStandardUPCEANChecksum(t)},e.checkStandardUPCEANChecksum=function(t){var n=t.length;if(0===n)return!1;var r=parseInt(t.charAt(n-1),10);return e.getStandardUPCEANChecksum(t.substring(0,n-1))===r},e.getStandardUPCEANChecksum=function(t){for(var e=t.length,n=0,r=e-1;r>=0;r-=2){if((i=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0))<0||i>9)throw new d.a;n+=i}n*=3;for(r=e-2;r>=0;r-=2){var i;if((i=t.charAt(r).charCodeAt(0)-"0".charCodeAt(0))<0||i>9)throw new d.a;n+=i}return(1e3-n)%10},e.decodeEnd=function(t,n){return e.findGuardPattern(t,n,!1,e.START_END_PATTERN,new Int32Array(e.START_END_PATTERN.length).fill(0))},e}(p);e.a=k},function(t,e,n){var r;void 0===(r=function(){return window.document}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r=n(62),i=n(32),o=function(){function t(){}return t.decode=function(t,e){var n=this.encodingName(e);return this.customDecoder?this.customDecoder(t,n):"undefined"===typeof TextDecoder||this.shouldDecodeOnFallback(n)?this.decodeFallback(t,n):new TextDecoder(n).decode(t)},t.shouldDecodeOnFallback=function(e){return!t.isBrowser()&&"ISO-8859-1"===e},t.encode=function(t,e){var n=this.encodingName(e);return this.customEncoder?this.customEncoder(t,n):"undefined"===typeof TextEncoder?this.encodeFallback(t):(new TextEncoder).encode(t)},t.isBrowser=function(){return"undefined"!==typeof window&&"[object Window]"==={}.toString.call(window)},t.encodingName=function(t){return"string"===typeof t?t:t.getName()},t.encodingCharacterSet=function(t){return t instanceof i.a?t:i.a.getCharacterSetECIByName(t)},t.decodeFallback=function(e,n){var o=this.encodingCharacterSet(n);if(t.isDecodeFallbackSupported(o)){for(var a="",s=0,u=e.length;s<u;s++){var l=e[s].toString(16);l.length<2&&(l="0"+l),a+="%"+l}return decodeURIComponent(a)}if(o.equals(i.a.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new r.a("Encoding "+this.encodingName(n)+" not supported by fallback.")},t.isDecodeFallbackSupported=function(t){return t.equals(i.a.UTF8)||t.equals(i.a.ISO8859_1)||t.equals(i.a.ASCII)},t.encodeFallback=function(t){for(var e=btoa(unescape(encodeURIComponent(t))).split(""),n=[],r=0;r<e.length;r++)n.push(e[r].charCodeAt(0));return new Uint8Array(n)},t}();e.a=o},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="IllegalStateException",e}(i.a);e.a=a},function(t,e,n){var r,i;r=[n(392)],void 0===(i=function(){}.apply(e,r))||(t.exports=i)},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="ArgumentException",e}(i.a);e.a=a},function(t,e,n){"use strict";function r(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return Yn})),n.d(e,"e",(function(){return Ie})),n.d(e,"f",(function(){return xe})),n.d(e,"b",(function(){return ar})),n.d(e,"h",(function(){return Pt})),n.d(e,"a",(function(){return Nr})),n.d(e,"g",(function(){return Yr}));var i={value:function(){}};function o(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new a(r)}function a(t){this._=t}function s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var r=0,o=t.length;r<o;++r)if(t[r].name===e){t[r]=i,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}a.prototype=o.prototype={constructor:a,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,l=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);for(;++a<l;)if(n=(t=o[a]).type)i[n]=u(i[n],t.name,e);else if(null==e)for(n in i)i[n]=u(i[n],t.name,null);return this}for(;++a<l;)if((n=(t=o[a]).type)&&(n=s(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new a(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var l=o;function c(){}var d=function(t){return null==t?c:function(){return this.querySelector(t)}};function h(){return[]}var f=function(t){return null==t?h:function(){return this.querySelectorAll(t)}};function p(t){return function(){return null==(e=t.apply(this,arguments))?[]:Array.isArray(e)?e:Array.from(e);var e}}var m=function(t){return function(){return this.matches(t)}};function g(t){return function(e){return e.matches(t)}}var y=Array.prototype.find;function v(){return this.firstElementChild}var _=Array.prototype.filter;function b(){return Array.from(this.children)}var w=function(t){return new Array(t.length)};function k(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}k.prototype={constructor:k,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function S(t){return S="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},S(t)}function E(t,e,n,r,i,o){for(var a,s=0,u=e.length,l=o.length;s<l;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new k(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function C(t,e,n,r,i,o,a){var s,u,l,c=new Map,d=e.length,h=o.length,f=new Array(d);for(s=0;s<d;++s)(u=e[s])&&(f[s]=l=a.call(u,u.__data__,s,e)+"",c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<h;++s)l=a.call(t,o[s],s,o)+"",(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new k(t,o[s]);for(s=0;s<d;++s)(u=e[s])&&c.get(f[s])===u&&(i[s]=u)}function x(t){return t.__data__}function D(t){return"object"===S(t)&&"length"in t?t:Array.from(t)}function A(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function T(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var L="http://www.w3.org/1999/xhtml",O={svg:"http://www.w3.org/2000/svg",xhtml:L,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},I=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),O.hasOwnProperty(e)?{space:O[e],local:t}:t};function P(t){return function(){this.removeAttribute(t)}}function R(t){return function(){this.removeAttributeNS(t.space,t.local)}}function N(t,e){return function(){this.setAttribute(t,e)}}function F(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function j(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function B(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var Y=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function H(t){return function(){this.style.removeProperty(t)}}function z(t,e,n){return function(){this.style.setProperty(t,e,n)}}function W(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function V(t,e){return t.style.getPropertyValue(e)||Y(t).getComputedStyle(t,null).getPropertyValue(e)}function U(t){return function(){delete this[t]}}function q(t,e){return function(){this[t]=e}}function G(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function $(t){return t.trim().split(/^|\s+/)}function K(t){return t.classList||new Z(t)}function Z(t){this._node=t,this._names=$(t.getAttribute("class")||"")}function X(t,e){for(var n=K(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function J(t,e){for(var n=K(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Q(t){return function(){X(this,t)}}function tt(t){return function(){J(this,t)}}function et(t,e){return function(){(e.apply(this,arguments)?X:J)(this,t)}}Z.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function nt(){this.textContent=""}function rt(t){return function(){this.textContent=t}}function it(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function ot(){this.innerHTML=""}function at(t){return function(){this.innerHTML=t}}function st(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function ut(){this.nextSibling&&this.parentNode.appendChild(this)}function lt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ct(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===L&&e.documentElement.namespaceURI===L?e.createElement(t):e.createElementNS(n,t)}}function dt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var ht=function(t){var e=I(t);return(e.local?dt:ct)(e)};function ft(){return null}function pt(){var t=this.parentNode;t&&t.removeChild(this)}function mt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function gt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function vt(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function _t(t,e,n){var r=Y(t),i=r.CustomEvent;"function"===typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function bt(t,e){return function(){return _t(this,t,e)}}function wt(t,e){return function(){return _t(this,t,e.apply(this,arguments))}}function kt(t){return kt="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},kt(t)}function St(){St=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(A){u=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(x([])));y&&y!==e&&n.call(y,o)&&(m=y);var v=p.prototype=h.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function i(r,o,a,s){var u=c(t[r],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==kt(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:D}}function D(){return{value:void 0,done:!0}}return f.prototype=p,r(v,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(v),u(v,s,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}var Et=St().mark(Ct);function Ct(){var t,e,n,r,i,o,a;return St().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:t=this._groups,e=0,n=t.length;case 1:if(!(e<n)){s.next=13;break}r=t[e],i=0,o=r.length;case 3:if(!(i<o)){s.next=10;break}if(!(a=r[i])){s.next=7;break}return s.next=7,a;case 7:++i,s.next=3;break;case 10:++e,s.next=1;break;case 13:case"end":return s.stop()}}),Et,this)}function xt(t){return xt="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},xt(t)}var Dt,At,Tt,Mt=[null];function Lt(t,e){this._groups=t,this._parents=e}function Ot(){return new Lt([[document.documentElement]],Mt)}Lt.prototype=Ot.prototype=(Dt={constructor:Lt,select:function(t){"function"!==typeof t&&(t=d(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],u=s.length,l=r[i]=new Array(u),c=0;c<u;++c)(o=s[c])&&(a=t.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new Lt(r,this._parents)},selectAll:function(t){t="function"===typeof t?p(t):f(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(r.push(t.call(a,a.__data__,l,s)),i.push(a));return new Lt(r,i)},selectChild:function(t){return this.select(null==t?v:function(t){return function(){return y.call(this.children,t)}}("function"===typeof t?t:g(t)))},selectChildren:function(t){return this.selectAll(null==t?b:function(t){return function(){return _.call(this.children,t)}}("function"===typeof t?t:g(t)))},filter:function(t){"function"!==typeof t&&(t=m(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&u.push(o);return new Lt(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,x);var n,r=e?C:E,i=this._parents,o=this._groups;"function"!==typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),u=new Array(a),l=new Array(a),c=0;c<a;++c){var d=i[c],h=o[c],f=h.length,p=D(t.call(d,d&&d.__data__,c,i)),m=p.length,g=u[c]=new Array(m),y=s[c]=new Array(m);r(d,h,g,y,l[c]=new Array(f),p,e);for(var v,_,b=0,w=0;b<m;++b)if(v=g[b]){for(b>=w&&(w=b+1);!(_=y[w])&&++w<m;);v._next=_||null}}return(s=new Lt(s,i))._enter=u,s._exit=l,s},enter:function(){return new Lt(this._enter||this._groups.map(w),this._parents)},exit:function(){return new Lt(this._exit||this._groups.map(w),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var l,c=n[u],d=r[u],h=c.length,f=s[u]=new Array(h),p=0;p<h;++p)(l=c[p]||d[p])&&(f[p]=l);for(;u<i;++u)s[u]=n[u];return new Lt(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=A);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(e)}return new Lt(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var t,e=0,n=T(this);try{for(n.s();!(t=n.n()).done;)t.value,++e}catch(r){n.e(r)}finally{n.f()}return e},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=I(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?R:P:"function"===typeof e?n.local?B:j:n.local?F:N)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?H:"function"===typeof e?W:z)(t,e,null==n?"":n)):V(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?U:"function"===typeof e?G:q)(t,e)):this.node()[t]},classed:function(t,e){var n=$(t+"");if(arguments.length<2){for(var r=K(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?et:e?Q:tt)(n,e))},text:function(t){return arguments.length?this.each(null==t?nt:("function"===typeof t?it:rt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ot:("function"===typeof t?st:at)(t)):this.node().innerHTML},raise:function(){return this.each(ut)},lower:function(){return this.each(lt)},append:function(t){var e="function"===typeof t?t:ht(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"===typeof t?t:ht(t),r=null==e?ft:"function"===typeof e?e:d(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(pt)},clone:function(t){return this.select(t?gt:mt)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?vt:yt,r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"===typeof e?wt:bt)(t,e))}},At=Symbol.iterator,Tt=Ct,(At=function(t){var e=function(t,e){if("object"!==xt(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===xt(e)?e:String(e)}(At))in Dt?Object.defineProperty(Dt,At,{value:Tt,enumerable:!0,configurable:!0,writable:!0}):Dt[At]=Tt,Dt);var It=Ot,Pt=function(t){return"string"===typeof t?new Lt([[document.querySelector(t)]],[document.documentElement]):new Lt([[t]],Mt)};var Rt=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Nt(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Ft(){}var jt=.7,Bt=1/jt,Yt="\\s*([+-]?\\d+)\\s*",Ht="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wt=/^#([0-9a-f]{3,8})$/,Vt=new RegExp("^rgb\\(".concat(Yt,",").concat(Yt,",").concat(Yt,"\\)$")),Ut=new RegExp("^rgb\\(".concat(zt,",").concat(zt,",").concat(zt,"\\)$")),qt=new RegExp("^rgba\\(".concat(Yt,",").concat(Yt,",").concat(Yt,",").concat(Ht,"\\)$")),Gt=new RegExp("^rgba\\(".concat(zt,",").concat(zt,",").concat(zt,",").concat(Ht,"\\)$")),$t=new RegExp("^hsl\\(".concat(Ht,",").concat(zt,",").concat(zt,"\\)$")),Kt=new RegExp("^hsla\\(".concat(Ht,",").concat(zt,",").concat(zt,",").concat(Ht,"\\)$")),Zt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Xt(){return this.rgb().formatHex()}function Jt(){return this.rgb().formatRgb()}function Qt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Wt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?te(e):3===n?new re(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ee(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ee(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Vt.exec(t))?new re(e[1],e[2],e[3],1):(e=Ut.exec(t))?new re(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=qt.exec(t))?ee(e[1],e[2],e[3],e[4]):(e=Gt.exec(t))?ee(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=$t.exec(t))?le(e[1],e[2]/100,e[3]/100,1):(e=Kt.exec(t))?le(e[1],e[2]/100,e[3]/100,e[4]):Zt.hasOwnProperty(t)?te(Zt[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function te(t){return new re(t>>16&255,t>>8&255,255&t,1)}function ee(t,e,n,r){return r<=0&&(t=e=n=NaN),new re(t,e,n,r)}function ne(t,e,n,r){return 1===arguments.length?((i=t)instanceof Ft||(i=Qt(i)),i?new re((i=i.rgb()).r,i.g,i.b,i.opacity):new re):new re(t,e,n,null==r?1:r);var i}function re(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ie(){return"#".concat(ue(this.r)).concat(ue(this.g)).concat(ue(this.b))}function oe(){var t=ae(this.opacity);return"".concat(1===t?"rgb(":"rgba(").concat(se(this.r),", ").concat(se(this.g),", ").concat(se(this.b)).concat(1===t?")":", ".concat(t,")"))}function ae(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function se(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ue(t){return((t=se(t))<16?"0":"")+t.toString(16)}function le(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new de(t,e,n,r)}function ce(t){if(t instanceof de)return new de(t.h,t.s,t.l,t.opacity);if(t instanceof Ft||(t=Qt(t)),!t)return new de;if(t instanceof de)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new de(a,s,u,t.opacity)}function de(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function he(t){return(t=(t||0)%360)<0?t+360:t}function fe(t){return Math.max(0,Math.min(1,t||0))}function pe(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function me(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Rt(Ft,Qt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Xt,formatHex:Xt,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ce(this).formatHsl()},formatRgb:Jt,toString:Jt}),Rt(re,ne,Nt(Ft,{brighter:function(t){return t=null==t?Bt:Math.pow(Bt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?jt:Math.pow(jt,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},clamp:function(){return new re(se(this.r),se(this.g),se(this.b),ae(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ie,formatHex:ie,formatHex8:function(){return"#".concat(ue(this.r)).concat(ue(this.g)).concat(ue(this.b)).concat(ue(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:oe,toString:oe})),Rt(de,(function(t,e,n,r){return 1===arguments.length?ce(t):new de(t,e,n,null==r?1:r)}),Nt(Ft,{brighter:function(t){return t=null==t?Bt:Math.pow(Bt,t),new de(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?jt:Math.pow(jt,t),new de(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new re(pe(t>=240?t-240:t+120,i,r),pe(t,i,r),pe(t<120?t+240:t-120,i,r),this.opacity)},clamp:function(){return new de(he(this.h),fe(this.s),fe(this.l),ae(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=ae(this.opacity);return"".concat(1===t?"hsl(":"hsla(").concat(he(this.h),", ").concat(100*fe(this.s),"%, ").concat(100*fe(this.l),"%").concat(1===t?")":", ".concat(t,")"))}}));var ge=function(t){return function(){return t}};function ye(t,e){return function(n){return t+n*e}}function ve(t){return 1===(t=+t)?_e:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):ge(isNaN(e)?n:e)}}function _e(t,e){var n=e-t;return n?ye(t,n):ge(isNaN(t)?e:t)}var be=function t(e){var n=ve(e);function r(t,e){var r=n((t=ne(t)).r,(e=ne(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=_e(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function we(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=ne(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}we((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return me((n-r/e)*e,a,i,o,s)}})),we((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return me((n-r/e)*e,i,o,a,s)}}));var ke=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function Se(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Ee(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Ie(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}var Ce=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},xe=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}};function De(t){return De="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},De(t)}var Ae=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===De(t)||(t={}),null!==e&&"object"===De(e)||(e={}),e)n in t?r[n]=Ie(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Te=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Me=new RegExp(Te.source,"g");var Le=function(t,e){var n,r,i,o=Te.lastIndex=Me.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(n=Te.exec(t))&&(r=Me.exec(e));)(i=r.index)>o&&(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:xe(n,r)})),o=Me.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})};function Oe(t){return Oe="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},Oe(t)}var Ie=function(t,e){var n,r=Oe(e);return null==e||"boolean"===r?ge(e):("number"===r?xe:"string"===r?(n=Qt(e))?(e=n,be):Le:e instanceof Qt?be:e instanceof Date?Ce:Se(e)?ke:Array.isArray(e)?Ee:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Ae:xe)(t,e)};function Pe(t){return Pe="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},Pe(t)}var Re,Ne,Fe=0,je=0,Be=0,Ye=1e3,He=0,ze=0,We=0,Ve="object"===("undefined"===typeof performance?"undefined":Pe(performance))&&performance.now?performance:Date,Ue="object"===("undefined"===typeof window?"undefined":Pe(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function qe(){return ze||(Ue(Ge),ze=Ve.now()+We)}function Ge(){ze=0}function $e(){this._call=this._time=this._next=null}function Ke(t,e,n){var r=new $e;return r.restart(t,e,n),r}function Ze(){ze=(He=Ve.now())+We,Fe=je=0;try{!function(){qe(),++Fe;for(var t,e=Re;e;)(t=ze-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Fe}()}finally{Fe=0,function(){var t,e,n=Re,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Re=e);Ne=t,Je(r)}(),ze=0}}function Xe(){var t=Ve.now(),e=t-He;e>Ye&&(We-=e,He=t)}function Je(t){Fe||(je&&(je=clearTimeout(je)),t-ze>24?(t<1/0&&(je=setTimeout(Ze,t-Ve.now()-We)),Be&&(Be=clearInterval(Be))):(Be||(He=Ve.now(),Be=setInterval(Xe,Ye)),Fe=1,Ue(Ze)))}$e.prototype=Ke.prototype={constructor:$e,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?qe():+n)+(null==e?0:+e),this._next||Ne===this||(Ne?Ne._next=this:Re=this,Ne=this),this._call=t,this._time=n,Je()},stop:function(){this._call&&(this._call=null,this._time=1/0,Je())}};var Qe=function(t,e,n){var r=new $e;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},tn=l("start","end","cancel","interrupt"),en=[],nn=0,rn=3,on=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var l,c,d,h;if(1!==n.state)return u();for(l in i)if((h=i[l]).name===n.name){if(h.state===rn)return Qe(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(Qe((function(){n.state===rn&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=rn,r=new Array(d=n.tween.length),l=0,c=-1;l<d;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=h);r.length=c+1}}function s(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Ke(o,0,n.time)}(t,n,{name:e,index:r,group:i,on:tn,tween:en,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:nn})};function an(t,e){var n=un(t,e);if(n.state>nn)throw new Error("too late; already scheduled");return n}function sn(t,e){var n=un(t,e);if(n.state>rn)throw new Error("too late; already running");return n}function un(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var ln,cn=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},dn=180/Math.PI,hn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},fn=function(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*dn,skewX:Math.atan(u)*dn,scaleX:a,scaleY:s}};function pn(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],u=[];return o=t(o),a=t(a),function(t,r,i,o,a,s){if(t!==i||r!==o){var u=a.push("translate(",null,e,null,n);s.push({i:u-4,x:xe(t,i)},{i:u-2,x:xe(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:xe(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:xe(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:xe(t,n)},{i:s-2,x:xe(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n<r;)s[(e=u[n]).i]=e.x(t);return s.join("")}}}var mn=pn((function(t){var e=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?hn:fn(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),gn=pn((function(t){return null==t?hn:(ln||(ln=document.createElementNS("http://www.w3.org/2000/svg","g")),ln.setAttribute("transform",t),(t=ln.transform.baseVal.consolidate())?(t=t.matrix,fn(t.a,t.b,t.c,t.d,t.e,t.f)):hn)}),", ",")",")");function yn(t,e){var n,r;return function(){var i=sn(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function vn(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=sn(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===e){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function _n(t,e,n){var r=t._id;return t.each((function(){var t=sn(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return un(t,r).value[e]}}var bn=function(t,e){var n;return("number"===typeof e?xe:e instanceof Qt?be:(n=Qt(e))?(e=n,be):Le)(t,e)};function wn(t){return function(){this.removeAttribute(t)}}function kn(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Sn(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function En(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function Cn(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(t))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttribute(t)}}function xn(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttributeNS(t.space,t.local)}}function Dn(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function An(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Tn(t,e){return function(){an(this,t).delay=+e.apply(this,arguments)}}function Mn(t,e){return e=+e,function(){an(this,t).delay=e}}function Ln(t,e){return function(){sn(this,t).duration=+e.apply(this,arguments)}}function On(t,e){return e=+e,function(){sn(this,t).duration=e}}var In=It.prototype.constructor;function Pn(t){return function(){this.style.removeProperty(t)}}function Rn(t){return Rn="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},Rn(t)}var Nn=0;function Fn(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function jn(){return++Nn}var Bn=It.prototype;function Yn(t){return--t*t*t+1}Fn.prototype=function(t){return It().transition(t)}.prototype=function(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Rn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Rn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({constructor:Fn,select:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=d(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,l=r[a],c=l.length,h=o[a]=new Array(c),f=0;f<c;++f)(s=l[f])&&(u=t.call(s,s.__data__,f,l))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u,on(h[f],e,n,f,h,un(s,n)));return new Fn(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=f(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,l=r[s],c=l.length,d=0;d<c;++d)if(u=l[d]){for(var h,p=t.call(u,u.__data__,d,l),m=un(u,n),g=0,y=p.length;g<y;++g)(h=p[g])&&on(h,e,n,g,p,m);o.push(p),a.push(u)}return new Fn(o,a,e,n)},selectChild:Bn.selectChild,selectChildren:Bn.selectChildren,filter:function(t){"function"!==typeof t&&(t=m(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&u.push(o);return new Fn(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,l=e[s],c=n[s],d=l.length,h=a[s]=new Array(d),f=0;f<d;++f)(u=l[f]||c[f])&&(h[f]=u);for(;s<r;++s)a[s]=e[s];return new Fn(a,this._parents,this._name,this._id)},selection:function(){return new In(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=jn(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=un(a,e);on(a,t,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Fn(r,this._parents,t,n)},call:Bn.call,nodes:Bn.nodes,node:Bn.node,size:Bn.size,empty:Bn.empty,each:Bn.each,on:function(t,e){var n=this._id;return arguments.length<2?un(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?an:sn;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=I(t),r="transform"===n?gn:bn;return this.attrTween(t,"function"===typeof e?(n.local?xn:Cn)(n,r,_n(this,"attr."+t,e)):null==e?(n.local?kn:wn)(n):(n.local?En:Sn)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var r=I(t);return this.tween(n,(r.local?Dn:An)(r,e))},style:function(t,e,n){var r="transform"===(t+="")?mn:bn;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=V(this,t),a=(this.style.removeProperty(t),V(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,Pn(t)):"function"===typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=V(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=V(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}(t,r,_n(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=sn(this,t),l=u.on,c=null==u.value[a]?o||(o=Pn(e)):void 0;l===n&&i===c||(r=(n=l).copy()).on(s,i=c),u.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=V(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"===typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(_n(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}));var t},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=un(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?yn:vn)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Tn:Mn)(e,t)):un(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Ln:On)(e,t)):un(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!==typeof e)throw new Error;return function(){sn(this,t).ease=e}}(e,t)):un(this.node(),e).ease},easeVarying:function(t){if("function"!==typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!==typeof n)throw new Error;sn(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=sn(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e})),0===i&&o()}))}},Symbol.iterator,Bn[Symbol.iterator]);var Hn={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function zn(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition ".concat(e," not found"));return n}It.prototype.interrupt=function(t){return this.each((function(){cn(this,t)}))},It.prototype.transition=function(t){var e,n;t instanceof Fn?(e=t._id,t=t._name):(e=jn(),(n=Hn).time=qe(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,l=0;l<u;++l)(a=s[l])&&on(a,t,e,l,s,n||zn(a,e));return new Fn(r,this._parents,t,e)};Math.abs,Math.max,Math.min;function Wn(t){return[+t[0],+t[1]]}function Vn(t){return[Wn(t[0]),Wn(t[1])]}["w","e"].map(Un),["n","s"].map(Un),["n","w","e","s","nw","ne","sw","se"].map(Un);function Un(t){return{type:t}}var qn,Gn,$n,Kn,Zn,Xn,Jn,Qn,tr,er,nr,rr,ir,or,ar=function(t){return Pt(ht(t).call(document.documentElement))},sr=function(t){return function(){return t}},ur=Math.abs,lr=Math.atan2,cr=Math.cos,dr=Math.max,hr=Math.min,fr=Math.sin,pr=Math.sqrt,mr=1e-12,gr=Math.PI,yr=gr/2,vr=2*gr;function _r(t){return t>=1?yr:t<=-1?-yr:Math.asin(t)}function br(t){return br="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},br(t)}function wr(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function kr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Sr(r.key),r)}}function Sr(t){var e=function(t,e){if("object"!==br(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==br(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===br(e)?e:String(e)}var Er=Math.PI,Cr=2*Er,xr=1e-6,Dr=Cr-xr;function Ar(t){this._+=t[0];for(var e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}var Tr=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Ar:function(t){var e=Math.floor(t);if(!(e>=0))throw new Error("invalid digits: ".concat(t));if(e>15)return Ar;var n=Math.pow(10,e);return function(t){this._+=t[0];for(var e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(e)}var e,n,r;return e=t,(n=[{key:"moveTo",value:function(t,e){this._append(qn||(qn=wr(["M",",",""])),this._x0=this._x1=+t,this._y0=this._y1=+e)}},{key:"closePath",value:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(Gn||(Gn=wr(["Z"]))))}},{key:"lineTo",value:function(t,e){this._append($n||($n=wr(["L",",",""])),this._x1=+t,this._y1=+e)}},{key:"quadraticCurveTo",value:function(t,e,n,r){this._append(Kn||(Kn=wr(["Q",",",",",",",""])),+t,+e,this._x1=+n,this._y1=+r)}},{key:"bezierCurveTo",value:function(t,e,n,r,i,o){this._append(Zn||(Zn=wr(["C",",",",",",",",",",",""])),+t,+e,+n,+r,this._x1=+i,this._y1=+o)}},{key:"arcTo",value:function(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error("negative radius: ".concat(i));var o=this._x1,a=this._y1,s=n-t,u=r-e,l=o-t,c=a-e,d=l*l+c*c;if(null===this._x1)this._append(Xn||(Xn=wr(["M",",",""])),this._x1=t,this._y1=e);else if(d>xr)if(Math.abs(c*s-u*l)>xr&&i){var h=n-o,f=r-a,p=s*s+u*u,m=h*h+f*f,g=Math.sqrt(p),y=Math.sqrt(d),v=i*Math.tan((Er-Math.acos((p+d-m)/(2*g*y)))/2),_=v/y,b=v/g;Math.abs(_-1)>xr&&this._append(Qn||(Qn=wr(["L",",",""])),t+_*l,e+_*c),this._append(tr||(tr=wr(["A",",",",0,0,",",",",",""])),i,i,+(c*h>l*f),this._x1=t+b*s,this._y1=e+b*u)}else this._append(Jn||(Jn=wr(["L",",",""])),this._x1=t,this._y1=e)}},{key:"arc",value:function(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error("negative radius: ".concat(n));var a=n*Math.cos(r),s=n*Math.sin(r),u=t+a,l=e+s,c=1^o,d=o?r-i:i-r;null===this._x1?this._append(er||(er=wr(["M",",",""])),u,l):(Math.abs(this._x1-u)>xr||Math.abs(this._y1-l)>xr)&&this._append(nr||(nr=wr(["L",",",""])),u,l),n&&(d<0&&(d=d%Cr+Cr),d>Dr?this._append(rr||(rr=wr(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,c,t-a,e-s,n,n,c,this._x1=u,this._y1=l):d>xr&&this._append(ir||(ir=wr(["A",",",",0,",",",",",",",""])),n,n,+(d>=Er),c,this._x1=t+n*Math.cos(i),this._y1=e+n*Math.sin(i)))}},{key:"rect",value:function(t,e,n,r){this._append(or||(or=wr(["M",",","h","v","h","Z"])),this._x0=this._x1=+t,this._y0=this._y1=+e,n=+n,+r,-n)}},{key:"toString",value:function(){return this._}}])&&kr(e.prototype,n),r&&kr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Mr(t){return t.innerRadius}function Lr(t){return t.outerRadius}function Or(t){return t.startAngle}function Ir(t){return t.endAngle}function Pr(t){return t&&t.padAngle}function Rr(t,e,n,r,i,o,a){var s=t-n,u=e-r,l=(a?o:-o)/pr(s*s+u*u),c=l*u,d=-l*s,h=t+c,f=e+d,p=n+c,m=r+d,g=(h+p)/2,y=(f+m)/2,v=p-h,_=m-f,b=v*v+_*_,w=i-o,k=h*m-p*f,S=(_<0?-1:1)*pr(dr(0,w*w*b-k*k)),E=(k*_-v*S)/b,C=(-k*v-_*S)/b,x=(k*_+v*S)/b,D=(-k*v+_*S)/b,A=E-g,T=C-y,M=x-g,L=D-y;return A*A+T*T>M*M+L*L&&(E=x,C=D),{cx:E,cy:C,x01:-c,y01:-d,x11:E*(i/w-1),y11:C*(i/w-1)}}Tr.prototype;var Nr=function(){var t,e,n=Mr,r=Lr,i=sr(0),o=null,a=Or,s=Ir,u=Pr,l=null,c=(e=3,(t=d).digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{var r=Math.floor(n);if(!(r>=0))throw new RangeError("invalid digits: ".concat(n));e=r}return t},function(){return new Tr(e)});function d(){var t,e,d,h=+n.apply(this,arguments),f=+r.apply(this,arguments),p=a.apply(this,arguments)-yr,m=s.apply(this,arguments)-yr,g=ur(m-p),y=m>p;if(l||(l=t=c()),f<h&&(e=f,f=h,h=e),f>mr)if(g>vr-mr)l.moveTo(f*cr(p),f*fr(p)),l.arc(0,0,f,p,m,!y),h>mr&&(l.moveTo(h*cr(m),h*fr(m)),l.arc(0,0,h,m,p,y));else{var v,_,b=p,w=m,k=p,S=m,E=g,C=g,x=u.apply(this,arguments)/2,D=x>mr&&(o?+o.apply(this,arguments):pr(h*h+f*f)),A=hr(ur(f-h)/2,+i.apply(this,arguments)),T=A,M=A;if(D>mr){var L=_r(D/h*fr(x)),O=_r(D/f*fr(x));(E-=2*L)>mr?(k+=L*=y?1:-1,S-=L):(E=0,k=S=(p+m)/2),(C-=2*O)>mr?(b+=O*=y?1:-1,w-=O):(C=0,b=w=(p+m)/2)}var I=f*cr(b),P=f*fr(b),R=h*cr(S),N=h*fr(S);if(A>mr){var F,j=f*cr(w),B=f*fr(w),Y=h*cr(k),H=h*fr(k);if(g<gr)if(F=function(t,e,n,r,i,o,a,s){var u=n-t,l=r-e,c=a-i,d=s-o,h=d*u-c*l;if(!(h*h<mr))return[t+(h=(c*(e-o)-d*(t-i))/h)*u,e+h*l]}(I,P,Y,H,j,B,R,N)){var z=I-F[0],W=P-F[1],V=j-F[0],U=B-F[1],q=1/fr(((d=(z*V+W*U)/(pr(z*z+W*W)*pr(V*V+U*U)))>1?0:d<-1?gr:Math.acos(d))/2),G=pr(F[0]*F[0]+F[1]*F[1]);T=hr(A,(h-G)/(q-1)),M=hr(A,(f-G)/(q+1))}else T=M=0}C>mr?M>mr?(v=Rr(Y,H,I,P,f,M,y),_=Rr(j,B,R,N,f,M,y),l.moveTo(v.cx+v.x01,v.cy+v.y01),M<A?l.arc(v.cx,v.cy,M,lr(v.y01,v.x01),lr(_.y01,_.x01),!y):(l.arc(v.cx,v.cy,M,lr(v.y01,v.x01),lr(v.y11,v.x11),!y),l.arc(0,0,f,lr(v.cy+v.y11,v.cx+v.x11),lr(_.cy+_.y11,_.cx+_.x11),!y),l.arc(_.cx,_.cy,M,lr(_.y11,_.x11),lr(_.y01,_.x01),!y))):(l.moveTo(I,P),l.arc(0,0,f,b,w,!y)):l.moveTo(I,P),h>mr&&E>mr?T>mr?(v=Rr(R,N,j,B,h,-T,y),_=Rr(I,P,Y,H,h,-T,y),l.lineTo(v.cx+v.x01,v.cy+v.y01),T<A?l.arc(v.cx,v.cy,T,lr(v.y01,v.x01),lr(_.y01,_.x01),!y):(l.arc(v.cx,v.cy,T,lr(v.y01,v.x01),lr(v.y11,v.x11),!y),l.arc(0,0,h,lr(v.cy+v.y11,v.cx+v.x11),lr(_.cy+_.y11,_.cx+_.x11),y),l.arc(_.cx,_.cy,T,lr(_.y11,_.x11),lr(_.y01,_.x01),!y))):l.arc(0,0,h,S,k,y):l.lineTo(R,N)}else l.moveTo(0,0);if(l.closePath(),t)return l=null,t+""||null}return d.centroid=function(){var t=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,e=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-gr/2;return[cr(e)*t,fr(e)*t]},d.innerRadius=function(t){return arguments.length?(n="function"===typeof t?t:sr(+t),d):n},d.outerRadius=function(t){return arguments.length?(r="function"===typeof t?t:sr(+t),d):r},d.cornerRadius=function(t){return arguments.length?(i="function"===typeof t?t:sr(+t),d):i},d.padRadius=function(t){return arguments.length?(o=null==t?null:"function"===typeof t?t:sr(+t),d):o},d.startAngle=function(t){return arguments.length?(a="function"===typeof t?t:sr(+t),d):a},d.endAngle=function(t){return arguments.length?(s="function"===typeof t?t:sr(+t),d):s},d.padAngle=function(t){return arguments.length?(u="function"===typeof t?t:sr(+t),d):u},d.context=function(t){return arguments.length?(l=null==t?null:t,d):l},d};function Fr(t){return Fr="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},Fr(t)}Array.prototype.slice;var jr=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},Br=function(t){return t},Yr=function(){var t=Br,e=jr,n=null,r=sr(0),i=sr(vr),o=sr(0);function a(a){var s,u,l,c,d,h,f=(h=a,a="object"===Fr(h)&&"length"in h?h:Array.from(h)).length,p=0,m=new Array(f),g=new Array(f),y=+r.apply(this,arguments),v=Math.min(vr,Math.max(-vr,i.apply(this,arguments)-y)),_=Math.min(Math.abs(v)/f,o.apply(this,arguments)),b=_*(v<0?-1:1);for(s=0;s<f;++s)(d=g[m[s]=s]=+t(a[s],s,a))>0&&(p+=d);for(null!=e?m.sort((function(t,n){return e(g[t],g[n])})):null!=n&&m.sort((function(t,e){return n(a[t],a[e])})),s=0,l=p?(v-f*b)/p:0;s<f;++s,y=c)u=m[s],c=y+((d=g[u])>0?d*l:0)+b,g[u]={data:a[u],index:s,value:d,startAngle:y,endAngle:c,padAngle:_};return g}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:sr(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:sr(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:sr(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:sr(+t),a):o},a};function Hr(t){return((t=Math.exp(t))+1/t)/2}(function t(e,n,r){function i(t,i){var o,a,s=t[0],u=t[1],l=t[2],c=i[0],d=i[1],h=i[2],f=c-s,p=d-u,m=f*f+p*p;if(m<1e-12)a=Math.log(h/l)/e,o=function(t){return[s+t*f,u+t*p,l*Math.exp(e*t*a)]};else{var g=Math.sqrt(m),y=(h*h-l*l+r*m)/(2*l*n*g),v=(h*h-l*l-r*m)/(2*h*n*g),_=Math.log(Math.sqrt(y*y+1)-y),b=Math.log(Math.sqrt(v*v+1)-v);a=(b-_)/e,o=function(t){var r,i=t*a,o=Hr(_),c=l/(n*g)*(o*(r=e*i+_,((r=Math.exp(2*r))-1)/(r+1))-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[s+c*f,u+c*p,l*o/Hr(e*i+_)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return i.rho=function(e){var n=Math.max(.001,+e),r=n*n;return t(n,r,r*r)},i})(Math.SQRT2,2,4);function zr(t,e,n){this.k=t,this.x=e,this.y=n}zr.prototype={constructor:zr,scale:function(t){return 1===t?this:new zr(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new zr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new zr(1,0,0);zr.prototype},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(40),i=n(126),o=n(27),a=n(127),s=n(5),u=n(1),l=n(130),c=n(131),d=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},h=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},f=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},p=function(){function t(t,e,n){void 0===e&&(e=500),this.reader=t,this.timeBetweenScansMillis=e,this._hints=n,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(t.prototype,"hasNavigator",{get:function(){return"undefined"!==typeof navigator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canEnumerateDevices",{get:function(){return!(!this.isMediaDevicesSuported||!navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(t){this._timeBetweenDecodingAttempts=t<0?0:t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hints",{get:function(){return this._hints},set:function(t){this._hints=t||null},enumerable:!1,configurable:!0}),t.prototype.listVideoInputDevices=function(){return d(this,void 0,void 0,(function(){var t,e,n,r,i,o,a,s,u,l,c,d;return h(this,(function(h){switch(h.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=h.sent(),e=[];try{for(n=f(t),r=n.next();!r.done;r=n.next())i=r.value,"videoinput"===(o="video"===i.kind?"videoinput":i.kind)&&(a=i.deviceId||i.id,s=i.label||"Video device "+(e.length+1),u=i.groupId,l={deviceId:a,label:s,kind:o,groupId:u},e.push(l))}catch(p){c={error:p}}finally{try{r&&!r.done&&(d=n.return)&&d.call(n)}finally{if(c)throw c.error}}return[2,e]}}))}))},t.prototype.getVideoInputDevices=function(){return d(this,void 0,void 0,(function(){return h(this,(function(t){switch(t.label){case 0:return[4,this.listVideoInputDevices()];case 1:return[2,t.sent().map((function(t){return new c.a(t.deviceId,t.label)}))]}}))}))},t.prototype.findDeviceById=function(t){return d(this,void 0,void 0,(function(){var e;return h(this,(function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return(e=n.sent())?[2,e.find((function(e){return e.deviceId===t}))]:[2,null]}}))}))},t.prototype.decodeFromInputVideoDevice=function(t,e){return d(this,void 0,void 0,(function(){return h(this,(function(n){switch(n.label){case 0:return[4,this.decodeOnceFromVideoDevice(t,e)];case 1:return[2,n.sent()]}}))}))},t.prototype.decodeOnceFromVideoDevice=function(t,e){return d(this,void 0,void 0,(function(){var n;return h(this,(function(r){switch(r.label){case 0:return this.reset(),n={video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},[4,this.decodeOnceFromConstraints(n,e)];case 1:return[2,r.sent()]}}))}))},t.prototype.decodeOnceFromConstraints=function(t,e){return d(this,void 0,void 0,(function(){var n;return h(this,(function(r){switch(r.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return n=r.sent(),[4,this.decodeOnceFromStream(n,e)];case 2:return[2,r.sent()]}}))}))},t.prototype.decodeOnceFromStream=function(t,e){return d(this,void 0,void 0,(function(){var n;return h(this,(function(r){switch(r.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,e)];case 1:return n=r.sent(),[4,this.decodeOnce(n)];case 2:return[2,r.sent()]}}))}))},t.prototype.decodeFromInputVideoDeviceContinuously=function(t,e,n){return d(this,void 0,void 0,(function(){return h(this,(function(r){switch(r.label){case 0:return[4,this.decodeFromVideoDevice(t,e,n)];case 1:return[2,r.sent()]}}))}))},t.prototype.decodeFromVideoDevice=function(t,e,n){return d(this,void 0,void 0,(function(){var r;return h(this,(function(i){switch(i.label){case 0:return r={video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},[4,this.decodeFromConstraints(r,e,n)];case 1:return[2,i.sent()]}}))}))},t.prototype.decodeFromConstraints=function(t,e,n){return d(this,void 0,void 0,(function(){var r;return h(this,(function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return r=i.sent(),[4,this.decodeFromStream(r,e,n)];case 2:return[2,i.sent()]}}))}))},t.prototype.decodeFromStream=function(t,e,n){return d(this,void 0,void 0,(function(){var r;return h(this,(function(i){switch(i.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,e)];case 1:return r=i.sent(),[4,this.decodeContinuously(r,n)];case 2:return[2,i.sent()]}}))}))},t.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},t.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},t.prototype.attachStreamToVideo=function(t,e){return d(this,void 0,void 0,(function(){var n;return h(this,(function(r){switch(r.label){case 0:return n=this.prepareVideoElement(e),this.addVideoSource(n,t),this.videoElement=n,this.stream=t,[4,this.playVideoOnLoadAsync(n)];case 1:return r.sent(),[2,n]}}))}))},t.prototype.playVideoOnLoadAsync=function(t){var e=this;return new Promise((function(n,r){return e.playVideoOnLoad(t,(function(){return n()}))}))},t.prototype.playVideoOnLoad=function(t,e){var n=this;this.videoEndedListener=function(){return n.stopStreams()},this.videoCanPlayListener=function(){return n.tryPlayVideo(t)},t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",e),this.tryPlayVideo(t)},t.prototype.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2},t.prototype.tryPlayVideo=function(t){return d(this,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:if(this.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,t.play()];case 2:return e.sent(),[3,4];case 3:return e.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}}))}))},t.prototype.getMediaElement=function(t,e){var n=document.getElementById(t);if(!n)throw new r.a("element with id '"+t+"' not found");if(n.nodeName.toLowerCase()!==e.toLowerCase())throw new r.a("element with id '"+t+"' must be an "+e+" element");return n},t.prototype.decodeFromImage=function(t,e){if(!t&&!e)throw new r.a("either imageElement with a src set or an url must be provided");return e&&!t?this.decodeFromImageUrl(e):this.decodeFromImageElement(t)},t.prototype.decodeFromVideo=function(t,e){if(!t&&!e)throw new r.a("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrl(e):this.decodeFromVideoElement(t)},t.prototype.decodeFromVideoContinuously=function(t,e,n){if(void 0===t&&void 0===e)throw new r.a("Either an element with a src set or an URL must be provided");return e&&!t?this.decodeFromVideoUrlContinuously(e,n):this.decodeFromVideoElementContinuously(t,n)},t.prototype.decodeFromImageElement=function(t){if(!t)throw new r.a("An image element must be provided.");this.reset();var e=this.prepareImageElement(t);return this.imageElement=e,this.isImageLoaded(e)?this.decodeOnce(e,!1,!0):this._decodeOnLoadImage(e)},t.prototype.decodeFromVideoElement=function(t){var e=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(e)},t.prototype.decodeFromVideoElementContinuously=function(t,e){var n=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(n,e)},t.prototype._decodeFromVideoElementSetup=function(t){if(!t)throw new r.a("A video element must be provided.");this.reset();var e=this.prepareVideoElement(t);return this.videoElement=e,e},t.prototype.decodeFromImageUrl=function(t){if(!t)throw new r.a("An URL must be provided.");this.reset();var e=this.prepareImageElement();this.imageElement=e;var n=this._decodeOnLoadImage(e);return e.src=t,n},t.prototype.decodeFromVideoUrl=function(t){if(!t)throw new r.a("An URL must be provided.");this.reset();var e=this.prepareVideoElement(),n=this.decodeFromVideoElement(e);return e.src=t,n},t.prototype.decodeFromVideoUrlContinuously=function(t,e){if(!t)throw new r.a("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(n,e);return n.src=t,i},t.prototype._decodeOnLoadImage=function(t){var e=this;return new Promise((function(n,r){e.imageLoadedListener=function(){return e.decodeOnce(t,!1,!0).then(n,r)},t.addEventListener("load",e.imageLoadedListener)}))},t.prototype._decodeOnLoadVideo=function(t){return d(this,void 0,void 0,(function(){return h(this,(function(e){switch(e.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return e.sent(),[4,this.decodeOnce(t)];case 2:return[2,e.sent()]}}))}))},t.prototype._decodeOnLoadVideoContinuously=function(t,e){return d(this,void 0,void 0,(function(){return h(this,(function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return n.sent(),this.decodeContinuously(t,e),[2]}}))}))},t.prototype.isImageLoaded=function(t){return!!t.complete&&0!==t.naturalWidth},t.prototype.prepareImageElement=function(t){var e;return"undefined"===typeof t&&((e=document.createElement("img")).width=200,e.height=200),"string"===typeof t&&(e=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(e=t),e},t.prototype.prepareVideoElement=function(t){var e;return t||"undefined"===typeof document||((e=document.createElement("video")).width=200,e.height=200),"string"===typeof t&&(e=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(e=t),e.setAttribute("autoplay","true"),e.setAttribute("muted","true"),e.setAttribute("playsinline","true"),e},t.prototype.decodeOnce=function(t,e,n){var r=this;void 0===e&&(e=!0),void 0===n&&(n=!0),this._stopAsyncDecode=!1;var i=function i(a,l){if(r._stopAsyncDecode)return l(new u.a("Video stream has ended before any code could be detected.")),void(r._stopAsyncDecode=void 0);try{a(r.decode(t))}catch(h){var c=e&&h instanceof u.a,d=h instanceof o.a||h instanceof s.a;if(c||d&&n)return setTimeout(i,r._timeBetweenDecodingAttempts,a,l);l(h)}};return new Promise((function(t,e){return i(t,e)}))},t.prototype.decodeContinuously=function(t,e){var n=this;this._stopContinuousDecode=!1;!function r(){if(n._stopContinuousDecode)n._stopContinuousDecode=void 0;else try{var i=n.decode(t);e(i,null),setTimeout(r,n.timeBetweenScansMillis)}catch(c){e(null,c);var a=c instanceof o.a||c instanceof s.a,l=c instanceof u.a;(a||l)&&setTimeout(r,n._timeBetweenDecodingAttempts)}}()},t.prototype.decode=function(t){var e=this.createBinaryBitmap(t);return this.decodeBitmap(e)},t.prototype.createBinaryBitmap=function(t){this.getCaptureCanvasContext(t);t instanceof HTMLVideoElement?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);var e=this.getCaptureCanvas(t),n=new l.a(e),r=new a.a(n);return new i.a(r)},t.prototype.getCaptureCanvasContext=function(t){if(!this.captureCanvasContext){var e=this.getCaptureCanvas(t),n=void 0;try{n=e.getContext("2d",{willReadFrequently:!0})}catch(r){n=e.getContext("2d")}this.captureCanvasContext=n}return this.captureCanvasContext},t.prototype.getCaptureCanvas=function(t){if(!this.captureCanvas){var e=this.createCaptureCanvas(t);this.captureCanvas=e}return this.captureCanvas},t.prototype.drawFrameOnCanvas=function(t,e,n){void 0===e&&(e={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),void 0===n&&(n=this.captureCanvasContext),n.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)},t.prototype.drawImageOnCanvas=function(t,e,n){void 0===e&&(e={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),void 0===n&&(n=this.captureCanvasContext),n.drawImage(t,e.sx,e.sy,e.sWidth,e.sHeight,e.dx,e.dy,e.dWidth,e.dHeight)},t.prototype.decodeBitmap=function(t){return this.reader.decode(t,this._hints)},t.prototype.createCaptureCanvas=function(t){if("undefined"===typeof document)return this._destroyCaptureCanvas(),null;var e,n,r=document.createElement("canvas");return"undefined"!==typeof t&&(t instanceof HTMLVideoElement?(e=t.videoWidth,n=t.videoHeight):t instanceof HTMLImageElement&&(e=t.naturalWidth||t.width,n=t.naturalHeight||t.height)),r.style.width=e+"px",r.style.height=n+"px",r.width=e,r.height=n,r},t.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach((function(t){return t.stop()})),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},t.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},t.prototype._destroyVideoElement=function(){this.videoElement&&("undefined"!==typeof this.videoEndedListener&&this.videoElement.removeEventListener("ended",this.videoEndedListener),"undefined"!==typeof this.videoPlayingEventListener&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),"undefined"!==typeof this.videoCanPlayListener&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},t.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},t.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},t.prototype.addVideoSource=function(t,e){try{t.srcObject=e}catch(n){t.src=URL.createObjectURL(e)}},t.prototype.cleanVideoSource=function(t){try{t.srcObject=null}catch(e){t.src=""}this.videoElement.removeAttribute("src")},t}()},function(t,e,n){var r,i;r=[n(13),n(36),n(203),n(204)],void 0===(i=function(t,e,n){var r,i=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,o=t.fn.init=function(o,a,s){var u,l;if(!o)return this;if(s=s||r,"string"===typeof o){if(!(u="<"===o.charAt(0)&&">"===o.charAt(o.length-1)&&o.length>=3?[null,o,null]:i.exec(o))||!u[1]&&a)return!a||a.jquery?(a||s).find(o):this.constructor(a).find(o);if(u[1]){if(a=a instanceof t?a[0]:a,t.merge(this,t.parseHTML(u[1],a&&a.nodeType?a.ownerDocument||a:e,!0)),n.test(u[1])&&t.isPlainObject(a))for(u in a)t.isFunction(this[u])?this[u](a[u]):this.attr(u,a[u]);return this}if((l=e.getElementById(u[2]))&&l.parentNode){if(l.id!==u[2])return r.find(o);this.length=1,this[0]=l}return this.context=e,this.selector=o,this}return o.nodeType?(this.context=this[0]=o,this.length=1,this):t.isFunction(o)?"undefined"!==typeof s.ready?s.ready(o):o(t):(void 0!==o.selector&&(this.selector=o.selector,this.context=o.context),t.makeArray(o,this))};return o.prototype=t.fn,r=t(e),o}.apply(e,r))||(t.exports=i)},function(t,e,n){"use strict";var r=n(76),i=n(18),o=n(6),a=function(){function t(t,e){if(0===e.length)throw new o.a;this.field=t;var n=e.length;if(n>1&&0===e[0]){for(var r=1;r<n&&0===e[r];)r++;r===n?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(n-r),i.a.arraycopy(e,r,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}return t.prototype.getCoefficients=function(){return this.coefficients},t.prototype.getDegree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return 0===this.coefficients[0]},t.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},t.prototype.evaluateAt=function(t){if(0===t)return this.getCoefficient(0);var e,n=this.coefficients;if(1===t){e=0;for(var i=0,o=n.length;i!==o;i++){var a=n[i];e=r.a.addOrSubtract(e,a)}return e}e=n[0];var s=n.length,u=this.field;for(i=1;i<s;i++)e=r.a.addOrSubtract(u.multiply(t,e),n[i]);return e},t.prototype.addOrSubtract=function(e){if(!this.field.equals(e.field))throw new o.a("GenericGFPolys do not have same GenericGF field");if(this.isZero())return e;if(e.isZero())return this;var n=this.coefficients,a=e.coefficients;if(n.length>a.length){var s=n;n=a,a=s}var u=new Int32Array(a.length),l=a.length-n.length;i.a.arraycopy(a,0,u,0,l);for(var c=l;c<a.length;c++)u[c]=r.a.addOrSubtract(n[c-l],a[c]);return new t(this.field,u)},t.prototype.multiply=function(e){if(!this.field.equals(e.field))throw new o.a("GenericGFPolys do not have same GenericGF field");if(this.isZero()||e.isZero())return this.field.getZero();for(var n=this.coefficients,i=n.length,a=e.coefficients,s=a.length,u=new Int32Array(i+s-1),l=this.field,c=0;c<i;c++)for(var d=n[c],h=0;h<s;h++)u[c+h]=r.a.addOrSubtract(u[c+h],l.multiply(d,a[h]));return new t(l,u)},t.prototype.multiplyScalar=function(e){if(0===e)return this.field.getZero();if(1===e)return this;for(var n=this.coefficients.length,r=this.field,i=new Int32Array(n),o=this.coefficients,a=0;a<n;a++)i[a]=r.multiply(o[a],e);return new t(r,i)},t.prototype.multiplyByMonomial=function(e,n){if(e<0)throw new o.a;if(0===n)return this.field.getZero();for(var r=this.coefficients,i=r.length,a=new Int32Array(i+e),s=this.field,u=0;u<i;u++)a[u]=s.multiply(r[u],n);return new t(s,a)},t.prototype.divide=function(t){if(!this.field.equals(t.field))throw new o.a("GenericGFPolys do not have same GenericGF field");if(t.isZero())throw new o.a("Divide by 0");for(var e=this.field,n=e.getZero(),r=this,i=t.getCoefficient(t.getDegree()),a=e.inverse(i);r.getDegree()>=t.getDegree()&&!r.isZero();){var s=r.getDegree()-t.getDegree(),u=e.multiply(r.getCoefficient(r.getDegree()),a),l=t.multiplyByMonomial(s,u),c=e.buildMonomial(s,u);n=n.addOrSubtract(c),r=r.addOrSubtract(l)}return[n,r]},t.prototype.toString=function(){for(var t="",e=this.getDegree();e>=0;e--){var n=this.getCoefficient(e);if(0!==n){if(n<0?(t+=" - ",n=-n):t.length>0&&(t+=" + "),0===e||1!==n){var r=this.field.log(n);0===r?t+="1":1===r?t+="a":(t+="a^",t+=r)}0!==e&&(1===e?t+="x":(t+="x^",t+=e))}}return t},t}();e.a=a},function(t,e,n){"use strict";var r=n(30),i=n(87),o=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function t(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];this.ecCodewordsPerBlock=t,this.ecBlocks=e}return t.prototype.getECCodewordsPerBlock=function(){return this.ecCodewordsPerBlock},t.prototype.getNumBlocks=function(){var t,e,n=0,r=this.ecBlocks;try{for(var i=o(r),a=i.next();!a.done;a=i.next()){n+=a.value.getCount()}}catch(s){t={error:s}}finally{try{a&&!a.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return n},t.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},t.prototype.getECBlocks=function(){return this.ecBlocks},t}(),s=a,u=function(){function t(t,e){this.count=t,this.dataCodewords=e}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}(),l=n(5),c=n(6),d=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(){function t(t,e){for(var n,r,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];this.versionNumber=t,this.alignmentPatternCenters=e,this.ecBlocks=i;var a=0,s=i[0].getECCodewordsPerBlock(),u=i[0].getECBlocks();try{for(var l=d(u),c=l.next();!c.done;c=l.next()){var h=c.value;a+=h.getCount()*(h.getDataCodewords()+s)}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}this.totalCodewords=a}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},t.prototype.getECBlocksForLevel=function(t){return this.ecBlocks[t.getValue()]},t.getProvisionalVersionForDimension=function(t){if(t%4!==1)throw new l.a;try{return this.getVersionForNumber((t-17)/4)}catch(e){throw new l.a}},t.getVersionForNumber=function(e){if(e<1||e>40)throw new c.a;return t.VERSIONS[e-1]},t.decodeVersionInformation=function(e){for(var n=Number.MAX_SAFE_INTEGER,r=0,o=0;o<t.VERSION_DECODE_INFO.length;o++){var a=t.VERSION_DECODE_INFO[o];if(a===e)return t.getVersionForNumber(o+7);var s=i.a.numBitsDiffering(e,a);s<n&&(r=o+7,n=s)}return n<=3?t.getVersionForNumber(r):null},t.prototype.buildFunctionPattern=function(){var t=this.getDimensionForVersion(),e=new r.a(t);e.setRegion(0,0,9,9),e.setRegion(t-8,0,8,9),e.setRegion(0,t-8,9,8);for(var n=this.alignmentPatternCenters.length,i=0;i<n;i++)for(var o=this.alignmentPatternCenters[i]-2,a=0;a<n;a++)0===i&&(0===a||a===n-1)||i===n-1&&0===a||e.setRegion(this.alignmentPatternCenters[a]-2,o,5,5);return e.setRegion(6,9,1,t-17),e.setRegion(9,6,t-17,1),this.versionNumber>6&&(e.setRegion(t-11,0,3,6),e.setRegion(0,t-11,6,3)),e},t.prototype.toString=function(){return""+this.versionNumber},t.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),t.VERSIONS=[new t(1,new Int32Array(0),new s(7,new u(1,19)),new s(10,new u(1,16)),new s(13,new u(1,13)),new s(17,new u(1,9))),new t(2,Int32Array.from([6,18]),new s(10,new u(1,34)),new s(16,new u(1,28)),new s(22,new u(1,22)),new s(28,new u(1,16))),new t(3,Int32Array.from([6,22]),new s(15,new u(1,55)),new s(26,new u(1,44)),new s(18,new u(2,17)),new s(22,new u(2,13))),new t(4,Int32Array.from([6,26]),new s(20,new u(1,80)),new s(18,new u(2,32)),new s(26,new u(2,24)),new s(16,new u(4,9))),new t(5,Int32Array.from([6,30]),new s(26,new u(1,108)),new s(24,new u(2,43)),new s(18,new u(2,15),new u(2,16)),new s(22,new u(2,11),new u(2,12))),new t(6,Int32Array.from([6,34]),new s(18,new u(2,68)),new s(16,new u(4,27)),new s(24,new u(4,19)),new s(28,new u(4,15))),new t(7,Int32Array.from([6,22,38]),new s(20,new u(2,78)),new s(18,new u(4,31)),new s(18,new u(2,14),new u(4,15)),new s(26,new u(4,13),new u(1,14))),new t(8,Int32Array.from([6,24,42]),new s(24,new u(2,97)),new s(22,new u(2,38),new u(2,39)),new s(22,new u(4,18),new u(2,19)),new s(26,new u(4,14),new u(2,15))),new t(9,Int32Array.from([6,26,46]),new s(30,new u(2,116)),new s(22,new u(3,36),new u(2,37)),new s(20,new u(4,16),new u(4,17)),new s(24,new u(4,12),new u(4,13))),new t(10,Int32Array.from([6,28,50]),new s(18,new u(2,68),new u(2,69)),new s(26,new u(4,43),new u(1,44)),new s(24,new u(6,19),new u(2,20)),new s(28,new u(6,15),new u(2,16))),new t(11,Int32Array.from([6,30,54]),new s(20,new u(4,81)),new s(30,new u(1,50),new u(4,51)),new s(28,new u(4,22),new u(4,23)),new s(24,new u(3,12),new u(8,13))),new t(12,Int32Array.from([6,32,58]),new s(24,new u(2,92),new u(2,93)),new s(22,new u(6,36),new u(2,37)),new s(26,new u(4,20),new u(6,21)),new s(28,new u(7,14),new u(4,15))),new t(13,Int32Array.from([6,34,62]),new s(26,new u(4,107)),new s(22,new u(8,37),new u(1,38)),new s(24,new u(8,20),new u(4,21)),new s(22,new u(12,11),new u(4,12))),new t(14,Int32Array.from([6,26,46,66]),new s(30,new u(3,115),new u(1,116)),new s(24,new u(4,40),new u(5,41)),new s(20,new u(11,16),new u(5,17)),new s(24,new u(11,12),new u(5,13))),new t(15,Int32Array.from([6,26,48,70]),new s(22,new u(5,87),new u(1,88)),new s(24,new u(5,41),new u(5,42)),new s(30,new u(5,24),new u(7,25)),new s(24,new u(11,12),new u(7,13))),new t(16,Int32Array.from([6,26,50,74]),new s(24,new u(5,98),new u(1,99)),new s(28,new u(7,45),new u(3,46)),new s(24,new u(15,19),new u(2,20)),new s(30,new u(3,15),new u(13,16))),new t(17,Int32Array.from([6,30,54,78]),new s(28,new u(1,107),new u(5,108)),new s(28,new u(10,46),new u(1,47)),new s(28,new u(1,22),new u(15,23)),new s(28,new u(2,14),new u(17,15))),new t(18,Int32Array.from([6,30,56,82]),new s(30,new u(5,120),new u(1,121)),new s(26,new u(9,43),new u(4,44)),new s(28,new u(17,22),new u(1,23)),new s(28,new u(2,14),new u(19,15))),new t(19,Int32Array.from([6,30,58,86]),new s(28,new u(3,113),new u(4,114)),new s(26,new u(3,44),new u(11,45)),new s(26,new u(17,21),new u(4,22)),new s(26,new u(9,13),new u(16,14))),new t(20,Int32Array.from([6,34,62,90]),new s(28,new u(3,107),new u(5,108)),new s(26,new u(3,41),new u(13,42)),new s(30,new u(15,24),new u(5,25)),new s(28,new u(15,15),new u(10,16))),new t(21,Int32Array.from([6,28,50,72,94]),new s(28,new u(4,116),new u(4,117)),new s(26,new u(17,42)),new s(28,new u(17,22),new u(6,23)),new s(30,new u(19,16),new u(6,17))),new t(22,Int32Array.from([6,26,50,74,98]),new s(28,new u(2,111),new u(7,112)),new s(28,new u(17,46)),new s(30,new u(7,24),new u(16,25)),new s(24,new u(34,13))),new t(23,Int32Array.from([6,30,54,78,102]),new s(30,new u(4,121),new u(5,122)),new s(28,new u(4,47),new u(14,48)),new s(30,new u(11,24),new u(14,25)),new s(30,new u(16,15),new u(14,16))),new t(24,Int32Array.from([6,28,54,80,106]),new s(30,new u(6,117),new u(4,118)),new s(28,new u(6,45),new u(14,46)),new s(30,new u(11,24),new u(16,25)),new s(30,new u(30,16),new u(2,17))),new t(25,Int32Array.from([6,32,58,84,110]),new s(26,new u(8,106),new u(4,107)),new s(28,new u(8,47),new u(13,48)),new s(30,new u(7,24),new u(22,25)),new s(30,new u(22,15),new u(13,16))),new t(26,Int32Array.from([6,30,58,86,114]),new s(28,new u(10,114),new u(2,115)),new s(28,new u(19,46),new u(4,47)),new s(28,new u(28,22),new u(6,23)),new s(30,new u(33,16),new u(4,17))),new t(27,Int32Array.from([6,34,62,90,118]),new s(30,new u(8,122),new u(4,123)),new s(28,new u(22,45),new u(3,46)),new s(30,new u(8,23),new u(26,24)),new s(30,new u(12,15),new u(28,16))),new t(28,Int32Array.from([6,26,50,74,98,122]),new s(30,new u(3,117),new u(10,118)),new s(28,new u(3,45),new u(23,46)),new s(30,new u(4,24),new u(31,25)),new s(30,new u(11,15),new u(31,16))),new t(29,Int32Array.from([6,30,54,78,102,126]),new s(30,new u(7,116),new u(7,117)),new s(28,new u(21,45),new u(7,46)),new s(30,new u(1,23),new u(37,24)),new s(30,new u(19,15),new u(26,16))),new t(30,Int32Array.from([6,26,52,78,104,130]),new s(30,new u(5,115),new u(10,116)),new s(28,new u(19,47),new u(10,48)),new s(30,new u(15,24),new u(25,25)),new s(30,new u(23,15),new u(25,16))),new t(31,Int32Array.from([6,30,56,82,108,134]),new s(30,new u(13,115),new u(3,116)),new s(28,new u(2,46),new u(29,47)),new s(30,new u(42,24),new u(1,25)),new s(30,new u(23,15),new u(28,16))),new t(32,Int32Array.from([6,34,60,86,112,138]),new s(30,new u(17,115)),new s(28,new u(10,46),new u(23,47)),new s(30,new u(10,24),new u(35,25)),new s(30,new u(19,15),new u(35,16))),new t(33,Int32Array.from([6,30,58,86,114,142]),new s(30,new u(17,115),new u(1,116)),new s(28,new u(14,46),new u(21,47)),new s(30,new u(29,24),new u(19,25)),new s(30,new u(11,15),new u(46,16))),new t(34,Int32Array.from([6,34,62,90,118,146]),new s(30,new u(13,115),new u(6,116)),new s(28,new u(14,46),new u(23,47)),new s(30,new u(44,24),new u(7,25)),new s(30,new u(59,16),new u(1,17))),new t(35,Int32Array.from([6,30,54,78,102,126,150]),new s(30,new u(12,121),new u(7,122)),new s(28,new u(12,47),new u(26,48)),new s(30,new u(39,24),new u(14,25)),new s(30,new u(22,15),new u(41,16))),new t(36,Int32Array.from([6,24,50,76,102,128,154]),new s(30,new u(6,121),new u(14,122)),new s(28,new u(6,47),new u(34,48)),new s(30,new u(46,24),new u(10,25)),new s(30,new u(2,15),new u(64,16))),new t(37,Int32Array.from([6,28,54,80,106,132,158]),new s(30,new u(17,122),new u(4,123)),new s(28,new u(29,46),new u(14,47)),new s(30,new u(49,24),new u(10,25)),new s(30,new u(24,15),new u(46,16))),new t(38,Int32Array.from([6,32,58,84,110,136,162]),new s(30,new u(4,122),new u(18,123)),new s(28,new u(13,46),new u(32,47)),new s(30,new u(48,24),new u(14,25)),new s(30,new u(42,15),new u(32,16))),new t(39,Int32Array.from([6,26,54,82,110,138,166]),new s(30,new u(20,117),new u(4,118)),new s(28,new u(40,47),new u(7,48)),new s(30,new u(43,24),new u(22,25)),new s(30,new u(10,15),new u(67,16))),new t(40,Int32Array.from([6,30,58,86,114,142,170]),new s(30,new u(19,118),new u(6,119)),new s(28,new u(18,47),new u(31,48)),new s(30,new u(34,24),new u(34,25)),new s(30,new u(20,15),new u(61,16)))],t}();e.a=h},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r,i,o={};function a(){return a="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=A(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},a.apply(this,arguments)}function s(t){return s="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},s(t)}function u(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function l(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||m(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 c(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(){d=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(M){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof p?e:p,a=Object.create(o.prototype),s=new D(i||[]);return r(a,"_invoke",{value:S(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(M){return{type:"throw",arg:M}}}t.wrap=c;var f={};function p(){}function m(){}function g(){}var y={};l(y,o,(function(){return this}));var v=Object.getPrototypeOf,_=v&&v(v(A([])));_&&_!==e&&n.call(_,o)&&(y=_);var b=g.prototype=p.prototype=Object.create(y);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function i(r,o,a,u){var l=h(t[r],t,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==s(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,u)}),(function(t){i("throw",t,a,u)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,u)}))}u(l.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=h(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=h(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function A(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=g,r(b,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:m,configurable:!0}),m.displayName=l(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(k.prototype),l(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),l(b,u,"Generator"),l(b,o,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:A(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function h(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function f(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){h(o,r,i,a,s,"next",t)}function s(t){h(o,r,i,a,s,"throw",t)}a(void 0)}))}}function p(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=m(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function m(t,e){if(t){if("string"===typeof t)return g(t,e);var n=Object.prototype.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)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,b(r.key),r)}}function _(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function b(t){var e=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===s(e)?e:String(e)}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&D(t,e)}function k(t){var e=x();return function(){var n,r=A(t);if(e){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===s(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return S(t)}(this,n)}}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function E(t){var e="function"===typeof Map?new Map:void 0;return E=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return C(t,arguments,A(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),D(r,t)},E(t)}function C(t,e,n){return C=x()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&D(i,n.prototype),i},C.apply(null,arguments)}function x(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function D(t,e){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},D(t,e)}function A(t){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},A(t)}n.r(o),n.d(o,"FrameElement",(function(){return O})),n.d(o,"FrameLoadingStyle",(function(){return T})),n.d(o,"FrameRenderer",(function(){return wt})),n.d(o,"PageRenderer",(function(){return Vt})),n.d(o,"PageSnapshot",(function(){return At})),n.d(o,"StreamActions",(function(){return Jt})),n.d(o,"StreamElement",(function(){return ve})),n.d(o,"StreamSourceElement",(function(){return _e})),n.d(o,"cache",(function(){return te})),n.d(o,"clearCache",(function(){return ue})),n.d(o,"connectStreamSource",(function(){return oe})),n.d(o,"disconnectStreamSource",(function(){return ae})),n.d(o,"navigator",(function(){return ee})),n.d(o,"registerAdapter",(function(){return re})),n.d(o,"renderStreamMessage",(function(){return se})),n.d(o,"session",(function(){return Qt})),n.d(o,"setConfirmMethod",(function(){return ce})),n.d(o,"setFormMode",(function(){return de})),n.d(o,"setProgressBarDelay",(function(){return le})),n.d(o,"start",(function(){return ne})),n.d(o,"visit",(function(){return ie})),function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var t=HTMLElement,e=function(){return Reflect.construct(t,[],this.constructor)};window.HTMLElement=e,HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}(),function(t){function e(t,e,n){throw new t("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+e+".",n)}"function"!=typeof t.requestSubmit&&(t.requestSubmit=function(t){t?(!function(t,n){t instanceof HTMLElement||e(TypeError,"parameter 1 is not of type 'HTMLElement'"),"submit"==t.type||e(TypeError,"The specified element is not a submit button"),t.form==n||e(DOMException,"The specified element is not owned by this form element","NotFoundError")}(t,this),t.click()):((t=document.createElement("input")).type="submit",t.hidden=!0,this.appendChild(t),t.click(),this.removeChild(t))})}(HTMLFormElement.prototype);var T,M=new WeakMap;function L(t){var e,n,r,i=(e=t.target,n=e instanceof Element?e:e instanceof Node?e.parentElement:null,"submit"==(null===(r=n?n.closest("input, button"):null)||void 0===r?void 0:r.type)?r:null);i&&i.form&&M.set(i.form,i)}!function(){if(!("submitter"in Event.prototype)){var t=window.Event.prototype;if("SubmitEvent"in window&&/Apple Computer/.test(navigator.vendor))t=window.SubmitEvent.prototype;else if("SubmitEvent"in window)return;addEventListener("click",L,!0),Object.defineProperty(t,"submitter",{get:function(){if("submit"==this.type&&this.target instanceof HTMLFormElement)return M.get(this.target)}})}}(),function(t){t.eager="eager",t.lazy="lazy"}(T||(T={}));var O=function(t){w(n,t);var e=k(n);function n(){var t;return y(this,n),(t=e.call(this)).loaded=Promise.resolve(),t.delegate=new n.delegateConstructor(S(t)),t}return _(n,[{key:"connectedCallback",value:function(){this.delegate.connect()}},{key:"disconnectedCallback",value:function(){this.delegate.disconnect()}},{key:"reload",value:function(){return this.delegate.sourceURLReloaded()}},{key:"attributeChangedCallback",value:function(t){"loading"==t?this.delegate.loadingStyleChanged():"complete"==t?this.delegate.completeChanged():"src"==t?this.delegate.sourceURLChanged():this.delegate.disabledChanged()}},{key:"src",get:function(){return this.getAttribute("src")},set:function(t){t?this.setAttribute("src",t):this.removeAttribute("src")}},{key:"loading",get:function(){return function(t){if("lazy"===t.toLowerCase())return T.lazy;return T.eager}(this.getAttribute("loading")||"")},set:function(t){t?this.setAttribute("loading",t):this.removeAttribute("loading")}},{key:"disabled",get:function(){return this.hasAttribute("disabled")},set:function(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},{key:"autoscroll",get:function(){return this.hasAttribute("autoscroll")},set:function(t){t?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}},{key:"complete",get:function(){return!this.delegate.isLoading}},{key:"isActive",get:function(){return this.ownerDocument===document&&!this.isPreview}},{key:"isPreview",get:function(){var t,e;return null===(e=null===(t=this.ownerDocument)||void 0===t?void 0:t.documentElement)||void 0===e?void 0:e.hasAttribute("data-turbo-preview")}}],[{key:"observedAttributes",get:function(){return["disabled","complete","loading","src"]}}]),n}(E(HTMLElement));function I(t){return new URL(t.toString(),document.baseURI)}function P(t){var e;return t.hash?t.hash.slice(1):(e=t.href.match(/#(.*)$/))?e[1]:void 0}function R(t,e){return I((null===e||void 0===e?void 0:e.getAttribute("formaction"))||t.getAttribute("action")||t.action)}function N(t){return(function(t){return function(t){return t.pathname.split("/").slice(1)}(t).slice(-1)[0]}(t).match(/\.[^.]*$/)||[])[0]||""}function F(t,e){var n=function(t){return e=t.origin+t.pathname,e.endsWith("/")?e:e+"/";var e}(e);return t.href===I(n).href||t.href.startsWith(n)}function j(t,e){return F(t,e)&&!!N(t).match(/^(?:|\.(?:htm|html|xhtml|php))$/)}function B(t){var e=P(t);return null!=e?t.href.slice(0,-(e.length+1)):t.href}function Y(t){return B(t)}var H,z=function(){function t(e){y(this,t),this.response=e}return _(t,[{key:"succeeded",get:function(){return this.response.ok}},{key:"failed",get:function(){return!this.succeeded}},{key:"clientError",get:function(){return this.statusCode>=400&&this.statusCode<=499}},{key:"serverError",get:function(){return this.statusCode>=500&&this.statusCode<=599}},{key:"redirected",get:function(){return this.response.redirected}},{key:"location",get:function(){return I(this.response.url)}},{key:"isHTML",get:function(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}},{key:"statusCode",get:function(){return this.response.status}},{key:"contentType",get:function(){return this.header("Content-Type")}},{key:"responseText",get:function(){return this.response.clone().text()}},{key:"responseHTML",get:function(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}},{key:"header",value:function(t){return this.response.headers.get(t)}}]),t}();function W(t){if("false"==t.getAttribute("data-turbo-eval"))return t;var e=document.createElement("script"),n=nt("csp-nonce");return n&&(e.nonce=n),e.textContent=t.textContent,e.async=!1,function(t,e){var n,r=p(e.attributes);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.name,a=i.value;t.setAttribute(o,a)}}catch(s){r.e(s)}finally{r.f()}}(e,t),e}function V(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.target,r=e.cancelable,i=e.detail,o=new CustomEvent(t,{cancelable:r,bubbles:!0,composed:!0,detail:i});return n&&n.isConnected?n.dispatchEvent(o):document.documentElement.dispatchEvent(o),o}function U(){return new Promise((function(t){return requestAnimationFrame((function(){return t()}))}))}function q(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return(new DOMParser).parseFromString(t,"text/html")}function G(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=function(t,e){return t.reduce((function(t,n,r){return t+n+(void 0==e[r]?"":e[r])}),"")}(t,n).replace(/^\n/,"").split("\n"),o=i[0].match(/^\s+/),a=o?o[0].length:0;return i.map((function(t){return t.slice(a)})).join("\n")}function $(){return Array.from({length:36}).map((function(t,e){return 8==e||13==e||18==e||23==e?"-":14==e?"4":19==e?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16)})).join("")}function K(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i,o=p(n.map((function(e){return null===e||void 0===e?void 0:e.getAttribute(t)})));try{for(o.s();!(i=o.n()).done;){var a=i.value;if("string"==typeof a)return a}}catch(s){o.e(s)}finally{o.f()}return null}function Z(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];"turbo-frame"==o.localName&&o.setAttribute("busy",""),o.setAttribute("aria-busy","true")}}function X(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];"turbo-frame"==o.localName&&o.removeAttribute("busy"),o.removeAttribute("aria-busy")}}function J(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;return new Promise((function(n){var r=function e(){t.removeEventListener("error",e),t.removeEventListener("load",e),n()};t.addEventListener("load",r,{once:!0}),t.addEventListener("error",r,{once:!0}),setTimeout(n,e)}))}function Q(t){switch(t){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}function tt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=K.apply(void 0,["data-turbo-action"].concat(e));return function(t){return"advance"==t||"replace"==t||"restore"==t}(r)?r:null}function et(t){return document.querySelector('meta[name="'.concat(t,'"]'))}function nt(t){var e=et(t);return e&&e.content}function rt(t,e){var n;if(t instanceof Element)return t.closest(e)||rt(t.assignedSlot||(null===(n=t.getRootNode())||void 0===n?void 0:n.host),e)}!function(t){t[t.get=0]="get",t[t.post=1]="post",t[t.put=2]="put",t[t.patch=3]="patch",t[t.delete=4]="delete"}(H||(H={}));var it,ot,at=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new URLSearchParams,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;y(this,t),this.abortController=new AbortController,this.resolveRequestPromise=function(t){},this.delegate=e,this.method=n,this.headers=this.defaultHeaders,this.body=i,this.url=r,this.target=o}var e,n,r;return _(t,[{key:"location",get:function(){return this.url}},{key:"params",get:function(){return this.url.searchParams}},{key:"entries",get:function(){return this.body?Array.from(this.body.entries()):[]}},{key:"cancel",value:function(){this.abortController.abort()}},{key:"perform",value:(r=f(d().mark((function t(){var e,n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.fetchOptions,this.delegate.prepareRequest(this),t.next=4,this.allowRequestToBeIntercepted(e);case 4:return t.prev=4,this.delegate.requestStarted(this),t.next=8,fetch(this.url.href,e);case 8:return n=t.sent,t.next=11,this.receive(n);case 11:return t.abrupt("return",t.sent);case 14:if(t.prev=14,t.t0=t.catch(4),"AbortError"===t.t0.name){t.next=19;break}throw this.willDelegateErrorHandling(t.t0)&&this.delegate.requestErrored(this,t.t0),t.t0;case 19:return t.prev=19,this.delegate.requestFinished(this),t.finish(19);case 22:case"end":return t.stop()}}),t,this,[[4,14,19,22]])}))),function(){return r.apply(this,arguments)})},{key:"receive",value:(n=f(d().mark((function t(e){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return V("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:n=new z(e)},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,n):n.succeeded?this.delegate.requestSucceededWithResponse(this,n):this.delegate.requestFailedWithResponse(this,n),t.abrupt("return",n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"fetchOptions",get:function(){var t;return{method:H[this.method].toUpperCase(),credentials:"same-origin",headers:this.headers,redirect:"follow",body:this.isSafe?null:this.body,signal:this.abortSignal,referrer:null===(t=this.delegate.referrer)||void 0===t?void 0:t.href}}},{key:"defaultHeaders",get:function(){return{Accept:"text/html, application/xhtml+xml"}}},{key:"isSafe",get:function(){return this.method===H.get}},{key:"abortSignal",get:function(){return this.abortController.signal}},{key:"acceptResponseType",value:function(t){this.headers.Accept=[t,this.headers.Accept].join(", ")}},{key:"allowRequestToBeIntercepted",value:(e=f(d().mark((function t(e){var n,r=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=new Promise((function(t){return r.resolveRequestPromise=t})),!V("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:e,url:this.url,resume:this.resolveRequestPromise},target:this.target}).defaultPrevented){t.next=5;break}return t.next=5,n;case 5:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"willDelegateErrorHandling",value:function(t){return!V("turbo:fetch-request-error",{target:this.target,cancelable:!0,detail:{request:this,error:t}}).defaultPrevented}}]),t}(),st=function(){function t(e,n){var r=this;y(this,t),this.started=!1,this.intersect=function(t){var e=t.slice(-1)[0];(null===e||void 0===e?void 0:e.isIntersecting)&&r.delegate.elementAppearedInViewport(r.element)},this.delegate=e,this.element=n,this.intersectionObserver=new IntersectionObserver(this.intersect)}return _(t,[{key:"start",value:function(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}},{key:"stop",value:function(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}}]),t}(),ut=function(){function t(e){y(this,t),this.fragment=function(t){var e,n=p(t.querySelectorAll("turbo-stream"));try{for(n.s();!(e=n.n()).done;){var r,i=e.value,o=document.importNode(i,!0),a=p(o.templateElement.content.querySelectorAll("script"));try{for(a.s();!(r=a.n()).done;){var s=r.value;s.replaceWith(W(s))}}catch(u){a.e(u)}finally{a.f()}i.replaceWith(o)}}catch(u){n.e(u)}finally{n.f()}return t}(e)}return _(t,null,[{key:"wrap",value:function(t){return"string"==typeof t?new this((e=t,(n=document.createElement("template")).innerHTML=e,n.content)):t;var e,n}}]),t}();ut.contentType="text/vnd.turbo-stream.html",function(t){t[t.initialized=0]="initialized",t[t.requesting=1]="requesting",t[t.waiting=2]="waiting",t[t.receiving=3]="receiving",t[t.stopping=4]="stopping",t[t.stopped=5]="stopped"}(it||(it={})),function(t){t.urlEncoded="application/x-www-form-urlencoded",t.multipart="multipart/form-data",t.plain="text/plain"}(ot||(ot={}));var lt=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];y(this,t),this.state=it.initialized,this.delegate=e,this.formElement=n,this.submitter=r,this.formData=function(t,e){var n=new FormData(t),r=null===e||void 0===e?void 0:e.getAttribute("name"),i=null===e||void 0===e?void 0:e.getAttribute("value");r&&n.append(r,i||"");return n}(n,r),this.location=I(this.action),this.method==H.get&&function(t,e){var n,r=new URLSearchParams,i=p(e);try{for(i.s();!(n=i.n()).done;){var o=l(n.value,2),a=o[0],s=o[1];s instanceof File||r.append(a,s)}}catch(u){i.e(u)}finally{i.f()}t.search=r.toString()}(this.location,c(this.body.entries())),this.fetchRequest=new at(this,this.method,this.location,this.body,this.formElement),this.mustRedirect=i}var e;return _(t,[{key:"method",get:function(){var t;return function(t){switch(t.toLowerCase()){case"get":return H.get;case"post":return H.post;case"put":return H.put;case"patch":return H.patch;case"delete":return H.delete}}(((null===(t=this.submitter)||void 0===t?void 0:t.getAttribute("formmethod"))||this.formElement.getAttribute("method")||"").toLowerCase())||H.get}},{key:"action",get:function(){var t,e="string"===typeof this.formElement.action?this.formElement.action:null;return(null===(t=this.submitter)||void 0===t?void 0:t.hasAttribute("formaction"))?this.submitter.getAttribute("formaction")||"":this.formElement.getAttribute("action")||e||""}},{key:"body",get:function(){return this.enctype==ot.urlEncoded||this.method==H.get?new URLSearchParams(this.stringFormData):this.formData}},{key:"enctype",get:function(){var t;return function(t){switch(t.toLowerCase()){case ot.multipart:return ot.multipart;case ot.plain:return ot.plain;default:return ot.urlEncoded}}((null===(t=this.submitter)||void 0===t?void 0:t.getAttribute("formenctype"))||this.formElement.enctype)}},{key:"isSafe",get:function(){return this.fetchRequest.isSafe}},{key:"stringFormData",get:function(){return c(this.formData).reduce((function(t,e){var n=l(e,2),r=n[0],i=n[1];return t.concat("string"==typeof i?[[r,i]]:[])}),[])}},{key:"start",value:(e=f(d().mark((function e(){var n,r,i,o;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=it).initialized,i=n.requesting,"string"!==typeof(o=K("data-turbo-confirm",this.submitter,this.formElement))){e.next=8;break}return e.next=5,t.confirmMethod(o,this.formElement,this.submitter);case 5:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:if(this.state!=r){e.next=11;break}return this.state=i,e.abrupt("return",this.fetchRequest.perform());case 11:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"stop",value:function(){var t=it,e=t.stopping,n=t.stopped;if(this.state!=e&&this.state!=n)return this.state=e,this.fetchRequest.cancel(),!0}},{key:"prepareRequest",value:function(t){if(!t.isSafe){var e=function(t){if(null!=t){var e=(document.cookie?document.cookie.split("; "):[]).find((function(e){return e.startsWith(t)}));if(e){var n=e.split("=").slice(1).join("=");return n?decodeURIComponent(n):void 0}}}(nt("csrf-param"))||nt("csrf-token");e&&(t.headers["X-CSRF-Token"]=e)}this.requestAcceptsTurboStreamResponse(t)&&t.acceptResponseType(ut.contentType)}},{key:"requestStarted",value:function(t){var e;this.state=it.waiting,null===(e=this.submitter)||void 0===e||e.setAttribute("disabled",""),this.setSubmitsWith(),V("turbo:submit-start",{target:this.formElement,detail:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}},{key:"requestPreventedHandlingResponse",value:function(t,e){this.result={success:e.succeeded,fetchResponse:e}}},{key:"requestSucceededWithResponse",value:function(t,e){if(e.clientError||e.serverError)this.delegate.formSubmissionFailedWithResponse(this,e);else if(this.requestMustRedirect(t)&&function(t){return 200==t.statusCode&&!t.redirected}(e)){var n=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,n)}else this.state=it.receiving,this.result={success:!0,fetchResponse:e},this.delegate.formSubmissionSucceededWithResponse(this,e)}},{key:"requestFailedWithResponse",value:function(t,e){this.result={success:!1,fetchResponse:e},this.delegate.formSubmissionFailedWithResponse(this,e)}},{key:"requestErrored",value:function(t,e){this.result={success:!1,error:e},this.delegate.formSubmissionErrored(this,e)}},{key:"requestFinished",value:function(t){var e;this.state=it.stopped,null===(e=this.submitter)||void 0===e||e.removeAttribute("disabled"),this.resetSubmitterText(),V("turbo:submit-end",{target:this.formElement,detail:Object.assign({formSubmission:this},this.result)}),this.delegate.formSubmissionFinished(this)}},{key:"setSubmitsWith",value:function(){if(this.submitter&&this.submitsWith)if(this.submitter.matches("button"))this.originalSubmitText=this.submitter.innerHTML,this.submitter.innerHTML=this.submitsWith;else if(this.submitter.matches("input")){var t=this.submitter;this.originalSubmitText=t.value,t.value=this.submitsWith}}},{key:"resetSubmitterText",value:function(){if(this.submitter&&this.originalSubmitText)if(this.submitter.matches("button"))this.submitter.innerHTML=this.originalSubmitText;else if(this.submitter.matches("input")){this.submitter.value=this.originalSubmitText}}},{key:"requestMustRedirect",value:function(t){return!t.isSafe&&this.mustRedirect}},{key:"requestAcceptsTurboStreamResponse",value:function(t){return!t.isSafe||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.some((function(e){return e&&e.hasAttribute(t)}))}("data-turbo-stream",this.submitter,this.formElement)}},{key:"submitsWith",get:function(){var t;return null===(t=this.submitter)||void 0===t?void 0:t.getAttribute("data-turbo-submits-with")}}],[{key:"confirmMethod",value:function(t,e,n){return Promise.resolve(confirm(t))}}]),t}();var ct=function(){function t(e){y(this,t),this.element=e}return _(t,[{key:"activeElement",get:function(){return this.element.ownerDocument.activeElement}},{key:"children",get:function(){return c(this.element.children)}},{key:"hasAnchor",value:function(t){return null!=this.getElementForAnchor(t)}},{key:"getElementForAnchor",value:function(t){return t?this.element.querySelector("[id='".concat(t,"'], a[name='").concat(t,"']")):null}},{key:"isConnected",get:function(){return this.element.isConnected}},{key:"firstAutofocusableElement",get:function(){var t,e=p(this.element.querySelectorAll("[autofocus]"));try{for(e.s();!(t=e.n()).done;){var n=t.value;if(null==n.closest("[inert], :disabled, [hidden], details:not([open]), dialog:not([open])"))return n}}catch(r){e.e(r)}finally{e.f()}return null}},{key:"permanentElements",get:function(){return ht(this.element)}},{key:"getPermanentElementById",value:function(t){return dt(this.element,t)}},{key:"getPermanentElementMapForSnapshot",value:function(t){var e,n={},r=p(this.permanentElements);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=i.id,a=t.getPermanentElementById(o);a&&(n[o]=[i,a])}}catch(s){r.e(s)}finally{r.f()}return n}}]),t}();function dt(t,e){return t.querySelector("#".concat(e,"[data-turbo-permanent]"))}function ht(t){return t.querySelectorAll("[id][data-turbo-permanent]")}var ft=function(){function t(e,n){var r=this;y(this,t),this.started=!1,this.submitCaptured=function(){r.eventTarget.removeEventListener("submit",r.submitBubbled,!1),r.eventTarget.addEventListener("submit",r.submitBubbled,!1)},this.submitBubbled=function(t){if(!t.defaultPrevented){var e=t.target instanceof HTMLFormElement?t.target:void 0,n=t.submitter||void 0;e&&function(t,e){var n=(null===e||void 0===e?void 0:e.getAttribute("formmethod"))||t.getAttribute("method");return"dialog"!=n}(e,n)&&function(t,e){if((null===e||void 0===e?void 0:e.hasAttribute("formtarget"))||t.hasAttribute("target")){var n,r=(null===e||void 0===e?void 0:e.getAttribute("formtarget"))||t.target,i=p(document.getElementsByName(r));try{for(i.s();!(n=i.n()).done;){if(n.value instanceof HTMLIFrameElement)return!1}}catch(o){i.e(o)}finally{i.f()}return!0}return!0}(e,n)&&r.delegate.willSubmitForm(e,n)&&(t.preventDefault(),t.stopImmediatePropagation(),r.delegate.formSubmitted(e,n))}},this.delegate=e,this.eventTarget=n}return _(t,[{key:"start",value:function(){this.started||(this.eventTarget.addEventListener("submit",this.submitCaptured,!0),this.started=!0)}},{key:"stop",value:function(){this.started&&(this.eventTarget.removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}}]),t}();var pt=function(){function t(e,n){y(this,t),this.resolveRenderPromise=function(t){},this.resolveInterceptionPromise=function(t){},this.delegate=e,this.element=n}var e,n,r;return _(t,[{key:"scrollToAnchor",value:function(t){var e=this.snapshot.getElementForAnchor(t);e?(this.scrollToElement(e),this.focusElement(e)):this.scrollToPosition({x:0,y:0})}},{key:"scrollToAnchorFromLocation",value:function(t){this.scrollToAnchor(P(t))}},{key:"scrollToElement",value:function(t){t.scrollIntoView()}},{key:"focusElement",value:function(t){t instanceof HTMLElement&&(t.hasAttribute("tabindex")?t.focus():(t.setAttribute("tabindex","-1"),t.focus(),t.removeAttribute("tabindex")))}},{key:"scrollToPosition",value:function(t){var e=t.x,n=t.y;this.scrollRoot.scrollTo(e,n)}},{key:"scrollToTop",value:function(){this.scrollToPosition({x:0,y:0})}},{key:"scrollRoot",get:function(){return window}},{key:"render",value:(r=f(d().mark((function t(e){var n,r,i,o,a,s=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.isPreview,r=e.shouldRender,i=e.newSnapshot,!r){t.next=25;break}return t.prev=2,this.renderPromise=new Promise((function(t){return s.resolveRenderPromise=t})),this.renderer=e,t.next=7,this.prepareToRenderSnapshot(e);case 7:if(o=new Promise((function(t){return s.resolveInterceptionPromise=t})),a={resume:this.resolveInterceptionPromise,render:this.renderer.renderElement},this.delegate.allowsImmediateRender(i,a)){t.next=13;break}return t.next=13,o;case 13:return t.next=15,this.renderSnapshot(e);case 15:this.delegate.viewRenderedSnapshot(i,n),this.delegate.preloadOnLoadLinksForView(this.element),this.finishRenderingSnapshot(e);case 18:return t.prev=18,delete this.renderer,this.resolveRenderPromise(void 0),delete this.renderPromise,t.finish(18);case 23:t.next=26;break;case 25:this.invalidate(e.reloadReason);case 26:case"end":return t.stop()}}),t,this,[[2,,18,23]])}))),function(t){return r.apply(this,arguments)})},{key:"invalidate",value:function(t){this.delegate.viewInvalidated(t)}},{key:"prepareToRenderSnapshot",value:(n=f(d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.markAsPreview(e.isPreview),t.next=3,e.prepareToRender();case 3:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"markAsPreview",value:function(t){t?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}},{key:"renderSnapshot",value:(e=f(d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.render();case 2:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})},{key:"finishRenderingSnapshot",value:function(t){t.finishRendering()}}]),t}(),mt=function(t){w(n,t);var e=k(n);function n(){return y(this,n),e.apply(this,arguments)}return _(n,[{key:"missing",value:function(){this.element.innerHTML='<strong class="turbo-frame-error">Content missing</strong>'}},{key:"snapshot",get:function(){return new ct(this.element)}}]),n}(pt),gt=function(){function t(e,n){var r=this;y(this,t),this.clickBubbled=function(t){r.respondsToEventTarget(t.target)?r.clickEvent=t:delete r.clickEvent},this.linkClicked=function(t){r.clickEvent&&r.respondsToEventTarget(t.target)&&t.target instanceof Element&&r.delegate.shouldInterceptLinkClick(t.target,t.detail.url,t.detail.originalEvent)&&(r.clickEvent.preventDefault(),t.preventDefault(),r.delegate.linkClickIntercepted(t.target,t.detail.url,t.detail.originalEvent)),delete r.clickEvent},this.willVisit=function(t){delete r.clickEvent},this.delegate=e,this.element=n}return _(t,[{key:"start",value:function(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}},{key:"stop",value:function(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}},{key:"respondsToEventTarget",value:function(t){var e=t instanceof Element?t:t instanceof Node?t.parentElement:null;return e&&e.closest("turbo-frame, html")==this.element}}]),t}(),yt=function(){function t(e,n){var r=this;y(this,t),this.started=!1,this.clickCaptured=function(){r.eventTarget.removeEventListener("click",r.clickBubbled,!1),r.eventTarget.addEventListener("click",r.clickBubbled,!1)},this.clickBubbled=function(t){if(t instanceof MouseEvent&&r.clickEventIsSignificant(t)){var e=t.composedPath&&t.composedPath()[0]||t.target,n=r.findLinkFromClickTarget(e);if(n&&function(t){if(t.hasAttribute("target")){var e,n=p(document.getElementsByName(t.target));try{for(n.s();!(e=n.n()).done;){if(e.value instanceof HTMLIFrameElement)return!1}}catch(r){n.e(r)}finally{n.f()}return!0}return!0}(n)){var i=r.getLocationForLink(n);r.delegate.willFollowLinkToLocation(n,i,t)&&(t.preventDefault(),r.delegate.followedLinkToLocation(n,i))}}},this.delegate=e,this.eventTarget=n}return _(t,[{key:"start",value:function(){this.started||(this.eventTarget.addEventListener("click",this.clickCaptured,!0),this.started=!0)}},{key:"stop",value:function(){this.started&&(this.eventTarget.removeEventListener("click",this.clickCaptured,!0),this.started=!1)}},{key:"clickEventIsSignificant",value:function(t){return!(t.target&&t.target.isContentEditable||t.defaultPrevented||t.which>1||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)}},{key:"findLinkFromClickTarget",value:function(t){return rt(t,"a[href]:not([target^=_]):not([download])")}},{key:"getLocationForLink",value:function(t){return I(t.getAttribute("href")||"")}}]),t}();var vt=function(){function t(e,n){y(this,t),this.delegate=e,this.linkInterceptor=new yt(this,n)}return _(t,[{key:"start",value:function(){this.linkInterceptor.start()}},{key:"stop",value:function(){this.linkInterceptor.stop()}},{key:"willFollowLinkToLocation",value:function(t,e,n){return this.delegate.willSubmitFormLinkToLocation(t,e,n)&&t.hasAttribute("data-turbo-method")}},{key:"followedLinkToLocation",value:function(t,e){var n,r=document.createElement("form"),i=p(e.searchParams);try{for(i.s();!(n=i.n()).done;){var o=l(n.value,2),a=o[0],s=o[1];r.append(Object.assign(document.createElement("input"),{type:"hidden",name:a,value:s}))}}catch(m){i.e(m)}finally{i.f()}var u=Object.assign(e,{search:""});r.setAttribute("data-turbo","true"),r.setAttribute("action",u.href),r.setAttribute("hidden","");var c=t.getAttribute("data-turbo-method");c&&r.setAttribute("method",c);var d=t.getAttribute("data-turbo-frame");d&&r.setAttribute("data-turbo-frame",d);var h=tt(t);h&&r.setAttribute("data-turbo-action",h);var f=t.getAttribute("data-turbo-confirm");f&&r.setAttribute("data-turbo-confirm",f),t.hasAttribute("data-turbo-stream")&&r.setAttribute("data-turbo-stream",""),this.delegate.submittedFormLinkToLocation(t,e,r),document.body.appendChild(r),r.addEventListener("turbo:submit-end",(function(){return r.remove()}),{once:!0}),requestAnimationFrame((function(){return r.requestSubmit()}))}}]),t}(),_t=function(){function t(e,n){y(this,t),this.delegate=e,this.permanentElementMap=n}var e;return _(t,[{key:"enter",value:function(){for(var t in this.permanentElementMap){var e=l(this.permanentElementMap[t],2),n=e[0],r=e[1];this.delegate.enteringBardo(n,r),this.replaceNewPermanentElementWithPlaceholder(r)}}},{key:"leave",value:function(){for(var t in this.permanentElementMap){var e=l(this.permanentElementMap[t],1)[0];this.replaceCurrentPermanentElementWithClone(e),this.replacePlaceholderWithPermanentElement(e),this.delegate.leavingBardo(e)}}},{key:"replaceNewPermanentElementWithPlaceholder",value:function(t){var e=function(t){var e=document.createElement("meta");return e.setAttribute("name","turbo-permanent-placeholder"),e.setAttribute("content",t.id),e}(t);t.replaceWith(e)}},{key:"replaceCurrentPermanentElementWithClone",value:function(t){var e=t.cloneNode(!0);t.replaceWith(e)}},{key:"replacePlaceholderWithPermanentElement",value:function(t){var e=this.getPlaceholderById(t.id);null===e||void 0===e||e.replaceWith(t)}},{key:"getPlaceholderById",value:function(t){return this.placeholders.find((function(e){return e.content==t}))}},{key:"placeholders",get:function(){return c(document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]"))}}],[{key:"preservingPermanentElements",value:(e=f(d().mark((function t(e,n,r){var i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(i=new this(e,n)).enter(),t.next=4,r();case 4:i.leave();case 5:case"end":return t.stop()}}),t,this)}))),function(t,n,r){return e.apply(this,arguments)})}]),t}();var bt=function(){function t(e,n,r,i){var o=this,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];y(this,t),this.activeElement=null,this.currentSnapshot=e,this.newSnapshot=n,this.isPreview=i,this.willRender=a,this.renderElement=r,this.promise=new Promise((function(t,e){return o.resolvingFunctions={resolve:t,reject:e}}))}var e;return _(t,[{key:"shouldRender",get:function(){return!0}},{key:"reloadReason",get:function(){}},{key:"prepareToRender",value:function(){}},{key:"finishRendering",value:function(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}},{key:"preservingPermanentElements",value:(e=f(d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_t.preservingPermanentElements(this,this.permanentElementMap,e);case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"focusFirstAutofocusableElement",value:function(){var t=this.connectedSnapshot.firstAutofocusableElement;(function(t){return t&&"function"==typeof t.focus})(t)&&t.focus()}},{key:"enteringBardo",value:function(t){this.activeElement||t.contains(this.currentSnapshot.activeElement)&&(this.activeElement=this.currentSnapshot.activeElement)}},{key:"leavingBardo",value:function(t){t.contains(this.activeElement)&&this.activeElement instanceof HTMLElement&&(this.activeElement.focus(),this.activeElement=null)}},{key:"connectedSnapshot",get:function(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}},{key:"currentElement",get:function(){return this.currentSnapshot.element}},{key:"newElement",get:function(){return this.newSnapshot.element}},{key:"permanentElementMap",get:function(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}}]),t}();var wt=function(t){w(r,t);var e,n=k(r);function r(t,e,i,o,a){var s,u=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];return y(this,r),(s=n.call(this,e,i,o,a,u)).delegate=t,s}return _(r,[{key:"shouldRender",get:function(){return!0}},{key:"render",value:(e=f(d().mark((function t(){var e=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,U();case 2:return this.preservingPermanentElements((function(){e.loadFrameElement()})),this.scrollFrameIntoView(),t.next=6,U();case 6:return this.focusFirstAutofocusableElement(),t.next=9,U();case 9:this.activateScriptElements();case 10:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"loadFrameElement",value:function(){this.delegate.willRenderFrame(this.currentElement,this.newElement),this.renderElement(this.currentElement,this.newElement)}},{key:"scrollFrameIntoView",value:function(){if(this.currentElement.autoscroll||this.newElement.autoscroll){var t=this.currentElement.firstElementChild,e=(r=this.currentElement.getAttribute("data-autoscroll-block"),i="end","end"==r||"start"==r||"center"==r||"nearest"==r?r:i),n=function(t,e){return"auto"==t||"smooth"==t?t:e}(this.currentElement.getAttribute("data-autoscroll-behavior"),"auto");if(t)return t.scrollIntoView({block:e,behavior:n}),!0}var r,i;return!1}},{key:"activateScriptElements",value:function(){var t,e=p(this.newScriptElements);try{for(e.s();!(t=e.n()).done;){var n=t.value,r=W(n);n.replaceWith(r)}}catch(i){e.e(i)}finally{e.f()}}},{key:"newScriptElements",get:function(){return this.currentElement.querySelectorAll("script")}}],[{key:"renderElement",value:function(t,e){var n,r=document.createRange();r.selectNodeContents(t),r.deleteContents();var i=e,o=null===(n=i.ownerDocument)||void 0===n?void 0:n.createRange();o&&(o.selectNodeContents(i),t.appendChild(o.extractContents()))}}]),r}(bt);var kt=function(){function t(){var e=this;y(this,t),this.hiding=!1,this.value=0,this.visible=!1,this.trickle=function(){e.setValue(e.value+Math.random()/100)},this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement(),this.installStylesheetElement(),this.setValue(0)}return _(t,[{key:"show",value:function(){this.visible||(this.visible=!0,this.installProgressElement(),this.startTrickling())}},{key:"hide",value:function(){var t=this;this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement((function(){t.uninstallProgressElement(),t.stopTrickling(),t.visible=!1,t.hiding=!1})))}},{key:"setValue",value:function(t){this.value=t,this.refresh()}},{key:"installStylesheetElement",value:function(){document.head.insertBefore(this.stylesheetElement,document.head.firstChild)}},{key:"installProgressElement",value:function(){this.progressElement.style.width="0",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()}},{key:"fadeProgressElement",value:function(e){this.progressElement.style.opacity="0",setTimeout(e,1.5*t.animationDuration)}},{key:"uninstallProgressElement",value:function(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}},{key:"startTrickling",value:function(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,t.animationDuration))}},{key:"stopTrickling",value:function(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}},{key:"refresh",value:function(){var t=this;requestAnimationFrame((function(){t.progressElement.style.width="".concat(10+90*t.value,"%")}))}},{key:"createStylesheetElement",value:function(){var e=document.createElement("style");return e.type="text/css",e.textContent=t.defaultCSS,this.cspNonce&&(e.nonce=this.cspNonce),e}},{key:"createProgressElement",value:function(){var t=document.createElement("div");return t.className="turbo-progress-bar",t}},{key:"cspNonce",get:function(){return nt("csp-nonce")}}],[{key:"defaultCSS",get:function(){return G(r||(r=u(["\n      .turbo-progress-bar {\n        position: fixed;\n        display: block;\n        top: 0;\n        left: 0;\n        height: 3px;\n        background: #0076ff;\n        z-index: 2147483647;\n        transition:\n          width ","ms ease-out,\n          opacity ","ms ","ms ease-in;\n        transform: translate3d(0, 0, 0);\n      }\n    "])),t.animationDuration,t.animationDuration/2,t.animationDuration/2)}}]),t}();kt.animationDuration=300;var St=function(t){w(n,t);var e=k(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments)).detailsByOuterHTML=t.children.filter((function(t){return!function(t){var e=t.localName;return"noscript"==e}(t)})).map((function(t){return function(t){t.hasAttribute("nonce")&&t.setAttribute("nonce","");return t}(t)})).reduce((function(t,e){var n,r,i,o=e.outerHTML,a=o in t?t[o]:{type:Et(e),tracked:Ct(e),elements:[]};return Object.assign(Object.assign({},t),(n={},r=o,i=Object.assign(Object.assign({},a),{elements:[].concat(c(a.elements),[e])}),(r=b(r))in n?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n))}),{}),t}return _(n,[{key:"trackedElementSignature",get:function(){var t=this;return Object.keys(this.detailsByOuterHTML).filter((function(e){return t.detailsByOuterHTML[e].tracked})).join("")}},{key:"getScriptElementsNotInSnapshot",value:function(t){return this.getElementsMatchingTypeNotInSnapshot("script",t)}},{key:"getStylesheetElementsNotInSnapshot",value:function(t){return this.getElementsMatchingTypeNotInSnapshot("stylesheet",t)}},{key:"getElementsMatchingTypeNotInSnapshot",value:function(t,e){var n=this;return Object.keys(this.detailsByOuterHTML).filter((function(t){return!(t in e.detailsByOuterHTML)})).map((function(t){return n.detailsByOuterHTML[t]})).filter((function(e){return e.type==t})).map((function(t){return l(t.elements,1)[0]}))}},{key:"provisionalElements",get:function(){var t=this;return Object.keys(this.detailsByOuterHTML).reduce((function(e,n){var r=t.detailsByOuterHTML[n],i=r.type,o=r.tracked,a=r.elements;return null!=i||o?a.length>1?[].concat(c(e),c(a.slice(1))):e:[].concat(c(e),c(a))}),[])}},{key:"getMetaValue",value:function(t){var e=this.findMetaElementByName(t);return e?e.getAttribute("content"):null}},{key:"findMetaElementByName",value:function(t){var e=this;return Object.keys(this.detailsByOuterHTML).reduce((function(n,r){var i=l(e.detailsByOuterHTML[r].elements,1)[0];return function(t,e){var n=t.localName;return"meta"==n&&t.getAttribute("name")==e}(i,t)?i:n}),void 0)}}]),n}(ct);function Et(t){return function(t){var e=t.localName;return"script"==e}(t)?"script":function(t){var e=t.localName;return"style"==e||"link"==e&&"stylesheet"==t.getAttribute("rel")}(t)?"stylesheet":void 0}function Ct(t){return"reload"==t.getAttribute("data-turbo-track")}var xt,Dt,At=function(t){w(n,t);var e=k(n);function n(t,r){var i;return y(this,n),(i=e.call(this,t)).headSnapshot=r,i}return _(n,[{key:"clone",value:function(){var t,e=this.element.cloneNode(!0),r=this.element.querySelectorAll("select"),i=e.querySelectorAll("select"),o=p(r.entries());try{for(o.s();!(t=o.n()).done;){var a,s=l(t.value,2),u=s[0],c=s[1],d=i[u],h=p(d.selectedOptions);try{for(h.s();!(a=h.n()).done;){a.value.selected=!1}}catch(_){h.e(_)}finally{h.f()}var f,m=p(c.selectedOptions);try{for(m.s();!(f=m.n()).done;){var g=f.value;d.options[g.index].selected=!0}}catch(_){m.e(_)}finally{m.f()}}}catch(_){o.e(_)}finally{o.f()}var y,v=p(e.querySelectorAll('input[type="password"]'));try{for(v.s();!(y=v.n()).done;){y.value.value=""}}catch(_){v.e(_)}finally{v.f()}return new n(e,this.headSnapshot)}},{key:"headElement",get:function(){return this.headSnapshot.element}},{key:"rootLocation",get:function(){var t;return I(null!==(t=this.getSetting("root"))&&void 0!==t?t:"/")}},{key:"cacheControlValue",get:function(){return this.getSetting("cache-control")}},{key:"isPreviewable",get:function(){return"no-preview"!=this.cacheControlValue}},{key:"isCacheable",get:function(){return"no-cache"!=this.cacheControlValue}},{key:"isVisitable",get:function(){return"reload"!=this.getSetting("visit-control")}},{key:"getSetting",value:function(t){return this.headSnapshot.getMetaValue("turbo-".concat(t))}}],[{key:"fromHTMLString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.fromDocument(q(t))}},{key:"fromElement",value:function(t){return this.fromDocument(t.ownerDocument)}},{key:"fromDocument",value:function(t){var e=t.head;return new this(t.body,new St(e))}}]),n}(ct);!function(t){t.visitStart="visitStart",t.requestStart="requestStart",t.requestEnd="requestEnd",t.visitEnd="visitEnd"}(xt||(xt={})),function(t){t.initialized="initialized",t.started="started",t.canceled="canceled",t.failed="failed",t.completed="completed"}(Dt||(Dt={}));var Tt,Mt={action:"advance",historyChanged:!1,visitCachedSnapshot:function(){},willRender:!0,updateHistory:!0,shouldCacheSnapshot:!0,acceptsStreamResponse:!1};!function(t){t[t.networkFailure=0]="networkFailure",t[t.timeoutFailure=-1]="timeoutFailure",t[t.contentTypeMismatch=-2]="contentTypeMismatch"}(Tt||(Tt={}));var Lt=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};y(this,t),this.identifier=$(),this.timingMetrics={},this.followedRedirect=!1,this.historyChanged=!1,this.scrolled=!1,this.shouldCacheSnapshot=!0,this.acceptsStreamResponse=!1,this.snapshotCached=!1,this.state=Dt.initialized,this.delegate=e,this.location=n,this.restorationIdentifier=r||$();var o=Object.assign(Object.assign({},Mt),i),a=o.action,s=o.historyChanged,u=o.referrer,l=o.snapshot,c=o.snapshotHTML,d=o.response,h=o.visitCachedSnapshot,f=o.willRender,p=o.updateHistory,m=o.shouldCacheSnapshot,g=o.acceptsStreamResponse;this.action=a,this.historyChanged=s,this.referrer=u,this.snapshot=l,this.snapshotHTML=c,this.response=d,this.isSamePage=this.delegate.locationWithActionIsSamePage(this.location,this.action),this.visitCachedSnapshot=h,this.willRender=f,this.updateHistory=p,this.scrolled=!f,this.shouldCacheSnapshot=m,this.acceptsStreamResponse=g}var e,n,r;return _(t,[{key:"adapter",get:function(){return this.delegate.adapter}},{key:"view",get:function(){return this.delegate.view}},{key:"history",get:function(){return this.delegate.history}},{key:"restorationData",get:function(){return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)}},{key:"silent",get:function(){return this.isSamePage}},{key:"start",value:function(){this.state==Dt.initialized&&(this.recordTimingMetric(xt.visitStart),this.state=Dt.started,this.adapter.visitStarted(this),this.delegate.visitStarted(this))}},{key:"cancel",value:function(){this.state==Dt.started&&(this.request&&this.request.cancel(),this.cancelRender(),this.state=Dt.canceled)}},{key:"complete",value:function(){this.state==Dt.started&&(this.recordTimingMetric(xt.visitEnd),this.state=Dt.completed,this.followRedirect(),this.followedRedirect||(this.adapter.visitCompleted(this),this.delegate.visitCompleted(this)))}},{key:"fail",value:function(){this.state==Dt.started&&(this.state=Dt.failed,this.adapter.visitFailed(this))}},{key:"changeHistory",value:function(){var t;if(!this.historyChanged&&this.updateHistory){var e=Q(this.location.href===(null===(t=this.referrer)||void 0===t?void 0:t.href)?"replace":this.action);this.history.update(e,this.location,this.restorationIdentifier),this.historyChanged=!0}}},{key:"issueRequest",value:function(){this.hasPreloadedResponse()?this.simulateRequest():this.shouldIssueRequest()&&!this.request&&(this.request=new at(this,H.get,this.location),this.request.perform())}},{key:"simulateRequest",value:function(){this.response&&(this.startRequest(),this.recordResponse(),this.finishRequest())}},{key:"startRequest",value:function(){this.recordTimingMetric(xt.requestStart),this.adapter.visitRequestStarted(this)}},{key:"recordResponse",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.response;if(this.response=t,t){var e=t.statusCode;Ot(e)?this.adapter.visitRequestCompleted(this):this.adapter.visitRequestFailedWithStatusCode(this,e)}}},{key:"finishRequest",value:function(){this.recordTimingMetric(xt.requestEnd),this.adapter.visitRequestFinished(this)}},{key:"loadResponse",value:function(){var t=this;if(this.response){var e=this.response,n=e.statusCode,r=e.responseHTML;this.render(f(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.shouldCacheSnapshot&&t.cacheSnapshot(),!t.view.renderPromise){e.next=4;break}return e.next=4,t.view.renderPromise;case 4:if(!Ot(n)||null==r){e.next=12;break}return e.next=7,t.view.renderPage(At.fromHTMLString(r),!1,t.willRender,t);case 7:t.performScroll(),t.adapter.visitRendered(t),t.complete(),e.next=16;break;case 12:return e.next=14,t.view.renderError(At.fromHTMLString(r),t);case 14:t.adapter.visitRendered(t),t.fail();case 16:case"end":return e.stop()}}),e)}))))}}},{key:"getCachedSnapshot",value:function(){var t=this.view.getCachedSnapshotForLocation(this.location)||this.getPreloadedSnapshot();if(t&&(!P(this.location)||t.hasAnchor(P(this.location)))&&("restore"==this.action||t.isPreviewable))return t}},{key:"getPreloadedSnapshot",value:function(){if(this.snapshotHTML)return At.fromHTMLString(this.snapshotHTML)}},{key:"hasCachedSnapshot",value:function(){return null!=this.getCachedSnapshot()}},{key:"loadCachedSnapshot",value:function(){var t=this,e=this.getCachedSnapshot();if(e){var n=this.shouldIssueRequest();this.render(f(d().mark((function r(){return d().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(t.cacheSnapshot(),!t.isSamePage){r.next=5;break}t.adapter.visitRendered(t),r.next=13;break;case 5:if(!t.view.renderPromise){r.next=8;break}return r.next=8,t.view.renderPromise;case 8:return r.next=10,t.view.renderPage(e,n,t.willRender,t);case 10:t.performScroll(),t.adapter.visitRendered(t),n||t.complete();case 13:case"end":return r.stop()}}),r)}))))}}},{key:"followRedirect",value:function(){var t;this.redirectedToLocation&&!this.followedRedirect&&(null===(t=this.response)||void 0===t?void 0:t.redirected)&&(this.adapter.visitProposedToLocation(this.redirectedToLocation,{action:"replace",response:this.response,shouldCacheSnapshot:!1,willRender:!1}),this.followedRedirect=!0)}},{key:"goToSamePageAnchor",value:function(){var t=this;this.isSamePage&&this.render(f(d().mark((function e(){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.cacheSnapshot(),t.performScroll(),t.changeHistory(),t.adapter.visitRendered(t);case 4:case"end":return e.stop()}}),e)}))))}},{key:"prepareRequest",value:function(t){this.acceptsStreamResponse&&t.acceptResponseType(ut.contentType)}},{key:"requestStarted",value:function(){this.startRequest()}},{key:"requestPreventedHandlingResponse",value:function(t,e){}},{key:"requestSucceededWithResponse",value:(r=f(d().mark((function t(e,n){var r,i,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.responseHTML;case 2:r=t.sent,i=n.redirected,o=n.statusCode,void 0==r?this.recordResponse({statusCode:Tt.contentTypeMismatch,redirected:i}):(this.redirectedToLocation=n.redirected?n.location:void 0,this.recordResponse({statusCode:o,responseHTML:r,redirected:i}));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"requestFailedWithResponse",value:(n=f(d().mark((function t(e,n){var r,i,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.responseHTML;case 2:r=t.sent,i=n.redirected,o=n.statusCode,void 0==r?this.recordResponse({statusCode:Tt.contentTypeMismatch,redirected:i}):this.recordResponse({statusCode:o,responseHTML:r,redirected:i});case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"requestErrored",value:function(t,e){this.recordResponse({statusCode:Tt.networkFailure,redirected:!1})}},{key:"requestFinished",value:function(){this.finishRequest()}},{key:"performScroll",value:function(){this.scrolled||this.view.forceReloaded||("restore"==this.action?this.scrollToRestoredPosition()||this.scrollToAnchor()||this.view.scrollToTop():this.scrollToAnchor()||this.view.scrollToTop(),this.isSamePage&&this.delegate.visitScrolledToSamePageLocation(this.view.lastRenderedLocation,this.location),this.scrolled=!0)}},{key:"scrollToRestoredPosition",value:function(){var t=this.restorationData.scrollPosition;if(t)return this.view.scrollToPosition(t),!0}},{key:"scrollToAnchor",value:function(){var t=P(this.location);if(null!=t)return this.view.scrollToAnchor(t),!0}},{key:"recordTimingMetric",value:function(t){this.timingMetrics[t]=(new Date).getTime()}},{key:"getTimingMetrics",value:function(){return Object.assign({},this.timingMetrics)}},{key:"getHistoryMethodForAction",value:function(t){switch(t){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}},{key:"hasPreloadedResponse",value:function(){return"object"==s(this.response)}},{key:"shouldIssueRequest",value:function(){return!this.isSamePage&&("restore"==this.action?!this.hasCachedSnapshot():this.willRender)}},{key:"cacheSnapshot",value:function(){var t=this;this.snapshotCached||(this.view.cacheSnapshot(this.snapshot).then((function(e){return e&&t.visitCachedSnapshot(e)})),this.snapshotCached=!0)}},{key:"render",value:(e=f(d().mark((function t(e){var n=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.cancelRender(),t.next=3,new Promise((function(t){n.frame=requestAnimationFrame((function(){return t()}))}));case 3:return t.next=5,e();case 5:delete this.frame;case 6:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"cancelRender",value:function(){this.frame&&(cancelAnimationFrame(this.frame),delete this.frame)}}]),t}();function Ot(t){return t>=200&&t<300}var It,Pt=function(){function t(e){var n=this;y(this,t),this.progressBar=new kt,this.showProgressBar=function(){n.progressBar.show()},this.session=e}return _(t,[{key:"visitProposedToLocation",value:function(t,e){this.navigator.startVisit(t,(null===e||void 0===e?void 0:e.restorationIdentifier)||$(),e)}},{key:"visitStarted",value:function(t){this.location=t.location,t.loadCachedSnapshot(),t.issueRequest(),t.goToSamePageAnchor()}},{key:"visitRequestStarted",value:function(t){this.progressBar.setValue(0),t.hasCachedSnapshot()||"restore"!=t.action?this.showVisitProgressBarAfterDelay():this.showProgressBar()}},{key:"visitRequestCompleted",value:function(t){t.loadResponse()}},{key:"visitRequestFailedWithStatusCode",value:function(t,e){switch(e){case Tt.networkFailure:case Tt.timeoutFailure:case Tt.contentTypeMismatch:return this.reload({reason:"request_failed",context:{statusCode:e}});default:return t.loadResponse()}}},{key:"visitRequestFinished",value:function(t){this.progressBar.setValue(1),this.hideVisitProgressBar()}},{key:"visitCompleted",value:function(t){}},{key:"pageInvalidated",value:function(t){this.reload(t)}},{key:"visitFailed",value:function(t){}},{key:"visitRendered",value:function(t){}},{key:"formSubmissionStarted",value:function(t){this.progressBar.setValue(0),this.showFormProgressBarAfterDelay()}},{key:"formSubmissionFinished",value:function(t){this.progressBar.setValue(1),this.hideFormProgressBar()}},{key:"showVisitProgressBarAfterDelay",value:function(){this.visitProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay)}},{key:"hideVisitProgressBar",value:function(){this.progressBar.hide(),null!=this.visitProgressBarTimeout&&(window.clearTimeout(this.visitProgressBarTimeout),delete this.visitProgressBarTimeout)}},{key:"showFormProgressBarAfterDelay",value:function(){null==this.formProgressBarTimeout&&(this.formProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay))}},{key:"hideFormProgressBar",value:function(){this.progressBar.hide(),null!=this.formProgressBarTimeout&&(window.clearTimeout(this.formProgressBarTimeout),delete this.formProgressBarTimeout)}},{key:"reload",value:function(t){var e;V("turbo:reload",{detail:t}),window.location.href=(null===(e=this.location)||void 0===e?void 0:e.toString())||window.location.href}},{key:"navigator",get:function(){return this.session.navigator}}]),t}(),Rt=function(){function t(){var e=this;y(this,t),this.selector="[data-turbo-temporary]",this.deprecatedSelector="[data-turbo-cache=false]",this.started=!1,this.removeTemporaryElements=function(t){var n,r=p(e.temporaryElements);try{for(r.s();!(n=r.n()).done;){n.value.remove()}}catch(i){r.e(i)}finally{r.f()}}}return _(t,[{key:"start",value:function(){this.started||(this.started=!0,addEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}},{key:"stop",value:function(){this.started&&(this.started=!1,removeEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}},{key:"temporaryElements",get:function(){return[].concat(c(document.querySelectorAll(this.selector)),c(this.temporaryElementsWithDeprecation))}},{key:"temporaryElementsWithDeprecation",get:function(){var t=document.querySelectorAll(this.deprecatedSelector);return t.length&&console.warn("The ".concat(this.deprecatedSelector," selector is deprecated and will be removed in a future version. Use ").concat(this.selector," instead.")),c(t)}}]),t}(),Nt=function(){function t(e,n){y(this,t),this.session=e,this.element=n,this.linkInterceptor=new gt(this,n),this.formSubmitObserver=new ft(this,n)}return _(t,[{key:"start",value:function(){this.linkInterceptor.start(),this.formSubmitObserver.start()}},{key:"stop",value:function(){this.linkInterceptor.stop(),this.formSubmitObserver.stop()}},{key:"shouldInterceptLinkClick",value:function(t,e,n){return this.shouldRedirect(t)}},{key:"linkClickIntercepted",value:function(t,e,n){var r=this.findFrameElement(t);r&&r.delegate.linkClickIntercepted(t,e,n)}},{key:"willSubmitForm",value:function(t,e){return null==t.closest("turbo-frame")&&this.shouldSubmit(t,e)&&this.shouldRedirect(t,e)}},{key:"formSubmitted",value:function(t,e){var n=this.findFrameElement(t,e);n&&n.delegate.formSubmitted(t,e)}},{key:"shouldSubmit",value:function(t,e){var n,r=R(t,e),i=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),o=I(null!==(n=null===i||void 0===i?void 0:i.content)&&void 0!==n?n:"/");return this.shouldRedirect(t,e)&&j(r,o)}},{key:"shouldRedirect",value:function(t,e){if(t instanceof HTMLFormElement?this.session.submissionIsNavigatable(t,e):this.session.elementIsNavigatable(t)){var n=this.findFrameElement(t,e);return!!n&&n!=t.closest("turbo-frame")}return!1}},{key:"findFrameElement",value:function(t,e){var n=(null===e||void 0===e?void 0:e.getAttribute("data-turbo-frame"))||t.getAttribute("data-turbo-frame");if(n&&"_top"!=n){var r=this.element.querySelector("#".concat(n,":not([disabled])"));if(r instanceof O)return r}}}]),t}(),Ft=function(){function t(e){var n=this;y(this,t),this.restorationIdentifier=$(),this.restorationData={},this.started=!1,this.pageLoaded=!1,this.onPopState=function(t){if(n.shouldHandlePopState()){var e=(t.state||{}).turbo;if(e){n.location=new URL(window.location.href);var r=e.restorationIdentifier;n.restorationIdentifier=r,n.delegate.historyPoppedToLocationWithRestorationIdentifier(n.location,r)}}},this.onPageLoad=function(){var t=f(d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.resolve();case 2:n.pageLoaded=!0;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),this.delegate=e}return _(t,[{key:"start",value:function(){this.started||(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0,this.replace(new URL(window.location.href)))}},{key:"stop",value:function(){this.started&&(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1)}},{key:"push",value:function(t,e){this.update(history.pushState,t,e)}},{key:"replace",value:function(t,e){this.update(history.replaceState,t,e)}},{key:"update",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$(),r={turbo:{restorationIdentifier:n}};t.call(history,r,"",e.href),this.location=e,this.restorationIdentifier=n}},{key:"getRestorationDataForIdentifier",value:function(t){return this.restorationData[t]||{}}},{key:"updateRestorationData",value:function(t){var e=this.restorationIdentifier,n=this.restorationData[e];this.restorationData[e]=Object.assign(Object.assign({},n),t)}},{key:"assumeControlOfScrollRestoration",value:function(){var t;this.previousScrollRestoration||(this.previousScrollRestoration=null!==(t=history.scrollRestoration)&&void 0!==t?t:"auto",history.scrollRestoration="manual")}},{key:"relinquishControlOfScrollRestoration",value:function(){this.previousScrollRestoration&&(history.scrollRestoration=this.previousScrollRestoration,delete this.previousScrollRestoration)}},{key:"shouldHandlePopState",value:function(){return this.pageIsLoaded()}},{key:"pageIsLoaded",value:function(){return this.pageLoaded||"complete"==document.readyState}}]),t}(),jt=function(){function t(e){y(this,t),this.delegate=e}var e,n;return _(t,[{key:"proposeVisit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.delegate.allowsVisitingLocationWithAction(t,e.action)&&(j(t,this.view.snapshot.rootLocation)?this.delegate.visitProposedToLocation(t,e):window.location.href=t.toString())}},{key:"startVisit",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.stop(),this.currentVisit=new Lt(this,I(t),e,Object.assign({referrer:this.location},n)),this.currentVisit.start()}},{key:"submitForm",value:function(t,e){this.stop(),this.formSubmission=new lt(this,t,e,!0),this.formSubmission.start()}},{key:"stop",value:function(){this.formSubmission&&(this.formSubmission.stop(),delete this.formSubmission),this.currentVisit&&(this.currentVisit.cancel(),delete this.currentVisit)}},{key:"adapter",get:function(){return this.delegate.adapter}},{key:"view",get:function(){return this.delegate.view}},{key:"history",get:function(){return this.delegate.history}},{key:"formSubmissionStarted",value:function(t){"function"===typeof this.adapter.formSubmissionStarted&&this.adapter.formSubmissionStarted(t)}},{key:"formSubmissionSucceededWithResponse",value:(n=f(d().mark((function t(e,n){var r,i,o,a,s,u;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e!=this.formSubmission){t.next=5;break}return t.next=3,n.responseHTML;case 3:(r=t.sent)&&((i=e.isSafe)||this.view.clearSnapshotCache(),o=n.statusCode,a=n.redirected,s=this.getActionForFormSubmission(e),u={action:s,shouldCacheSnapshot:i,response:{statusCode:o,responseHTML:r,redirected:a}},this.proposeVisit(n.location,u));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"formSubmissionFailedWithResponse",value:(e=f(d().mark((function t(e,n){var r,i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.responseHTML;case 2:if(!(r=t.sent)){t.next=14;break}if(i=At.fromHTMLString(r),!n.serverError){t.next=10;break}return t.next=8,this.view.renderError(i,this.currentVisit);case 8:t.next=12;break;case 10:return t.next=12,this.view.renderPage(i,!1,!0,this.currentVisit);case 12:this.view.scrollToTop(),this.view.clearSnapshotCache();case 14:case"end":return t.stop()}}),t,this)}))),function(t,n){return e.apply(this,arguments)})},{key:"formSubmissionErrored",value:function(t,e){console.error(e)}},{key:"formSubmissionFinished",value:function(t){"function"===typeof this.adapter.formSubmissionFinished&&this.adapter.formSubmissionFinished(t)}},{key:"visitStarted",value:function(t){this.delegate.visitStarted(t)}},{key:"visitCompleted",value:function(t){this.delegate.visitCompleted(t)}},{key:"locationWithActionIsSamePage",value:function(t,e){var n=P(t),r=P(this.view.lastRenderedLocation),i="restore"===e&&"undefined"===typeof n;return"replace"!==e&&B(t)===B(this.view.lastRenderedLocation)&&(i||null!=n&&n!==r)}},{key:"visitScrolledToSamePageLocation",value:function(t,e){this.delegate.visitScrolledToSamePageLocation(t,e)}},{key:"location",get:function(){return this.history.location}},{key:"restorationIdentifier",get:function(){return this.history.restorationIdentifier}},{key:"getActionForFormSubmission",value:function(t){return tt(t.submitter,t.formElement)||"advance"}}]),t}();!function(t){t[t.initial=0]="initial",t[t.loading=1]="loading",t[t.interactive=2]="interactive",t[t.complete=3]="complete"}(It||(It={}));var Bt=function(){function t(e){var n=this;y(this,t),this.stage=It.initial,this.started=!1,this.interpretReadyState=function(){var t=n.readyState;"interactive"==t?n.pageIsInteractive():"complete"==t&&n.pageIsComplete()},this.pageWillUnload=function(){n.delegate.pageWillUnload()},this.delegate=e}return _(t,[{key:"start",value:function(){this.started||(this.stage==It.initial&&(this.stage=It.loading),document.addEventListener("readystatechange",this.interpretReadyState,!1),addEventListener("pagehide",this.pageWillUnload,!1),this.started=!0)}},{key:"stop",value:function(){this.started&&(document.removeEventListener("readystatechange",this.interpretReadyState,!1),removeEventListener("pagehide",this.pageWillUnload,!1),this.started=!1)}},{key:"pageIsInteractive",value:function(){this.stage==It.loading&&(this.stage=It.interactive,this.delegate.pageBecameInteractive())}},{key:"pageIsComplete",value:function(){this.pageIsInteractive(),this.stage==It.interactive&&(this.stage=It.complete,this.delegate.pageLoaded())}},{key:"readyState",get:function(){return document.readyState}}]),t}(),Yt=function(){function t(e){var n=this;y(this,t),this.started=!1,this.onScroll=function(){n.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},this.delegate=e}return _(t,[{key:"start",value:function(){this.started||(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)}},{key:"stop",value:function(){this.started&&(removeEventListener("scroll",this.onScroll,!1),this.started=!1)}},{key:"updatePosition",value:function(t){this.delegate.scrollPositionChanged(t)}}]),t}(),Ht=function(){function t(){y(this,t)}return _(t,[{key:"render",value:function(t){var e=t.fragment;_t.preservingPermanentElements(this,function(t){var e,n=ht(document.documentElement),r={},i=p(n);try{for(i.s();!(e=i.n()).done;){var o,a=e.value,s=a.id,u=p(t.querySelectorAll("turbo-stream"));try{for(u.s();!(o=u.n()).done;){var l=dt(o.value.templateElement.content,s);l&&(r[s]=[a,l])}}catch(c){u.e(c)}finally{u.f()}}}catch(c){i.e(c)}finally{i.f()}return r}(e),(function(){return document.documentElement.appendChild(e)}))}},{key:"enteringBardo",value:function(t,e){e.replaceWith(t.cloneNode(!0))}},{key:"leavingBardo",value:function(){}}]),t}();var zt=function(){function t(e){var n=this;y(this,t),this.sources=new Set,this.started=!1,this.inspectFetchResponse=function(t){var e=function(t){var e,n=null===(e=t.detail)||void 0===e?void 0:e.fetchResponse;if(n instanceof z)return n}(t);e&&function(t){var e,n=null!==(e=t.contentType)&&void 0!==e?e:"";return n.startsWith(ut.contentType)}(e)&&(t.preventDefault(),n.receiveMessageResponse(e))},this.receiveMessageEvent=function(t){n.started&&"string"==typeof t.data&&n.receiveMessageHTML(t.data)},this.delegate=e}var e;return _(t,[{key:"start",value:function(){this.started||(this.started=!0,addEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}},{key:"stop",value:function(){this.started&&(this.started=!1,removeEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}},{key:"connectStreamSource",value:function(t){this.streamSourceIsConnected(t)||(this.sources.add(t),t.addEventListener("message",this.receiveMessageEvent,!1))}},{key:"disconnectStreamSource",value:function(t){this.streamSourceIsConnected(t)&&(this.sources.delete(t),t.removeEventListener("message",this.receiveMessageEvent,!1))}},{key:"streamSourceIsConnected",value:function(t){return this.sources.has(t)}},{key:"receiveMessageResponse",value:(e=f(d().mark((function t(e){var n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.responseHTML;case 2:(n=t.sent)&&this.receiveMessageHTML(n);case 4:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"receiveMessageHTML",value:function(t){this.delegate.receivedMessageFromStream(ut.wrap(t))}}]),t}();var Wt=function(t){w(r,t);var e,n=k(r);function r(){return y(this,r),n.apply(this,arguments)}return _(r,[{key:"render",value:(e=f(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.replaceHeadAndBody(),this.activateScriptElements();case 2:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"replaceHeadAndBody",value:function(){var t=document,e=t.documentElement,n=t.head;e.replaceChild(this.newHead,n),this.renderElement(this.currentElement,this.newElement)}},{key:"activateScriptElements",value:function(){var t,e=p(this.scriptElements);try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n.parentNode;if(r){var i=W(n);r.replaceChild(i,n)}}}catch(o){e.e(o)}finally{e.f()}}},{key:"newHead",get:function(){return this.newSnapshot.headSnapshot.element}},{key:"scriptElements",get:function(){return document.documentElement.querySelectorAll("script")}}],[{key:"renderElement",value:function(t,e){var n=document,r=n.documentElement,i=n.body;r.replaceChild(e,i)}}]),r}(bt),Vt=function(t){w(m,t);var e,n,r,i,o,s,u,h=k(m);function m(){return y(this,m),h.apply(this,arguments)}return _(m,[{key:"shouldRender",get:function(){return this.newSnapshot.isVisitable&&this.trackedElementsAreIdentical}},{key:"reloadReason",get:function(){return this.newSnapshot.isVisitable?this.trackedElementsAreIdentical?void 0:{reason:"tracked_element_mismatch"}:{reason:"turbo_visit_control_is_reload"}}},{key:"prepareToRender",value:(u=f(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.mergeHead();case 2:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"render",value:(s=f(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.willRender){t.next=3;break}return t.next=3,this.replaceBody();case 3:case"end":return t.stop()}}),t,this)}))),function(){return s.apply(this,arguments)})},{key:"finishRendering",value:function(){a(A(m.prototype),"finishRendering",this).call(this),this.isPreview||this.focusFirstAutofocusableElement()}},{key:"currentHeadSnapshot",get:function(){return this.currentSnapshot.headSnapshot}},{key:"newHeadSnapshot",get:function(){return this.newSnapshot.headSnapshot}},{key:"newElement",get:function(){return this.newSnapshot.element}},{key:"mergeHead",value:(o=f(d().mark((function t(){var e,n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.mergeProvisionalElements(),n=this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),t.next=5,e;case 5:return t.next=7,n;case 7:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"replaceBody",value:(i=f(d().mark((function t(){var e=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.preservingPermanentElements(f(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.activateNewBody(),t.next=3,e.assignNewBody();case 3:case"end":return t.stop()}}),t)}))));case 2:case"end":return t.stop()}}),t,this)}))),function(){return i.apply(this,arguments)})},{key:"trackedElementsAreIdentical",get:function(){return this.currentHeadSnapshot.trackedElementSignature==this.newHeadSnapshot.trackedElementSignature}},{key:"copyNewHeadStylesheetElements",value:(r=f(d().mark((function t(){var e,n,r,i;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=[],n=p(this.newHeadStylesheetElements);try{for(n.s();!(r=n.n()).done;)i=r.value,e.push(J(i)),document.head.appendChild(i)}catch(o){n.e(o)}finally{n.f()}return t.next=5,Promise.all(e);case 5:case"end":return t.stop()}}),t,this)}))),function(){return r.apply(this,arguments)})},{key:"copyNewHeadScriptElements",value:function(){var t,e=p(this.newHeadScriptElements);try{for(e.s();!(t=e.n()).done;){var n=t.value;document.head.appendChild(W(n))}}catch(r){e.e(r)}finally{e.f()}}},{key:"mergeProvisionalElements",value:(n=f(d().mark((function t(){var e,n,r,i,o,a,s;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=c(this.newHeadProvisionalElements),n=p(this.currentHeadProvisionalElements);try{for(n.s();!(r=n.n()).done;)i=r.value,this.isCurrentElementInElementList(i,e)||document.head.removeChild(i)}catch(u){n.e(u)}finally{n.f()}o=p(e);try{for(o.s();!(a=o.n()).done;)s=a.value,document.head.appendChild(s)}catch(u){o.e(u)}finally{o.f()}case 5:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"isCurrentElementInElementList",value:function(t,e){var n,r=p(e.entries());try{for(r.s();!(n=r.n()).done;){var i=l(n.value,2),o=i[0],a=i[1];if("TITLE"==t.tagName){if("TITLE"!=a.tagName)continue;if(t.innerHTML==a.innerHTML)return e.splice(o,1),!0}if(a.isEqualNode(t))return e.splice(o,1),!0}}catch(s){r.e(s)}finally{r.f()}return!1}},{key:"removeCurrentHeadProvisionalElements",value:function(){var t,e=p(this.currentHeadProvisionalElements);try{for(e.s();!(t=e.n()).done;){var n=t.value;document.head.removeChild(n)}}catch(r){e.e(r)}finally{e.f()}}},{key:"copyNewHeadProvisionalElements",value:function(){var t,e=p(this.newHeadProvisionalElements);try{for(e.s();!(t=e.n()).done;){var n=t.value;document.head.appendChild(n)}}catch(r){e.e(r)}finally{e.f()}}},{key:"activateNewBody",value:function(){document.adoptNode(this.newElement),this.activateNewBodyScriptElements()}},{key:"activateNewBodyScriptElements",value:function(){var t,e=p(this.newBodyScriptElements);try{for(e.s();!(t=e.n()).done;){var n=t.value,r=W(n);n.replaceWith(r)}}catch(i){e.e(i)}finally{e.f()}}},{key:"assignNewBody",value:(e=f(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.renderElement(this.currentElement,this.newElement);case 2:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"newHeadStylesheetElements",get:function(){return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)}},{key:"newHeadScriptElements",get:function(){return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)}},{key:"currentHeadProvisionalElements",get:function(){return this.currentHeadSnapshot.provisionalElements}},{key:"newHeadProvisionalElements",get:function(){return this.newHeadSnapshot.provisionalElements}},{key:"newBodyScriptElements",get:function(){return this.newElement.querySelectorAll("script")}}],[{key:"renderElement",value:function(t,e){document.body&&e instanceof HTMLBodyElement?document.body.replaceWith(e):document.documentElement.appendChild(e)}}]),m}(bt),Ut=function(){function t(e){y(this,t),this.keys=[],this.snapshots={},this.size=e}return _(t,[{key:"has",value:function(t){return Y(t)in this.snapshots}},{key:"get",value:function(t){if(this.has(t)){var e=this.read(t);return this.touch(t),e}}},{key:"put",value:function(t,e){return this.write(t,e),this.touch(t),e}},{key:"clear",value:function(){this.snapshots={}}},{key:"read",value:function(t){return this.snapshots[Y(t)]}},{key:"write",value:function(t,e){this.snapshots[Y(t)]=e}},{key:"touch",value:function(t){var e=Y(t),n=this.keys.indexOf(e);n>-1&&this.keys.splice(n,1),this.keys.unshift(e),this.trim()}},{key:"trim",value:function(){var t,e=p(this.keys.splice(this.size));try{for(e.s();!(t=e.n()).done;){var n=t.value;delete this.snapshots[n]}}catch(r){e.e(r)}finally{e.f()}}}]),t}(),qt=function(t){w(r,t);var e,n=k(r);function r(){var t;return y(this,r),(t=n.apply(this,arguments)).snapshotCache=new Ut(10),t.lastRenderedLocation=new URL(location.href),t.forceReloaded=!1,t}return _(r,[{key:"renderPage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0,i=new Vt(this.snapshot,t,Vt.renderElement,e,n);return i.shouldRender?null===r||void 0===r||r.changeHistory():this.forceReloaded=!0,this.render(i)}},{key:"renderError",value:function(t,e){null===e||void 0===e||e.changeHistory();var n=new Wt(this.snapshot,t,Wt.renderElement,!1);return this.render(n)}},{key:"clearSnapshotCache",value:function(){this.snapshotCache.clear()}},{key:"cacheSnapshot",value:(e=f(d().mark((function t(){var e,n,r,i=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e=i.length>0&&void 0!==i[0]?i[0]:this.snapshot).isCacheable){t.next=9;break}return this.delegate.viewWillCacheSnapshot(),n=this.lastRenderedLocation,t.next=6,new Promise((function(t){return setTimeout((function(){return t()}),0)}));case 6:return r=e.clone(),this.snapshotCache.put(n,r),t.abrupt("return",r);case 9:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"getCachedSnapshotForLocation",value:function(t){return this.snapshotCache.get(t)}},{key:"snapshot",get:function(){return At.fromElement(this.element)}}]),r}(pt),Gt=function(){function t(e){y(this,t),this.selector="a[data-turbo-preload]",this.delegate=e}var e;return _(t,[{key:"snapshotCache",get:function(){return this.delegate.navigator.view.snapshotCache}},{key:"start",value:function(){var t=this;if("loading"===document.readyState)return document.addEventListener("DOMContentLoaded",(function(){t.preloadOnLoadLinksForView(document.body)}));this.preloadOnLoadLinksForView(document.body)}},{key:"preloadOnLoadLinksForView",value:function(t){var e,n=p(t.querySelectorAll(this.selector));try{for(n.s();!(e=n.n()).done;){var r=e.value;this.preloadURL(r)}}catch(i){n.e(i)}finally{n.f()}}},{key:"preloadURL",value:(e=f(d().mark((function t(e){var n,r,i,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=new URL(e.href),!this.snapshotCache.has(n)){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=6,fetch(n.toString(),{headers:{"VND.PREFETCH":"true",Accept:"text/html"}});case 6:return r=t.sent,t.next=9,r.text();case 9:i=t.sent,o=At.fromHTMLString(i),this.snapshotCache.put(n,o),t.next=16;break;case 14:t.prev=14,t.t0=t.catch(3);case 16:case"end":return t.stop()}}),t,this,[[3,14]])}))),function(t){return e.apply(this,arguments)})}]),t}(),$t=function(){function t(){y(this,t),this.navigator=new jt(this),this.history=new Ft(this),this.preloader=new Gt(this),this.view=new qt(this,document.documentElement),this.adapter=new Pt(this),this.pageObserver=new Bt(this),this.cacheObserver=new Rt,this.linkClickObserver=new yt(this,window),this.formSubmitObserver=new ft(this,document),this.scrollObserver=new Yt(this),this.streamObserver=new zt(this),this.formLinkClickObserver=new vt(this,document.documentElement),this.frameRedirector=new Nt(this,document.documentElement),this.streamMessageRenderer=new Ht,this.drive=!0,this.enabled=!0,this.progressBarDelay=500,this.started=!1,this.formMode="on"}return _(t,[{key:"start",value:function(){this.started||(this.pageObserver.start(),this.cacheObserver.start(),this.formLinkClickObserver.start(),this.linkClickObserver.start(),this.formSubmitObserver.start(),this.scrollObserver.start(),this.streamObserver.start(),this.frameRedirector.start(),this.history.start(),this.preloader.start(),this.started=!0,this.enabled=!0)}},{key:"disable",value:function(){this.enabled=!1}},{key:"stop",value:function(){this.started&&(this.pageObserver.stop(),this.cacheObserver.stop(),this.formLinkClickObserver.stop(),this.linkClickObserver.stop(),this.formSubmitObserver.stop(),this.scrollObserver.stop(),this.streamObserver.stop(),this.frameRedirector.stop(),this.history.stop(),this.started=!1)}},{key:"registerAdapter",value:function(t){this.adapter=t}},{key:"visit",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.frame?document.getElementById(e.frame):null;n instanceof O?(n.src=t.toString(),n.loaded):this.navigator.proposeVisit(I(t),e)}},{key:"connectStreamSource",value:function(t){this.streamObserver.connectStreamSource(t)}},{key:"disconnectStreamSource",value:function(t){this.streamObserver.disconnectStreamSource(t)}},{key:"renderStreamMessage",value:function(t){this.streamMessageRenderer.render(ut.wrap(t))}},{key:"clearCache",value:function(){this.view.clearSnapshotCache()}},{key:"setProgressBarDelay",value:function(t){this.progressBarDelay=t}},{key:"setFormMode",value:function(t){this.formMode=t}},{key:"location",get:function(){return this.history.location}},{key:"restorationIdentifier",get:function(){return this.history.restorationIdentifier}},{key:"historyPoppedToLocationWithRestorationIdentifier",value:function(t,e){this.enabled?this.navigator.startVisit(t,e,{action:"restore",historyChanged:!0}):this.adapter.pageInvalidated({reason:"turbo_disabled"})}},{key:"scrollPositionChanged",value:function(t){this.history.updateRestorationData({scrollPosition:t})}},{key:"willSubmitFormLinkToLocation",value:function(t,e){return this.elementIsNavigatable(t)&&j(e,this.snapshot.rootLocation)}},{key:"submittedFormLinkToLocation",value:function(){}},{key:"willFollowLinkToLocation",value:function(t,e,n){return this.elementIsNavigatable(t)&&j(e,this.snapshot.rootLocation)&&this.applicationAllowsFollowingLinkToLocation(t,e,n)}},{key:"followedLinkToLocation",value:function(t,e){var n=this.getActionForLink(t),r=t.hasAttribute("data-turbo-stream");this.visit(e.href,{action:n,acceptsStreamResponse:r})}},{key:"allowsVisitingLocationWithAction",value:function(t,e){return this.locationWithActionIsSamePage(t,e)||this.applicationAllowsVisitingLocation(t)}},{key:"visitProposedToLocation",value:function(t,e){Kt(t),this.adapter.visitProposedToLocation(t,e)}},{key:"visitStarted",value:function(t){t.acceptsStreamResponse||Z(document.documentElement),Kt(t.location),t.silent||this.notifyApplicationAfterVisitingLocation(t.location,t.action)}},{key:"visitCompleted",value:function(t){X(document.documentElement),this.notifyApplicationAfterPageLoad(t.getTimingMetrics())}},{key:"locationWithActionIsSamePage",value:function(t,e){return this.navigator.locationWithActionIsSamePage(t,e)}},{key:"visitScrolledToSamePageLocation",value:function(t,e){this.notifyApplicationAfterVisitingSamePageLocation(t,e)}},{key:"willSubmitForm",value:function(t,e){var n=R(t,e);return this.submissionIsNavigatable(t,e)&&j(I(n),this.snapshot.rootLocation)}},{key:"formSubmitted",value:function(t,e){this.navigator.submitForm(t,e)}},{key:"pageBecameInteractive",value:function(){this.view.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()}},{key:"pageLoaded",value:function(){this.history.assumeControlOfScrollRestoration()}},{key:"pageWillUnload",value:function(){this.history.relinquishControlOfScrollRestoration()}},{key:"receivedMessageFromStream",value:function(t){this.renderStreamMessage(t)}},{key:"viewWillCacheSnapshot",value:function(){var t;(null===(t=this.navigator.currentVisit)||void 0===t?void 0:t.silent)||this.notifyApplicationBeforeCachingSnapshot()}},{key:"allowsImmediateRender",value:function(t,e){var n=t.element,r=this.notifyApplicationBeforeRender(n,e),i=r.defaultPrevented,o=r.detail.render;return this.view.renderer&&o&&(this.view.renderer.renderElement=o),!i}},{key:"viewRenderedSnapshot",value:function(t,e){this.view.lastRenderedLocation=this.history.location,this.notifyApplicationAfterRender()}},{key:"preloadOnLoadLinksForView",value:function(t){this.preloader.preloadOnLoadLinksForView(t)}},{key:"viewInvalidated",value:function(t){this.adapter.pageInvalidated(t)}},{key:"frameLoaded",value:function(t){this.notifyApplicationAfterFrameLoad(t)}},{key:"frameRendered",value:function(t,e){this.notifyApplicationAfterFrameRender(t,e)}},{key:"applicationAllowsFollowingLinkToLocation",value:function(t,e,n){return!this.notifyApplicationAfterClickingLinkToLocation(t,e,n).defaultPrevented}},{key:"applicationAllowsVisitingLocation",value:function(t){return!this.notifyApplicationBeforeVisitingLocation(t).defaultPrevented}},{key:"notifyApplicationAfterClickingLinkToLocation",value:function(t,e,n){return V("turbo:click",{target:t,detail:{url:e.href,originalEvent:n},cancelable:!0})}},{key:"notifyApplicationBeforeVisitingLocation",value:function(t){return V("turbo:before-visit",{detail:{url:t.href},cancelable:!0})}},{key:"notifyApplicationAfterVisitingLocation",value:function(t,e){return V("turbo:visit",{detail:{url:t.href,action:e}})}},{key:"notifyApplicationBeforeCachingSnapshot",value:function(){return V("turbo:before-cache")}},{key:"notifyApplicationBeforeRender",value:function(t,e){return V("turbo:before-render",{detail:Object.assign({newBody:t},e),cancelable:!0})}},{key:"notifyApplicationAfterRender",value:function(){return V("turbo:render")}},{key:"notifyApplicationAfterPageLoad",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return V("turbo:load",{detail:{url:this.location.href,timing:t}})}},{key:"notifyApplicationAfterVisitingSamePageLocation",value:function(t,e){dispatchEvent(new HashChangeEvent("hashchange",{oldURL:t.toString(),newURL:e.toString()}))}},{key:"notifyApplicationAfterFrameLoad",value:function(t){return V("turbo:frame-load",{target:t})}},{key:"notifyApplicationAfterFrameRender",value:function(t,e){return V("turbo:frame-render",{detail:{fetchResponse:t},target:e,cancelable:!0})}},{key:"submissionIsNavigatable",value:function(t,e){if("off"==this.formMode)return!1;var n=!e||this.elementIsNavigatable(e);return"optin"==this.formMode?n&&null!=t.closest('[data-turbo="true"]'):n&&this.elementIsNavigatable(t)}},{key:"elementIsNavigatable",value:function(t){var e=rt(t,"[data-turbo]"),n=rt(t,"turbo-frame");return this.drive||n?!e||"false"!=e.getAttribute("data-turbo"):!!e&&"true"==e.getAttribute("data-turbo")}},{key:"getActionForLink",value:function(t){return tt(t)||"advance"}},{key:"snapshot",get:function(){return this.view.snapshot}}]),t}();function Kt(t){Object.defineProperties(t,Zt)}var Zt={absoluteURL:{get:function(){return this.toString()}}},Xt=function(){function t(e){y(this,t),this.session=e}return _(t,[{key:"clear",value:function(){this.session.clearCache()}},{key:"resetCacheControl",value:function(){this.setCacheControl("")}},{key:"exemptPageFromCache",value:function(){this.setCacheControl("no-cache")}},{key:"exemptPageFromPreview",value:function(){this.setCacheControl("no-preview")}},{key:"setCacheControl",value:function(t){var e,n,r;n=t,(r=et(e="turbo-cache-control"))||((r=document.createElement("meta")).setAttribute("name",e),document.head.appendChild(r)),r.setAttribute("content",n)}}]),t}(),Jt={after:function(){var t=this;this.targetElements.forEach((function(e){var n;return null===(n=e.parentElement)||void 0===n?void 0:n.insertBefore(t.templateContent,e.nextSibling)}))},append:function(){var t=this;this.removeDuplicateTargetChildren(),this.targetElements.forEach((function(e){return e.append(t.templateContent)}))},before:function(){var t=this;this.targetElements.forEach((function(e){var n;return null===(n=e.parentElement)||void 0===n?void 0:n.insertBefore(t.templateContent,e)}))},prepend:function(){var t=this;this.removeDuplicateTargetChildren(),this.targetElements.forEach((function(e){return e.prepend(t.templateContent)}))},remove:function(){this.targetElements.forEach((function(t){return t.remove()}))},replace:function(){var t=this;this.targetElements.forEach((function(e){return e.replaceWith(t.templateContent)}))},update:function(){var t=this;this.targetElements.forEach((function(e){e.innerHTML="",e.append(t.templateContent)}))}},Qt=new $t,te=new Xt(Qt),ee=Qt.navigator;function ne(){Qt.start()}function re(t){Qt.registerAdapter(t)}function ie(t,e){Qt.visit(t,e)}function oe(t){Qt.connectStreamSource(t)}function ae(t){Qt.disconnectStreamSource(t)}function se(t){Qt.renderStreamMessage(t)}function ue(){console.warn("Please replace `Turbo.clearCache()` with `Turbo.cache.clear()`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),Qt.clearCache()}function le(t){Qt.setProgressBarDelay(t)}function ce(t){lt.confirmMethod=t}function de(t){Qt.setFormMode(t)}var he=Object.freeze({__proto__:null,navigator:ee,session:Qt,cache:te,PageRenderer:Vt,PageSnapshot:At,FrameRenderer:wt,start:ne,registerAdapter:re,visit:ie,connectStreamSource:oe,disconnectStreamSource:ae,renderStreamMessage:se,clearCache:ue,setProgressBarDelay:le,setConfirmMethod:ce,setFormMode:de,StreamActions:Jt}),fe=function(t){w(n,t);var e=k(n);function n(){return y(this,n),e.apply(this,arguments)}return _(n)}(E(Error)),pe=function(){function t(e){var n=this;y(this,t),this.fetchResponseLoaded=function(t){},this.currentFetchRequest=null,this.resolveVisitPromise=function(){},this.connected=!1,this.hasBeenLoaded=!1,this.ignoredAttributes=new Set,this.action=null,this.visitCachedSnapshot=function(t){var e=t.element.querySelector("#"+n.element.id);e&&n.previousFrameElement&&e.replaceChildren.apply(e,c(n.previousFrameElement.children)),delete n.previousFrameElement},this.element=e,this.view=new mt(this,this.element),this.appearanceObserver=new st(this,this.element),this.formLinkClickObserver=new vt(this,this.element),this.linkInterceptor=new gt(this,this.element),this.restorationIdentifier=$(),this.formSubmitObserver=new ft(this,this.element)}var e,n,r,i,o,a,s,u,l;return _(t,[{key:"connect",value:function(){this.connected||(this.connected=!0,this.loadingStyle==T.lazy?this.appearanceObserver.start():this.loadSourceURL(),this.formLinkClickObserver.start(),this.linkInterceptor.start(),this.formSubmitObserver.start())}},{key:"disconnect",value:function(){this.connected&&(this.connected=!1,this.appearanceObserver.stop(),this.formLinkClickObserver.stop(),this.linkInterceptor.stop(),this.formSubmitObserver.stop())}},{key:"disabledChanged",value:function(){this.loadingStyle==T.eager&&this.loadSourceURL()}},{key:"sourceURLChanged",value:function(){this.isIgnoringChangesTo("src")||(this.element.isConnected&&(this.complete=!1),(this.loadingStyle==T.eager||this.hasBeenLoaded)&&this.loadSourceURL())}},{key:"sourceURLReloaded",value:function(){var t=this,e=this.element.src;return this.ignoringChangesToAttribute("complete",(function(){t.element.removeAttribute("complete")})),this.element.src=null,this.element.src=e,this.element.loaded}},{key:"completeChanged",value:function(){this.isIgnoringChangesTo("complete")||this.loadSourceURL()}},{key:"loadingStyleChanged",value:function(){this.loadingStyle==T.lazy?this.appearanceObserver.start():(this.appearanceObserver.stop(),this.loadSourceURL())}},{key:"loadSourceURL",value:(l=f(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.enabled||!this.isActive||this.complete||!this.sourceURL){t.next=6;break}return this.element.loaded=this.visit(I(this.sourceURL)),this.appearanceObserver.stop(),t.next=5,this.element.loaded;case 5:this.hasBeenLoaded=!0;case 6:case"end":return t.stop()}}),t,this)}))),function(){return l.apply(this,arguments)})},{key:"loadResponse",value:(u=f(d().mark((function t(e){var n,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e.redirected||e.succeeded&&e.isHTML)&&(this.sourceURL=e.response.url),t.prev=1,t.next=4,e.responseHTML;case 4:if(!(n=t.sent)){t.next=15;break}if(r=q(n),!At.fromDocument(r).isVisitable){t.next=13;break}return t.next=11,this.loadFrameResponse(e,r);case 11:t.next=15;break;case 13:return t.next=15,this.handleUnvisitableFrameResponse(e);case 15:return t.prev=15,this.fetchResponseLoaded=function(){},t.finish(15);case 18:case"end":return t.stop()}}),t,this,[[1,,15,18]])}))),function(t){return u.apply(this,arguments)})},{key:"elementAppearedInViewport",value:function(t){this.proposeVisitIfNavigatedWithAction(t,t),this.loadSourceURL()}},{key:"willSubmitFormLinkToLocation",value:function(t){return this.shouldInterceptNavigation(t)}},{key:"submittedFormLinkToLocation",value:function(t,e,n){var r=this.findFrameElement(t);r&&n.setAttribute("data-turbo-frame",r.id)}},{key:"shouldInterceptLinkClick",value:function(t,e,n){return this.shouldInterceptNavigation(t)}},{key:"linkClickIntercepted",value:function(t,e){this.navigateFrame(t,e)}},{key:"willSubmitForm",value:function(t,e){return t.closest("turbo-frame")==this.element&&this.shouldInterceptNavigation(t,e)}},{key:"formSubmitted",value:function(t,e){this.formSubmission&&this.formSubmission.stop(),this.formSubmission=new lt(this,t,e);var n=this.formSubmission.fetchRequest;this.prepareRequest(n),this.formSubmission.start()}},{key:"prepareRequest",value:function(t){var e;t.headers["Turbo-Frame"]=this.id,(null===(e=this.currentNavigationElement)||void 0===e?void 0:e.hasAttribute("data-turbo-stream"))&&t.acceptResponseType(ut.contentType)}},{key:"requestStarted",value:function(t){Z(this.element)}},{key:"requestPreventedHandlingResponse",value:function(t,e){this.resolveVisitPromise()}},{key:"requestSucceededWithResponse",value:(s=f(d().mark((function t(e,n){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadResponse(n);case 2:this.resolveVisitPromise();case 3:case"end":return t.stop()}}),t,this)}))),function(t,e){return s.apply(this,arguments)})},{key:"requestFailedWithResponse",value:(a=f(d().mark((function t(e,n){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadResponse(n);case 2:this.resolveVisitPromise();case 3:case"end":return t.stop()}}),t,this)}))),function(t,e){return a.apply(this,arguments)})},{key:"requestErrored",value:function(t,e){console.error(e),this.resolveVisitPromise()}},{key:"requestFinished",value:function(t){X(this.element)}},{key:"formSubmissionStarted",value:function(t){var e=t.formElement;Z(e,this.findFrameElement(e))}},{key:"formSubmissionSucceededWithResponse",value:function(t,e){var n=this.findFrameElement(t.formElement,t.submitter);n.delegate.proposeVisitIfNavigatedWithAction(n,t.formElement,t.submitter),n.delegate.loadResponse(e),t.isSafe||Qt.clearCache()}},{key:"formSubmissionFailedWithResponse",value:function(t,e){this.element.delegate.loadResponse(e),Qt.clearCache()}},{key:"formSubmissionErrored",value:function(t,e){console.error(e)}},{key:"formSubmissionFinished",value:function(t){var e=t.formElement;X(e,this.findFrameElement(e))}},{key:"allowsImmediateRender",value:function(t,e){var n=t.element,r=V("turbo:before-frame-render",{target:this.element,detail:Object.assign({newFrame:n},e),cancelable:!0}),i=r.defaultPrevented,o=r.detail.render;return this.view.renderer&&o&&(this.view.renderer.renderElement=o),!i}},{key:"viewRenderedSnapshot",value:function(t,e){}},{key:"preloadOnLoadLinksForView",value:function(t){Qt.preloadOnLoadLinksForView(t)}},{key:"viewInvalidated",value:function(){}},{key:"willRenderFrame",value:function(t,e){this.previousFrameElement=t.cloneNode(!0)}},{key:"loadFrameResponse",value:(o=f(d().mark((function t(e,n){var r,i,o;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.extractForeignFrameElement(n.body);case 2:if(!(r=t.sent)){t.next=18;break}if(i=new ct(r),o=new wt(this,this.view.snapshot,i,wt.renderElement,!1,!1),!this.view.renderPromise){t.next=9;break}return t.next=9,this.view.renderPromise;case 9:return this.changeHistory(),t.next=12,this.view.render(o);case 12:this.complete=!0,Qt.frameRendered(e,this.element),Qt.frameLoaded(this.element),this.fetchResponseLoaded(e),t.next=19;break;case 18:this.willHandleFrameMissingFromResponse(e)&&this.handleFrameMissingFromResponse(e);case 19:case"end":return t.stop()}}),t,this)}))),function(t,e){return o.apply(this,arguments)})},{key:"visit",value:(i=f(d().mark((function t(e){var n,r,i=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new at(this,H.get,e,new URLSearchParams,this.element),null===(n=this.currentFetchRequest)||void 0===n||n.cancel(),this.currentFetchRequest=r,t.abrupt("return",new Promise((function(t){i.resolveVisitPromise=function(){i.resolveVisitPromise=function(){},i.currentFetchRequest=null,t()},r.perform()})));case 4:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"navigateFrame",value:function(t,e,n){var r=this.findFrameElement(t,n);r.delegate.proposeVisitIfNavigatedWithAction(r,t,n),this.withCurrentNavigationElement(t,(function(){r.src=e}))}},{key:"proposeVisitIfNavigatedWithAction",value:function(t,e,n){var r=this;if(this.action=tt(n,e,t),this.action){var i=At.fromElement(t).clone(),o=t.delegate.visitCachedSnapshot;t.delegate.fetchResponseLoaded=function(e){if(t.src){var n={response:{statusCode:e.statusCode,redirected:e.redirected,responseHTML:t.ownerDocument.documentElement.outerHTML},visitCachedSnapshot:o,willRender:!1,updateHistory:!1,restorationIdentifier:r.restorationIdentifier,snapshot:i};r.action&&(n.action=r.action),Qt.visit(t.src,n)}}}}},{key:"changeHistory",value:function(){if(this.action){var t=Q(this.action);Qt.history.update(t,I(this.element.src||""),this.restorationIdentifier)}}},{key:"handleUnvisitableFrameResponse",value:(r=f(d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return console.warn("The response (".concat(e.statusCode,') from <turbo-frame id="').concat(this.element.id,'"> is performing a full page visit due to turbo-visit-control.')),t.next=3,this.visitResponse(e.response);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"willHandleFrameMissingFromResponse",value:function(t){var e=this;this.element.setAttribute("complete","");var n=t.response,r=function(){var t=f(d().mark((function t(n){var r,i=arguments;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=i.length>1&&void 0!==i[1]?i[1]:{},n instanceof Response?e.visitResponse(n):Qt.visit(n,r);case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return!V("turbo:frame-missing",{target:this.element,detail:{response:n,visit:r},cancelable:!0}).defaultPrevented}},{key:"handleFrameMissingFromResponse",value:function(t){this.view.missing(),this.throwFrameMissingError(t)}},{key:"throwFrameMissingError",value:function(t){var e="The response (".concat(t.statusCode,') did not contain the expected <turbo-frame id="').concat(this.element.id,'"> and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.');throw new fe(e)}},{key:"visitResponse",value:(n=f(d().mark((function t(e){var n,r,i,o,a;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new z(e),t.next=3,n.responseHTML;case 3:return r=t.sent,i=n.location,o=n.redirected,a=n.statusCode,t.abrupt("return",Qt.visit(i,{response:{redirected:o,statusCode:a,responseHTML:r}}));case 6:case"end":return t.stop()}}),t)}))),function(t){return n.apply(this,arguments)})},{key:"findFrameElement",value:function(t,e){var n;return null!==(n=me(K("data-turbo-frame",e,t)||this.element.getAttribute("target")))&&void 0!==n?n:this.element}},{key:"extractForeignFrameElement",value:(e=f(d().mark((function t(e){var n,r;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=CSS.escape(this.id),t.prev=1,!(n=ge(e.querySelector("turbo-frame#".concat(r)),this.sourceURL))){t.next=5;break}return t.abrupt("return",n);case 5:if(!(n=ge(e.querySelector("turbo-frame[src][recurse~=".concat(r,"]")),this.sourceURL))){t.next=12;break}return t.next=9,n.loaded;case 9:return t.next=11,this.extractForeignFrameElement(n);case 11:return t.abrupt("return",t.sent);case 12:t.next=18;break;case 14:return t.prev=14,t.t0=t.catch(1),console.error(t.t0),t.abrupt("return",new O);case 18:return t.abrupt("return",null);case 19:case"end":return t.stop()}}),t,this,[[1,14]])}))),function(t){return e.apply(this,arguments)})},{key:"formActionIsVisitable",value:function(t,e){return j(I(R(t,e)),this.rootLocation)}},{key:"shouldInterceptNavigation",value:function(t,e){var n=K("data-turbo-frame",e,t)||this.element.getAttribute("target");if(t instanceof HTMLFormElement&&!this.formActionIsVisitable(t,e))return!1;if(!this.enabled||"_top"==n)return!1;if(n){var r=me(n);if(r)return!r.disabled}return!!Qt.elementIsNavigatable(t)&&!(e&&!Qt.elementIsNavigatable(e))}},{key:"id",get:function(){return this.element.id}},{key:"enabled",get:function(){return!this.element.disabled}},{key:"sourceURL",get:function(){if(this.element.src)return this.element.src},set:function(t){var e=this;this.ignoringChangesToAttribute("src",(function(){e.element.src=null!==t&&void 0!==t?t:null}))}},{key:"loadingStyle",get:function(){return this.element.loading}},{key:"isLoading",get:function(){return void 0!==this.formSubmission||void 0!==this.resolveVisitPromise()}},{key:"complete",get:function(){return this.element.hasAttribute("complete")},set:function(t){var e=this;this.ignoringChangesToAttribute("complete",(function(){t?e.element.setAttribute("complete",""):e.element.removeAttribute("complete")}))}},{key:"isActive",get:function(){return this.element.isActive&&this.connected}},{key:"rootLocation",get:function(){var t,e=this.element.ownerDocument.querySelector('meta[name="turbo-root"]');return I(null!==(t=null===e||void 0===e?void 0:e.content)&&void 0!==t?t:"/")}},{key:"isIgnoringChangesTo",value:function(t){return this.ignoredAttributes.has(t)}},{key:"ignoringChangesToAttribute",value:function(t,e){this.ignoredAttributes.add(t),e(),this.ignoredAttributes.delete(t)}},{key:"withCurrentNavigationElement",value:function(t,e){this.currentNavigationElement=t,e(),delete this.currentNavigationElement}}]),t}();function me(t){if(null!=t){var e=document.getElementById(t);if(e instanceof O)return e}}function ge(t,e){if(t){var n=t.getAttribute("src");if(null!=n&&null!=e&&(r=e,I(n).href==I(r).href))throw new Error('Matching <turbo-frame id="'.concat(t.id,'"> element has a source URL which references itself'));if(t.ownerDocument!==document&&(t=document.importNode(t,!0)),t instanceof O)return t.connectedCallback(),t.disconnectedCallback(),t}var r}var ye,ve=function(t){w(o,t);var e,n,r,i=k(o);function o(){return y(this,o),i.apply(this,arguments)}return _(o,[{key:"connectedCallback",value:(r=f(d().mark((function t(){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.render();case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.error(t.t0);case 8:return t.prev=8,this.disconnect(),t.finish(8);case 11:case"end":return t.stop()}}),t,this,[[0,5,8,11]])}))),function(){return r.apply(this,arguments)})},{key:"render",value:(n=f(d().mark((function t(){var e,n=this;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null!==(e=this.renderPromise)&&void 0!==e?e:this.renderPromise=f(d().mark((function t(){var e;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.beforeRenderEvent,!n.dispatchEvent(e)){t.next=6;break}return t.next=4,U();case 4:return t.next=6,e.detail.render(n);case 6:case"end":return t.stop()}}),t)})))());case 1:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"disconnect",value:function(){try{this.remove()}catch(t){}}},{key:"removeDuplicateTargetChildren",value:function(){this.duplicateChildren.forEach((function(t){return t.remove()}))}},{key:"duplicateChildren",get:function(){var t,e=this.targetElements.flatMap((function(t){return c(t.children)})).filter((function(t){return!!t.id})),n=c((null===(t=this.templateContent)||void 0===t?void 0:t.children)||[]).filter((function(t){return!!t.id})).map((function(t){return t.id}));return e.filter((function(t){return n.includes(t.id)}))}},{key:"performAction",get:function(){if(this.action){var t=Jt[this.action];if(t)return t;this.raise("unknown action")}this.raise("action attribute is missing")}},{key:"targetElements",get:function(){return this.target?this.targetElementsById:this.targets?this.targetElementsByQuery:void this.raise("target or targets attribute is missing")}},{key:"templateContent",get:function(){return this.templateElement.content.cloneNode(!0)}},{key:"templateElement",get:function(){if(null===this.firstElementChild){var t=this.ownerDocument.createElement("template");return this.appendChild(t),t}if(this.firstElementChild instanceof HTMLTemplateElement)return this.firstElementChild;this.raise("first child element must be a <template> element")}},{key:"action",get:function(){return this.getAttribute("action")}},{key:"target",get:function(){return this.getAttribute("target")}},{key:"targets",get:function(){return this.getAttribute("targets")}},{key:"raise",value:function(t){throw new Error("".concat(this.description,": ").concat(t))}},{key:"description",get:function(){var t,e;return null!==(e=(null!==(t=this.outerHTML.match(/<[^>]+>/))&&void 0!==t?t:[])[0])&&void 0!==e?e:"<turbo-stream>"}},{key:"beforeRenderEvent",get:function(){return new CustomEvent("turbo:before-stream-render",{bubbles:!0,cancelable:!0,detail:{newStream:this,render:o.renderElement}})}},{key:"targetElementsById",get:function(){var t,e=null===(t=this.ownerDocument)||void 0===t?void 0:t.getElementById(this.target);return null!==e?[e]:[]}},{key:"targetElementsByQuery",get:function(){var t,e=null===(t=this.ownerDocument)||void 0===t?void 0:t.querySelectorAll(this.targets);return 0!==e.length?Array.prototype.slice.call(e):[]}}],[{key:"renderElement",value:(e=f(d().mark((function t(e){return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.performAction();case 2:case"end":return t.stop()}}),t)}))),function(t){return e.apply(this,arguments)})}]),o}(E(HTMLElement)),_e=function(t){w(n,t);var e=k(n);function n(){var t;return y(this,n),(t=e.apply(this,arguments)).streamSource=null,t}return _(n,[{key:"connectedCallback",value:function(){this.streamSource=this.src.match(/^ws{1,2}:/)?new WebSocket(this.src):new EventSource(this.src),oe(this.streamSource)}},{key:"disconnectedCallback",value:function(){this.streamSource&&ae(this.streamSource)}},{key:"src",get:function(){return this.getAttribute("src")||""}}]),n}(E(HTMLElement));function be(t){return be="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},be(t)}function we(){we=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(A){u=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(x([])));y&&y!==e&&n.call(y,o)&&(m=y);var v=p.prototype=h.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function i(r,o,a,s){var u=c(t[r],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==be(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:D}}function D(){return{value:void 0,done:!0}}return f.prototype=p,r(v,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(v),u(v,s,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function ke(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function Se(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){ke(o,r,i,a,s,"next",t)}function s(t){ke(o,r,i,a,s,"throw",t)}a(void 0)}))}}function Ee(){return Ce.apply(this,arguments)}function Ce(){return(Ce=Se(we().mark((function t(){return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",ye||xe(De().then(xe)));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function xe(t){return ye=t}function De(){return Ae.apply(this,arguments)}function Ae(){return Ae=Se(we().mark((function t(){var e,r;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(3).then(n.bind(null,635));case 2:return e=t.sent,r=e.createConsumer,t.abrupt("return",r());case 5:case"end":return t.stop()}}),t)}))),Ae.apply(this,arguments)}function Te(t,e){return Me.apply(this,arguments)}function Me(){return(Me=Se(we().mark((function t(e,n){var r,i;return we().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ee();case 2:return r=t.sent,i=r.subscriptions,t.abrupt("return",i.create(e,n));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Le(t){return Le="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},Le(t)}function Oe(t){return t&&"object"===Le(t)?t instanceof Date||t instanceof RegExp?t:Array.isArray(t)?t.map(Oe):Object.keys(t).reduce((function(e,n){return e[n[0].toLowerCase()+n.slice(1).replace(/([A-Z]+)/g,(function(t,e){return"_"+e.toLowerCase()}))]=Oe(t[n]),e}),{}):t}function Ie(t){return Ie="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},Ie(t)}function Pe(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Re(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pe(Object(n),!0).forEach((function(e){Ne(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ne(t,e,n){return(e=Ye(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fe(){Fe=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(A){u=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(x([])));y&&y!==e&&n.call(y,o)&&(m=y);var v=p.prototype=h.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function i(r,o,a,s){var u=c(t[r],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==Ie(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:D}}function D(){return{value:void 0,done:!0}}return f.prototype=p,r(v,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(v),u(v,s,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function je(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function Be(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ye(r.key),r)}}function Ye(t){var e=function(t,e){if("object"!==Ie(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ie(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ie(e)?e:String(e)}function He(t){var e=Ve();return function(){var n,r=qe(t);if(e){var i=qe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ie(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function ze(t){var e="function"===typeof Map?new Map:void 0;return ze=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return We(t,arguments,qe(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ue(r,t)},ze(t)}function We(t,e,n){return We=Ve()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&Ue(i,n.prototype),i},We.apply(null,arguments)}function Ve(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function Ue(t,e){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ue(t,e)}function qe(t){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qe(t)}O.delegateConstructor=pe,void 0===customElements.get("turbo-frame")&&customElements.define("turbo-frame",O),void 0===customElements.get("turbo-stream")&&customElements.define("turbo-stream",ve),void 0===customElements.get("turbo-stream-source")&&customElements.define("turbo-stream-source",_e),function(){var t=document.currentScript;if(t&&!t.hasAttribute("data-turbo-suppress-warning"))for(t=t.parentElement;t;){if(t==document.body)return console.warn(G(i||(i=u(['\n        You are loading Turbo from a <script> element inside the <body> element. This is probably not what you meant to do!\n\n        Load your application\u2019s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.\n\n        For more information, see: https://turbo.hotwired.dev/handbook/building#working-with-script-elements\n\n        \u2014\u2014\n        Suppress this warning by adding a "data-turbo-suppress-warning" attribute to: %s\n      ']))),t.outerHTML);t=t.parentElement}}(),window.Turbo=he,ne();var Ge=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ue(t,e)}(s,t);var e,n,r,i,o,a=He(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.apply(this,arguments)}return e=s,n=[{key:"connectedCallback",value:(i=Fe().mark((function t(){return Fe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return oe(this),t.next=3,Te(this.channel,{received:this.dispatchMessageEvent.bind(this),connected:this.subscriptionConnected.bind(this),disconnected:this.subscriptionDisconnected.bind(this)});case 3:this.subscription=t.sent;case 4:case"end":return t.stop()}}),t,this)})),o=function(){var t=this,e=arguments;return new Promise((function(n,r){var o=i.apply(t,e);function a(t){je(o,n,r,a,s,"next",t)}function s(t){je(o,n,r,a,s,"throw",t)}a(void 0)}))},function(){return o.apply(this,arguments)})},{key:"disconnectedCallback",value:function(){ae(this),this.subscription&&this.subscription.unsubscribe()}},{key:"dispatchMessageEvent",value:function(t){var e=new MessageEvent("message",{data:t});return this.dispatchEvent(e)}},{key:"subscriptionConnected",value:function(){this.setAttribute("connected","")}},{key:"subscriptionDisconnected",value:function(){this.removeAttribute("connected")}},{key:"channel",get:function(){return Re({channel:this.getAttribute("channel"),signed_stream_name:this.getAttribute("signed-stream-name")},Oe(Re({},this.dataset)))}}],n&&Be(e.prototype,n),r&&Be(e,r),Object.defineProperty(e,"prototype",{writable:!1}),s}(ze(HTMLElement));void 0===customElements.get("turbo-cable-stream-source")&&customElements.define("turbo-cable-stream-source",Ge),addEventListener("turbo:before-fetch-request",(function(t){if(t.target instanceof HTMLFormElement){var e=t.target,n=t.detail.fetchOptions;e.addEventListener("turbo:submit-start",(function(t){var r=t.detail.formSubmission.submitter,i=function(t){return t instanceof FormData||t instanceof URLSearchParams}(n.body)?n.body:new URLSearchParams,o=function(t,e,n){var r=function(t){return(t instanceof HTMLButtonElement||t instanceof HTMLInputElement)&&t.hasAttribute("formmethod")?t.formMethod:null}(t),i=e.get("_method"),o=n.getAttribute("method")||"get";return"string"==typeof r?r:"string"==typeof i?i:o}(r,i,e);/get/i.test(o)||(/post/i.test(o)?i.delete("_method"):i.set("_method",o),n.method="post")}),{once:!0})}}))},function(t,e,n){"use strict";var r=n(9),i=n(62),o=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.isCropSupported=function(){return!1},t.prototype.crop=function(t,e,n,r){throw new i.a("This luminance source does not support cropping.")},t.prototype.isRotateSupported=function(){return!1},t.prototype.rotateCounterClockwise=function(){throw new i.a("This luminance source does not support rotation by 90 degrees.")},t.prototype.rotateCounterClockwise45=function(){throw new i.a("This luminance source does not support rotation by 45 degrees.")},t.prototype.toString=function(){for(var t=new Uint8ClampedArray(this.width),e=new r.a,n=0;n<this.height;n++){for(var i=this.getRow(n,t),o=0;o<this.width;o++){var a=255&i[o],s=void 0;s=a<64?"#":a<128?"+":a<192?".":" ",e.append(s)}e.append("\n")}return e.toString()},t}();e.a=o},function(t,e,n){"use strict";var r=function(){function t(t,e,n,r,i,o){void 0===i&&(i=-1),void 0===o&&(o=-1),this.rawBytes=t,this.text=e,this.byteSegments=n,this.ecLevel=r,this.structuredAppendSequenceNumber=i,this.structuredAppendParity=o,this.numBits=void 0===t||null===t?0:8*t.length}return t.prototype.getRawBytes=function(){return this.rawBytes},t.prototype.getNumBits=function(){return this.numBits},t.prototype.setNumBits=function(t){this.numBits=t},t.prototype.getText=function(){return this.text},t.prototype.getByteSegments=function(){return this.byteSegments},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getErrorsCorrected=function(){return this.errorsCorrected},t.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},t.prototype.getErasures=function(){return this.erasures},t.prototype.setErasures=function(t){this.erasures=t},t.prototype.getOther=function(){return this.other},t.prototype.setOther=function(t){this.other=t},t.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},t.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},t.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},t}();e.a=r},function(t,e,n){"use strict";var r=n(34),i=n(44),o=n(74),a=n(38),s=function(){function t(t){this.field=t}return t.prototype.decode=function(t,e){for(var n=this.field,a=new i.a(n,t),s=new Int32Array(e),u=!0,l=0;l<e;l++){var c=a.evaluateAt(n.exp(l+n.getGeneratorBase()));s[s.length-1-l]=c,0!==c&&(u=!1)}if(!u){var d=new i.a(n,s),h=this.runEuclideanAlgorithm(n.buildMonomial(e,1),d,e),f=h[0],p=h[1],m=this.findErrorLocations(f),g=this.findErrorMagnitudes(p,m);for(l=0;l<m.length;l++){var y=t.length-1-n.log(m[l]);if(y<0)throw new o.a("Bad error location");t[y]=r.a.addOrSubtract(t[y],g[l])}}},t.prototype.runEuclideanAlgorithm=function(t,e,n){if(t.getDegree()<e.getDegree()){var r=t;t=e,e=r}for(var i=this.field,s=t,u=e,l=i.getZero(),c=i.getOne();u.getDegree()>=(n/2|0);){var d=s,h=l;if(l=c,(s=u).isZero())throw new o.a("r_{i-1} was zero");u=d;for(var f=i.getZero(),p=s.getCoefficient(s.getDegree()),m=i.inverse(p);u.getDegree()>=s.getDegree()&&!u.isZero();){var g=u.getDegree()-s.getDegree(),y=i.multiply(u.getCoefficient(u.getDegree()),m);f=f.addOrSubtract(i.buildMonomial(g,y)),u=u.addOrSubtract(s.multiplyByMonomial(g,y))}if(c=f.multiply(l).addOrSubtract(h),u.getDegree()>=s.getDegree())throw new a.a("Division algorithm failed to reduce polynomial?")}var v=c.getCoefficient(0);if(0===v)throw new o.a("sigmaTilde(0) was zero");var _=i.inverse(v);return[c.multiplyScalar(_),u.multiplyScalar(_)]},t.prototype.findErrorLocations=function(t){var e=t.getDegree();if(1===e)return Int32Array.from([t.getCoefficient(1)]);for(var n=new Int32Array(e),r=0,i=this.field,a=1;a<i.getSize()&&r<e;a++)0===t.evaluateAt(a)&&(n[r]=i.inverse(a),r++);if(r!==e)throw new o.a("Error locator degree does not match number of roots");return n},t.prototype.findErrorMagnitudes=function(t,e){for(var n=e.length,r=new Int32Array(n),i=this.field,o=0;o<n;o++){for(var a=i.inverse(e[o]),s=1,u=0;u<n;u++)if(o!==u){var l=i.multiply(e[u],a),c=0===(1&l)?1|l:-2&l;s=i.multiply(s,c)}r[o]=i.multiply(t.evaluateAt(a),i.inverse(s)),0!==i.getGeneratorBase()&&(r[o]=i.multiply(r[o],a))}return r},t}();e.a=s},function(t,e,n){"use strict";var r,i=n(40),o=n(6);!function(t){t[t.L=0]="L",t[t.M=1]="M",t[t.Q=2]="Q",t[t.H=3]="H"}(r||(r={}));var a=function(){function t(e,n,r){this.value=e,this.stringValue=n,this.bits=r,t.FOR_BITS.set(r,this),t.FOR_VALUE.set(e,this)}return t.prototype.getValue=function(){return this.value},t.prototype.getBits=function(){return this.bits},t.fromString=function(e){switch(e){case"L":return t.L;case"M":return t.M;case"Q":return t.Q;case"H":return t.H;default:throw new i.a(e+"not available")}},t.prototype.toString=function(){return this.stringValue},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value},t.forBits=function(e){if(e<0||e>=t.FOR_BITS.size)throw new o.a;return t.FOR_BITS.get(e)},t.FOR_BITS=new Map,t.FOR_VALUE=new Map,t.L=new t(r.L,"L",1),t.M=new t(r.M,"M",0),t.Q=new t(r.Q,"Q",3),t.H=new t(r.H,"H",2),t}();e.a=a},function(t,e,n){var r;void 0===(r=function(){return{}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=n(47),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(e){var n=t.call(this,e.getWidth(),e.getHeight())||this;return n.delegate=e,n}return o(e,t),e.prototype.getRow=function(t,e){for(var n=this.delegate.getRow(t,e),r=this.getWidth(),i=0;i<r;i++)n[i]=255-(255&n[i]);return n},e.prototype.getMatrix=function(){for(var t=this.delegate.getMatrix(),e=this.getWidth()*this.getHeight(),n=new Uint8ClampedArray(e),r=0;r<e;r++)n[r]=255-(255&t[r]);return n},e.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},e.prototype.crop=function(t,n,r,i){return new e(this.delegate.crop(t,n,r,i))},e.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},e.prototype.invert=function(){return this.delegate},e.prototype.rotateCounterClockwise=function(){return new e(this.delegate.rotateCounterClockwise())},e.prototype.rotateCounterClockwise45=function(){return new e(this.delegate.rotateCounterClockwise45())},e}(i.a);e.a=a},function(t,e,n){"use strict";var r=n(6),i=function(){function t(){}return t.applyMaskPenaltyRule1=function(e){return t.applyMaskPenaltyRule1Internal(e,!0)+t.applyMaskPenaltyRule1Internal(e,!1)},t.applyMaskPenaltyRule2=function(e){for(var n=0,r=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o-1;a++)for(var s=r[a],u=0;u<i-1;u++){var l=s[u];l===s[u+1]&&l===r[a+1][u]&&l===r[a+1][u+1]&&n++}return t.N2*n},t.applyMaskPenaltyRule3=function(e){for(var n=0,r=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o;a++)for(var s=0;s<i;s++){var u=r[a];s+6<i&&1===u[s]&&0===u[s+1]&&1===u[s+2]&&1===u[s+3]&&1===u[s+4]&&0===u[s+5]&&1===u[s+6]&&(t.isWhiteHorizontal(u,s-4,s)||t.isWhiteHorizontal(u,s+7,s+11))&&n++,a+6<o&&1===r[a][s]&&0===r[a+1][s]&&1===r[a+2][s]&&1===r[a+3][s]&&1===r[a+4][s]&&0===r[a+5][s]&&1===r[a+6][s]&&(t.isWhiteVertical(r,s,a-4,a)||t.isWhiteVertical(r,s,a+7,a+11))&&n++}return n*t.N3},t.isWhiteHorizontal=function(t,e,n){e=Math.max(e,0),n=Math.min(n,t.length);for(var r=e;r<n;r++)if(1===t[r])return!1;return!0},t.isWhiteVertical=function(t,e,n,r){n=Math.max(n,0),r=Math.min(r,t.length);for(var i=n;i<r;i++)if(1===t[i][e])return!1;return!0},t.applyMaskPenaltyRule4=function(e){for(var n=0,r=e.getArray(),i=e.getWidth(),o=e.getHeight(),a=0;a<o;a++)for(var s=r[a],u=0;u<i;u++)1===s[u]&&n++;var l=e.getHeight()*e.getWidth();return Math.floor(10*Math.abs(2*n-l)/l)*t.N4},t.getDataMaskBit=function(t,e,n){var i,o;switch(t){case 0:i=n+e&1;break;case 1:i=1&n;break;case 2:i=e%3;break;case 3:i=(n+e)%3;break;case 4:i=Math.floor(n/2)+Math.floor(e/3)&1;break;case 5:i=(1&(o=n*e))+o%3;break;case 6:i=(1&(o=n*e))+o%3&1;break;case 7:i=(o=n*e)%3+(n+e&1)&1;break;default:throw new r.a("Invalid mask pattern: "+t)}return 0===i},t.applyMaskPenaltyRule1Internal=function(e,n){for(var r=0,i=n?e.getHeight():e.getWidth(),o=n?e.getWidth():e.getHeight(),a=e.getArray(),s=0;s<i;s++){for(var u=0,l=-1,c=0;c<o;c++){var d=n?a[s][c]:a[c][s];d===l?u++:(u>=5&&(r+=t.N1+(u-5)),u=1,l=d)}u>=5&&(r+=t.N1+(u-5))}return r},t.N1=3,t.N2=3,t.N3=40,t.N4=10,t}();e.a=i},function(t,e,n){"use strict";var r,i=n(7),o=n(21),a=n(1),s=n(98),u=n(99),l=n(100),c=n(101),d=n(23),h=n(25),f=n(69),p=n(35),m=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),g=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return m(e,t),e.prototype.decodeMiddle=function(t,e,n){var r,i,o,a,s=this.decodeMiddleCounters;s[0]=0,s[1]=0,s[2]=0,s[3]=0;for(var u=t.getSize(),l=e[1],c=0;c<4&&l<u;c++){var d=p.a.decodeDigit(t,s,l,p.a.L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+d);try{for(var h=(r=void 0,g(s)),f=h.next();!f.done;f=h.next()){l+=f.value}}catch(v){r={error:v}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}l=p.a.findGuardPattern(t,l,!0,p.a.MIDDLE_PATTERN,new Int32Array(p.a.MIDDLE_PATTERN.length).fill(0))[1];for(c=0;c<4&&l<u;c++){d=p.a.decodeDigit(t,s,l,p.a.L_PATTERNS);n+=String.fromCharCode("0".charCodeAt(0)+d);try{for(var m=(o=void 0,g(s)),y=m.next();!y.done;y=m.next()){l+=y.value}}catch(_){o={error:_}}finally{try{y&&!y.done&&(a=m.return)&&a.call(m)}finally{if(o)throw o.error}}}return{rowOffset:l,resultString:n}},e.prototype.getBarcodeFormat=function(){return i.a.EAN_8},e}(p.a),v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ean13Reader=new f.a,e}return v(e,t),e.prototype.getBarcodeFormat=function(){return i.a.UPC_A},e.prototype.decode=function(t,e){return this.maybeReturnResult(this.ean13Reader.decode(t))},e.prototype.decodeRow=function(t,e,n){return this.maybeReturnResult(this.ean13Reader.decodeRow(t,e,n))},e.prototype.decodeMiddle=function(t,e,n){return this.ean13Reader.decodeMiddle(t,e,n)},e.prototype.maybeReturnResult=function(t){var e=t.getText();if("0"===e.charAt(0)){var n=new d.a(e.substring(1),null,null,t.getResultPoints(),i.a.UPC_A);return null!=t.getResultMetadata()&&n.putAllMetadata(t.getResultMetadata()),n}throw new a.a},e.prototype.reset=function(){this.ean13Reader.reset()},e}(p.a),b=_,w=n(9),k=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),S=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},E=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=new Int32Array(4),e}return k(e,t),e.prototype.decodeMiddle=function(t,n,r){var i,o,a=this.decodeMiddleCounters.map((function(t){return t}));a[0]=0,a[1]=0,a[2]=0,a[3]=0;for(var s=t.getSize(),u=n[1],l=0,c=0;c<6&&u<s;c++){var d=e.decodeDigit(t,a,u,e.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+d%10);try{for(var h=(i=void 0,S(a)),f=h.next();!f.done;f=h.next()){u+=f.value}}catch(p){i={error:p}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}d>=10&&(l|=1<<5-c)}return e.determineNumSysAndCheckDigit(new w.a(r),l),u},e.prototype.decodeEnd=function(t,n){return e.findGuardPatternWithoutCounters(t,n,!0,e.MIDDLE_END_PATTERN)},e.prototype.checkChecksum=function(t){return p.a.checkChecksum(e.convertUPCEtoUPCA(t))},e.determineNumSysAndCheckDigit=function(t,e){for(var n=0;n<=1;n++)for(var r=0;r<10;r++)if(e===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[n][r])return t.insert(0,"0"+n),void t.append("0"+r);throw a.a.getNotFoundInstance()},e.prototype.getBarcodeFormat=function(){return i.a.UPC_E},e.convertUPCEtoUPCA=function(t){var e=t.slice(1,7).split("").map((function(t){return t.charCodeAt(0)})),n=new w.a;n.append(t.charAt(0));var r=e[5];switch(r){case 0:case 1:case 2:n.appendChars(e,0,2),n.append(r),n.append("0000"),n.appendChars(e,2,3);break;case 3:n.appendChars(e,0,3),n.append("00000"),n.appendChars(e,3,2);break;case 4:n.appendChars(e,0,4),n.append("00000"),n.append(e[4]);break;default:n.appendChars(e,0,5),n.append("0000"),n.append(r)}return t.length>=8&&n.append(t.charAt(7)),n.toString()},e.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),e.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],e}(p.a),C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},D=function(t){function e(e){var n=t.call(this)||this,r=null==e?null:e.get(o.a.POSSIBLE_FORMATS),a=[];return null!=r&&(r.indexOf(i.a.EAN_13)>-1&&a.push(new f.a),r.indexOf(i.a.UPC_A)>-1&&a.push(new b),r.indexOf(i.a.EAN_8)>-1&&a.push(new y),r.indexOf(i.a.UPC_E)>-1&&a.push(new E)),0===a.length&&(a.push(new f.a),a.push(new b),a.push(new y),a.push(new E)),n.readers=a,n}return C(e,t),e.prototype.decodeRow=function(t,e,n){var r,s;try{for(var u=x(this.readers),l=u.next();!l.done;l=u.next()){var c=l.value;try{var h=c.decodeRow(t,e,n),f=h.getBarcodeFormat()===i.a.EAN_13&&"0"===h.getText().charAt(0),p=null==n?null:n.get(o.a.POSSIBLE_FORMATS),m=null==p||p.includes(i.a.UPC_A);if(f&&m){var g=h.getRawBytes(),y=new d.a(h.getText().substring(1),g,g?g.length:null,h.getResultPoints(),i.a.UPC_A);return y.putAllMetadata(h.getResultMetadata()),y}return h}catch(v){}}}catch(_){r={error:_}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(r)throw r.error}}throw new a.a},e.prototype.reset=function(){var t,e;try{for(var n=x(this.readers),r=n.next();!r.done;r=n.next()){r.value.reset()}}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e}(h.a),A=n(134),T=n(150),M=n(105),L=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),O=function(t){function e(e){var n=t.call(this)||this;n.readers=[];var r=e?e.get(o.a.POSSIBLE_FORMATS):null,a=e&&void 0!==e.get(o.a.ASSUME_CODE_39_CHECK_DIGIT);return r&&((r.includes(i.a.EAN_13)||r.includes(i.a.UPC_A)||r.includes(i.a.EAN_8)||r.includes(i.a.UPC_E))&&n.readers.push(new D(e)),r.includes(i.a.CODE_39)&&n.readers.push(new u.a(a)),r.includes(i.a.CODE_93)&&n.readers.push(new l.a),r.includes(i.a.CODE_128)&&n.readers.push(new s.a),r.includes(i.a.ITF)&&n.readers.push(new c.a),r.includes(i.a.CODABAR)&&n.readers.push(new A.a),r.includes(i.a.RSS_14)&&n.readers.push(new M.a),r.includes(i.a.RSS_EXPANDED)&&(console.warn("RSS Expanded reader IS NOT ready for production yet! use at your own risk."),n.readers.push(new T.a))),0===n.readers.length&&(n.readers.push(new D(e)),n.readers.push(new u.a),n.readers.push(new l.a),n.readers.push(new D(e)),n.readers.push(new s.a),n.readers.push(new c.a),n.readers.push(new M.a)),n}return L(e,t),e.prototype.decodeRow=function(t,e,n){for(var r=0;r<this.readers.length;r++)try{return this.readers[r].decodeRow(t,e,n)}catch(i){}throw new a.a},e.prototype.reset=function(){this.readers.forEach((function(t){return t.reset()}))},e}(h.a);e.a=O},function(t,e,n){"use strict";var r,i=n(19),o=n(1),a=n(25),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(t){function e(){var e=t.call(this)||this;return e.decodeFinderCounters=new Int32Array(4),e.dataCharacterCounters=new Int32Array(8),e.oddRoundingErrors=new Array(4),e.evenRoundingErrors=new Array(4),e.oddCounts=new Array(e.dataCharacterCounters.length/2),e.evenCounts=new Array(e.dataCharacterCounters.length/2),e}return s(e,t),e.prototype.getDecodeFinderCounters=function(){return this.decodeFinderCounters},e.prototype.getDataCharacterCounters=function(){return this.dataCharacterCounters},e.prototype.getOddRoundingErrors=function(){return this.oddRoundingErrors},e.prototype.getEvenRoundingErrors=function(){return this.evenRoundingErrors},e.prototype.getOddCounts=function(){return this.oddCounts},e.prototype.getEvenCounts=function(){return this.evenCounts},e.prototype.parseFinderValue=function(t,n){for(var r=0;r<n.length;r++)if(a.a.patternMatchVariance(t,n[r],e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return r;throw new o.a},e.count=function(t){return i.a.sum(new Int32Array(t))},e.increment=function(t,e){for(var n=0,r=e[0],i=1;i<t.length;i++)e[i]>r&&(r=e[i],n=i);t[n]++},e.decrement=function(t,e){for(var n=0,r=e[0],i=1;i<t.length;i++)e[i]<r&&(r=e[i],n=i);t[n]--},e.isFinderPattern=function(t){var n,r,i=t[0]+t[1],o=i/(i+t[2]+t[3]);if(o>=e.MIN_FINDER_PATTERN_RATIO&&o<=e.MAX_FINDER_PATTERN_RATIO){var a=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER;try{for(var l=u(t),c=l.next();!c.done;c=l.next()){var d=c.value;d>s&&(s=d),d<a&&(a=d)}}catch(h){n={error:h}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return s<10*a}return!1},e.MAX_AVG_VARIANCE=.2,e.MAX_INDIVIDUAL_VARIANCE=.45,e.MIN_FINDER_PATTERN_RATIO=9.5/12,e.MAX_FINDER_PATTERN_RATIO=12.5/14,e}(a.a);e.a=l},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a}));function r(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(u){s=[6,u],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}Object.create;function o(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t}Object.create},,function(t,e,n){"use strict";var r=function(){function t(t,e){this.bits=t,this.points=e}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}();e.a=r},function(t,e,n){"use strict";var r=n(133),i=function(){function t(){}return t.setGridSampler=function(e){t.gridSampler=e},t.getInstance=function(){return t.gridSampler},t.gridSampler=new r.a,t}();e.a=i},function(t,e,n){"use strict";var r,i=n(32),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.forName=function(t){return this.getCharacterSetECIByName(t)},e}(i.a);e.a=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(9),i=n(17),o=n(2),a=function(){function t(){}return t.prototype.getEncodingMode=function(){return o.d},t.prototype.encodeMaximal=function(t){for(var e=new r.a,n=0,i=t.pos,a=0;t.hasMoreCharacters();){var s=t.getCurrentChar();t.pos++,n=this.encodeChar(s,e),e.length()%3===0&&(i=t.pos,a=e.length())}if(a!==e.length()){var u=Math.floor(e.length()/3*2),l=Math.floor(t.getCodewordCount()+u+1);t.updateSymbolInfo(l);var c=t.getSymbolInfo().getDataCapacity()-l,d=Math.floor(e.length()%3);(2===d&&2!==c||1===d&&(n>3||1!==c))&&(t.pos=i)}e.length()>0&&t.writeCodeword(o.k),this.handleEOD(t,e)},t.prototype.encode=function(t){for(var e=new r.a;t.hasMoreCharacters();){var n=t.getCurrentChar();t.pos++;var a=this.encodeChar(n,e),s=2*Math.floor(e.length()/3),u=t.getCodewordCount()+s;t.updateSymbolInfo(u);var l=t.getSymbolInfo().getDataCapacity()-u;if(!t.hasMoreCharacters()){var c=new r.a;for(e.length()%3===2&&2!==l&&(a=this.backtrackOneCharacter(t,e,c,a));e.length()%3===1&&(a>3||1!==l);)a=this.backtrackOneCharacter(t,e,c,a);break}if(e.length()%3===0)if(i.a.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(o.b);break}}this.handleEOD(t,e)},t.prototype.backtrackOneCharacter=function(t,e,n,r){var i=e.length(),o=e.toString().substring(0,i-r);e.setLengthToZero(),e.append(o),t.pos--;var a=t.getCurrentChar();return r=this.encodeChar(a,n),t.resetSymbolInfo(),r},t.prototype.writeNextTriplet=function(t,e){t.writeCodewords(this.encodeToCodewords(e.toString()));var n=e.toString().substring(3);e.setLengthToZero(),e.append(n)},t.prototype.handleEOD=function(t,e){var n=Math.floor(e.length()/3*2),r=e.length()%3,i=t.getCodewordCount()+n;t.updateSymbolInfo(i);var a=t.getSymbolInfo().getDataCapacity()-i;if(2===r){for(e.append("\0");e.length()>=3;)this.writeNextTriplet(t,e);t.hasMoreCharacters()&&t.writeCodeword(o.e)}else if(1===a&&1===r){for(;e.length()>=3;)this.writeNextTriplet(t,e);t.hasMoreCharacters()&&t.writeCodeword(o.e),t.pos--}else{if(0!==r)throw new Error("Unexpected case. Please report!");for(;e.length()>=3;)this.writeNextTriplet(t,e);(a>0||t.hasMoreCharacters())&&t.writeCodeword(o.e)}t.signalEncoderChange(o.b)},t.prototype.encodeChar=function(t,e){if(t===" ".charCodeAt(0))return e.append(3),1;if(t>="0".charCodeAt(0)&&t<="9".charCodeAt(0))return e.append(t-48+4),1;if(t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0))return e.append(t-65+14),1;if(t<" ".charCodeAt(0))return e.append(0),e.append(t),2;if(t<="/".charCodeAt(0))return e.append(1),e.append(t-33),2;if(t<="@".charCodeAt(0))return e.append(1),e.append(t-58+15),2;if(t<="_".charCodeAt(0))return e.append(1),e.append(t-91+22),2;if(t<=127)return e.append(2),e.append(t-96),2;e.append("1\x1e");var n=2;return n+=this.encodeChar(t-128,e)},t.prototype.encodeToCodewords=function(t){var e=1600*t.charCodeAt(0)+40*t.charCodeAt(1)+t.charCodeAt(2)+1,n=e/256,i=e%256,o=new r.a;return o.append(n),o.append(i),o.toString()},t}()},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="UnsupportedOperationException",e}(i.a);e.a=a},function(t,e,n){"use strict";var r=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},i=function(){function t(){}return t.getRSSvalue=function(e,n,i){var o,a,s=0;try{for(var u=r(e),l=u.next();!l.done;l=u.next()){s+=l.value}}catch(v){o={error:v}}finally{try{l&&!l.done&&(a=u.return)&&a.call(u)}finally{if(o)throw o.error}}for(var c=0,d=0,h=e.length,f=0;f<h-1;f++){var p=void 0;for(p=1,d|=1<<f;p<e[f];p++,d&=~(1<<f)){var m=t.combins(s-p-1,h-f-2);if(i&&0===d&&s-p-(h-f-1)>=h-f-1&&(m-=t.combins(s-p-(h-f),h-f-2)),h-f-1>1){for(var g=0,y=s-p-(h-f-2);y>n;y--)g+=t.combins(s-p-y-1,h-f-3);m-=g*(h-1-f)}else s-p>n&&m--;c+=m}s-=p}return c},t.combins=function(t,e){var n,r;t-e>e?(r=e,n=t-e):(r=t-e,n=e);for(var i=1,o=1,a=t;a>n;a--)i*=a,o<=r&&(i/=o,o++);for(;o<=r;)i/=o,o++;return i},t}();e.a=i},function(t,e,n){"use strict";(function(t,r){n.d(e,"e",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return l}));n(15);function i(){t(".datepicker").datepicker(),t('[data-toggle="tooltip"]').tooltip(),o(),a()}function o(){t(".slsm-timepoint-timepicker").timepicker({showMeridian:!1,showSeconds:!1,defaultTime:!1,minuteStep:1,icons:{up:"fas fa-chevron-up",down:"fas fa-chevron-down"}}),t(".usm-timepoint-current .usm-timepoint-timepicker, .usm-timepoint-timepicker").timepicker({showMeridian:!1,showSeconds:!1,minuteStep:1,icons:{up:"fas fa-chevron-up",down:"fas fa-chevron-down"}}),t(".timepoint-current .timepoint-timepicker, .timepoint-edit .timepoint-timepicker").timepicker({showMeridian:!1,showSeconds:!0,minuteStep:1,secondStep:10,icons:{up:"fas fa-chevron-up",down:"fas fa-chevron-down"}});var e=t(".metafield-timepicker").filter((function(){return this.getAttribute("class").includes("metafield-timepicker-set-null")}));t(".metafield-timepicker").timepicker({showMeridian:!1,showSeconds:!1,minuteStep:10,icons:{up:"fas fa-chevron-up",down:"fas fa-chevron-down"}}),e.each((function(t){e[t].value=null}))}function a(){t(".subject_visit_scheduled_at_date").bind("ajax:success",(function(e,n,i,o){var a=r.parseJSON(n);for(var s in a)t("#".concat(s)).val(a[s])}))}function s(){var e=t(this).attr("id").toString().toString();localStorage.removeItem(e)}function u(){var e=t(this);if("undefined"!==typeof Storage){var n=function(){var t=new Date,e=document.getElementById(r).value,n={reference:r.toString(),value:e,expiry:t.getTime()+3e5},i=r.toString(),o=JSON.stringify(n);localStorage.setItem(i,o)},r=t(this).attr("id").toString(),i=localStorage.getItem(r);if(i){var o=JSON.parse(i);(new Date).getTime()>o.expiry&&localStorage.removeItem(o.reference),e.hasClass("sample-not-collected")?document.getElementById(r).value=null:e.hasClass("timepoint-row-readonly")||e.disabled||(document.getElementById(r).value=o.value)}if(document.getElementById(r).addEventListener("keyup",n),document.getElementById(r).addEventListener("change",n),t("[name^=".concat(r,"_collection_status]")).length>0){var a=t("[name^=".concat(r,"_collection_status]"))[0].id,s=localStorage.getItem(a);if(s){var u=JSON.parse(s);(new Date).getTime()>u.expiry&&localStorage.removeItem(u.reference),"Not Collected"===u.value&&(document.getElementById(a).value=u.value,t("#".concat(r))[0].setAttribute("disabled","true"),t("#".concat(r))[0].value="Not Collected",t("#".concat(r))[0].setAttribute("placeholder","Not Collected"))}document.getElementById(a).addEventListener("change",(function(){var t=new Date,e=document.getElementById(a).value,n={reference:a.toString(),value:e,expiry:t.getTime()+3e5},r=a.toString(),i=JSON.stringify(n);localStorage.setItem(r,i)}))}}if(e.hasClass("sample-not-collected"))var l="Not Collected";else l="Scan or type";var c={placeholder:l,adjustWidth:!1,getValue:"value",url:function(t){return"/sample_groups/"+e.parent().siblings(".sample_group_id").data("sample-group-id")+"/fetch_barcodes?v="+t},listLocation:"barcodes",list:{maxNumberOfElements:20,match:{enabled:!0},onChooseEvent:function(){},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};e.easyAutocomplete(c),e.closest(".input-group").each((function(e,n){t(n).removeClass("input-group input-group-sm");var r=t(n).find(".easy-autocomplete");t(n).find(".input-group-prepend").prependTo(r),t(n).find(".skip-dropdown").appendTo(r),r.addClass("input-group input-group-sm")})),t('[data-toggle="tooltip"]').on("click",(function(){t(this).tooltip("hide")}))}function l(e){!function(t){if("undefined"!==typeof Storage){var e=function(){var t=new Date,e=document.getElementById(n).value,r={reference:n.toString(),value:e,expiry:t.getTime()+3e5},i=n.toString(),o=JSON.stringify(r);localStorage.setItem(i,o)},n=t.attr("id").toString(),r=localStorage.getItem(n);if(r){var i=JSON.parse(r);(new Date).getTime()>i.expiry&&localStorage.removeItem(i.reference),t.hasClass("sample-not-collected")?document.getElementById(n).value=null:document.getElementById(n).value=i.value}document.getElementById(n).addEventListener("keyup",e),document.getElementById(n).addEventListener("change",e)}}(t(e))}}).call(this,n(15),n(15))},function(t,e,n){var r;void 0===(r=function(){return[]}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[n(13),n(394),n(395),n(202),n(43),n(204),n(39)],void 0===(i=function(t,e,n,r){var i=/^(?:parents|prev(?:Until|All))/,o={children:!0,contents:!0,next:!0,prev:!0};function a(t,e){do{t=t[e]}while(t&&1!==t.nodeType);return t}return t.fn.extend({has:function(e){var n,r=t(e,this),i=r.length;return this.filter((function(){for(n=0;n<i;n++)if(t.contains(this,r[n]))return!0}))},closest:function(e,n){for(var i,o=0,a=this.length,s=[],u=r.test(e)||"string"!==typeof e?t(e,n||this.context):0;o<a;o++)for(i=this[o];i&&i!==n;i=i.parentNode)if(i.nodeType<11&&(u?u.index(i)>-1:1===i.nodeType&&t.find.matchesSelector(i,e))){s.push(i);break}return this.pushStack(s.length>1?t.uniqueSort(s):s)},index:function(e){return e?"string"===typeof e?t.inArray(this[0],t(e)):t.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,n){return this.pushStack(t.uniqueSort(t.merge(this.get(),t(e,n))))},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 e(t,"parentNode")},parentsUntil:function(t,n,r){return e(t,"parentNode",r)},next:function(t){return a(t,"nextSibling")},prev:function(t){return a(t,"previousSibling")},nextAll:function(t){return e(t,"nextSibling")},prevAll:function(t){return e(t,"previousSibling")},nextUntil:function(t,n,r){return e(t,"nextSibling",r)},prevUntil:function(t,n,r){return e(t,"previousSibling",r)},siblings:function(t){return n((t.parentNode||{}).firstChild,t)},children:function(t){return n(t.firstChild)},contents:function(e){return t.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:t.merge([],e.childNodes)}},(function(e,n){t.fn[e]=function(r,a){var s=t.map(this,n,r);return"Until"!==e.slice(-5)&&(a=r),a&&"string"===typeof a&&(s=t.filter(a,s)),this.length>1&&(o[e]||(s=t.uniqueSort(s)),i.test(e)&&(s=s.reverse())),this.pushStack(s)}})),t}.apply(e,r))||(t.exports=i)},function(t,e,n){"use strict";var r=n(23),i=n(7),o=n(21),a=n(33),s=n(18),u=n(96),l=n(81),c=function(){function t(){}return t.prototype.decode=function(t,e){void 0===e&&(e=null);var n=null,o=new l.a(t.getBlackMatrix()),c=null,d=null;try{c=(h=o.detectMirror(!1)).getPoints(),this.reportFoundResultPoints(e,c),d=(new u.a).decode(h)}catch(g){n=g}if(null==d)try{var h;c=(h=o.detectMirror(!0)).getPoints(),this.reportFoundResultPoints(e,c),d=(new u.a).decode(h)}catch(g){if(null!=n)throw n;throw g}var f=new r.a(d.getText(),d.getRawBytes(),d.getNumBits(),c,i.a.AZTEC,s.a.currentTimeMillis()),p=d.getByteSegments();null!=p&&f.putMetadata(a.a.BYTE_SEGMENTS,p);var m=d.getECLevel();return null!=m&&f.putMetadata(a.a.ERROR_CORRECTION_LEVEL,m),f},t.prototype.reportFoundResultPoints=function(t,e){if(null!=t){var n=t.get(o.a.NEED_RESULT_POINT_CALLBACK);null!=n&&e.forEach((function(t,e,r){n.foundPossibleResultPoint(t)}))}},t.prototype.reset=function(){},t}();e.a=c},function(t,e,n){"use strict";var r=n(8),i=n(19),o=n(1),a=function(){function t(e,n,r,i){this.image=e,this.height=e.getHeight(),this.width=e.getWidth(),void 0!==n&&null!==n||(n=t.INIT_SIZE),void 0!==r&&null!==r||(r=e.getWidth()/2|0),void 0!==i&&null!==i||(i=e.getHeight()/2|0);var a=n/2|0;if(this.leftInit=r-a,this.rightInit=r+a,this.upInit=i-a,this.downInit=i+a,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new o.a}return t.prototype.detect=function(){for(var t=this.leftInit,e=this.rightInit,n=this.upInit,r=this.downInit,i=!1,a=!0,s=!1,u=!1,l=!1,c=!1,d=!1,h=this.width,f=this.height;a;){a=!1;for(var p=!0;(p||!u)&&e<h;)(p=this.containsBlackPoint(n,r,e,!1))?(e++,a=!0,u=!0):u||e++;if(e>=h){i=!0;break}for(var m=!0;(m||!l)&&r<f;)(m=this.containsBlackPoint(t,e,r,!0))?(r++,a=!0,l=!0):l||r++;if(r>=f){i=!0;break}for(var g=!0;(g||!c)&&t>=0;)(g=this.containsBlackPoint(n,r,t,!1))?(t--,a=!0,c=!0):c||t--;if(t<0){i=!0;break}for(var y=!0;(y||!d)&&n>=0;)(y=this.containsBlackPoint(t,e,n,!0))?(n--,a=!0,d=!0):d||n--;if(n<0){i=!0;break}a&&(s=!0)}if(!i&&s){for(var v=e-t,_=null,b=1;null===_&&b<v;b++)_=this.getBlackPointOnSegment(t,r-b,t+b,r);if(null==_)throw new o.a;var w=null;for(b=1;null===w&&b<v;b++)w=this.getBlackPointOnSegment(t,n+b,t+b,n);if(null==w)throw new o.a;var k=null;for(b=1;null===k&&b<v;b++)k=this.getBlackPointOnSegment(e,n+b,e-b,n);if(null==k)throw new o.a;var S=null;for(b=1;null===S&&b<v;b++)S=this.getBlackPointOnSegment(e,r-b,e-b,r);if(null==S)throw new o.a;return this.centerEdges(S,_,k,w)}throw new o.a},t.prototype.getBlackPointOnSegment=function(t,e,n,o){for(var a=i.a.round(i.a.distance(t,e,n,o)),s=(n-t)/a,u=(o-e)/a,l=this.image,c=0;c<a;c++){var d=i.a.round(t+c*s),h=i.a.round(e+c*u);if(l.get(d,h))return new r.a(d,h)}return null},t.prototype.centerEdges=function(e,n,i,o){var a=e.getX(),s=e.getY(),u=n.getX(),l=n.getY(),c=i.getX(),d=i.getY(),h=o.getX(),f=o.getY(),p=t.CORR;return a<this.width/2?[new r.a(h-p,f+p),new r.a(u+p,l+p),new r.a(c-p,d-p),new r.a(a+p,s-p)]:[new r.a(h+p,f+p),new r.a(u+p,l-p),new r.a(c-p,d+p),new r.a(a-p,s-p)]},t.prototype.containsBlackPoint=function(t,e,n,r){var i=this.image;if(r){for(var o=t;o<=e;o++)if(i.get(o,n))return!0}else for(var a=t;a<=e;a++)if(i.get(n,a))return!0;return!1},t.INIT_SIZE=10,t.CORR=1,t}();e.a=a},function(t,e,n){"use strict";var r,i=n(7),o=n(35),a=n(1),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(t){function e(){var e=t.call(this)||this;return e.decodeMiddleCounters=Int32Array.from([0,0,0,0]),e}return s(e,t),e.prototype.decodeMiddle=function(t,n,r){var i,a,s,l,c=this.decodeMiddleCounters;c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var d=t.getSize(),h=n[1],f=0,p=0;p<6&&h<d;p++){var m=o.a.decodeDigit(t,c,h,o.a.L_AND_G_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+m%10);try{for(var g=(i=void 0,u(c)),y=g.next();!y.done;y=g.next()){h+=y.value}}catch(b){i={error:b}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(i)throw i.error}}m>=10&&(f|=1<<5-p)}r=e.determineFirstDigit(r,f),h=o.a.findGuardPattern(t,h,!0,o.a.MIDDLE_PATTERN,new Int32Array(o.a.MIDDLE_PATTERN.length).fill(0))[1];for(p=0;p<6&&h<d;p++){m=o.a.decodeDigit(t,c,h,o.a.L_PATTERNS);r+=String.fromCharCode("0".charCodeAt(0)+m);try{for(var v=(s=void 0,u(c)),_=v.next();!_.done;_=v.next()){h+=_.value}}catch(w){s={error:w}}finally{try{_&&!_.done&&(l=v.return)&&l.call(v)}finally{if(s)throw s.error}}}return{rowOffset:h,resultString:r}},e.prototype.getBarcodeFormat=function(){return i.a.EAN_13},e.determineFirstDigit=function(t,e){for(var n=0;n<10;n++)if(e===this.FIRST_DIGIT_ENCODINGS[n])return t=String.fromCharCode("0".charCodeAt(0)+n)+t;throw new a.a},e.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],e}(o.a);e.a=l},function(t,e,n){"use strict";var r=n(9),i=function(){function t(){this.maskPattern=-1}return t.prototype.getMode=function(){return this.mode},t.prototype.getECLevel=function(){return this.ecLevel},t.prototype.getVersion=function(){return this.version},t.prototype.getMaskPattern=function(){return this.maskPattern},t.prototype.getMatrix=function(){return this.matrix},t.prototype.toString=function(){var t=new r.a;return t.append("<<\n"),t.append(" mode: "),t.append(this.mode?this.mode.toString():"null"),t.append("\n ecLevel: "),t.append(this.ecLevel?this.ecLevel.toString():"null"),t.append("\n version: "),t.append(this.version?this.version.toString():"null"),t.append("\n maskPattern: "),t.append(this.maskPattern.toString()),this.matrix?(t.append("\n matrix:\n"),t.append(this.matrix.toString())):t.append("\n matrix: null\n"),t.append(">>\n"),t.toString()},t.prototype.setMode=function(t){this.mode=t},t.prototype.setECLevel=function(t){this.ecLevel=t},t.prototype.setVersion=function(t){this.version=t},t.prototype.setMaskPattern=function(t){this.maskPattern=t},t.prototype.setMatrix=function(t){this.matrix=t},t.isValidMaskPattern=function(e){return e>=0&&e<t.NUM_MASK_PATTERNS},t.NUM_MASK_PATTERNS=8,t}();e.a=i},function(t,e,n){"use strict";var r=n(7),i=n(27),o=n(5),a=n(1),s=n(23),u=n(20),l=n(12),c=n(33),d=n(8),h=n(18),f=n(24),p=function(){function t(t,e){this.bits=t,this.points=e}return t.prototype.getBits=function(){return this.bits},t.prototype.getPoints=function(){return this.points},t}(),m=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(){function t(){}return t.detectMultiple=function(e,n,r){var i=e.getBlackMatrix(),o=t.detect(r,i);return o.length||((i=i.clone()).rotate180(),o=t.detect(r,i)),new p(i,o)},t.detect=function(e,n){for(var r,i,o=new Array,a=0,s=0,u=!1;a<n.getHeight();){var l=t.findVertices(n,a,s);if(null!=l[0]||null!=l[3]){if(u=!0,o.push(l),!e)break;null!=l[2]?(s=Math.trunc(l[2].getX()),a=Math.trunc(l[2].getY())):(s=Math.trunc(l[4].getX()),a=Math.trunc(l[4].getY()))}else{if(!u)break;u=!1,s=0;try{for(var c=(r=void 0,m(o)),d=c.next();!d.done;d=c.next()){var h=d.value;null!=h[1]&&(a=Math.trunc(Math.max(a,h[1].getY()))),null!=h[3]&&(a=Math.max(a,Math.trunc(h[3].getY())))}}catch(f){r={error:f}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}a+=t.ROW_STEP}}return o},t.findVertices=function(e,n,r){var i=e.getHeight(),o=e.getWidth(),a=new Array(8);return t.copyToResult(a,t.findRowsWithPattern(e,i,o,n,r,t.START_PATTERN),t.INDEXES_START_PATTERN),null!=a[4]&&(r=Math.trunc(a[4].getX()),n=Math.trunc(a[4].getY())),t.copyToResult(a,t.findRowsWithPattern(e,i,o,n,r,t.STOP_PATTERN),t.INDEXES_STOP_PATTERN),a},t.copyToResult=function(t,e,n){for(var r=0;r<n.length;r++)t[n[r]]=e[r]},t.findRowsWithPattern=function(e,n,r,i,o,a){for(var s=new Array(4),u=!1,l=new Int32Array(a.length);i<n;i+=t.ROW_STEP){if(null!=(m=t.findGuardPattern(e,o,i,r,!1,a,l))){for(;i>0;){if(null==(p=t.findGuardPattern(e,o,--i,r,!1,a,l))){i++;break}m=p}s[0]=new d.a(m[0],i),s[1]=new d.a(m[1],i),u=!0;break}}var c=i+1;if(u){for(var h=0,p=Int32Array.from([Math.trunc(s[0].getX()),Math.trunc(s[1].getX())]);c<n;c++){var m;if(null!=(m=t.findGuardPattern(e,p[0],c,r,!1,a,l))&&Math.abs(p[0]-m[0])<t.MAX_PATTERN_DRIFT&&Math.abs(p[1]-m[1])<t.MAX_PATTERN_DRIFT)p=m,h=0;else{if(h>t.SKIPPED_ROW_COUNT_MAX)break;h++}}c-=h+1,s[2]=new d.a(p[0],c),s[3]=new d.a(p[1],c)}return c-i<t.BARCODE_MIN_HEIGHT&&f.a.fill(s,null),s},t.findGuardPattern=function(e,n,r,i,o,a,s){f.a.fillWithin(s,0,s.length,0);for(var u=n,l=0;e.get(u,r)&&u>0&&l++<t.MAX_PIXEL_DRIFT;)u--;for(var c=u,d=0,p=a.length,m=o;c<i;c++){if(e.get(c,r)!==m)s[d]++;else{if(d===p-1){if(t.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE)return new Int32Array([u,c]);u+=s[0]+s[1],h.a.arraycopy(s,2,s,0,d-1),s[d-1]=0,s[d]=0,d--}else d++;s[d]=1,m=!m}}return d===p-1&&t.patternMatchVariance(s,a,t.MAX_INDIVIDUAL_VARIANCE)<t.MAX_AVG_VARIANCE?new Int32Array([u,c-1]):null},t.patternMatchVariance=function(t,e,n){for(var r=t.length,i=0,o=0,a=0;a<r;a++)i+=t[a],o+=e[a];if(i<o)return 1/0;var s=i/o;n*=s;for(var u=0,l=0;l<r;l++){var c=t[l],d=e[l]*s,h=c>d?c-d:d-c;if(h>n)return 1/0;u+=h}return u/i},t.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),t.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),t.MAX_AVG_VARIANCE=.42,t.MAX_INDIVIDUAL_VARIANCE=.8,t.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),t.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),t.MAX_PIXEL_DRIFT=3,t.MAX_PATTERN_DRIFT=5,t.SKIPPED_ROW_COUNT_MAX=25,t.ROW_STEP=5,t.BARCODE_MIN_HEIGHT=10,t}(),y=n(19),v=n(151),_=function(){function t(e,n,r,i,o){e instanceof t?this.constructor_2(e):this.constructor_1(e,n,r,i,o)}return t.prototype.constructor_1=function(t,e,n,r,i){var o=null==e||null==n,s=null==r||null==i;if(o&&s)throw new a.a;o?(e=new d.a(0,r.getY()),n=new d.a(0,i.getY())):s&&(r=new d.a(t.getWidth()-1,e.getY()),i=new d.a(t.getWidth()-1,n.getY())),this.image=t,this.topLeft=e,this.bottomLeft=n,this.topRight=r,this.bottomRight=i,this.minX=Math.trunc(Math.min(e.getX(),n.getX())),this.maxX=Math.trunc(Math.max(r.getX(),i.getX())),this.minY=Math.trunc(Math.min(e.getY(),r.getY())),this.maxY=Math.trunc(Math.max(n.getY(),i.getY()))},t.prototype.constructor_2=function(t){this.image=t.image,this.topLeft=t.getTopLeft(),this.bottomLeft=t.getBottomLeft(),this.topRight=t.getTopRight(),this.bottomRight=t.getBottomRight(),this.minX=t.getMinX(),this.maxX=t.getMaxX(),this.minY=t.getMinY(),this.maxY=t.getMaxY()},t.merge=function(e,n){return null==e?n:null==n?e:new t(e.image,e.topLeft,e.bottomLeft,n.topRight,n.bottomRight)},t.prototype.addMissingRows=function(e,n,r){var i=this.topLeft,o=this.bottomLeft,a=this.topRight,s=this.bottomRight;if(e>0){var u=r?this.topLeft:this.topRight,l=Math.trunc(u.getY()-e);l<0&&(l=0);var c=new d.a(u.getX(),l);r?i=c:a=c}if(n>0){var h=r?this.bottomLeft:this.bottomRight,f=Math.trunc(h.getY()+n);f>=this.image.getHeight()&&(f=this.image.getHeight()-1);var p=new d.a(h.getX(),f);r?o=p:s=p}return new t(this.image,i,o,a,s)},t.prototype.getMinX=function(){return this.minX},t.prototype.getMaxX=function(){return this.maxX},t.prototype.getMinY=function(){return this.minY},t.prototype.getMaxY=function(){return this.maxY},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getBottomRight=function(){return this.bottomRight},t}(),b=function(){function t(t,e,n,r){this.columnCount=t,this.errorCorrectionLevel=r,this.rowCountUpperPart=e,this.rowCountLowerPart=n,this.rowCount=e+n}return t.prototype.getColumnCount=function(){return this.columnCount},t.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},t.prototype.getRowCount=function(){return this.rowCount},t.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},t.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},t}();function w(t){return w="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},w(t)}var k,S=function(){function t(){this.buffer=""}return t.form=function(t,e){var n=-1;return t.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,(function(t,r,i,o,a,s){if("%%"===t)return"%";if(void 0!==e[++n]){t=o?parseInt(o.substr(1)):void 0;var u,l=a?parseInt(a.substr(1)):void 0;switch(s){case"s":u=e[n];break;case"c":u=e[n][0];break;case"f":u=parseFloat(e[n]).toFixed(t);break;case"p":u=parseFloat(e[n]).toPrecision(t);break;case"e":u=parseFloat(e[n]).toExponential(t);break;case"x":u=parseInt(e[n]).toString(l||16);break;case"d":u=parseFloat(parseInt(e[n],l||10).toPrecision(t)).toFixed(0)}u="object"===w(u)?JSON.stringify(u):(+u).toString(l);for(var c=parseInt(i),d=i&&i[0]+""==="0"?"0":" ";u.length<c;)u=void 0!==r?u+d:d+u;return u}}))},t.prototype.format=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.buffer+=t.form(e,n)},t.prototype.toString=function(){return this.buffer},t}(),E=S,C=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},x=function(){function t(t){this.boundingBox=new _(t),this.codewords=new Array(t.getMaxY()-t.getMinY()+1)}return t.prototype.getCodewordNearby=function(e){var n=this.getCodeword(e);if(null!=n)return n;for(var r=1;r<t.MAX_NEARBY_DISTANCE;r++){var i=this.imageRowToCodewordIndex(e)-r;if(i>=0&&null!=(n=this.codewords[i]))return n;if((i=this.imageRowToCodewordIndex(e)+r)<this.codewords.length&&null!=(n=this.codewords[i]))return n}return null},t.prototype.imageRowToCodewordIndex=function(t){return t-this.boundingBox.getMinY()},t.prototype.setCodeword=function(t,e){this.codewords[this.imageRowToCodewordIndex(t)]=e},t.prototype.getCodeword=function(t){return this.codewords[this.imageRowToCodewordIndex(t)]},t.prototype.getBoundingBox=function(){return this.boundingBox},t.prototype.getCodewords=function(){return this.codewords},t.prototype.toString=function(){var t,e,n=new E,r=0;try{for(var i=C(this.codewords),o=i.next();!o.done;o=i.next()){var a=o.value;null!=a?n.format("%3d: %3d|%3d%n",r++,a.getRowNumber(),a.getValue()):n.format("%3d:    |   %n",r++)}}catch(s){t={error:s}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return n.toString()},t.MAX_NEARBY_DISTANCE=5,t}(),D=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},A=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},T=function(){function t(){this.values=new Map}return t.prototype.setValue=function(t){t=Math.trunc(t);var e=this.values.get(t);null==e&&(e=0),e++,this.values.set(t,e)},t.prototype.getValue=function(){var t,e,n=-1,r=new Array,i=function(t,e){var i=function(){return t},o=function(){return e};o()>n?(n=o(),(r=[]).push(i())):o()===n&&r.push(i())};try{for(var o=D(this.values.entries()),a=o.next();!a.done;a=o.next()){var s=A(a.value,2);i(s[0],s[1])}}catch(l){t={error:l}}finally{try{a&&!a.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}return u.a.toIntArray(r)},t.prototype.getConfidence=function(t){return this.values.get(t)},t}(),M=(k=function(t,e){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},k(t,e)},function(t,e){function n(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),L=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},O=function(t){function e(e,n){var r=t.call(this,e)||this;return r._isLeft=n,r}return M(e,t),e.prototype.setRowNumbers=function(){var t,e;try{for(var n=L(this.getCodewords()),r=n.next();!r.done;r=n.next()){var i=r.value;null!=i&&i.setRowNumberAsRowIndicatorColumn()}}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},e.prototype.adjustCompleteIndicatorColumnRowNumbers=function(t){var e=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(e,t);for(var n=this.getBoundingBox(),r=this._isLeft?n.getTopLeft():n.getTopRight(),i=this._isLeft?n.getBottomLeft():n.getBottomRight(),o=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.imageRowToCodewordIndex(Math.trunc(i.getY())),s=-1,u=1,l=0,c=o;c<a;c++)if(null!=e[c]){var d=e[c],h=d.getRowNumber()-s;if(0===h)l++;else if(1===h)u=Math.max(u,l),l=1,s=d.getRowNumber();else if(h<0||d.getRowNumber()>=t.getRowCount()||h>c)e[c]=null;else{for(var f=void 0,p=(f=u>2?(u-2)*h:h)>=c,m=1;m<=f&&!p;m++)p=null!=e[c-m];p?e[c]=null:(s=d.getRowNumber(),l=1)}}},e.prototype.getRowHeights=function(){var t,e,n=this.getBarcodeMetadata();if(null==n)return null;this.adjustIncompleteIndicatorColumnRowNumbers(n);var r=new Int32Array(n.getRowCount());try{for(var i=L(this.getCodewords()),o=i.next();!o.done;o=i.next()){var a=o.value;if(null!=a){var s=a.getRowNumber();if(s>=r.length)continue;r[s]++}}}catch(u){t={error:u}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}return r},e.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(t){for(var e=this.getBoundingBox(),n=this._isLeft?e.getTopLeft():e.getTopRight(),r=this._isLeft?e.getBottomLeft():e.getBottomRight(),i=this.imageRowToCodewordIndex(Math.trunc(n.getY())),o=this.imageRowToCodewordIndex(Math.trunc(r.getY())),a=this.getCodewords(),s=-1,u=1,l=0,c=i;c<o;c++)if(null!=a[c]){var d=a[c];d.setRowNumberAsRowIndicatorColumn();var h=d.getRowNumber()-s;0===h?l++:1===h?(u=Math.max(u,l),l=1,s=d.getRowNumber()):d.getRowNumber()>=t.getRowCount()?a[c]=null:(s=d.getRowNumber(),l=1)}},e.prototype.getBarcodeMetadata=function(){var t,e,n=this.getCodewords(),r=new T,i=new T,o=new T,a=new T;try{for(var s=L(n),l=s.next();!l.done;l=s.next()){var c=l.value;if(null!=c){c.setRowNumberAsRowIndicatorColumn();var d=c.getValue()%30,h=c.getRowNumber();switch(this._isLeft||(h+=2),h%3){case 0:i.setValue(3*d+1);break;case 1:a.setValue(d/3),o.setValue(d%3);break;case 2:r.setValue(d+1)}}}}catch(p){t={error:p}}finally{try{l&&!l.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}if(0===r.getValue().length||0===i.getValue().length||0===o.getValue().length||0===a.getValue().length||r.getValue()[0]<1||i.getValue()[0]+o.getValue()[0]<u.a.MIN_ROWS_IN_BARCODE||i.getValue()[0]+o.getValue()[0]>u.a.MAX_ROWS_IN_BARCODE)return null;var f=new b(r.getValue()[0],i.getValue()[0],o.getValue()[0],a.getValue()[0]);return this.removeIncorrectCodewords(n,f),f},e.prototype.removeIncorrectCodewords=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(null!=t[n]){var i=r.getValue()%30,o=r.getRowNumber();if(o>e.getRowCount())t[n]=null;else switch(this._isLeft||(o+=2),o%3){case 0:3*i+1!==e.getRowCountUpperPart()&&(t[n]=null);break;case 1:Math.trunc(i/3)===e.getErrorCorrectionLevel()&&i%3===e.getRowCountLowerPart()||(t[n]=null);break;case 2:i+1!==e.getColumnCount()&&(t[n]=null)}}}},e.prototype.isLeft=function(){return this._isLeft},e.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+t.prototype.toString.call(this)},e}(x),I=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},P=function(){function t(t,e){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=e,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return t.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var t,e=u.a.MAX_CODEWORDS_IN_BARCODE;do{t=e,e=this.adjustRowNumbersAndGetCount()}while(e>0&&e<t);return this.detectionResultColumns},t.prototype.adjustIndicatorColumnRowNumbers=function(t){null!=t&&t.adjustCompleteIndicatorColumnRowNumbers(this.barcodeMetadata)},t.prototype.adjustRowNumbersAndGetCount=function(){var t=this.adjustRowNumbersByRow();if(0===t)return 0;for(var e=1;e<this.barcodeColumnCount+1;e++)for(var n=this.detectionResultColumns[e].getCodewords(),r=0;r<n.length;r++)null!=n[r]&&(n[r].hasValidRowNumber()||this.adjustRowNumbers(e,r,n));return t},t.prototype.adjustRowNumbersByRow=function(){return this.adjustRowNumbersFromBothRI(),this.adjustRowNumbersFromLRI()+this.adjustRowNumbersFromRRI()},t.prototype.adjustRowNumbersFromBothRI=function(){if(null!=this.detectionResultColumns[0]&&null!=this.detectionResultColumns[this.barcodeColumnCount+1])for(var t=this.detectionResultColumns[0].getCodewords(),e=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),n=0;n<t.length;n++)if(null!=t[n]&&null!=e[n]&&t[n].getRowNumber()===e[n].getRowNumber())for(var r=1;r<=this.barcodeColumnCount;r++){var i=this.detectionResultColumns[r].getCodewords()[n];null!=i&&(i.setRowNumber(t[n].getRowNumber()),i.hasValidRowNumber()||(this.detectionResultColumns[r].getCodewords()[n]=null))}},t.prototype.adjustRowNumbersFromRRI=function(){if(null==this.detectionResultColumns[this.barcodeColumnCount+1])return 0;for(var e=0,n=this.detectionResultColumns[this.barcodeColumnCount+1].getCodewords(),r=0;r<n.length;r++)if(null!=n[r])for(var i=n[r].getRowNumber(),o=0,a=this.barcodeColumnCount+1;a>0&&o<this.ADJUST_ROW_NUMBER_SKIP;a--){var s=this.detectionResultColumns[a].getCodewords()[r];null!=s&&(o=t.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||e++)}return e},t.prototype.adjustRowNumbersFromLRI=function(){if(null==this.detectionResultColumns[0])return 0;for(var e=0,n=this.detectionResultColumns[0].getCodewords(),r=0;r<n.length;r++)if(null!=n[r])for(var i=n[r].getRowNumber(),o=0,a=1;a<this.barcodeColumnCount+1&&o<this.ADJUST_ROW_NUMBER_SKIP;a++){var s=this.detectionResultColumns[a].getCodewords()[r];null!=s&&(o=t.adjustRowNumberIfValid(i,o,s),s.hasValidRowNumber()||e++)}return e},t.adjustRowNumberIfValid=function(t,e,n){return null==n||n.hasValidRowNumber()||(n.isValidRowNumber(t)?(n.setRowNumber(t),e=0):++e),e},t.prototype.adjustRowNumbers=function(e,n,r){var i,o;if(null!=this.detectionResultColumns[e-1]){var a=r[n],s=this.detectionResultColumns[e-1].getCodewords(),u=s;null!=this.detectionResultColumns[e+1]&&(u=this.detectionResultColumns[e+1].getCodewords());var l=new Array(14);l[2]=s[n],l[3]=u[n],n>0&&(l[0]=r[n-1],l[4]=s[n-1],l[5]=u[n-1]),n>1&&(l[8]=r[n-2],l[10]=s[n-2],l[11]=u[n-2]),n<r.length-1&&(l[1]=r[n+1],l[6]=s[n+1],l[7]=u[n+1]),n<r.length-2&&(l[9]=r[n+2],l[12]=s[n+2],l[13]=u[n+2]);try{for(var c=I(l),d=c.next();!d.done;d=c.next()){var h=d.value;if(t.adjustRowNumber(a,h))return}}catch(f){i={error:f}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}}},t.adjustRowNumber=function(t,e){return null!=e&&(!(!e.hasValidRowNumber()||e.getBucket()!==t.getBucket())&&(t.setRowNumber(e.getRowNumber()),!0))},t.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},t.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},t.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},t.prototype.setBoundingBox=function(t){this.boundingBox=t},t.prototype.getBoundingBox=function(){return this.boundingBox},t.prototype.setDetectionResultColumn=function(t,e){this.detectionResultColumns[t]=e},t.prototype.getDetectionResultColumn=function(t){return this.detectionResultColumns[t]},t.prototype.toString=function(){var t=this.detectionResultColumns[0];null==t&&(t=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var e=new E,n=0;n<t.getCodewords().length;n++){e.format("CW %3d:",n);for(var r=0;r<this.barcodeColumnCount+2;r++)if(null!=this.detectionResultColumns[r]){var i=this.detectionResultColumns[r].getCodewords()[n];null!=i?e.format(" %3d|%3d",i.getRowNumber(),i.getValue()):e.format("    |   ")}else e.format("    |   ");e.format("%n")}return e.toString()},t}(),R=function(){function t(e,n,r,i){this.rowNumber=t.BARCODE_ROW_UNKNOWN,this.startX=Math.trunc(e),this.endX=Math.trunc(n),this.bucket=Math.trunc(r),this.value=Math.trunc(i)}return t.prototype.hasValidRowNumber=function(){return this.isValidRowNumber(this.rowNumber)},t.prototype.isValidRowNumber=function(e){return e!==t.BARCODE_ROW_UNKNOWN&&this.bucket===e%3*3},t.prototype.setRowNumberAsRowIndicatorColumn=function(){this.rowNumber=Math.trunc(3*Math.trunc(this.value/30)+Math.trunc(this.bucket/3))},t.prototype.getWidth=function(){return this.endX-this.startX},t.prototype.getStartX=function(){return this.startX},t.prototype.getEndX=function(){return this.endX},t.prototype.getBucket=function(){return this.bucket},t.prototype.getValue=function(){return this.value},t.prototype.getRowNumber=function(){return this.rowNumber},t.prototype.setRowNumber=function(t){this.rowNumber=t},t.prototype.toString=function(){return this.rowNumber+"|"+this.value},t.BARCODE_ROW_UNKNOWN=-1,t}(),N=n(107),F=function(){function t(){}return t.initialize=function(){for(var e=0;e<u.a.SYMBOL_TABLE.length;e++)for(var n=u.a.SYMBOL_TABLE[e],r=1&n,i=0;i<u.a.BARS_IN_MODULE;i++){for(var o=0;(1&n)===r;)o+=1,n>>=1;r=1&n,t.RATIOS_TABLE[e]||(t.RATIOS_TABLE[e]=new Array(u.a.BARS_IN_MODULE)),t.RATIOS_TABLE[e][u.a.BARS_IN_MODULE-i-1]=Math.fround(o/u.a.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},t.getDecodedValue=function(e){var n=t.getDecodedCodewordValue(t.sampleBitCounts(e));return-1!==n?n:t.getClosestDecodedValue(e)},t.sampleBitCounts=function(t){for(var e=y.a.sum(t),n=new Int32Array(u.a.BARS_IN_MODULE),r=0,i=0,o=0;o<u.a.MODULES_IN_CODEWORD;o++){var a=e/(2*u.a.MODULES_IN_CODEWORD)+o*e/u.a.MODULES_IN_CODEWORD;i+t[r]<=a&&(i+=t[r],r++),n[r]++}return n},t.getDecodedCodewordValue=function(e){var n=t.getBitValue(e);return-1===u.a.getCodeword(n)?-1:n},t.getBitValue=function(t){for(var e=0,n=0;n<t.length;n++)for(var r=0;r<t[n];r++)e=e<<1|(n%2===0?1:0);return Math.trunc(e)},t.getClosestDecodedValue=function(e){var n=y.a.sum(e),r=new Array(u.a.BARS_IN_MODULE);if(n>1)for(var i=0;i<r.length;i++)r[i]=Math.fround(e[i]/n);var o=N.a.MAX_VALUE,a=-1;this.bSymbolTableReady||t.initialize();for(var s=0;s<t.RATIOS_TABLE.length;s++){for(var l=0,c=t.RATIOS_TABLE[s],d=0;d<u.a.BARS_IN_MODULE;d++){var h=Math.fround(c[d]-r[d]);if((l+=Math.fround(h*h))>=o)break}l<o&&(o=l,a=u.a.SYMBOL_TABLE[s])}return a},t.bSymbolTableReady=!1,t.RATIOS_TABLE=new Array(u.a.SYMBOL_TABLE.length).map((function(t){return new Array(u.a.BARS_IN_MODULE)})),t}(),j=n(138),B=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Y=function(){function t(){}return t.decode=function(e,n,r,i,o,s,u){for(var l,c=new _(e,n,r,i,o),d=null,h=null,f=!0;;f=!1){if(null!=n&&(d=t.getRowIndicatorColumn(e,c,n,!0,s,u)),null!=i&&(h=t.getRowIndicatorColumn(e,c,i,!1,s,u)),null==(l=t.merge(d,h)))throw a.a.getNotFoundInstance();var p=l.getBoundingBox();if(!f||null==p||!(p.getMinY()<c.getMinY()||p.getMaxY()>c.getMaxY()))break;c=p}l.setBoundingBox(c);var m=l.getBarcodeColumnCount()+1;l.setDetectionResultColumn(0,d),l.setDetectionResultColumn(m,h);for(var g=null!=d,y=1;y<=m;y++){var v=g?y:m-y;if(void 0===l.getDetectionResultColumn(v)){var b=void 0;b=0===v||v===m?new O(c,0===v):new x(c),l.setDetectionResultColumn(v,b);for(var w=-1,k=w,S=c.getMinY();S<=c.getMaxY();S++){if((w=t.getStartColumn(l,v,S,g))<0||w>c.getMaxX()){if(-1===k)continue;w=k}var E=t.detectCodeword(e,c.getMinX(),c.getMaxX(),g,w,S,s,u);null!=E&&(b.setCodeword(S,E),k=w,s=Math.min(s,E.getWidth()),u=Math.max(u,E.getWidth()))}}}return t.createDecoderResult(l)},t.merge=function(e,n){if(null==e&&null==n)return null;var r=t.getBarcodeMetadata(e,n);if(null==r)return null;var i=_.merge(t.adjustBoundingBox(e),t.adjustBoundingBox(n));return new P(r,i)},t.adjustBoundingBox=function(e){var n,r;if(null==e)return null;var i=e.getRowHeights();if(null==i)return null;var o=t.getMax(i),a=0;try{for(var s=B(i),u=s.next();!u.done;u=s.next()){var l=u.value;if(a+=o-l,l>0)break}}catch(f){n={error:f}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}for(var c=e.getCodewords(),d=0;a>0&&null==c[d];d++)a--;var h=0;for(d=i.length-1;d>=0&&(h+=o-i[d],!(i[d]>0));d--);for(d=c.length-1;h>0&&null==c[d];d--)h--;return e.getBoundingBox().addMissingRows(a,h,e.isLeft())},t.getMax=function(t){var e,n,r=-1;try{for(var i=B(t),o=i.next();!o.done;o=i.next()){var a=o.value;r=Math.max(r,a)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r},t.getBarcodeMetadata=function(t,e){var n,r;return null==t||null==(n=t.getBarcodeMetadata())?null==e?null:e.getBarcodeMetadata():null==e||null==(r=e.getBarcodeMetadata())?n:n.getColumnCount()!==r.getColumnCount()&&n.getErrorCorrectionLevel()!==r.getErrorCorrectionLevel()&&n.getRowCount()!==r.getRowCount()?null:n},t.getRowIndicatorColumn=function(e,n,r,i,o,a){for(var s=new O(n,i),u=0;u<2;u++)for(var l=0===u?1:-1,c=Math.trunc(Math.trunc(r.getX())),d=Math.trunc(Math.trunc(r.getY()));d<=n.getMaxY()&&d>=n.getMinY();d+=l){var h=t.detectCodeword(e,0,e.getWidth(),i,c,d,o,a);null!=h&&(s.setCodeword(d,h),c=i?h.getStartX():h.getEndX())}return s},t.adjustCodewordCount=function(e,n){var r=n[0][1],i=r.getValue(),o=e.getBarcodeColumnCount()*e.getBarcodeRowCount()-t.getNumberOfECCodeWords(e.getBarcodeECLevel());if(0===i.length){if(o<1||o>u.a.MAX_CODEWORDS_IN_BARCODE)throw a.a.getNotFoundInstance();r.setValue(o)}else i[0]!==o&&r.setValue(o)},t.createDecoderResult=function(e){var n=t.createBarcodeMatrix(e);t.adjustCodewordCount(e,n);for(var r=new Array,i=new Int32Array(e.getBarcodeRowCount()*e.getBarcodeColumnCount()),o=[],a=new Array,s=0;s<e.getBarcodeRowCount();s++)for(var l=0;l<e.getBarcodeColumnCount();l++){var c=n[s][l+1].getValue(),d=s*e.getBarcodeColumnCount()+l;0===c.length?r.push(d):1===c.length?i[d]=c[0]:(a.push(d),o.push(c))}for(var h=new Array(o.length),f=0;f<h.length;f++)h[f]=o[f];return t.createDecoderResultFromAmbiguousValues(e.getBarcodeECLevel(),i,u.a.toIntArray(r),u.a.toIntArray(a),h)},t.createDecoderResultFromAmbiguousValues=function(e,n,r,o,a){for(var s=new Int32Array(o.length),u=100;u-- >0;){for(var l=0;l<s.length;l++)n[o[l]]=a[l][s[l]];try{return t.decodeCodewords(n,e,r)}catch(c){if(!(c instanceof i.a))throw c}if(0===s.length)throw i.a.getChecksumInstance();for(l=0;l<s.length;l++){if(s[l]<a[l].length-1){s[l]++;break}if(s[l]=0,l===s.length-1)throw i.a.getChecksumInstance()}}throw i.a.getChecksumInstance()},t.createBarcodeMatrix=function(t){for(var e,n,r,i,o=Array.from({length:t.getBarcodeRowCount()},(function(){return new Array(t.getBarcodeColumnCount()+2)})),a=0;a<o.length;a++)for(var s=0;s<o[a].length;s++)o[a][s]=new T;var u=0;try{for(var l=B(t.getDetectionResultColumns()),c=l.next();!c.done;c=l.next()){var d=c.value;if(null!=d)try{for(var h=(r=void 0,B(d.getCodewords())),f=h.next();!f.done;f=h.next()){var p=f.value;if(null!=p){var m=p.getRowNumber();if(m>=0){if(m>=o.length)continue;o[m][u].setValue(p.getValue())}}}}catch(g){r={error:g}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}u++}}catch(y){e={error:y}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(e)throw e.error}}return o},t.isValidBarcodeColumn=function(t,e){return e>=0&&e<=t.getBarcodeColumnCount()+1},t.getStartColumn=function(e,n,r,i){var o,a,s=i?1:-1,u=null;if(t.isValidBarcodeColumn(e,n-s)&&(u=e.getDetectionResultColumn(n-s).getCodeword(r)),null!=u)return i?u.getEndX():u.getStartX();if(null!=(u=e.getDetectionResultColumn(n).getCodewordNearby(r)))return i?u.getStartX():u.getEndX();if(t.isValidBarcodeColumn(e,n-s)&&(u=e.getDetectionResultColumn(n-s).getCodewordNearby(r)),null!=u)return i?u.getEndX():u.getStartX();for(var l=0;t.isValidBarcodeColumn(e,n-s);){n-=s;try{for(var c=(o=void 0,B(e.getDetectionResultColumn(n).getCodewords())),d=c.next();!d.done;d=c.next()){var h=d.value;if(null!=h)return(i?h.getEndX():h.getStartX())+s*l*(h.getEndX()-h.getStartX())}}catch(f){o={error:f}}finally{try{d&&!d.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}l++}return i?e.getBoundingBox().getMinX():e.getBoundingBox().getMaxX()},t.detectCodeword=function(e,n,r,i,o,a,s,l){o=t.adjustCodewordStartColumn(e,n,r,i,o,a);var c,d=t.getModuleBitCount(e,n,r,i,o,a);if(null==d)return null;var h=y.a.sum(d);if(i)c=o+h;else{for(var f=0;f<d.length/2;f++){var p=d[f];d[f]=d[d.length-1-f],d[d.length-1-f]=p}o=(c=o)-h}if(!t.checkCodewordSkew(h,s,l))return null;var m=F.getDecodedValue(d),g=u.a.getCodeword(m);return-1===g?null:new R(o,c,t.getCodewordBucketNumber(m),g)},t.getModuleBitCount=function(t,e,n,r,i,o){for(var a=i,s=new Int32Array(8),u=0,l=r?1:-1,c=r;(r?a<n:a>=e)&&u<s.length;)t.get(a,o)===c?(s[u]++,a+=l):(u++,c=!c);return u===s.length||a===(r?n:e)&&u===s.length-1?s:null},t.getNumberOfECCodeWords=function(t){return 2<<t},t.adjustCodewordStartColumn=function(e,n,r,i,o,a){for(var s=o,u=i?-1:1,l=0;l<2;l++){for(;(i?s>=n:s<r)&&i===e.get(s,a);){if(Math.abs(o-s)>t.CODEWORD_SKEW_SIZE)return o;s+=u}u=-u,i=!i}return s},t.checkCodewordSkew=function(e,n,r){return n-t.CODEWORD_SKEW_SIZE<=e&&e<=r+t.CODEWORD_SKEW_SIZE},t.decodeCodewords=function(e,n,r){if(0===e.length)throw o.a.getFormatInstance();var i=1<<n+1,a=t.correctErrors(e,r,i);t.verifyCodewordCount(e,i);var s=j.a.decode(e,""+n);return s.setErrorsCorrected(a),s.setErasures(r.length),s},t.correctErrors=function(e,n,r){if(null!=n&&n.length>r/2+t.MAX_ERRORS||r<0||r>t.MAX_EC_CODEWORDS)throw i.a.getChecksumInstance();return t.errorCorrection.decode(e,r,n)},t.verifyCodewordCount=function(t,e){if(t.length<4)throw o.a.getFormatInstance();var n=t[0];if(n>t.length)throw o.a.getFormatInstance();if(0===n){if(!(e<t.length))throw o.a.getFormatInstance();t[0]=t.length-e}},t.getBitCountForCodeword=function(t){for(var e=new Int32Array(8),n=0,r=e.length-1;!((1&t)!==n&&(n=1&t,--r<0));)e[r]++,t>>=1;return e},t.getCodewordBucketNumber=function(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)},t.getCodewordBucketNumber_number=function(e){return t.getCodewordBucketNumber(t.getBitCountForCodeword(e))},t.getCodewordBucketNumber_Int32Array=function(t){return(t[0]-t[2]+t[4]-t[6]+9)%9},t.toString=function(t){for(var e=new E,n=0;n<t.length;n++){e.format("Row %2d: ",n);for(var r=0;r<t[n].length;r++){var i=t[n][r];0===i.getValue().length?e.format("        ",null):e.format("%4d(%2d)",i.getValue()[0],i.getConfidence(i.getValue()[0]))}e.format("%n")}return e.toString()},t.CODEWORD_SKEW_SIZE=2,t.MAX_ERRORS=3,t.MAX_EC_CODEWORDS=512,t.errorCorrection=new v.a,t}(),H=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},z=function(){function t(){}return t.prototype.decode=function(e,n){void 0===n&&(n=null);var r=t.decode(e,n,!1);if(null==r||0===r.length||null==r[0])throw a.a.getNotFoundInstance();return r[0]},t.prototype.decodeMultiple=function(e,n){void 0===n&&(n=null);try{return t.decode(e,n,!0)}catch(r){if(r instanceof o.a||r instanceof i.a)throw a.a.getNotFoundInstance();throw r}},t.decode=function(e,n,i){var o,a,u=new Array,l=g.detectMultiple(e,n,i);try{for(var d=H(l.getPoints()),h=d.next();!h.done;h=d.next()){var f=h.value,p=Y.decode(l.getBits(),f[4],f[5],f[6],f[7],t.getMinCodewordWidth(f),t.getMaxCodewordWidth(f)),m=new s.a(p.getText(),p.getRawBytes(),void 0,f,r.a.PDF_417);m.putMetadata(c.a.ERROR_CORRECTION_LEVEL,p.getECLevel());var y=p.getOther();null!=y&&m.putMetadata(c.a.PDF417_EXTRA_METADATA,y),u.push(m)}}catch(v){o={error:v}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}return u.map((function(t){return t}))},t.getMaxWidth=function(t,e){return null==t||null==e?0:Math.trunc(Math.abs(t.getX()-e.getX()))},t.getMinWidth=function(t,e){return null==t||null==e?l.a.MAX_VALUE:Math.trunc(Math.abs(t.getX()-e.getX()))},t.getMaxCodewordWidth=function(e){return Math.floor(Math.max(Math.max(t.getMaxWidth(e[0],e[4]),t.getMaxWidth(e[6],e[2])*u.a.MODULES_IN_CODEWORD/u.a.MODULES_IN_STOP_PATTERN),Math.max(t.getMaxWidth(e[1],e[5]),t.getMaxWidth(e[7],e[3])*u.a.MODULES_IN_CODEWORD/u.a.MODULES_IN_STOP_PATTERN)))},t.getMinCodewordWidth=function(e){return Math.floor(Math.min(Math.min(t.getMinWidth(e[0],e[4]),t.getMinWidth(e[6],e[2])*u.a.MODULES_IN_CODEWORD/u.a.MODULES_IN_STOP_PATTERN),Math.min(t.getMinWidth(e[1],e[5]),t.getMinWidth(e[7],e[3])*u.a.MODULES_IN_CODEWORD/u.a.MODULES_IN_STOP_PATTERN)))},t.prototype.reset=function(){},t}();e.a=z},function(t,e,n){"use strict";var r,i=n(7),o=n(30),a=n(21),s=n(1),u=n(23),l=n(33),c=n(27),d=n(34),h=n(49),f=n(45),p=n(87),m=n(102),g=n(5),y=function(){function t(t){var e=t.getHeight();if(e<21||1!==(3&e))throw new g.a;this.bitMatrix=t}return t.prototype.readFormatInformation=function(){if(null!==this.parsedFormatInfo&&void 0!==this.parsedFormatInfo)return this.parsedFormatInfo;for(var t=0,e=0;e<6;e++)t=this.copyBit(e,8,t);t=this.copyBit(7,8,t),t=this.copyBit(8,8,t),t=this.copyBit(8,7,t);for(var n=5;n>=0;n--)t=this.copyBit(8,n,t);var r=this.bitMatrix.getHeight(),i=0,o=r-7;for(n=r-1;n>=o;n--)i=this.copyBit(8,n,i);for(e=r-8;e<r;e++)i=this.copyBit(e,8,i);if(this.parsedFormatInfo=p.a.decodeFormatInformation(t,i),null!==this.parsedFormatInfo)return this.parsedFormatInfo;throw new g.a},t.prototype.readVersion=function(){if(null!==this.parsedVersion&&void 0!==this.parsedVersion)return this.parsedVersion;var t=this.bitMatrix.getHeight(),e=Math.floor((t-17)/4);if(e<=6)return f.a.getVersionForNumber(e);for(var n=0,r=t-11,i=5;i>=0;i--)for(var o=t-9;o>=r;o--)n=this.copyBit(o,i,n);var a=f.a.decodeVersionInformation(n);if(null!==a&&a.getDimensionForVersion()===t)return this.parsedVersion=a,a;n=0;for(o=5;o>=0;o--)for(i=t-9;i>=r;i--)n=this.copyBit(o,i,n);if(null!==(a=f.a.decodeVersionInformation(n))&&a.getDimensionForVersion()===t)return this.parsedVersion=a,a;throw new g.a},t.prototype.copyBit=function(t,e,n){return(this.isMirror?this.bitMatrix.get(e,t):this.bitMatrix.get(t,e))?n<<1|1:n<<1},t.prototype.readCodewords=function(){var t=this.readFormatInformation(),e=this.readVersion(),n=m.a.values.get(t.getDataMask()),r=this.bitMatrix.getHeight();n.unmaskBitMatrix(this.bitMatrix,r);for(var i=e.buildFunctionPattern(),o=!0,a=new Uint8Array(e.getTotalCodewords()),s=0,u=0,l=0,c=r-1;c>0;c-=2){6===c&&c--;for(var d=0;d<r;d++)for(var h=o?r-1-d:d,f=0;f<2;f++)i.get(c-f,h)||(l++,u<<=1,this.bitMatrix.get(c-f,h)&&(u|=1),8===l&&(a[s++]=u,l=0,u=0));o=!o}if(s!==e.getTotalCodewords())throw new g.a;return a},t.prototype.remask=function(){if(null!==this.parsedFormatInfo){var t=m.a.values[this.parsedFormatInfo.getDataMask()],e=this.bitMatrix.getHeight();t.unmaskBitMatrix(this.bitMatrix,e)}},t.prototype.setMirror=function(t){this.parsedVersion=null,this.parsedFormatInfo=null,this.isMirror=t},t.prototype.mirror=function(){for(var t=this.bitMatrix,e=0,n=t.getWidth();e<n;e++)for(var r=e+1,i=t.getHeight();r<i;r++)t.get(e,r)!==t.get(r,e)&&(t.flip(r,e),t.flip(e,r))},t}(),v=n(6),_=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(){function t(t,e){this.numDataCodewords=t,this.codewords=e}return t.getDataBlocks=function(e,n,r){var i,o,a,s;if(e.length!==n.getTotalCodewords())throw new v.a;var u=n.getECBlocksForLevel(r),l=0,c=u.getECBlocks();try{for(var d=_(c),h=d.next();!h.done;h=d.next()){l+=(y=h.value).getCount()}}catch(M){i={error:M}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}var f=new Array(l),p=0;try{for(var m=_(c),g=m.next();!g.done;g=m.next())for(var y=g.value,b=0;b<y.getCount();b++){var w=y.getDataCodewords(),k=u.getECCodewordsPerBlock()+w;f[p++]=new t(w,new Uint8Array(k))}}catch(L){a={error:L}}finally{try{g&&!g.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}for(var S=f[0].codewords.length,E=f.length-1;E>=0;){if(f[E].codewords.length===S)break;E--}E++;var C=S-u.getECCodewordsPerBlock(),x=0;for(b=0;b<C;b++)for(var D=0;D<p;D++)f[D].codewords[b]=e[x++];for(D=E;D<p;D++)f[D].codewords[C]=e[x++];var A=f[0].codewords.length;for(b=C;b<A;b++)for(D=0;D<p;D++){var T=D<E?b:b+1;f[D].codewords[T]=e[x++]}return f},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}(),w=n(137),k=function(){function t(t){this.mirrored=t}return t.prototype.isMirrored=function(){return this.mirrored},t.prototype.applyMirroredCorrection=function(t){if(this.mirrored&&null!==t&&!(t.length<3)){var e=t[0];t[0]=t[2],t[2]=e}},t}(),S=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},E=function(){function t(){this.rsDecoder=new h.a(d.a.QR_CODE_FIELD_256)}return t.prototype.decodeBooleanArray=function(t,e){return this.decodeBitMatrix(o.a.parseFromBooleanArray(t),e)},t.prototype.decodeBitMatrix=function(t,e){var n=new y(t),r=null;try{return this.decodeBitMatrixParser(n,e)}catch(o){r=o}try{n.remask(),n.setMirror(!0),n.readVersion(),n.readFormatInformation(),n.mirror();var i=this.decodeBitMatrixParser(n,e);return i.setOther(new k(!0)),i}catch(o){if(null!==r)throw r;throw o}},t.prototype.decodeBitMatrixParser=function(t,e){var n,r,i,o,a=t.readVersion(),s=t.readFormatInformation().getErrorCorrectionLevel(),u=t.readCodewords(),l=b.getDataBlocks(u,a,s),c=0;try{for(var d=S(l),h=d.next();!h.done;h=d.next()){c+=(y=h.value).getNumDataCodewords()}}catch(E){n={error:E}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}var f=new Uint8Array(c),p=0;try{for(var m=S(l),g=m.next();!g.done;g=m.next()){var y,v=(y=g.value).getCodewords(),_=y.getNumDataCodewords();this.correctErrors(v,_);for(var k=0;k<_;k++)f[p++]=v[k]}}catch(C){i={error:C}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(i)throw i.error}}return w.a.decode(f,a,s,e)},t.prototype.correctErrors=function(t,e){var n=new Int32Array(t);try{this.rsDecoder.decode(n,t.length-e)}catch(i){throw new c.a}for(var r=0;r<e;r++)t[r]=n[r]},t}(),C=n(19),x=n(58),D=n(59),A=n(84),T=n(8),M=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),L=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.estimatedModuleSize=r,i}return M(e,t),e.prototype.aboutEquals=function(t,e,n){if(Math.abs(e-this.getY())<=t&&Math.abs(n-this.getX())<=t){var r=Math.abs(t-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(t,n,r){return new e((this.getX()+n)/2,(this.getY()+t)/2,(this.estimatedModuleSize+r)/2)},e}(T.a),O=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},I=function(){function t(t,e,n,r,i,o,a){this.image=t,this.startX=e,this.startY=n,this.width=r,this.height=i,this.moduleSize=o,this.resultPointCallback=a,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(3)}return t.prototype.find=function(){for(var t=this.startX,e=this.height,n=t+this.width,r=this.startY+e/2,i=new Int32Array(3),o=this.image,a=0;a<e;a++){var u=r+(0===(1&a)?Math.floor((a+1)/2):-Math.floor((a+1)/2));i[0]=0,i[1]=0,i[2]=0;for(var l=t;l<n&&!o.get(l,u);)l++;for(var c=0;l<n;){if(o.get(l,u))if(1===c)i[1]++;else if(2===c){var d;if(this.foundPatternCross(i))if(null!==(d=this.handlePossibleCenter(i,u,l)))return d;i[0]=i[2],i[1]=1,i[2]=0,c=1}else i[++c]++;else 1===c&&c++,i[c]++;l++}if(this.foundPatternCross(i))if(null!==(d=this.handlePossibleCenter(i,u,n)))return d}if(0!==this.possibleCenters.length)return this.possibleCenters[0];throw new s.a},t.centerFromEnd=function(t,e){return e-t[2]-t[1]/2},t.prototype.foundPatternCross=function(t){for(var e=this.moduleSize,n=e/2,r=0;r<3;r++)if(Math.abs(e-t[r])>=n)return!1;return!0},t.prototype.crossCheckVertical=function(e,n,r,i){var o=this.image,a=o.getHeight(),s=this.crossCheckStateCount;s[0]=0,s[1]=0,s[2]=0;for(var u=e;u>=0&&o.get(n,u)&&s[1]<=r;)s[1]++,u--;if(u<0||s[1]>r)return NaN;for(;u>=0&&!o.get(n,u)&&s[0]<=r;)s[0]++,u--;if(s[0]>r)return NaN;for(u=e+1;u<a&&o.get(n,u)&&s[1]<=r;)s[1]++,u++;if(u===a||s[1]>r)return NaN;for(;u<a&&!o.get(n,u)&&s[2]<=r;)s[2]++,u++;if(s[2]>r)return NaN;var l=s[0]+s[1]+s[2];return 5*Math.abs(l-i)>=2*i?NaN:this.foundPatternCross(s)?t.centerFromEnd(s,u):NaN},t.prototype.handlePossibleCenter=function(e,n,r){var i,o,a=e[0]+e[1]+e[2],s=t.centerFromEnd(e,r),u=this.crossCheckVertical(n,s,2*e[1],a);if(!isNaN(u)){var l=(e[0]+e[1]+e[2])/3;try{for(var c=O(this.possibleCenters),d=c.next();!d.done;d=c.next()){var h=d.value;if(h.aboutEquals(l,u,s))return h.combineEstimate(u,s,l)}}catch(p){i={error:p}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}var f=new L(s,u,l);this.possibleCenters.push(f),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(f)}return null},t}(),P=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o.estimatedModuleSize=r,o.count=i,void 0===i&&(o.count=1),o}return P(e,t),e.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},e.prototype.getCount=function(){return this.count},e.prototype.aboutEquals=function(t,e,n){if(Math.abs(e-this.getY())<=t&&Math.abs(n-this.getX())<=t){var r=Math.abs(t-this.estimatedModuleSize);return r<=1||r<=this.estimatedModuleSize}return!1},e.prototype.combineEstimate=function(t,n,r){var i=this.count+1;return new e((this.count*this.getX()+n)/i,(this.count*this.getY()+t)/i,(this.count*this.estimatedModuleSize+r)/i,i)},e}(T.a),N=function(){function t(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}return t.prototype.getBottomLeft=function(){return this.bottomLeft},t.prototype.getTopLeft=function(){return this.topLeft},t.prototype.getTopRight=function(){return this.topRight},t}(),F=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},j=function(){function t(t,e){this.image=t,this.resultPointCallback=e,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=e}return t.prototype.getImage=function(){return this.image},t.prototype.getPossibleCenters=function(){return this.possibleCenters},t.prototype.find=function(e){var n=null!==e&&void 0!==e&&void 0!==e.get(a.a.TRY_HARDER),r=null!==e&&void 0!==e&&void 0!==e.get(a.a.PURE_BARCODE),i=this.image,o=i.getHeight(),s=i.getWidth(),u=Math.floor(3*o/(4*t.MAX_MODULES));(u<t.MIN_SKIP||n)&&(u=t.MIN_SKIP);for(var l=!1,c=new Int32Array(5),d=u-1;d<o&&!l;d+=u){c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0;for(var h=0,f=0;f<s;f++)if(i.get(f,d))1===(1&h)&&h++,c[h]++;else if(0===(1&h))if(4===h)if(t.foundPatternCross(c)){if(!0!==this.handlePossibleCenter(c,d,f,r)){c[0]=c[2],c[1]=c[3],c[2]=c[4],c[3]=1,c[4]=0,h=3;continue}if(u=2,!0===this.hasSkipped)l=this.haveMultiplyConfirmedCenters();else{var p=this.findRowSkip();p>c[2]&&(d+=p-c[2]-u,f=s-1)}h=0,c[0]=0,c[1]=0,c[2]=0,c[3]=0,c[4]=0}else c[0]=c[2],c[1]=c[3],c[2]=c[4],c[3]=1,c[4]=0,h=3;else c[++h]++;else c[h]++;if(t.foundPatternCross(c))!0===this.handlePossibleCenter(c,d,s,r)&&(u=c[0],this.hasSkipped&&(l=this.haveMultiplyConfirmedCenters()))}var m=this.selectBestPatterns();return T.a.orderBestPatterns(m),new N(m)},t.centerFromEnd=function(t,e){return e-t[4]-t[3]-t[2]/2},t.foundPatternCross=function(t){for(var e=0,n=0;n<5;n++){var r=t[n];if(0===r)return!1;e+=r}if(e<7)return!1;var i=e/7,o=i/2;return Math.abs(i-t[0])<o&&Math.abs(i-t[1])<o&&Math.abs(3*i-t[2])<3*o&&Math.abs(i-t[3])<o&&Math.abs(i-t[4])<o},t.prototype.getCrossCheckStateCount=function(){var t=this.crossCheckStateCount;return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t},t.prototype.crossCheckDiagonal=function(e,n,r,i){for(var o=this.getCrossCheckStateCount(),a=0,s=this.image;e>=a&&n>=a&&s.get(n-a,e-a);)o[2]++,a++;if(e<a||n<a)return!1;for(;e>=a&&n>=a&&!s.get(n-a,e-a)&&o[1]<=r;)o[1]++,a++;if(e<a||n<a||o[1]>r)return!1;for(;e>=a&&n>=a&&s.get(n-a,e-a)&&o[0]<=r;)o[0]++,a++;if(o[0]>r)return!1;var u=s.getHeight(),l=s.getWidth();for(a=1;e+a<u&&n+a<l&&s.get(n+a,e+a);)o[2]++,a++;if(e+a>=u||n+a>=l)return!1;for(;e+a<u&&n+a<l&&!s.get(n+a,e+a)&&o[3]<r;)o[3]++,a++;if(e+a>=u||n+a>=l||o[3]>=r)return!1;for(;e+a<u&&n+a<l&&s.get(n+a,e+a)&&o[4]<r;)o[4]++,a++;if(o[4]>=r)return!1;var c=o[0]+o[1]+o[2]+o[3]+o[4];return Math.abs(c-i)<2*i&&t.foundPatternCross(o)},t.prototype.crossCheckVertical=function(e,n,r,i){for(var o=this.image,a=o.getHeight(),s=this.getCrossCheckStateCount(),u=e;u>=0&&o.get(n,u);)s[2]++,u--;if(u<0)return NaN;for(;u>=0&&!o.get(n,u)&&s[1]<=r;)s[1]++,u--;if(u<0||s[1]>r)return NaN;for(;u>=0&&o.get(n,u)&&s[0]<=r;)s[0]++,u--;if(s[0]>r)return NaN;for(u=e+1;u<a&&o.get(n,u);)s[2]++,u++;if(u===a)return NaN;for(;u<a&&!o.get(n,u)&&s[3]<r;)s[3]++,u++;if(u===a||s[3]>=r)return NaN;for(;u<a&&o.get(n,u)&&s[4]<r;)s[4]++,u++;if(s[4]>=r)return NaN;var l=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(l-i)>=2*i?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,u):NaN},t.prototype.crossCheckHorizontal=function(e,n,r,i){for(var o=this.image,a=o.getWidth(),s=this.getCrossCheckStateCount(),u=e;u>=0&&o.get(u,n);)s[2]++,u--;if(u<0)return NaN;for(;u>=0&&!o.get(u,n)&&s[1]<=r;)s[1]++,u--;if(u<0||s[1]>r)return NaN;for(;u>=0&&o.get(u,n)&&s[0]<=r;)s[0]++,u--;if(s[0]>r)return NaN;for(u=e+1;u<a&&o.get(u,n);)s[2]++,u++;if(u===a)return NaN;for(;u<a&&!o.get(u,n)&&s[3]<r;)s[3]++,u++;if(u===a||s[3]>=r)return NaN;for(;u<a&&o.get(u,n)&&s[4]<r;)s[4]++,u++;if(s[4]>=r)return NaN;var l=s[0]+s[1]+s[2]+s[3]+s[4];return 5*Math.abs(l-i)>=i?NaN:t.foundPatternCross(s)?t.centerFromEnd(s,u):NaN},t.prototype.handlePossibleCenter=function(e,n,r,i){var o=e[0]+e[1]+e[2]+e[3]+e[4],a=t.centerFromEnd(e,r),s=this.crossCheckVertical(n,Math.floor(a),e[2],o);if(!isNaN(s)&&(a=this.crossCheckHorizontal(Math.floor(a),Math.floor(s),e[2],o),!isNaN(a)&&(!i||this.crossCheckDiagonal(Math.floor(s),Math.floor(a),e[2],o)))){for(var u=o/7,l=!1,c=this.possibleCenters,d=0,h=c.length;d<h;d++){var f=c[d];if(f.aboutEquals(u,s,a)){c[d]=f.combineEstimate(s,a,u),l=!0;break}}if(!l){var p=new R(a,s,u);c.push(p),null!==this.resultPointCallback&&void 0!==this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(p)}return!0}return!1},t.prototype.findRowSkip=function(){var e,n;if(this.possibleCenters.length<=1)return 0;var r=null;try{for(var i=F(this.possibleCenters),o=i.next();!o.done;o=i.next()){var a=o.value;if(a.getCount()>=t.CENTER_QUORUM){if(null!=r)return this.hasSkipped=!0,Math.floor((Math.abs(r.getX()-a.getX())-Math.abs(r.getY()-a.getY()))/2);r=a}}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return 0},t.prototype.haveMultiplyConfirmedCenters=function(){var e,n,r,i,o=0,a=0,s=this.possibleCenters.length;try{for(var u=F(this.possibleCenters),l=u.next();!l.done;l=u.next()){(p=l.value).getCount()>=t.CENTER_QUORUM&&(o++,a+=p.getEstimatedModuleSize())}}catch(m){e={error:m}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}if(o<3)return!1;var c=a/s,d=0;try{for(var h=F(this.possibleCenters),f=h.next();!f.done;f=h.next()){var p=f.value;d+=Math.abs(p.getEstimatedModuleSize()-c)}}catch(g){r={error:g}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return d<=.05*a},t.prototype.selectBestPatterns=function(){var t,e,n,r,i=this.possibleCenters.length;if(i<3)throw new s.a;var o,a=this.possibleCenters;if(i>3){var u=0,l=0;try{for(var c=F(this.possibleCenters),d=c.next();!d.done;d=c.next()){var h=d.value.getEstimatedModuleSize();u+=h,l+=h*h}}catch(_){t={error:_}}finally{try{d&&!d.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}o=u/i;var f=Math.sqrt(l/i-o*o);a.sort((function(t,e){var n=Math.abs(e.getEstimatedModuleSize()-o),r=Math.abs(t.getEstimatedModuleSize()-o);return n<r?-1:n>r?1:0}));for(var p=Math.max(.2*o,f),m=0;m<a.length&&a.length>3;m++){var g=a[m];Math.abs(g.getEstimatedModuleSize()-o)>p&&(a.splice(m,1),m--)}}if(a.length>3){u=0;try{for(var y=F(a),v=y.next();!v.done;v=y.next()){u+=v.value.getEstimatedModuleSize()}}catch(b){n={error:b}}finally{try{v&&!v.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}o=u/a.length,a.sort((function(t,e){if(e.getCount()===t.getCount()){var n=Math.abs(e.getEstimatedModuleSize()-o),r=Math.abs(t.getEstimatedModuleSize()-o);return n<r?1:n>r?-1:0}return e.getCount()-t.getCount()})),a.splice(3)}return[a[0],a[1],a[2]]},t.CENTER_QUORUM=2,t.MIN_SKIP=3,t.MAX_MODULES=57,t}(),B=function(){function t(t){this.image=t}return t.prototype.getImage=function(){return this.image},t.prototype.getResultPointCallback=function(){return this.resultPointCallback},t.prototype.detect=function(t){this.resultPointCallback=null===t||void 0===t?null:t.get(a.a.NEED_RESULT_POINT_CALLBACK);var e=new j(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(e)},t.prototype.processFinderPatternInfo=function(e){var n=e.getTopLeft(),r=e.getTopRight(),i=e.getBottomLeft(),o=this.calculateModuleSize(n,r,i);if(o<1)throw new s.a("No pattern found in proccess finder.");var a=t.computeDimension(n,r,i,o),u=f.a.getProvisionalVersionForDimension(a),l=u.getDimensionForVersion()-7,c=null;if(u.getAlignmentPatternCenters().length>0)for(var d=r.getX()-n.getX()+i.getX(),h=r.getY()-n.getY()+i.getY(),p=1-3/l,m=Math.floor(n.getX()+p*(d-n.getX())),g=Math.floor(n.getY()+p*(h-n.getY())),y=4;y<=16;y<<=1)try{c=this.findAlignmentInRegion(o,m,g,y);break}catch(w){if(!(w instanceof s.a))throw w}var v,_=t.createTransform(n,r,i,c,a),b=t.sampleGrid(this.image,_,a);return v=null===c?[i,n,r]:[i,n,r,c],new x.a(b,v)},t.createTransform=function(t,e,n,r,i){var o,a,s,u,l=i-3.5;return null!==r?(o=r.getX(),a=r.getY(),u=s=l-3):(o=e.getX()-t.getX()+n.getX(),a=e.getY()-t.getY()+n.getY(),s=l,u=l),A.a.quadrilateralToQuadrilateral(3.5,3.5,l,3.5,s,u,3.5,l,t.getX(),t.getY(),e.getX(),e.getY(),o,a,n.getX(),n.getY())},t.sampleGrid=function(t,e,n){return D.a.getInstance().sampleGridWithTransform(t,n,n,e)},t.computeDimension=function(t,e,n,r){var i=C.a.round(T.a.distance(t,e)/r),o=C.a.round(T.a.distance(t,n)/r),a=Math.floor((i+o)/2)+7;switch(3&a){case 0:a++;break;case 2:a--;break;case 3:throw new s.a("Dimensions could be not found.")}return a},t.prototype.calculateModuleSize=function(t,e,n){return(this.calculateModuleSizeOneWay(t,e)+this.calculateModuleSizeOneWay(t,n))/2},t.prototype.calculateModuleSizeOneWay=function(t,e){var n=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(e.getX()),Math.floor(e.getY())),r=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(e.getX()),Math.floor(e.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(n)?r/7:isNaN(r)?n/7:(n+r)/14},t.prototype.sizeOfBlackWhiteBlackRunBothWays=function(t,e,n,r){var i=this.sizeOfBlackWhiteBlackRun(t,e,n,r),o=1,a=t-(n-t);a<0?(o=t/(t-a),a=0):a>=this.image.getWidth()&&(o=(this.image.getWidth()-1-t)/(a-t),a=this.image.getWidth()-1);var s=Math.floor(e-(r-e)*o);return o=1,s<0?(o=e/(e-s),s=0):s>=this.image.getHeight()&&(o=(this.image.getHeight()-1-e)/(s-e),s=this.image.getHeight()-1),a=Math.floor(t+(a-t)*o),(i+=this.sizeOfBlackWhiteBlackRun(t,e,a,s))-1},t.prototype.sizeOfBlackWhiteBlackRun=function(t,e,n,r){var i=Math.abs(r-e)>Math.abs(n-t);if(i){var o=t;t=e,e=o,o=n,n=r,r=o}for(var a=Math.abs(n-t),s=Math.abs(r-e),u=-a/2,l=t<n?1:-1,c=e<r?1:-1,d=0,h=n+l,f=t,p=e;f!==h;f+=l){var m=i?p:f,g=i?f:p;if(1===d===this.image.get(m,g)){if(2===d)return C.a.distance(f,p,t,e);d++}if((u+=s)>0){if(p===r)break;p+=c,u-=a}}return 2===d?C.a.distance(n+l,r,t,e):NaN},t.prototype.findAlignmentInRegion=function(t,e,n,r){var i=Math.floor(r*t),o=Math.max(0,e-i),a=Math.min(this.image.getWidth()-1,e+i);if(a-o<3*t)throw new s.a("Alignment top exceeds estimated module size.");var u=Math.max(0,n-i),l=Math.min(this.image.getHeight()-1,n+i);if(l-u<3*t)throw new s.a("Alignment bottom exceeds estimated module size.");return new I(this.image,o,u,a-o,l-u,t,this.resultPointCallback).find()},t}(),Y=function(){function t(){this.decoder=new E}return t.prototype.getDecoder=function(){return this.decoder},t.prototype.decode=function(e,n){var r,o;if(void 0!==n&&null!==n&&void 0!==n.get(a.a.PURE_BARCODE)){var s=t.extractPureBits(e.getBlackMatrix());r=this.decoder.decodeBitMatrix(s,n),o=t.NO_POINTS}else{var c=new B(e.getBlackMatrix()).detect(n);r=this.decoder.decodeBitMatrix(c.getBits(),n),o=c.getPoints()}r.getOther()instanceof k&&r.getOther().applyMirroredCorrection(o);var d=new u.a(r.getText(),r.getRawBytes(),void 0,o,i.a.QR_CODE,void 0),h=r.getByteSegments();null!==h&&d.putMetadata(l.a.BYTE_SEGMENTS,h);var f=r.getECLevel();return null!==f&&d.putMetadata(l.a.ERROR_CORRECTION_LEVEL,f),r.hasStructuredAppend()&&(d.putMetadata(l.a.STRUCTURED_APPEND_SEQUENCE,r.getStructuredAppendSequenceNumber()),d.putMetadata(l.a.STRUCTURED_APPEND_PARITY,r.getStructuredAppendParity())),d},t.prototype.reset=function(){},t.extractPureBits=function(t){var e=t.getTopLeftOnBit(),n=t.getBottomRightOnBit();if(null===e||null===n)throw new s.a;var r=this.moduleSize(e,t),i=e[1],a=n[1],u=e[0],l=n[0];if(u>=l||i>=a)throw new s.a;if(a-i!==l-u&&(l=u+(a-i))>=t.getWidth())throw new s.a;var c=Math.round((l-u+1)/r),d=Math.round((a-i+1)/r);if(c<=0||d<=0)throw new s.a;if(d!==c)throw new s.a;var h=Math.floor(r/2);i+=h;var f=(u+=h)+Math.floor((c-1)*r)-l;if(f>0){if(f>h)throw new s.a;u-=f}var p=i+Math.floor((d-1)*r)-a;if(p>0){if(p>h)throw new s.a;i-=p}for(var m=new o.a(c,d),g=0;g<d;g++)for(var y=i+Math.floor(g*r),v=0;v<c;v++)t.get(u+Math.floor(v*r),y)&&m.set(v,g);return m},t.moduleSize=function(t,e){for(var n=e.getHeight(),r=e.getWidth(),i=t[0],o=t[1],a=!0,u=0;i<r&&o<n;){if(a!==e.get(i,o)){if(5===++u)break;a=!a}i++,o++}if(i===r||o===n)throw new s.a;return(i-t[0])/7},t.NO_POINTS=new Array,t}();e.a=Y},function(t,e,n){"use strict";var r=n(7),i=n(30),o=n(21),a=n(1),s=n(23),u=n(33),l=n(18),c=n(27),d=n(34),h=n(49),f=n(5),p=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(){function t(t,e,n){this.ecCodewords=t,this.ecBlocks=[e],n&&this.ecBlocks.push(n)}return t.prototype.getECCodewords=function(){return this.ecCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t}(),g=function(){function t(t,e){this.count=t,this.dataCodewords=e}return t.prototype.getCount=function(){return this.count},t.prototype.getDataCodewords=function(){return this.dataCodewords},t}(),y=function(){function t(t,e,n,r,i,o){var a,s;this.versionNumber=t,this.symbolSizeRows=e,this.symbolSizeColumns=n,this.dataRegionSizeRows=r,this.dataRegionSizeColumns=i,this.ecBlocks=o;var u=0,l=o.getECCodewords(),c=o.getECBlocks();try{for(var d=p(c),h=d.next();!h.done;h=d.next()){var f=h.value;u+=f.getCount()*(f.getDataCodewords()+l)}}catch(m){a={error:m}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}this.totalCodewords=u}return t.prototype.getVersionNumber=function(){return this.versionNumber},t.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},t.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},t.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},t.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},t.prototype.getTotalCodewords=function(){return this.totalCodewords},t.prototype.getECBlocks=function(){return this.ecBlocks},t.getVersionForDimensions=function(e,n){var r,i;if(0!==(1&e)||0!==(1&n))throw new f.a;try{for(var o=p(t.VERSIONS),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.symbolSizeRows===e&&s.symbolSizeColumns===n)return s}}catch(u){r={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}throw new f.a},t.prototype.toString=function(){return""+this.versionNumber},t.buildVersions=function(){return[new t(1,10,10,8,8,new m(5,new g(1,3))),new t(2,12,12,10,10,new m(7,new g(1,5))),new t(3,14,14,12,12,new m(10,new g(1,8))),new t(4,16,16,14,14,new m(12,new g(1,12))),new t(5,18,18,16,16,new m(14,new g(1,18))),new t(6,20,20,18,18,new m(18,new g(1,22))),new t(7,22,22,20,20,new m(20,new g(1,30))),new t(8,24,24,22,22,new m(24,new g(1,36))),new t(9,26,26,24,24,new m(28,new g(1,44))),new t(10,32,32,14,14,new m(36,new g(1,62))),new t(11,36,36,16,16,new m(42,new g(1,86))),new t(12,40,40,18,18,new m(48,new g(1,114))),new t(13,44,44,20,20,new m(56,new g(1,144))),new t(14,48,48,22,22,new m(68,new g(1,174))),new t(15,52,52,24,24,new m(42,new g(2,102))),new t(16,64,64,14,14,new m(56,new g(2,140))),new t(17,72,72,16,16,new m(36,new g(4,92))),new t(18,80,80,18,18,new m(48,new g(4,114))),new t(19,88,88,20,20,new m(56,new g(4,144))),new t(20,96,96,22,22,new m(68,new g(4,174))),new t(21,104,104,24,24,new m(56,new g(6,136))),new t(22,120,120,18,18,new m(68,new g(6,175))),new t(23,132,132,20,20,new m(62,new g(8,163))),new t(24,144,144,22,22,new m(62,new g(8,156),new g(2,155))),new t(25,8,18,6,16,new m(7,new g(1,5))),new t(26,8,32,6,14,new m(11,new g(1,10))),new t(27,12,26,10,24,new m(14,new g(1,16))),new t(28,12,36,10,16,new m(18,new g(1,22))),new t(29,16,36,14,16,new m(24,new g(1,32))),new t(30,16,48,14,22,new m(28,new g(1,49)))]},t.VERSIONS=t.buildVersions(),t}(),v=n(6),_=function(){function t(e){var n=e.getHeight();if(n<8||n>144||0!==(1&n))throw new f.a;this.version=t.readVersion(e),this.mappingBitMatrix=this.extractDataRegion(e),this.readMappingMatrix=new i.a(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return t.prototype.getVersion=function(){return this.version},t.readVersion=function(t){var e=t.getHeight(),n=t.getWidth();return y.getVersionForDimensions(e,n)},t.prototype.readCodewords=function(){var t=new Int8Array(this.version.getTotalCodewords()),e=0,n=4,r=0,i=this.mappingBitMatrix.getHeight(),o=this.mappingBitMatrix.getWidth(),a=!1,s=!1,u=!1,l=!1;do{if(n!==i||0!==r||a)if(n!==i-2||0!==r||0===(3&o)||s)if(n!==i+4||2!==r||0!==(7&o)||u)if(n!==i-2||0!==r||4!==(7&o)||l){do{n<i&&r>=0&&!this.readMappingMatrix.get(r,n)&&(t[e++]=255&this.readUtah(n,r,i,o)),n-=2,r+=2}while(n>=0&&r<o);n+=1,r+=3;do{n>=0&&r<o&&!this.readMappingMatrix.get(r,n)&&(t[e++]=255&this.readUtah(n,r,i,o)),n+=2,r-=2}while(n<i&&r>=0);n+=3,r+=1}else t[e++]=255&this.readCorner4(i,o),n-=2,r+=2,l=!0;else t[e++]=255&this.readCorner3(i,o),n-=2,r+=2,u=!0;else t[e++]=255&this.readCorner2(i,o),n-=2,r+=2,s=!0;else t[e++]=255&this.readCorner1(i,o),n-=2,r+=2,a=!0}while(n<i||r<o);if(e!==this.version.getTotalCodewords())throw new f.a;return t},t.prototype.readModule=function(t,e,n,r){return t<0&&(t+=n,e+=4-(n+4&7)),e<0&&(e+=r,t+=4-(r+4&7)),this.readMappingMatrix.set(e,t),this.mappingBitMatrix.get(e,t)},t.prototype.readUtah=function(t,e,n,r){var i=0;return this.readModule(t-2,e-2,n,r)&&(i|=1),i<<=1,this.readModule(t-2,e-1,n,r)&&(i|=1),i<<=1,this.readModule(t-1,e-2,n,r)&&(i|=1),i<<=1,this.readModule(t-1,e-1,n,r)&&(i|=1),i<<=1,this.readModule(t-1,e,n,r)&&(i|=1),i<<=1,this.readModule(t,e-2,n,r)&&(i|=1),i<<=1,this.readModule(t,e-1,n,r)&&(i|=1),i<<=1,this.readModule(t,e,n,r)&&(i|=1),i},t.prototype.readCorner1=function(t,e){var n=0;return this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,1,t,e)&&(n|=1),n<<=1,this.readModule(t-1,2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(2,e-1,t,e)&&(n|=1),n<<=1,this.readModule(3,e-1,t,e)&&(n|=1),n},t.prototype.readCorner2=function(t,e){var n=0;return this.readModule(t-3,0,t,e)&&(n|=1),n<<=1,this.readModule(t-2,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(0,e-4,t,e)&&(n|=1),n<<=1,this.readModule(0,e-3,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n},t.prototype.readCorner3=function(t,e){var n=0;return this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(0,e-3,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-3,t,e)&&(n|=1),n<<=1,this.readModule(1,e-2,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n},t.prototype.readCorner4=function(t,e){var n=0;return this.readModule(t-3,0,t,e)&&(n|=1),n<<=1,this.readModule(t-2,0,t,e)&&(n|=1),n<<=1,this.readModule(t-1,0,t,e)&&(n|=1),n<<=1,this.readModule(0,e-2,t,e)&&(n|=1),n<<=1,this.readModule(0,e-1,t,e)&&(n|=1),n<<=1,this.readModule(1,e-1,t,e)&&(n|=1),n<<=1,this.readModule(2,e-1,t,e)&&(n|=1),n<<=1,this.readModule(3,e-1,t,e)&&(n|=1),n},t.prototype.extractDataRegion=function(t){var e=this.version.getSymbolSizeRows(),n=this.version.getSymbolSizeColumns();if(t.getHeight()!==e)throw new v.a("Dimension of bitMatrix must match the version size");for(var r=this.version.getDataRegionSizeRows(),o=this.version.getDataRegionSizeColumns(),a=e/r|0,s=n/o|0,u=a*r,l=s*o,c=new i.a(l,u),d=0;d<a;++d)for(var h=d*r,f=0;f<s;++f)for(var p=f*o,m=0;m<r;++m)for(var g=d*(r+2)+1+m,y=h+m,_=0;_<o;++_){var b=f*(o+2)+1+_;if(t.get(b,g)){var w=p+_;c.set(w,y)}}return c},t}(),b=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},w=function(){function t(t,e){this.numDataCodewords=t,this.codewords=e}return t.getDataBlocks=function(e,n){var r,i,o,a,s=n.getECBlocks(),u=0,l=s.getECBlocks();try{for(var c=b(l),d=c.next();!d.done;d=c.next()){u+=(g=d.value).getCount()}}catch(L){r={error:L}}finally{try{d&&!d.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}var h=new Array(u),f=0;try{for(var p=b(l),m=p.next();!m.done;m=p.next())for(var g=m.value,y=0;y<g.getCount();y++){var _=g.getDataCodewords(),w=s.getECCodewords()+_;h[f++]=new t(_,new Uint8Array(w))}}catch(O){o={error:O}}finally{try{m&&!m.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}var k=h[0].codewords.length-s.getECCodewords(),S=k-1,E=0;for(y=0;y<S;y++)for(var C=0;C<f;C++)h[C].codewords[y]=e[E++];var x=24===n.getVersionNumber(),D=x?8:f;for(C=0;C<D;C++)h[C].codewords[k-1]=e[E++];var A=h[0].codewords.length;for(y=k;y<A;y++)for(C=0;C<f;C++){var T=x?(C+8)%f:C,M=x&&T>7?y-1:y;h[T].codewords[M]=e[E++]}if(E!==e.length)throw new v.a;return h},t.prototype.getNumDataCodewords=function(){return this.numDataCodewords},t.prototype.getCodewords=function(){return this.codewords},t}(),k=n(135),S=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},E=function(){function t(){this.rsDecoder=new h.a(d.a.DATA_MATRIX_FIELD_256)}return t.prototype.decode=function(t){var e,n,r=new _(t),i=r.getVersion(),o=r.readCodewords(),a=w.getDataBlocks(o,i),s=0;try{for(var u=S(a),l=u.next();!l.done;l=u.next()){s+=l.value.getNumDataCodewords()}}catch(y){e={error:y}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}for(var c=new Uint8Array(s),d=a.length,h=0;h<d;h++){var f=a[h],p=f.getCodewords(),m=f.getNumDataCodewords();this.correctErrors(p,m);for(var g=0;g<m;g++)c[g*d+h]=p[g]}return k.a.decode(c)},t.prototype.correctErrors=function(t,e){var n=new Int32Array(t);try{this.rsDecoder.decode(n,t.length-e)}catch(i){throw new c.a}for(var r=0;r<e;r++)t[r]=n[r]},t}(),C=n(68),x=n(58),D=n(59),A=n(8),T=function(){function t(t){this.image=t,this.rectangleDetector=new C.a(this.image)}return t.prototype.detect=function(){var e=this.rectangleDetector.detect(),n=this.detectSolid1(e);if((n=this.detectSolid2(n))[3]=this.correctTopRight(n),!n[3])throw new a.a;var r=(n=this.shiftToModuleCenter(n))[0],i=n[1],o=n[2],s=n[3],u=this.transitionsBetween(r,s)+1,l=this.transitionsBetween(o,s)+1;1===(1&u)&&(u+=1),1===(1&l)&&(l+=1),4*u<7*l&&4*l<7*u&&(u=l=Math.max(u,l));var c=t.sampleGrid(this.image,r,i,o,s,u,l);return new x.a(c,[r,i,o,s])},t.shiftPoint=function(t,e,n){var r=(e.getX()-t.getX())/(n+1),i=(e.getY()-t.getY())/(n+1);return new A.a(t.getX()+r,t.getY()+i)},t.moveAway=function(t,e,n){var r=t.getX(),i=t.getY();return r<e?r-=1:r+=1,i<n?i-=1:i+=1,new A.a(r,i)},t.prototype.detectSolid1=function(t){var e=t[0],n=t[1],r=t[3],i=t[2],o=this.transitionsBetween(e,n),a=this.transitionsBetween(n,r),s=this.transitionsBetween(r,i),u=this.transitionsBetween(i,e),l=o,c=[i,e,n,r];return l>a&&(l=a,c[0]=e,c[1]=n,c[2]=r,c[3]=i),l>s&&(l=s,c[0]=n,c[1]=r,c[2]=i,c[3]=e),l>u&&(c[0]=r,c[1]=i,c[2]=e,c[3]=n),c},t.prototype.detectSolid2=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o),s=t.shiftPoint(r,i,4*(a+1)),u=t.shiftPoint(i,r,4*(a+1));return this.transitionsBetween(s,n)<this.transitionsBetween(u,o)?(e[0]=n,e[1]=r,e[2]=i,e[3]=o):(e[0]=r,e[1]=i,e[2]=o,e[3]=n),e},t.prototype.correctTopRight=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o),s=this.transitionsBetween(r,o),u=t.shiftPoint(n,r,4*(s+1)),l=t.shiftPoint(i,r,4*(a+1));a=this.transitionsBetween(u,o),s=this.transitionsBetween(l,o);var c=new A.a(o.getX()+(i.getX()-r.getX())/(a+1),o.getY()+(i.getY()-r.getY())/(a+1)),d=new A.a(o.getX()+(n.getX()-r.getX())/(s+1),o.getY()+(n.getY()-r.getY())/(s+1));return this.isValid(c)?this.isValid(d)?this.transitionsBetween(u,c)+this.transitionsBetween(l,c)>this.transitionsBetween(u,d)+this.transitionsBetween(l,d)?c:d:c:this.isValid(d)?d:null},t.prototype.shiftToModuleCenter=function(e){var n=e[0],r=e[1],i=e[2],o=e[3],a=this.transitionsBetween(n,o)+1,s=this.transitionsBetween(i,o)+1,u=t.shiftPoint(n,r,4*s),l=t.shiftPoint(i,r,4*a);1===(1&(a=this.transitionsBetween(u,o)+1))&&(a+=1),1===(1&(s=this.transitionsBetween(l,o)+1))&&(s+=1);var c,d,h=(n.getX()+r.getX()+i.getX()+o.getX())/4,f=(n.getY()+r.getY()+i.getY()+o.getY())/4;return n=t.moveAway(n,h,f),r=t.moveAway(r,h,f),i=t.moveAway(i,h,f),o=t.moveAway(o,h,f),u=t.shiftPoint(n,r,4*s),u=t.shiftPoint(u,o,4*a),c=t.shiftPoint(r,n,4*s),c=t.shiftPoint(c,i,4*a),l=t.shiftPoint(i,o,4*s),l=t.shiftPoint(l,r,4*a),d=t.shiftPoint(o,i,4*s),[u,c,l,d=t.shiftPoint(d,n,4*a)]},t.prototype.isValid=function(t){return t.getX()>=0&&t.getX()<this.image.getWidth()&&t.getY()>0&&t.getY()<this.image.getHeight()},t.sampleGrid=function(t,e,n,r,i,o,a){return D.a.getInstance().sampleGrid(t,o,a,.5,.5,o-.5,.5,o-.5,a-.5,.5,a-.5,e.getX(),e.getY(),i.getX(),i.getY(),r.getX(),r.getY(),n.getX(),n.getY())},t.prototype.transitionsBetween=function(t,e){var n=Math.trunc(t.getX()),r=Math.trunc(t.getY()),i=Math.trunc(e.getX()),o=Math.trunc(e.getY()),a=Math.abs(o-r)>Math.abs(i-n);if(a){var s=n;n=r,r=s,s=i,i=o,o=s}for(var u=Math.abs(i-n),l=Math.abs(o-r),c=-u/2,d=r<o?1:-1,h=n<i?1:-1,f=0,p=this.image.get(a?r:n,a?n:r),m=n,g=r;m!==i;m+=h){var y=this.image.get(a?g:m,a?m:g);if(y!==p&&(f++,p=y),(c+=l)>0){if(g===o)break;g+=d,c-=u}}return f},t}(),M=function(){function t(){this.decoder=new E}return t.prototype.decode=function(e,n){var i,a;if(void 0===n&&(n=null),null!=n&&n.has(o.a.PURE_BARCODE)){var c=t.extractPureBits(e.getBlackMatrix());i=this.decoder.decode(c),a=t.NO_POINTS}else{var d=new T(e.getBlackMatrix()).detect();i=this.decoder.decode(d.getBits()),a=d.getPoints()}var h=i.getRawBytes(),f=new s.a(i.getText(),h,8*h.length,a,r.a.DATA_MATRIX,l.a.currentTimeMillis()),p=i.getByteSegments();null!=p&&f.putMetadata(u.a.BYTE_SEGMENTS,p);var m=i.getECLevel();return null!=m&&f.putMetadata(u.a.ERROR_CORRECTION_LEVEL,m),f},t.prototype.reset=function(){},t.extractPureBits=function(t){var e=t.getTopLeftOnBit(),n=t.getBottomRightOnBit();if(null==e||null==n)throw new a.a;var r=this.moduleSize(e,t),o=e[1],s=n[1],u=e[0],l=(n[0]-u+1)/r,c=(s-o+1)/r;if(l<=0||c<=0)throw new a.a;var d=r/2;o+=d,u+=d;for(var h=new i.a(l,c),f=0;f<c;f++)for(var p=o+f*r,m=0;m<l;m++)t.get(u+m*r,p)&&h.set(m,f);return h},t.moduleSize=function(t,e){for(var n=e.getWidth(),r=t[0],i=t[1];r<n&&e.get(r,i);)r++;if(r===n)throw new a.a;var o=r-t[0];if(0===o)throw new a.a;return o},t.NO_POINTS=[],t}();e.a=M},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="ReedSolomonException",e}(i.a);e.a=a},function(t,e,n){"use strict";var r=function(){function t(t,e){this.value=t,this.checksumPortion=e}return t.prototype.getValue=function(){return this.value},t.prototype.getChecksumPortion=function(){return this.checksumPortion},t.prototype.toString=function(){return this.value+"("+this.checksumPortion+")"},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value&&this.checksumPortion===n.checksumPortion},t.prototype.hashCode=function(){return this.value^this.checksumPortion},t}();e.a=r},function(t,e,n){"use strict";var r=n(6),i=function(){function t(){}return t.prototype.exp=function(t){return this.expTable[t]},t.prototype.log=function(t){if(0===t)throw new r.a;return this.logTable[t]},t.addOrSubtract=function(t,e){return t^e},t}();e.a=i},function(t,e,n){var r;void 0===(r=function(){return/\S+/g}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[n(13)],void 0===(i=function(t){return function e(n,r,i,o,a,s,u){var l=0,c=n.length,d=null==i;if("object"===t.type(i))for(l in a=!0,i)e(n,r,l,i[l],!0,s,u);else if(void 0!==o&&(a=!0,t.isFunction(o)||(u=!0),d&&(u?(r.call(n,o),r=null):(d=r,r=function(e,n,r){return d.call(t(e),r)})),r))for(;l<c;l++)r(n[l],i,u?o:o.call(n[l],l,r(n[l],i)));return a?n:d?r.call(n):c?r(n[0],i):s}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;function o(t){return o="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(t)}r=[n(13),n(170),n(78),n(219),n(36),n(169),n(173),n(206),n(207),n(402),n(220),n(208),n(209),n(221),n(123),n(43),n(165),n(39)],i=function(t,e,n,r,i,a,s,u,l,c,d,h,f,p,m){var g=d.getStyles,y=/alpha\([^)]*\)/i,v=/opacity\s*=\s*([^)]*)/i,_=/^(none|table(?!-c[ea]).+)/,b=new RegExp("^("+e+")(.*)$","i"),w={position:"absolute",visibility:"hidden",display:"block"},k={letterSpacing:"0",fontWeight:"400"},S=["Webkit","O","Moz","ms"],E=i.createElement("div").style;function C(t){if(t in E)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=S.length;n--;)if((t=S[n]+e)in E)return t}function x(e,n){for(var r,i,o,a=[],s=0,u=e.length;s<u;s++)(i=e[s]).style&&(a[s]=t._data(i,"olddisplay"),r=i.style.display,n?(a[s]||"none"!==r||(i.style.display=""),""===i.style.display&&l(i)&&(a[s]=t._data(i,"olddisplay",f(i.nodeName)))):(o=l(i),(r&&"none"!==r||!o)&&t._data(i,"olddisplay",o?r:t.css(i,"display"))));for(s=0;s<u;s++)(i=e[s]).style&&(n&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=n?a[s]||"":"none"));return e}function D(t,e,n){var r=b.exec(e);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):e}function A(e,n,r,i,o){for(var a=r===(i?"border":"content")?4:"width"===n?1:0,s=0;a<4;a+=2)"margin"===r&&(s+=t.css(e,r+u[a],!0,o)),i?("content"===r&&(s-=t.css(e,"padding"+u[a],!0,o)),"margin"!==r&&(s-=t.css(e,"border"+u[a]+"Width",!0,o))):(s+=t.css(e,"padding"+u[a],!0,o),"padding"!==r&&(s+=t.css(e,"border"+u[a]+"Width",!0,o)));return s}function T(e,n,r){var i=!0,o="width"===n?e.offsetWidth:e.offsetHeight,a=g(e),u=m.boxSizing&&"border-box"===t.css(e,"boxSizing",!1,a);if(o<=0||null==o){if(((o=d(e,n,a))<0||null==o)&&(o=e.style[n]),s.test(o))return o;i=u&&(m.boxSizingReliable()||o===e.style[n]),o=parseFloat(o)||0}return o+A(e,n,r||(u?"border":"content"),i,a)+"px"}return d=d.curCSS,t.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=d(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:m.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,u,l,c=t.camelCase(n),d=e.style;if(n=t.cssProps[c]||(t.cssProps[c]=C(c)||c),l=t.cssHooks[n]||t.cssHooks[c],void 0===r)return l&&"get"in l&&void 0!==(s=l.get(e,!1,i))?s:d[n];if("string"===(u=o(r))&&(s=a.exec(r))&&s[1]&&(r=h(e,n,s),u="number"),null!=r&&r===r&&("number"===u&&(r+=s&&s[3]||(t.cssNumber[c]?"":"px")),m.clearCloneStyle||""!==r||0!==n.indexOf("background")||(d[n]="inherit"),!l||!("set"in l)||void 0!==(r=l.set(e,r,i))))try{d[n]=r}catch(f){}}},css:function(e,n,r,i){var o,a,s,u=t.camelCase(n);return n=t.cssProps[u]||(t.cssProps[u]=C(u)||u),(s=t.cssHooks[n]||t.cssHooks[u])&&"get"in s&&(a=s.get(e,!0,r)),void 0===a&&(a=d(e,n,i)),"normal"===a&&n in k&&(a=k[n]),""===r||r?(o=parseFloat(a),!0===r||isFinite(o)?o||0:a):a}}),t.each(["height","width"],(function(e,n){t.cssHooks[n]={get:function(e,r,i){if(r)return _.test(t.css(e,"display"))&&0===e.offsetWidth?c(e,w,(function(){return T(e,n,i)})):T(e,n,i)},set:function(e,r,i){var o=i&&g(e);return D(0,r,i?A(e,n,i,m.boxSizing&&"border-box"===t.css(e,"boxSizing",!1,o),o):0)}}})),m.opacity||(t.cssHooks.opacity={get:function(t,e){return v.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(e,n){var r=e.style,i=e.currentStyle,o=t.isNumeric(n)?"alpha(opacity="+100*n+")":"",a=i&&i.filter||r.filter||"";r.zoom=1,(n>=1||""===n)&&""===t.trim(a.replace(y,""))&&r.removeAttribute&&(r.removeAttribute("filter"),""===n||i&&!i.filter)||(r.filter=y.test(a)?a.replace(y,o):a+" "+o)}}),t.cssHooks.marginRight=p(m.reliableMarginRight,(function(t,e){if(e)return c(t,{display:"inline-block"},d,[t,"marginRight"])})),t.cssHooks.marginLeft=p(m.reliableMarginLeft,(function(e,n){if(n)return(parseFloat(d(e,"marginLeft"))||(t.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-c(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})):0))+"px"})),t.each({margin:"",padding:"",border:"Width"},(function(e,n){t.cssHooks[e+n]={expand:function(t){for(var r=0,i={},o="string"===typeof t?t.split(" "):[t];r<4;r++)i[e+u[r]+n]=o[r]||o[r-2]||o[0];return i}},r.test(e)||(t.cssHooks[e+n].set=D)})),t.fn.extend({css:function(e,r){return n(this,(function(e,n,r){var i,o,a={},s=0;if(t.isArray(n)){for(i=g(e),o=n.length;s<o;s++)a[n[s]]=t.css(e,n[s],!1,i);return a}return void 0!==r?t.style(e,n,r):t.css(e,n)}),e,r,arguments.length>1)},show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){l(this)?t(this).show():t(this).hide()}))}}),t}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;function o(t){return o="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(t)}r=[n(13),n(36),n(77),n(407),n(225),n(226),n(43),n(408),n(409),n(95)],void 0===(i=function(t,e,n,r,i,a){var s=/#.*$/,u=/([?&])_=[^&]*/,l=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,c=/^(?:GET|HEAD)$/,d=/^\/\//,h=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,f={},p={},m="*/".concat("*"),g=r.href,y=h.exec(g.toLowerCase())||[];function v(e){return function(r,i){"string"!==typeof r&&(i=r,r="*");var o,a=0,s=r.toLowerCase().match(n)||[];if(t.isFunction(i))for(;o=s[a++];)"+"===o.charAt(0)?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(i)):(e[o]=e[o]||[]).push(i)}}function _(e,n,r,i){var o={},a=e===p;function s(u){var l;return o[u]=!0,t.each(e[u]||[],(function(t,e){var u=e(n,r,i);return"string"!==typeof u||a||o[u]?a?!(l=u):void 0:(n.dataTypes.unshift(u),s(u),!1)})),l}return s(n.dataTypes[0])||!o["*"]&&s("*")}function b(e,n){var r,i,o=t.ajaxSettings.flatOptions||{};for(i in n)void 0!==n[i]&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&t.extend(!0,e,r),e}return t.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:g,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(y[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":m,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":t.parseJSON,"text xml":t.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,n){return n?b(b(e,t.ajaxSettings),n):b(t.ajaxSettings,e)},ajaxPrefilter:v(f),ajaxTransport:v(p),ajax:function(e,r){"object"===o(e)&&(r=e,e=void 0),r=r||{};var v,b,w,k,S,E,C,x,D=t.ajaxSetup({},r),A=D.context||D,T=D.context&&(A.nodeType||A.jquery)?t(A):t.event,M=t.Deferred(),L=t.Callbacks("once memory"),O=D.statusCode||{},I={},P={},R=0,N="canceled",F={readyState:0,getResponseHeader:function(t){var e;if(2===R){if(!x)for(x={};e=l.exec(k);)x[e[1].toLowerCase()]=e[2];e=x[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===R?k:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return R||(t=P[n]=P[n]||t,I[t]=e),this},overrideMimeType:function(t){return R||(D.mimeType=t),this},statusCode:function(t){var e;if(t)if(R<2)for(e in t)O[e]=[O[e],t[e]];else F.always(t[F.status]);return this},abort:function(t){var e=t||N;return C&&C.abort(e),j(0,e),this}};if(M.promise(F).complete=L.add,F.success=F.done,F.error=F.fail,D.url=((e||D.url||g)+"").replace(s,"").replace(d,y[1]+"//"),D.type=r.method||r.type||D.method||D.type,D.dataTypes=t.trim(D.dataType||"*").toLowerCase().match(n)||[""],null==D.crossDomain&&(v=h.exec(D.url.toLowerCase()),D.crossDomain=!(!v||v[1]===y[1]&&v[2]===y[2]&&(v[3]||("http:"===v[1]?"80":"443"))===(y[3]||("http:"===y[1]?"80":"443")))),D.data&&D.processData&&"string"!==typeof D.data&&(D.data=t.param(D.data,D.traditional)),_(f,D,r,F),2===R)return F;for(b in(E=t.event&&D.global)&&0===t.active++&&t.event.trigger("ajaxStart"),D.type=D.type.toUpperCase(),D.hasContent=!c.test(D.type),w=D.url,D.hasContent||(D.data&&(w=D.url+=(a.test(w)?"&":"?")+D.data,delete D.data),!1===D.cache&&(D.url=u.test(w)?w.replace(u,"$1_="+i++):w+(a.test(w)?"&":"?")+"_="+i++)),D.ifModified&&(t.lastModified[w]&&F.setRequestHeader("If-Modified-Since",t.lastModified[w]),t.etag[w]&&F.setRequestHeader("If-None-Match",t.etag[w])),(D.data&&D.hasContent&&!1!==D.contentType||r.contentType)&&F.setRequestHeader("Content-Type",D.contentType),F.setRequestHeader("Accept",D.dataTypes[0]&&D.accepts[D.dataTypes[0]]?D.accepts[D.dataTypes[0]]+("*"!==D.dataTypes[0]?", "+m+"; q=0.01":""):D.accepts["*"]),D.headers)F.setRequestHeader(b,D.headers[b]);if(D.beforeSend&&(!1===D.beforeSend.call(A,F,D)||2===R))return F.abort();for(b in N="abort",{success:1,error:1,complete:1})F[b](D[b]);if(C=_(p,D,r,F)){if(F.readyState=1,E&&T.trigger("ajaxSend",[F,D]),2===R)return F;D.async&&D.timeout>0&&(S=window.setTimeout((function(){F.abort("timeout")}),D.timeout));try{R=1,C.send(I,j)}catch(B){if(!(R<2))throw B;j(-1,B)}}else j(-1,"No Transport");function j(e,n,r,i){var o,a,s,u,l,c=n;2!==R&&(R=2,S&&window.clearTimeout(S),C=void 0,k=i||"",F.readyState=e>0?4:0,o=e>=200&&e<300||304===e,r&&(u=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||t.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}(D,F,r)),u=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(B){return{state:"parsererror",error:a?B:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(D,u,F,o),o?(D.ifModified&&((l=F.getResponseHeader("Last-Modified"))&&(t.lastModified[w]=l),(l=F.getResponseHeader("etag"))&&(t.etag[w]=l)),204===e||"HEAD"===D.type?c="nocontent":304===e?c="notmodified":(c=u.state,a=u.data,o=!(s=u.error))):(s=c,!e&&c||(c="error",e<0&&(e=0))),F.status=e,F.statusText=(n||c)+"",o?M.resolveWith(A,[a,c,F]):M.rejectWith(A,[F,c,s]),F.statusCode(O),O=void 0,E&&T.trigger(o?"ajaxSuccess":"ajaxError",[F,D,o?a:s]),L.fireWith(A,[F,c]),E&&(T.trigger("ajaxComplete",[F,D]),--t.active||t.event.trigger("ajaxStop")))}return F},getJSON:function(e,n,r){return t.get(e,n,r,"json")},getScript:function(e,n){return t.get(e,void 0,n,"script")}}),t.each(["get","post"],(function(e,n){t[n]=function(e,r,i,o){return t.isFunction(r)&&(o=o||i,i=r,r=void 0),t.ajax(t.extend({url:e,type:n,dataType:o,data:r,success:i},t.isPlainObject(e)&&e))}})),t}.apply(e,r))||(t.exports=i)},function(t,e,n){"use strict";var r=n(8),i=n(132),o=n(19),a=n(68),s=n(34),u=n(49),l=n(1),c=n(59),d=n(12),h=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.toResultPoint=function(){return new r.a(this.getX(),this.getY())},t.prototype.getX=function(){return this.x},t.prototype.getY=function(){return this.y},t}(),f=function(){function t(t){this.EXPECTED_CORNER_BITS=new Int32Array([3808,476,2107,1799]),this.image=t}return t.prototype.detect=function(){return this.detectMirror(!1)},t.prototype.detectMirror=function(t){var e=this.getMatrixCenter(),n=this.getBullsEyeCorners(e);if(t){var r=n[0];n[0]=n[2],n[2]=r}this.extractParameters(n);var o=this.sampleGrid(this.image,n[this.shift%4],n[(this.shift+1)%4],n[(this.shift+2)%4],n[(this.shift+3)%4]),a=this.getMatrixCornerPoints(n);return new i.a(o,a,this.compact,this.nbDataBlocks,this.nbLayers)},t.prototype.extractParameters=function(t){if(!this.isValidPoint(t[0])||!this.isValidPoint(t[1])||!this.isValidPoint(t[2])||!this.isValidPoint(t[3]))throw new l.a;var e=2*this.nbCenterLayers,n=new Int32Array([this.sampleLine(t[0],t[1],e),this.sampleLine(t[1],t[2],e),this.sampleLine(t[2],t[3],e),this.sampleLine(t[3],t[0],e)]);this.shift=this.getRotation(n,e);for(var r=0,i=0;i<4;i++){var o=n[(this.shift+i)%4];this.compact?(r<<=7,r+=o>>1&127):(r<<=10,r+=(o>>2&992)+(o>>1&31))}var a=this.getCorrectedParameterData(r,this.compact);this.compact?(this.nbLayers=1+(a>>6),this.nbDataBlocks=1+(63&a)):(this.nbLayers=1+(a>>11),this.nbDataBlocks=1+(2047&a))},t.prototype.getRotation=function(t,e){var n=0;t.forEach((function(t,r,i){n=(n<<3)+((t>>e-2<<1)+(1&t))})),n=((1&n)<<11)+(n>>1);for(var r=0;r<4;r++)if(d.a.bitCount(n^this.EXPECTED_CORNER_BITS[r])<=2)return r;throw new l.a},t.prototype.getCorrectedParameterData=function(t,e){var n,r;e?(n=7,r=2):(n=10,r=4);for(var i=n-r,o=new Int32Array(n),a=n-1;a>=0;--a)o[a]=15&t,t>>=4;try{new u.a(s.a.AZTEC_PARAM).decode(o,i)}catch(d){throw new l.a}var c=0;for(a=0;a<r;a++)c=(c<<4)+o[a];return c},t.prototype.getBullsEyeCorners=function(t){var e=t,n=t,i=t,o=t,a=!0;for(this.nbCenterLayers=1;this.nbCenterLayers<9;this.nbCenterLayers++){var s=this.getFirstDifferent(e,a,1,-1),u=this.getFirstDifferent(n,a,1,1),c=this.getFirstDifferent(i,a,-1,1),d=this.getFirstDifferent(o,a,-1,-1);if(this.nbCenterLayers>2){var h=this.distancePoint(d,s)*this.nbCenterLayers/(this.distancePoint(o,e)*(this.nbCenterLayers+2));if(h<.75||h>1.25||!this.isWhiteOrBlackRectangle(s,u,c,d))break}e=s,n=u,i=c,o=d,a=!a}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new l.a;this.compact=5===this.nbCenterLayers;var f=new r.a(e.getX()+.5,e.getY()-.5),p=new r.a(n.getX()+.5,n.getY()+.5),m=new r.a(i.getX()-.5,i.getY()+.5),g=new r.a(o.getX()-.5,o.getY()-.5);return this.expandSquare([f,p,m,g],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},t.prototype.getMatrixCenter=function(){var t,e,n,r;try{t=(c=new a.a(this.image).detect())[0],e=c[1],n=c[2],r=c[3]}catch(d){var i=this.image.getWidth()/2,s=this.image.getHeight()/2;t=this.getFirstDifferent(new h(i+7,s-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new h(i+7,s+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new h(i-7,s+7),!1,-1,1).toResultPoint(),r=this.getFirstDifferent(new h(i-7,s-7),!1,-1,-1).toResultPoint()}var u=o.a.round((t.getX()+r.getX()+e.getX()+n.getX())/4),l=o.a.round((t.getY()+r.getY()+e.getY()+n.getY())/4);try{var c;t=(c=new a.a(this.image,15,u,l).detect())[0],e=c[1],n=c[2],r=c[3]}catch(d){t=this.getFirstDifferent(new h(u+7,l-7),!1,1,-1).toResultPoint(),e=this.getFirstDifferent(new h(u+7,l+7),!1,1,1).toResultPoint(),n=this.getFirstDifferent(new h(u-7,l+7),!1,-1,1).toResultPoint(),r=this.getFirstDifferent(new h(u-7,l-7),!1,-1,-1).toResultPoint()}return u=o.a.round((t.getX()+r.getX()+e.getX()+n.getX())/4),l=o.a.round((t.getY()+r.getY()+e.getY()+n.getY())/4),new h(u,l)},t.prototype.getMatrixCornerPoints=function(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())},t.prototype.sampleGrid=function(t,e,n,r,i){var o=c.a.getInstance(),a=this.getDimension(),s=a/2-this.nbCenterLayers,u=a/2+this.nbCenterLayers;return o.sampleGrid(t,a,a,s,s,u,s,u,u,s,u,e.getX(),e.getY(),n.getX(),n.getY(),r.getX(),r.getY(),i.getX(),i.getY())},t.prototype.sampleLine=function(t,e,n){for(var r=0,i=this.distanceResultPoint(t,e),a=i/n,s=t.getX(),u=t.getY(),l=a*(e.getX()-t.getX())/i,c=a*(e.getY()-t.getY())/i,d=0;d<n;d++)this.image.get(o.a.round(s+d*l),o.a.round(u+d*c))&&(r|=1<<n-d-1);return r},t.prototype.isWhiteOrBlackRectangle=function(t,e,n,r){t=new h(t.getX()-3,t.getY()+3),e=new h(e.getX()-3,e.getY()-3),n=new h(n.getX()+3,n.getY()-3),r=new h(r.getX()+3,r.getY()+3);var i=this.getColor(r,t);if(0===i)return!1;var o=this.getColor(t,e);return o===i&&((o=this.getColor(e,n))===i&&(o=this.getColor(n,r))===i)},t.prototype.getColor=function(t,e){for(var n=this.distancePoint(t,e),r=(e.getX()-t.getX())/n,i=(e.getY()-t.getY())/n,a=0,s=t.getX(),u=t.getY(),l=this.image.get(t.getX(),t.getY()),c=Math.ceil(n),d=0;d<c;d++)s+=r,u+=i,this.image.get(o.a.round(s),o.a.round(u))!==l&&a++;var h=a/n;return h>.1&&h<.9?0:h<=.1===l?1:-1},t.prototype.getFirstDifferent=function(t,e,n,r){for(var i=t.getX()+n,o=t.getY()+r;this.isValid(i,o)&&this.image.get(i,o)===e;)i+=n,o+=r;for(i-=n,o-=r;this.isValid(i,o)&&this.image.get(i,o)===e;)i+=n;for(i-=n;this.isValid(i,o)&&this.image.get(i,o)===e;)o+=r;return new h(i,o-=r)},t.prototype.expandSquare=function(t,e,n){var i=n/(2*e),o=t[0].getX()-t[2].getX(),a=t[0].getY()-t[2].getY(),s=(t[0].getX()+t[2].getX())/2,u=(t[0].getY()+t[2].getY())/2,l=new r.a(s+i*o,u+i*a),c=new r.a(s-i*o,u-i*a);return o=t[1].getX()-t[3].getX(),a=t[1].getY()-t[3].getY(),s=(t[1].getX()+t[3].getX())/2,u=(t[1].getY()+t[3].getY())/2,[l,new r.a(s+i*o,u+i*a),c,new r.a(s-i*o,u-i*a)]},t.prototype.isValid=function(t,e){return t>=0&&t<this.image.getWidth()&&e>0&&e<this.image.getHeight()},t.prototype.isValidPoint=function(t){var e=o.a.round(t.getX()),n=o.a.round(t.getY());return this.isValid(e,n)},t.prototype.distancePoint=function(t,e){return o.a.distance(t.getX(),t.getY(),e.getX(),e.getY())},t.prototype.distanceResultPoint=function(t,e){return o.a.distance(t.getX(),t.getY(),e.getX(),e.getY())},t.prototype.getDimension=function(){return this.compact?4*this.nbLayers+11:this.nbLayers<=4?4*this.nbLayers+15:4*this.nbLayers+2*(d.a.truncDivision(this.nbLayers-4,8)+1)+15},t}();e.a=f},function(t,e,n){"use strict";var r,i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function t(t,e,n,r,i,o,a,s){void 0===a&&(a=0),void 0===s&&(s=0),this.rectangular=t,this.dataCapacity=e,this.errorCodewords=n,this.matrixWidth=r,this.matrixHeight=i,this.dataRegions=o,this.rsBlockData=a,this.rsBlockError=s}return t.lookup=function(t,e,n,r,i){var a,s;void 0===e&&(e=0),void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=!0);try{for(var l=o(u),c=l.next();!c.done;c=l.next()){var d=c.value;if((1!==e||!d.rectangular)&&((2!==e||d.rectangular)&&(null==n||!(d.getSymbolWidth()<n.getWidth()||d.getSymbolHeight()<n.getHeight()))&&(null==r||!(d.getSymbolWidth()>r.getWidth()||d.getSymbolHeight()>r.getHeight()))&&t<=d.dataCapacity))return d}}catch(h){a={error:h}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}if(i)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+t);return null},t.prototype.getHorizontalDataRegions=function(){switch(this.dataRegions){case 1:return 1;case 2:case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},t.prototype.getVerticalDataRegions=function(){switch(this.dataRegions){case 1:case 2:return 1;case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},t.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},t.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},t.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+2*this.getHorizontalDataRegions()},t.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+2*this.getVerticalDataRegions()},t.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},t.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},t.prototype.getDataCapacity=function(){return this.dataCapacity},t.prototype.getErrorCodewords=function(){return this.errorCodewords},t.prototype.getDataLengthForInterleavedBlock=function(t){return this.rsBlockData},t.prototype.getErrorLengthForInterleavedBlock=function(t){return this.rsBlockError},t}();e.a=a;var s=function(t){function e(){return t.call(this,!1,1558,620,22,22,36,-1,62)||this}return i(e,t),e.prototype.getInterleavedBlockCount=function(){return 10},e.prototype.getDataLengthForInterleavedBlock=function(t){return t<=8?156:155},e}(a),u=[new a(!1,3,5,8,8,1),new a(!1,5,7,10,10,1),new a(!0,5,7,16,6,1),new a(!1,8,10,12,12,1),new a(!0,10,11,14,6,2),new a(!1,12,12,14,14,1),new a(!0,16,14,24,10,1),new a(!1,18,14,16,16,1),new a(!1,22,18,18,18,1),new a(!0,22,18,16,10,2),new a(!1,30,20,20,20,1),new a(!0,32,24,16,14,2),new a(!1,36,24,22,22,1),new a(!1,44,28,24,24,1),new a(!0,49,28,22,14,2),new a(!1,62,36,14,14,4),new a(!1,86,42,16,16,4),new a(!1,114,48,18,18,4),new a(!1,144,56,20,20,4),new a(!1,174,68,22,22,4),new a(!1,204,84,24,24,4,102,42),new a(!1,280,112,14,14,16,140,56),new a(!1,368,144,16,16,16,92,36),new a(!1,456,192,18,18,16,114,48),new a(!1,576,224,20,20,16,144,56),new a(!1,696,272,22,22,16,174,68),new a(!1,816,336,24,24,16,136,56),new a(!1,1050,408,18,18,36,175,68),new a(!1,1304,496,20,20,36,163,62),new s]},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="ArithmeticException",e}(i.a);e.a=a},function(t,e,n){"use strict";var r=function(){function t(t,e,n,r,i,o,a,s,u){this.a11=t,this.a21=e,this.a31=n,this.a12=r,this.a22=i,this.a32=o,this.a13=a,this.a23=s,this.a33=u}return t.quadrilateralToQuadrilateral=function(e,n,r,i,o,a,s,u,l,c,d,h,f,p,m,g){var y=t.quadrilateralToSquare(e,n,r,i,o,a,s,u);return t.squareToQuadrilateral(l,c,d,h,f,p,m,g).times(y)},t.prototype.transformPoints=function(t){for(var e=t.length,n=this.a11,r=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,u=this.a31,l=this.a32,c=this.a33,d=0;d<e;d+=2){var h=t[d],f=t[d+1],p=i*h+s*f+c;t[d]=(n*h+o*f+u)/p,t[d+1]=(r*h+a*f+l)/p}},t.prototype.transformPointsWithValues=function(t,e){for(var n=this.a11,r=this.a12,i=this.a13,o=this.a21,a=this.a22,s=this.a23,u=this.a31,l=this.a32,c=this.a33,d=t.length,h=0;h<d;h++){var f=t[h],p=e[h],m=i*f+s*p+c;t[h]=(n*f+o*p+u)/m,e[h]=(r*f+a*p+l)/m}},t.squareToQuadrilateral=function(e,n,r,i,o,a,s,u){var l=e-r+o-s,c=n-i+a-u;if(0===l&&0===c)return new t(r-e,o-r,e,i-n,a-i,n,0,0,1);var d=r-o,h=s-o,f=i-a,p=u-a,m=d*p-h*f,g=(l*p-h*c)/m,y=(d*c-l*f)/m;return new t(r-e+g*r,s-e+y*s,e,i-n+g*i,u-n+y*u,n,g,y,1)},t.quadrilateralToSquare=function(e,n,r,i,o,a,s,u){return t.squareToQuadrilateral(e,n,r,i,o,a,s,u).buildAdjoint()},t.prototype.buildAdjoint=function(){return new t(this.a22*this.a33-this.a23*this.a32,this.a23*this.a31-this.a21*this.a33,this.a21*this.a32-this.a22*this.a31,this.a13*this.a32-this.a12*this.a33,this.a11*this.a33-this.a13*this.a31,this.a12*this.a31-this.a11*this.a32,this.a12*this.a23-this.a13*this.a22,this.a13*this.a21-this.a11*this.a23,this.a11*this.a22-this.a12*this.a21)},t.prototype.times=function(e){return new t(this.a11*e.a11+this.a21*e.a12+this.a31*e.a13,this.a11*e.a21+this.a21*e.a22+this.a31*e.a23,this.a11*e.a31+this.a21*e.a32+this.a31*e.a33,this.a12*e.a11+this.a22*e.a12+this.a32*e.a13,this.a12*e.a21+this.a22*e.a22+this.a32*e.a23,this.a12*e.a31+this.a22*e.a32+this.a32*e.a33,this.a13*e.a11+this.a23*e.a12+this.a33*e.a13,this.a13*e.a21+this.a23*e.a22+this.a33*e.a23,this.a13*e.a31+this.a23*e.a32+this.a33*e.a33)},t}();e.a=r},function(t,e,n){"use strict";var r=n(94),i=function(){function t(t){this.information=t,this.generalDecoder=new r.a(t)}return t.prototype.getInformation=function(){return this.information},t.prototype.getGeneralDecoder=function(){return this.generalDecoder},t}();e.a=i},function(t,e,n){"use strict";var r=n(6),i=function(){function t(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}return t.prototype.getBitOffset=function(){return this.bitOffset},t.prototype.getByteOffset=function(){return this.byteOffset},t.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new r.a(""+t);var e=0,n=this.bitOffset,i=this.byteOffset,o=this.bytes;if(n>0){var a=8-n,s=t<a?t:a,u=255>>8-s<<(l=a-s);e=(o[i]&u)>>l,t-=s,8===(n+=s)&&(n=0,i++)}if(t>0){for(;t>=8;)e=e<<8|255&o[i],i++,t-=8;if(t>0){var l;u=255>>(l=8-t)<<l;e=e<<t|(o[i]&u)>>l,n+=t}}return this.bitOffset=n,this.byteOffset=i,e},t.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},t}();e.a=i},function(t,e,n){"use strict";var r=n(50),i=n(12),o=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function t(t){this.errorCorrectionLevel=r.a.forBits(t>>3&3),this.dataMask=7&t}return t.numBitsDiffering=function(t,e){return i.a.bitCount(t^e)},t.decodeFormatInformation=function(e,n){var r=t.doDecodeFormatInformation(e,n);return null!==r?r:t.doDecodeFormatInformation(e^t.FORMAT_INFO_MASK_QR,n^t.FORMAT_INFO_MASK_QR)},t.doDecodeFormatInformation=function(e,n){var r,i,a=Number.MAX_SAFE_INTEGER,s=0;try{for(var u=o(t.FORMAT_INFO_DECODE_LOOKUP),l=u.next();!l.done;l=u.next()){var c=l.value,d=c[0];if(d===e||d===n)return new t(c[1]);var h=t.numBitsDiffering(e,d);h<a&&(s=c[1],a=h),e!==n&&(h=t.numBitsDiffering(n,d))<a&&(s=c[1],a=h)}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return a<=3?new t(s):null},t.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},t.prototype.getDataMask=function(){return this.dataMask},t.prototype.hashCode=function(){return this.errorCorrectionLevel.getBits()<<3|this.dataMask},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.errorCorrectionLevel===n.errorCorrectionLevel&&this.dataMask===n.dataMask},t.FORMAT_INFO_MASK_QR=21522,t.FORMAT_INFO_DECODE_LOOKUP=[Int32Array.from([21522,0]),Int32Array.from([20773,1]),Int32Array.from([24188,2]),Int32Array.from([23371,3]),Int32Array.from([17913,4]),Int32Array.from([16590,5]),Int32Array.from([20375,6]),Int32Array.from([19104,7]),Int32Array.from([30660,8]),Int32Array.from([29427,9]),Int32Array.from([32170,10]),Int32Array.from([30877,11]),Int32Array.from([26159,12]),Int32Array.from([25368,13]),Int32Array.from([27713,14]),Int32Array.from([26998,15]),Int32Array.from([5769,16]),Int32Array.from([5054,17]),Int32Array.from([7399,18]),Int32Array.from([6608,19]),Int32Array.from([1890,20]),Int32Array.from([597,21]),Int32Array.from([3340,22]),Int32Array.from([2107,23]),Int32Array.from([13663,24]),Int32Array.from([12392,25]),Int32Array.from([16177,26]),Int32Array.from([14854,27]),Int32Array.from([9396,28]),Int32Array.from([8579,29]),Int32Array.from([11994,30]),Int32Array.from([11245,31])],t}();e.a=a},function(t,e,n){"use strict";var r=n(44),i=n(18),o=n(6),a=function(){function t(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new r.a(t,Int32Array.from([1])))}return t.prototype.buildGenerator=function(t){var e=this.cachedGenerators;if(t>=e.length)for(var n=e[e.length-1],i=this.field,o=e.length;o<=t;o++){var a=n.multiply(new r.a(i,Int32Array.from([1,i.exp(o-1+i.getGeneratorBase())])));e.push(a),n=a}return e[t]},t.prototype.encode=function(t,e){if(0===e)throw new o.a("No error correction bytes");var n=t.length-e;if(n<=0)throw new o.a("No data bytes provided");var a=this.buildGenerator(e),s=new Int32Array(n);i.a.arraycopy(t,0,s,0,n);for(var u=new r.a(this.field,s),l=(u=u.multiplyByMonomial(e,1)).divide(a)[1].getCoefficients(),c=e-l.length,d=0;d<c;d++)t[n+d]=0;i.a.arraycopy(l,0,t,n+c,l.length)},t}();e.a=a},function(t,e,n){"use strict";var r=n(24),i=n(9),o=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(){function t(t,e){this.width=t,this.height=e;for(var n=new Array(e),r=0;r!==e;r++)n[r]=new Uint8Array(t);this.bytes=n}return t.prototype.getHeight=function(){return this.height},t.prototype.getWidth=function(){return this.width},t.prototype.get=function(t,e){return this.bytes[e][t]},t.prototype.getArray=function(){return this.bytes},t.prototype.setNumber=function(t,e,n){this.bytes[e][t]=n},t.prototype.setBoolean=function(t,e,n){this.bytes[e][t]=n?1:0},t.prototype.clear=function(t){var e,n;try{for(var i=o(this.bytes),a=i.next();!a.done;a=i.next()){var s=a.value;r.a.fill(s,t)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;if(this.width!==n.width)return!1;if(this.height!==n.height)return!1;for(var r=0,i=this.height;r<i;++r)for(var o=this.bytes[r],a=n.bytes[r],s=0,u=this.width;s<u;++s)if(o[s]!==a[s])return!1;return!0},t.prototype.toString=function(){for(var t=new i.a,e=0,n=this.height;e<n;++e){for(var r=this.bytes[e],o=0,a=this.width;o<a;++o)switch(r[o]){case 0:t.append(" 0");break;case 1:t.append(" 1");break;default:t.append("  ")}t.append("\n")}return t.toString()},t}();e.a=a},function(t,e,n){"use strict";var r=n(32),i=function(){function t(){}return t.ISO_8859_1=r.a.ISO8859_1,t}();e.a=i},function(t,e,n){"use strict";var r=n(22),i=n(31),o=n(32),a=n(34),s=n(88),u=n(28),l=n(45),c=n(53),d=n(89),h=n(70),f=n(104),p=n(37),m=function(){function t(t,e){this.dataBytes=t,this.errorCorrectionBytes=e}return t.prototype.getDataBytes=function(){return this.dataBytes},t.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},t}(),g=n(29),y=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function t(){}return t.calculateMaskPenalty=function(t){return c.a.applyMaskPenaltyRule1(t)+c.a.applyMaskPenaltyRule2(t)+c.a.applyMaskPenaltyRule3(t)+c.a.applyMaskPenaltyRule4(t)},t.encode=function(e,n,a){void 0===a&&(a=null);var s=t.DEFAULT_BYTE_MODE_ENCODING,c=null!==a&&void 0!==a.get(r.a.CHARACTER_SET);c&&(s=a.get(r.a.CHARACTER_SET).toString());var p=this.chooseMode(e,s),m=new i.a;if(p===u.a.BYTE&&(c||t.DEFAULT_BYTE_MODE_ENCODING!==s)){var y=o.a.getCharacterSetECIByName(s);void 0!==y&&this.appendECI(y,m)}this.appendModeInfo(p,m);var v,_=new i.a;if(this.appendBytes(e,p,_,s),null!==a&&void 0!==a.get(r.a.QR_VERSION)){var b=Number.parseInt(a.get(r.a.QR_VERSION).toString(),10);v=l.a.getVersionForNumber(b);var w=this.calculateBitsNeeded(p,m,_,v);if(!this.willFit(w,v,n))throw new g.a("Data too big for requested version")}else v=this.recommendVersion(n,p,m,_);var k=new i.a;k.appendBitArray(m);var S=p===u.a.BYTE?_.getSizeInBytes():e.length;this.appendLengthInfo(S,v,p,k),k.appendBitArray(_);var E=v.getECBlocksForLevel(n),C=v.getTotalCodewords()-E.getTotalECCodewords();this.terminateBits(C,k);var x=this.interleaveWithECBytes(k,v.getTotalCodewords(),C,E.getNumBlocks()),D=new h.a;D.setECLevel(n),D.setMode(p),D.setVersion(v);var A=v.getDimensionForVersion(),T=new d.a(A,A),M=this.chooseMaskPattern(x,n,v,T);return D.setMaskPattern(M),f.a.buildMatrix(x,n,v,M,T),D.setMatrix(T),D},t.recommendVersion=function(t,e,n,r){var i=this.calculateBitsNeeded(e,n,r,l.a.getVersionForNumber(1)),o=this.chooseVersion(i,t),a=this.calculateBitsNeeded(e,n,r,o);return this.chooseVersion(a,t)},t.calculateBitsNeeded=function(t,e,n,r){return e.getSize()+t.getCharacterCountBits(r)+n.getSize()},t.getAlphanumericCode=function(e){return e<t.ALPHANUMERIC_TABLE.length?t.ALPHANUMERIC_TABLE[e]:-1},t.chooseMode=function(e,n){if(void 0===n&&(n=null),o.a.SJIS.getName()===n&&this.isOnlyDoubleByteKanji(e))return u.a.KANJI;for(var r=!1,i=!1,a=0,s=e.length;a<s;++a){var l=e.charAt(a);if(t.isDigit(l))r=!0;else{if(-1===this.getAlphanumericCode(l.charCodeAt(0)))return u.a.BYTE;i=!0}}return i?u.a.ALPHANUMERIC:r?u.a.NUMERIC:u.a.BYTE},t.isOnlyDoubleByteKanji=function(t){var e;try{e=p.a.encode(t,o.a.SJIS)}catch(a){return!1}var n=e.length;if(n%2!==0)return!1;for(var r=0;r<n;r+=2){var i=255&e[r];if((i<129||i>159)&&(i<224||i>235))return!1}return!0},t.chooseMaskPattern=function(t,e,n,r){for(var i=Number.MAX_SAFE_INTEGER,o=-1,a=0;a<h.a.NUM_MASK_PATTERNS;a++){f.a.buildMatrix(t,e,n,a,r);var s=this.calculateMaskPenalty(r);s<i&&(i=s,o=a)}return o},t.chooseVersion=function(e,n){for(var r=1;r<=40;r++){var i=l.a.getVersionForNumber(r);if(t.willFit(e,i,n))return i}throw new g.a("Data too big")},t.willFit=function(t,e,n){return e.getTotalCodewords()-e.getECBlocksForLevel(n).getTotalECCodewords()>=(t+7)/8},t.terminateBits=function(t,e){var n=8*t;if(e.getSize()>n)throw new g.a("data bits cannot fit in the QR Code"+e.getSize()+" > "+n);for(var r=0;r<4&&e.getSize()<n;++r)e.appendBit(!1);var i=7&e.getSize();if(i>0)for(r=i;r<8;r++)e.appendBit(!1);var o=t-e.getSizeInBytes();for(r=0;r<o;++r)e.appendBits(0===(1&r)?236:17,8);if(e.getSize()!==n)throw new g.a("Bits size does not equal capacity")},t.getNumDataBytesAndNumECBytesForBlockID=function(t,e,n,r,i,o){if(r>=n)throw new g.a("Block ID too large");var a=t%n,s=n-a,u=Math.floor(t/n),l=u+1,c=Math.floor(e/n),d=c+1,h=u-c,f=l-d;if(h!==f)throw new g.a("EC bytes mismatch");if(n!==s+a)throw new g.a("RS blocks mismatch");if(t!==(c+h)*s+(d+f)*a)throw new g.a("Total bytes mismatch");r<s?(i[0]=c,o[0]=h):(i[0]=d,o[0]=f)},t.interleaveWithECBytes=function(e,n,r,o){var a,s,u,l;if(e.getSizeInBytes()!==r)throw new g.a("Number of bits and data bytes does not match");for(var c=0,d=0,h=0,f=new Array,p=0;p<o;++p){var v=new Int32Array(1),_=new Int32Array(1);t.getNumDataBytesAndNumECBytesForBlockID(n,r,o,p,v,_);var b=v[0],w=new Uint8Array(b);e.toBytes(8*c,w,0,b);var k=t.generateECBytes(w,_[0]);f.push(new m(w,k)),d=Math.max(d,b),h=Math.max(h,k.length),c+=v[0]}if(r!==c)throw new g.a("Data bytes does not match offset");var S=new i.a;for(p=0;p<d;++p)try{for(var E=(a=void 0,y(f)),C=E.next();!C.done;C=E.next()){p<(w=C.value.getDataBytes()).length&&S.appendBits(w[p],8)}}catch(A){a={error:A}}finally{try{C&&!C.done&&(s=E.return)&&s.call(E)}finally{if(a)throw a.error}}for(p=0;p<h;++p)try{for(var x=(u=void 0,y(f)),D=x.next();!D.done;D=x.next()){p<(k=D.value.getErrorCorrectionBytes()).length&&S.appendBits(k[p],8)}}catch(T){u={error:T}}finally{try{D&&!D.done&&(l=x.return)&&l.call(x)}finally{if(u)throw u.error}}if(n!==S.getSizeInBytes())throw new g.a("Interleaving error: "+n+" and "+S.getSizeInBytes()+" differ.");return S},t.generateECBytes=function(t,e){for(var n=t.length,r=new Int32Array(n+e),i=0;i<n;i++)r[i]=255&t[i];new s.a(a.a.QR_CODE_FIELD_256).encode(r,e);var o=new Uint8Array(e);for(i=0;i<e;i++)o[i]=r[n+i];return o},t.appendModeInfo=function(t,e){e.appendBits(t.getBits(),4)},t.appendLengthInfo=function(t,e,n,r){var i=n.getCharacterCountBits(e);if(t>=1<<i)throw new g.a(t+" is bigger than "+((1<<i)-1));r.appendBits(t,i)},t.appendBytes=function(e,n,r,i){switch(n){case u.a.NUMERIC:t.appendNumericBytes(e,r);break;case u.a.ALPHANUMERIC:t.appendAlphanumericBytes(e,r);break;case u.a.BYTE:t.append8BitBytes(e,r,i);break;case u.a.KANJI:t.appendKanjiBytes(e,r);break;default:throw new g.a("Invalid mode: "+n)}},t.getDigit=function(t){return t.charCodeAt(0)-48},t.isDigit=function(e){var n=t.getDigit(e);return n>=0&&n<=9},t.appendNumericBytes=function(e,n){for(var r=e.length,i=0;i<r;){var o=t.getDigit(e.charAt(i));if(i+2<r){var a=t.getDigit(e.charAt(i+1)),s=t.getDigit(e.charAt(i+2));n.appendBits(100*o+10*a+s,10),i+=3}else if(i+1<r){a=t.getDigit(e.charAt(i+1));n.appendBits(10*o+a,7),i+=2}else n.appendBits(o,4),i++}},t.appendAlphanumericBytes=function(e,n){for(var r=e.length,i=0;i<r;){var o=t.getAlphanumericCode(e.charCodeAt(i));if(-1===o)throw new g.a;if(i+1<r){var a=t.getAlphanumericCode(e.charCodeAt(i+1));if(-1===a)throw new g.a;n.appendBits(45*o+a,11),i+=2}else n.appendBits(o,6),i++}},t.append8BitBytes=function(t,e,n){var r;try{r=p.a.encode(t,n)}catch(s){throw new g.a(s)}for(var i=0,o=r.length;i!==o;i++){var a=r[i];e.appendBits(a,8)}},t.appendKanjiBytes=function(t,e){var n;try{n=p.a.encode(t,o.a.SJIS)}catch(l){throw new g.a(l)}for(var r=n.length,i=0;i<r;i+=2){var a=(255&n[i])<<8&4294967295|255&n[i+1],s=-1;if(a>=33088&&a<=40956?s=a-33088:a>=57408&&a<=60351&&(s=a-49472),-1===s)throw new g.a("Invalid byte sequence");var u=192*(s>>8)+(255&s);e.appendBits(u,13)}},t.appendECI=function(t,e){e.appendBits(u.a.ECI.getBits(),4),e.appendBits(t.getValue(),8)},t.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,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,-1,-1,-1,-1,-1]),t.DEFAULT_BYTE_MODE_ENCODING=o.a.UTF8.getName(),t}();e.a=v},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="IndexOutOfBoundsException",e}(i.a);e.a=a},function(t,e,n){"use strict";var r=n(31),i=n(6),o=n(14),a=n(30),s=n(147),u=n(88),l=n(34),c=n(149),d=n(12),h=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},f=function(){function t(){}return t.encodeBytes=function(e){return t.encode(e,t.DEFAULT_EC_PERCENT,t.DEFAULT_AZTEC_LAYERS)},t.encode=function(e,n,r){var u,l,h,f,p,m=new c.a(e).encode(),g=d.a.truncDivision(m.getSize()*n,100)+11,y=m.getSize()+g;if(r!==t.DEFAULT_AZTEC_LAYERS){if(u=r<0,(l=Math.abs(r))>(u?t.MAX_NB_BITS_COMPACT:t.MAX_NB_BITS))throw new i.a(o.a.format("Illegal value %s for layers",r));var v=(h=t.totalBitsInLayer(l,u))-h%(f=t.WORD_SIZE[l]);if((p=t.stuffBits(m,f)).getSize()+g>v)throw new i.a("Data to large for user specified layer");if(u&&p.getSize()>64*f)throw new i.a("Data to large for user specified layer")}else{f=0,p=null;for(var _=0;;_++){if(_>t.MAX_NB_BITS)throw new i.a("Data too large for an Aztec code");if(l=(u=_<=3)?_+1:_,!(y>(h=t.totalBitsInLayer(l,u)))){null!=p&&f===t.WORD_SIZE[l]||(f=t.WORD_SIZE[l],p=t.stuffBits(m,f));v=h-h%f;if(!(u&&p.getSize()>64*f)&&p.getSize()+g<=v)break}}}var b,w=t.generateCheckWords(p,h,f),k=p.getSize()/f,S=t.generateModeMessage(u,l,k),E=(u?11:14)+4*l,C=new Int32Array(E);if(u){b=E;for(_=0;_<C.length;_++)C[_]=_}else{b=E+1+2*d.a.truncDivision(d.a.truncDivision(E,2)-1,15);var x=d.a.truncDivision(E,2),D=d.a.truncDivision(b,2);for(_=0;_<x;_++){var A=_+d.a.truncDivision(_,15);C[x-_-1]=D-A-1,C[x+_]=D+A+1}}for(var T=new a.a(b),M=(_=0,0);_<l;_++){for(var L=4*(l-_)+(u?9:12),O=0;O<L;O++)for(var I=2*O,P=0;P<2;P++)w.get(M+I+P)&&T.set(C[2*_+P],C[2*_+O]),w.get(M+2*L+I+P)&&T.set(C[2*_+O],C[E-1-2*_-P]),w.get(M+4*L+I+P)&&T.set(C[E-1-2*_-P],C[E-1-2*_-O]),w.get(M+6*L+I+P)&&T.set(C[E-1-2*_-O],C[2*_+P]);M+=8*L}if(t.drawModeMessage(T,u,b,S),u)t.drawBullsEye(T,d.a.truncDivision(b,2),5);else{t.drawBullsEye(T,d.a.truncDivision(b,2),7);for(_=0,O=0;_<d.a.truncDivision(E,2)-1;_+=15,O+=16)for(P=1&d.a.truncDivision(b,2);P<b;P+=2)T.set(d.a.truncDivision(b,2)-O,P),T.set(d.a.truncDivision(b,2)+O,P),T.set(P,d.a.truncDivision(b,2)-O),T.set(P,d.a.truncDivision(b,2)+O)}var R=new s.a;return R.setCompact(u),R.setSize(b),R.setLayers(l),R.setCodeWords(k),R.setMatrix(T),R},t.drawBullsEye=function(t,e,n){for(var r=0;r<n;r+=2)for(var i=e-r;i<=e+r;i++)t.set(i,e-r),t.set(i,e+r),t.set(e-r,i),t.set(e+r,i);t.set(e-n,e-n),t.set(e-n+1,e-n),t.set(e-n,e-n+1),t.set(e+n,e-n),t.set(e+n,e-n+1),t.set(e+n,e+n-1)},t.generateModeMessage=function(e,n,i){var o=new r.a;return e?(o.appendBits(n-1,2),o.appendBits(i-1,6),o=t.generateCheckWords(o,28,4)):(o.appendBits(n-1,5),o.appendBits(i-1,11),o=t.generateCheckWords(o,40,4)),o},t.drawModeMessage=function(t,e,n,r){var i=d.a.truncDivision(n,2);if(e)for(var o=0;o<7;o++){var a=i-3+o;r.get(o)&&t.set(a,i-5),r.get(o+7)&&t.set(i+5,a),r.get(20-o)&&t.set(a,i+5),r.get(27-o)&&t.set(i-5,a)}else for(o=0;o<10;o++){a=i-5+o+d.a.truncDivision(o,5);r.get(o)&&t.set(a,i-7),r.get(o+10)&&t.set(i+7,a),r.get(29-o)&&t.set(a,i+7),r.get(39-o)&&t.set(i-7,a)}},t.generateCheckWords=function(e,n,i){var o,a,s=e.getSize()/i,l=new u.a(t.getGF(i)),c=d.a.truncDivision(n,i),f=t.bitsToWords(e,i,c);l.encode(f,c-s);var p=n%i,m=new r.a;m.appendBits(0,p);try{for(var g=h(Array.from(f)),y=g.next();!y.done;y=g.next()){var v=y.value;m.appendBits(v,i)}}catch(_){o={error:_}}finally{try{y&&!y.done&&(a=g.return)&&a.call(g)}finally{if(o)throw o.error}}return m},t.bitsToWords=function(t,e,n){var r,i,o=new Int32Array(n);for(r=0,i=t.getSize()/e;r<i;r++){for(var a=0,s=0;s<e;s++)a|=t.get(r*e+s)?1<<e-s-1:0;o[r]=a}return o},t.getGF=function(t){switch(t){case 4:return l.a.AZTEC_PARAM;case 6:return l.a.AZTEC_DATA_6;case 8:return l.a.AZTEC_DATA_8;case 10:return l.a.AZTEC_DATA_10;case 12:return l.a.AZTEC_DATA_12;default:throw new i.a("Unsupported word size "+t)}},t.stuffBits=function(t,e){for(var n=new r.a,i=t.getSize(),o=(1<<e)-2,a=0;a<i;a+=e){for(var s=0,u=0;u<e;u++)(a+u>=i||t.get(a+u))&&(s|=1<<e-1-u);(s&o)===o?(n.appendBits(s&o,e),a--):0===(s&o)?(n.appendBits(1|s,e),a--):n.appendBits(s,e)}return n},t.totalBitsInLayer=function(t,e){return((e?88:112)+16*t)*t},t.DEFAULT_EC_PERCENT=33,t.DEFAULT_AZTEC_LAYERS=0,t.MAX_NB_BITS=32,t.MAX_NB_BITS_COMPACT=4,t.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]),t}();e.a=f},function(t,e,n){"use strict";var r,i=n(5),o=n(38),a=n(9),s=function(){function t(t,e){e?this.decodedInformation=null:(this.finished=t,this.decodedInformation=e)}return t.prototype.getDecodedInformation=function(){return this.decodedInformation},t.prototype.isFinished=function(){return this.finished},t}(),u=function(){function t(t){this.newPosition=t}return t.prototype.getNewPosition=function(){return this.newPosition},t}(),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return l(e,t),e.prototype.getValue=function(){return this.value},e.prototype.isFNC1=function(){return this.value===e.FNC1},e.FNC1="$",e}(u),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(t){function e(e,n,r){var i=t.call(this,e)||this;return r?(i.remaining=!0,i.remainingValue=i.remainingValue):(i.remaining=!1,i.remainingValue=0),i.newString=n,i}return d(e,t),e.prototype.getNewString=function(){return this.newString},e.prototype.isRemaining=function(){return this.remaining},e.prototype.getRemainingValue=function(){return this.remainingValue},e}(u),f=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(t){function e(e,n,r){var o=t.call(this,e)||this;if(n<0||n>10||r<0||r>10)throw new i.a;return o.firstDigit=n,o.secondDigit=r,o}return f(e,t),e.prototype.getFirstDigit=function(){return this.firstDigit},e.prototype.getSecondDigit=function(){return this.secondDigit},e.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},e.prototype.isFirstDigitFNC1=function(){return this.firstDigit===e.FNC1},e.prototype.isSecondDigitFNC1=function(){return this.secondDigit===e.FNC1},e.prototype.isAnyFNC1=function(){return this.firstDigit===e.FNC1||this.secondDigit===e.FNC1},e.FNC1=10,e}(u),m=n(1),g=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},y=function(){function t(){}return t.parseFieldsInGeneralPurpose=function(e){var n,r,i,o,a,s,u,l;if(!e)return null;if(e.length<2)throw new m.a;var c=e.substring(0,2);try{for(var d=g(t.TWO_DIGIT_DATA_LENGTH),h=d.next();!h.done;h=d.next()){if((S=h.value)[0]===c)return S[1]===t.VARIABLE_LENGTH?t.processVariableAI(2,S[2],e):t.processFixedAI(2,S[1],e)}}catch(E){n={error:E}}finally{try{h&&!h.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}if(e.length<3)throw new m.a;var f=e.substring(0,3);try{for(var p=g(t.THREE_DIGIT_DATA_LENGTH),y=p.next();!y.done;y=p.next()){if((S=y.value)[0]===f)return S[1]===t.VARIABLE_LENGTH?t.processVariableAI(3,S[2],e):t.processFixedAI(3,S[1],e)}}catch(C){i={error:C}}finally{try{y&&!y.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}try{for(var v=g(t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),_=v.next();!_.done;_=v.next()){if((S=_.value)[0]===f)return S[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,S[2],e):t.processFixedAI(4,S[1],e)}}catch(x){a={error:x}}finally{try{_&&!_.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}if(e.length<4)throw new m.a;var b=e.substring(0,4);try{for(var w=g(t.FOUR_DIGIT_DATA_LENGTH),k=w.next();!k.done;k=w.next()){var S;if((S=k.value)[0]===b)return S[1]===t.VARIABLE_LENGTH?t.processVariableAI(4,S[2],e):t.processFixedAI(4,S[1],e)}}catch(D){u={error:D}}finally{try{k&&!k.done&&(l=w.return)&&l.call(w)}finally{if(u)throw u.error}}throw new m.a},t.processFixedAI=function(e,n,r){if(r.length<e)throw new m.a;var i=r.substring(0,e);if(r.length<e+n)throw new m.a;var o=r.substring(e,e+n),a=r.substring(e+n),s="("+i+")"+o,u=t.parseFieldsInGeneralPurpose(a);return null==u?s:s+u},t.processVariableAI=function(e,n,r){var i,o=r.substring(0,e);i=r.length<e+n?r.length:e+n;var a=r.substring(e,i),s=r.substring(i),u="("+o+")"+a,l=t.parseFieldsInGeneralPurpose(s);return null==l?u:u+l},t.VARIABLE_LENGTH=[],t.TWO_DIGIT_DATA_LENGTH=[["00",18],["01",14],["02",14],["10",t.VARIABLE_LENGTH,20],["11",6],["12",6],["13",6],["15",6],["17",6],["20",2],["21",t.VARIABLE_LENGTH,20],["22",t.VARIABLE_LENGTH,29],["30",t.VARIABLE_LENGTH,8],["37",t.VARIABLE_LENGTH,8],["90",t.VARIABLE_LENGTH,30],["91",t.VARIABLE_LENGTH,30],["92",t.VARIABLE_LENGTH,30],["93",t.VARIABLE_LENGTH,30],["94",t.VARIABLE_LENGTH,30],["95",t.VARIABLE_LENGTH,30],["96",t.VARIABLE_LENGTH,30],["97",t.VARIABLE_LENGTH,3],["98",t.VARIABLE_LENGTH,30],["99",t.VARIABLE_LENGTH,30]],t.THREE_DIGIT_DATA_LENGTH=[["240",t.VARIABLE_LENGTH,30],["241",t.VARIABLE_LENGTH,30],["242",t.VARIABLE_LENGTH,6],["250",t.VARIABLE_LENGTH,30],["251",t.VARIABLE_LENGTH,30],["253",t.VARIABLE_LENGTH,17],["254",t.VARIABLE_LENGTH,20],["400",t.VARIABLE_LENGTH,30],["401",t.VARIABLE_LENGTH,30],["402",17],["403",t.VARIABLE_LENGTH,30],["410",13],["411",13],["412",13],["413",13],["414",13],["420",t.VARIABLE_LENGTH,20],["421",t.VARIABLE_LENGTH,15],["422",3],["423",t.VARIABLE_LENGTH,15],["424",3],["425",3],["426",3]],t.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH=[["310",6],["311",6],["312",6],["313",6],["314",6],["315",6],["316",6],["320",6],["321",6],["322",6],["323",6],["324",6],["325",6],["326",6],["327",6],["328",6],["329",6],["330",6],["331",6],["332",6],["333",6],["334",6],["335",6],["336",6],["340",6],["341",6],["342",6],["343",6],["344",6],["345",6],["346",6],["347",6],["348",6],["349",6],["350",6],["351",6],["352",6],["353",6],["354",6],["355",6],["356",6],["357",6],["360",6],["361",6],["362",6],["363",6],["364",6],["365",6],["366",6],["367",6],["368",6],["369",6],["390",t.VARIABLE_LENGTH,15],["391",t.VARIABLE_LENGTH,18],["392",t.VARIABLE_LENGTH,15],["393",t.VARIABLE_LENGTH,18],["703",t.VARIABLE_LENGTH,30]],t.FOUR_DIGIT_DATA_LENGTH=[["7001",13],["7002",t.VARIABLE_LENGTH,30],["7003",10],["8001",14],["8002",t.VARIABLE_LENGTH,20],["8003",t.VARIABLE_LENGTH,30],["8004",t.VARIABLE_LENGTH,30],["8005",6],["8006",18],["8007",t.VARIABLE_LENGTH,30],["8008",t.VARIABLE_LENGTH,12],["8018",18],["8020",t.VARIABLE_LENGTH,25],["8100",6],["8101",10],["8102",2],["8110",t.VARIABLE_LENGTH,70],["8200",t.VARIABLE_LENGTH,70]],t}(),v=function(){function t(t){this.buffer=new a.a,this.information=t}return t.prototype.decodeAllCodes=function(t,e){for(var n=e,r=null;;){var i=this.decodeGeneralPurposeField(n,r),o=y.parseFieldsInGeneralPurpose(i.getNewString());if(null!=o&&t.append(o),r=i.isRemaining()?""+i.getRemainingValue():null,n===i.getNewPosition())break;n=i.getNewPosition()}return t.toString()},t.prototype.isStillNumeric=function(t){if(t+7>this.information.getSize())return t+4<=this.information.getSize();for(var e=t;e<t+3;++e)if(this.information.get(e))return!0;return this.information.get(t+3)},t.prototype.decodeNumeric=function(t){if(t+7>this.information.getSize()){var e=this.extractNumericValueFromBitArray(t,4);return new p(this.information.getSize(),0===e?p.FNC1:e-1,p.FNC1)}var n=this.extractNumericValueFromBitArray(t,7);return new p(t+7,(n-8)/11,(n-8)%11)},t.prototype.extractNumericValueFromBitArray=function(e,n){return t.extractNumericValueFromBitArray(this.information,e,n)},t.extractNumericValueFromBitArray=function(t,e,n){for(var r=0,i=0;i<n;++i)t.get(e+i)&&(r|=1<<n-i-1);return r},t.prototype.decodeGeneralPurposeField=function(t,e){this.buffer.setLengthToZero(),null!=e&&this.buffer.append(e),this.current.setPosition(t);var n=this.parseBlocks();return null!=n&&n.isRemaining()?new h(this.current.getPosition(),this.buffer.toString(),n.getRemainingValue()):new h(this.current.getPosition(),this.buffer.toString())},t.prototype.parseBlocks=function(){var t,e;do{var n=this.current.getPosition();if(t=this.current.isAlpha()?(e=this.parseAlphaBlock()).isFinished():this.current.isIsoIec646()?(e=this.parseIsoIec646Block()).isFinished():(e=this.parseNumericBlock()).isFinished(),!(n!==this.current.getPosition())&&!t)break}while(!t);return e.getDecodedInformation()},t.prototype.parseNumericBlock=function(){for(;this.isStillNumeric(this.current.getPosition());){var t=this.decodeNumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFirstDigitFNC1()){var e=void 0;return e=t.isSecondDigitFNC1()?new h(this.current.getPosition(),this.buffer.toString()):new h(this.current.getPosition(),this.buffer.toString(),t.getSecondDigit()),new s(!0,e)}if(this.buffer.append(t.getFirstDigit()),t.isSecondDigitFNC1()){e=new h(this.current.getPosition(),this.buffer.toString());return new s(!0,e)}this.buffer.append(t.getSecondDigit())}return this.isNumericToAlphaNumericLatch(this.current.getPosition())&&(this.current.setAlpha(),this.current.incrementPosition(4)),new s(!1)},t.prototype.parseIsoIec646Block=function(){for(;this.isStillIsoIec646(this.current.getPosition());){var t=this.decodeIsoIec646(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){var e=new h(this.current.getPosition(),this.buffer.toString());return new s(!0,e)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setAlpha()),new s(!1)},t.prototype.parseAlphaBlock=function(){for(;this.isStillAlpha(this.current.getPosition());){var t=this.decodeAlphanumeric(this.current.getPosition());if(this.current.setPosition(t.getNewPosition()),t.isFNC1()){var e=new h(this.current.getPosition(),this.buffer.toString());return new s(!0,e)}this.buffer.append(t.getValue())}return this.isAlphaOr646ToNumericLatch(this.current.getPosition())?(this.current.incrementPosition(3),this.current.setNumeric()):this.isAlphaTo646ToAlphaLatch(this.current.getPosition())&&(this.current.getPosition()+5<this.information.getSize()?this.current.incrementPosition(5):this.current.setPosition(this.information.getSize()),this.current.setIsoIec646()),new s(!1)},t.prototype.isStillIsoIec646=function(t){if(t+5>this.information.getSize())return!1;var e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+7>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(t,7);if(n>=64&&n<116)return!0;if(t+8>this.information.getSize())return!1;var r=this.extractNumericValueFromBitArray(t,8);return r>=232&&r<253},t.prototype.decodeIsoIec646=function(t){var e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new c(t+5,c.FNC1);if(e>=5&&e<15)return new c(t+5,"0"+(e-5));var n,r=this.extractNumericValueFromBitArray(t,7);if(r>=64&&r<90)return new c(t+7,""+(r+1));if(r>=90&&r<116)return new c(t+7,""+(r+7));switch(this.extractNumericValueFromBitArray(t,8)){case 232:n="!";break;case 233:n='"';break;case 234:n="%";break;case 235:n="&";break;case 236:n="'";break;case 237:n="(";break;case 238:n=")";break;case 239:n="*";break;case 240:n="+";break;case 241:n=",";break;case 242:n="-";break;case 243:n=".";break;case 244:n="/";break;case 245:n=":";break;case 246:n=";";break;case 247:n="<";break;case 248:n="=";break;case 249:n=">";break;case 250:n="?";break;case 251:n="_";break;case 252:n=" ";break;default:throw new i.a}return new c(t+8,n)},t.prototype.isStillAlpha=function(t){if(t+5>this.information.getSize())return!1;var e=this.extractNumericValueFromBitArray(t,5);if(e>=5&&e<16)return!0;if(t+6>this.information.getSize())return!1;var n=this.extractNumericValueFromBitArray(t,6);return n>=16&&n<63},t.prototype.decodeAlphanumeric=function(t){var e=this.extractNumericValueFromBitArray(t,5);if(15===e)return new c(t+5,c.FNC1);if(e>=5&&e<15)return new c(t+5,"0"+(e-5));var n,r=this.extractNumericValueFromBitArray(t,6);if(r>=32&&r<58)return new c(t+6,""+(r+33));switch(r){case 58:n="*";break;case 59:n=",";break;case 60:n="-";break;case 61:n=".";break;case 62:n="/";break;default:throw new o.a("Decoding invalid alphanumeric value: "+r)}return new c(t+6,n)},t.prototype.isAlphaTo646ToAlphaLatch=function(t){if(t+1>this.information.getSize())return!1;for(var e=0;e<5&&e+t<this.information.getSize();++e)if(2===e){if(!this.information.get(t+2))return!1}else if(this.information.get(t+e))return!1;return!0},t.prototype.isAlphaOr646ToNumericLatch=function(t){if(t+3>this.information.getSize())return!1;for(var e=t;e<t+3;++e)if(this.information.get(e))return!1;return!0},t.prototype.isNumericToAlphaNumericLatch=function(t){if(t+1>this.information.getSize())return!1;for(var e=0;e<4&&e+t<this.information.getSize();++e)if(this.information.get(t+e))return!1;return!0},t}();e.a=v},function(t,e,n){var r,i;r=[n(13),n(162),n(164)],i=function(t,e){return t.extend({Deferred:function(e){var n=[["resolve","done",t.Callbacks("once memory"),"resolved"],["reject","fail",t.Callbacks("once memory"),"rejected"],["notify","progress",t.Callbacks("memory")]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return t.Deferred((function(r){t.each(n,(function(n,a){var s=t.isFunction(e[n])&&e[n];o[a[1]]((function(){var e=s&&s.apply(this,arguments);e&&t.isFunction(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[a[0]+"With"](this===i?r.promise():this,s?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?t.extend(e,i):i}},o={};return i.pipe=i.then,t.each(n,(function(t,e){var a=e[2],s=e[3];i[e[1]]=a.add,s&&a.add((function(){r=s}),n[1^t][2].disable,n[2][2].lock),o[e[0]]=function(){return o[e[0]+"With"](this===o?i:this,arguments),this},o[e[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(n){var r,i,o,a=0,s=e.call(arguments),u=s.length,l=1!==u||n&&t.isFunction(n.promise)?u:0,c=1===l?n:t.Deferred(),d=function(t,n,i){return function(o){n[t]=this,i[t]=arguments.length>1?e.call(arguments):o,i===r?c.notifyWith(n,i):--l||c.resolveWith(n,i)}};if(u>1)for(r=new Array(u),i=new Array(u),o=new Array(u);a<u;a++)s[a]&&t.isFunction(s[a].promise)?s[a].promise().progress(d(a,i,r)).done(d(a,o,s)).fail(c.reject):--l;return l||c.resolveWith(o,s),c.promise()}}),t}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){"use strict";var r,i=n(48),o=n(34),a=n(49),s=n(38),u=n(5),l=n(14),c=n(12);!function(t){t[t.UPPER=0]="UPPER",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.DIGIT=3]="DIGIT",t[t.PUNCT=4]="PUNCT",t[t.BINARY=5]="BINARY"}(r||(r={}));var d=function(){function t(){}return t.prototype.decode=function(e){this.ddata=e;var n=e.getBits(),r=this.extractBits(n),o=this.correctBits(r),a=t.convertBoolArrayToByteArray(o),s=t.getEncodedData(o),u=new i.a(a,s,null,null);return u.setNumBits(o.length),u},t.highLevelDecode=function(t){return this.getEncodedData(t)},t.getEncodedData=function(e){for(var n=e.length,i=r.UPPER,o=r.UPPER,a="",s=0;s<n;)if(o===r.BINARY){if(n-s<5)break;var u=t.readCode(e,s,5);if(s+=5,0===u){if(n-s<11)break;u=t.readCode(e,s,11)+31,s+=11}for(var c=0;c<u;c++){if(n-s<8){s=n;break}var d=t.readCode(e,s,8);a+=l.a.castAsNonUtf8Char(d),s+=8}o=i}else{var h=o===r.DIGIT?4:5;if(n-s<h)break;d=t.readCode(e,s,h);s+=h;var f=t.getCharacter(o,d);f.startsWith("CTRL_")?(i=o,o=t.getTable(f.charAt(5)),"L"===f.charAt(6)&&(i=o)):(a+=f,o=i)}return a},t.getTable=function(t){switch(t){case"L":return r.LOWER;case"P":return r.PUNCT;case"M":return r.MIXED;case"D":return r.DIGIT;case"B":return r.BINARY;default:return r.UPPER}},t.getCharacter=function(e,n){switch(e){case r.UPPER:return t.UPPER_TABLE[n];case r.LOWER:return t.LOWER_TABLE[n];case r.MIXED:return t.MIXED_TABLE[n];case r.PUNCT:return t.PUNCT_TABLE[n];case r.DIGIT:return t.DIGIT_TABLE[n];default:throw new s.a("Bad table")}},t.prototype.correctBits=function(e){var n,r;this.ddata.getNbLayers()<=2?(r=6,n=o.a.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(r=8,n=o.a.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(r=10,n=o.a.AZTEC_DATA_10):(r=12,n=o.a.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),s=e.length/r;if(s<i)throw new u.a;for(var l=e.length%r,c=new Int32Array(s),d=0;d<s;d++,l+=r)c[d]=t.readCode(e,l,r);try{new a.a(n).decode(c,s-i)}catch(v){throw new u.a(v)}var h=(1<<r)-1,f=0;for(d=0;d<i;d++){if(0===(g=c[d])||g===h)throw new u.a;1!==g&&g!==h-1||f++}var p=new Array(i*r-f),m=0;for(d=0;d<i;d++){var g;if(1===(g=c[d])||g===h-1)p.fill(g>1,m,m+r-1),m+=r-1;else for(var y=r-1;y>=0;--y)p[m++]=0!==(g&1<<y)}return p},t.prototype.extractBits=function(t){var e=this.ddata.isCompact(),n=this.ddata.getNbLayers(),r=(e?11:14)+4*n,i=new Int32Array(r),o=new Array(this.totalBitsInLayer(n,e));if(e)for(var a=0;a<i.length;a++)i[a]=a;else{var s=r+1+2*c.a.truncDivision(c.a.truncDivision(r,2)-1,15),u=r/2,l=c.a.truncDivision(s,2);for(a=0;a<u;a++){var d=a+c.a.truncDivision(a,15);i[u-a-1]=l-d-1,i[u+a]=l+d+1}}a=0;for(var h=0;a<n;a++){for(var f=4*(n-a)+(e?9:12),p=2*a,m=r-1-p,g=0;g<f;g++)for(var y=2*g,v=0;v<2;v++)o[h+y+v]=t.get(i[p+v],i[p+g]),o[h+2*f+y+v]=t.get(i[p+g],i[m-v]),o[h+4*f+y+v]=t.get(i[m-v],i[m-g]),o[h+6*f+y+v]=t.get(i[m-g],i[p+v]);h+=8*f}return o},t.readCode=function(t,e,n){for(var r=0,i=e;i<e+n;i++)r<<=1,t[i]&&(r|=1);return r},t.readByte=function(e,n){var r=e.length-n;return r>=8?t.readCode(e,n,8):t.readCode(e,n,r)<<8-r},t.convertBoolArrayToByteArray=function(e){for(var n=new Uint8Array((e.length+7)/8),r=0;r<n.length;r++)n[r]=t.readByte(e,8*r);return n},t.prototype.totalBitsInLayer=function(t,e){return((e?88:112)+16*t)*t},t.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],t.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],t.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b","\t","\n","\\13","\f","\r","\\33","\\34","\\35","\\36","\\37","@","\\","^","_","`","|","~","\\177","CTRL_LL","CTRL_UL","CTRL_PL","CTRL_BS"],t.PUNCT_TABLE=["","\r","\r\n",". ",", ",": ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}","CTRL_UL"],t.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],t}();e.a=d},function(t,e,n){"use strict";var r=n(1),i=function(){function t(){}return t.checkAndNudgePoints=function(t,e){for(var n=t.getWidth(),i=t.getHeight(),o=!0,a=0;a<e.length&&o;a+=2){var s=Math.floor(e[a]),u=Math.floor(e[a+1]);if(s<-1||s>n||u<-1||u>i)throw new r.a;o=!1,-1===s?(e[a]=0,o=!0):s===n&&(e[a]=n-1,o=!0),-1===u?(e[a+1]=0,o=!0):u===i&&(e[a+1]=i-1,o=!0)}o=!0;for(a=e.length-2;a>=0&&o;a-=2){s=Math.floor(e[a]),u=Math.floor(e[a+1]);if(s<-1||s>n||u<-1||u>i)throw new r.a;o=!1,-1===s?(e[a]=0,o=!0):s===n&&(e[a]=n-1,o=!0),-1===u?(e[a+1]=0,o=!0):u===i&&(e[a+1]=i-1,o=!0)}},t}();e.a=i},function(t,e,n){"use strict";var r,i=n(7),o=n(27),a=n(21),s=n(5),u=n(1),l=n(23),c=n(8),d=n(25),h=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h(e,t),e.findStartPattern=function(t){for(var n=t.getSize(),r=t.getNextSet(0),i=0,o=Int32Array.from([0,0,0,0,0,0]),a=r,s=!1,l=r;l<n;l++)if(t.get(l)!==s)o[i]++;else{if(5===i){for(var c=e.MAX_AVG_VARIANCE,h=-1,f=e.CODE_START_A;f<=e.CODE_START_C;f++){var p=d.a.patternMatchVariance(o,e.CODE_PATTERNS[f],e.MAX_INDIVIDUAL_VARIANCE);p<c&&(c=p,h=f)}if(h>=0&&t.isRange(Math.max(0,a-(l-a)/2),a,!1))return Int32Array.from([a,l,h]);a+=o[0]+o[1],(o=o.slice(2,o.length-1))[i-1]=0,o[i]=0,i--}else i++;o[i]=1,s=!s}throw new u.a},e.decodeCode=function(t,n,r){d.a.recordPattern(t,r,n);for(var i=e.MAX_AVG_VARIANCE,o=-1,a=0;a<e.CODE_PATTERNS.length;a++){var s=e.CODE_PATTERNS[a],l=this.patternMatchVariance(n,s,e.MAX_INDIVIDUAL_VARIANCE);l<i&&(i=l,o=a)}if(o>=0)return o;throw new u.a},e.prototype.decodeRow=function(t,n,r){var d,h=r&&!0===r.get(a.a.ASSUME_GS1),f=e.findStartPattern(n),p=f[2],m=0,g=new Uint8Array(20);switch(g[m++]=p,p){case e.CODE_START_A:d=e.CODE_CODE_A;break;case e.CODE_START_B:d=e.CODE_CODE_B;break;case e.CODE_START_C:d=e.CODE_CODE_C;break;default:throw new s.a}for(var y=!1,v=!1,_="",b=f[0],w=f[1],k=Int32Array.from([0,0,0,0,0,0]),S=0,E=0,C=p,x=0,D=!0,A=!1,T=!1;!y;){var M=v;switch(v=!1,S=E,E=e.decodeCode(n,k,w),g[m++]=E,E!==e.CODE_STOP&&(D=!0),E!==e.CODE_STOP&&(C+=++x*E),b=w,w+=k.reduce((function(t,e){return t+e}),0),E){case e.CODE_START_A:case e.CODE_START_B:case e.CODE_START_C:throw new s.a}switch(d){case e.CODE_CODE_A:if(E<64)_+=T===A?String.fromCharCode(" ".charCodeAt(0)+E):String.fromCharCode(" ".charCodeAt(0)+E+128),T=!1;else if(E<96)_+=T===A?String.fromCharCode(E-64):String.fromCharCode(E+64),T=!1;else switch(E!==e.CODE_STOP&&(D=!1),E){case e.CODE_FNC_1:h&&(0===_.length?_+="]C1":_+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_A:!A&&T?(A=!0,T=!1):A&&T?(A=!1,T=!1):T=!0;break;case e.CODE_SHIFT:v=!0,d=e.CODE_CODE_B;break;case e.CODE_CODE_B:d=e.CODE_CODE_B;break;case e.CODE_CODE_C:d=e.CODE_CODE_C;break;case e.CODE_STOP:y=!0}break;case e.CODE_CODE_B:if(E<96)_+=T===A?String.fromCharCode(" ".charCodeAt(0)+E):String.fromCharCode(" ".charCodeAt(0)+E+128),T=!1;else switch(E!==e.CODE_STOP&&(D=!1),E){case e.CODE_FNC_1:h&&(0===_.length?_+="]C1":_+=String.fromCharCode(29));break;case e.CODE_FNC_2:case e.CODE_FNC_3:break;case e.CODE_FNC_4_B:!A&&T?(A=!0,T=!1):A&&T?(A=!1,T=!1):T=!0;break;case e.CODE_SHIFT:v=!0,d=e.CODE_CODE_A;break;case e.CODE_CODE_A:d=e.CODE_CODE_A;break;case e.CODE_CODE_C:d=e.CODE_CODE_C;break;case e.CODE_STOP:y=!0}break;case e.CODE_CODE_C:if(E<100)E<10&&(_+="0"),_+=E;else switch(E!==e.CODE_STOP&&(D=!1),E){case e.CODE_FNC_1:h&&(0===_.length?_+="]C1":_+=String.fromCharCode(29));break;case e.CODE_CODE_A:d=e.CODE_CODE_A;break;case e.CODE_CODE_B:d=e.CODE_CODE_B;break;case e.CODE_STOP:y=!0}}M&&(d=d===e.CODE_CODE_A?e.CODE_CODE_B:e.CODE_CODE_A)}var L=w-b;if(w=n.getNextUnset(w),!n.isRange(w,Math.min(n.getSize(),w+(w-b)/2),!1))throw new u.a;if((C-=x*S)%103!==S)throw new o.a;var O=_.length;if(0===O)throw new u.a;O>0&&D&&(_=d===e.CODE_CODE_C?_.substring(0,O-2):_.substring(0,O-1));for(var I=(f[1]+f[0])/2,P=b+L/2,R=g.length,N=new Uint8Array(R),F=0;F<R;F++)N[F]=g[F];var j=[new c.a(I,t),new c.a(P,t)];return new l.a(_,N,0,j,i.a.CODE_128,(new Date).getTime())},e.CODE_PATTERNS=[Int32Array.from([2,1,2,2,2,2]),Int32Array.from([2,2,2,1,2,2]),Int32Array.from([2,2,2,2,2,1]),Int32Array.from([1,2,1,2,2,3]),Int32Array.from([1,2,1,3,2,2]),Int32Array.from([1,3,1,2,2,2]),Int32Array.from([1,2,2,2,1,3]),Int32Array.from([1,2,2,3,1,2]),Int32Array.from([1,3,2,2,1,2]),Int32Array.from([2,2,1,2,1,3]),Int32Array.from([2,2,1,3,1,2]),Int32Array.from([2,3,1,2,1,2]),Int32Array.from([1,1,2,2,3,2]),Int32Array.from([1,2,2,1,3,2]),Int32Array.from([1,2,2,2,3,1]),Int32Array.from([1,1,3,2,2,2]),Int32Array.from([1,2,3,1,2,2]),Int32Array.from([1,2,3,2,2,1]),Int32Array.from([2,2,3,2,1,1]),Int32Array.from([2,2,1,1,3,2]),Int32Array.from([2,2,1,2,3,1]),Int32Array.from([2,1,3,2,1,2]),Int32Array.from([2,2,3,1,1,2]),Int32Array.from([3,1,2,1,3,1]),Int32Array.from([3,1,1,2,2,2]),Int32Array.from([3,2,1,1,2,2]),Int32Array.from([3,2,1,2,2,1]),Int32Array.from([3,1,2,2,1,2]),Int32Array.from([3,2,2,1,1,2]),Int32Array.from([3,2,2,2,1,1]),Int32Array.from([2,1,2,1,2,3]),Int32Array.from([2,1,2,3,2,1]),Int32Array.from([2,3,2,1,2,1]),Int32Array.from([1,1,1,3,2,3]),Int32Array.from([1,3,1,1,2,3]),Int32Array.from([1,3,1,3,2,1]),Int32Array.from([1,1,2,3,1,3]),Int32Array.from([1,3,2,1,1,3]),Int32Array.from([1,3,2,3,1,1]),Int32Array.from([2,1,1,3,1,3]),Int32Array.from([2,3,1,1,1,3]),Int32Array.from([2,3,1,3,1,1]),Int32Array.from([1,1,2,1,3,3]),Int32Array.from([1,1,2,3,3,1]),Int32Array.from([1,3,2,1,3,1]),Int32Array.from([1,1,3,1,2,3]),Int32Array.from([1,1,3,3,2,1]),Int32Array.from([1,3,3,1,2,1]),Int32Array.from([3,1,3,1,2,1]),Int32Array.from([2,1,1,3,3,1]),Int32Array.from([2,3,1,1,3,1]),Int32Array.from([2,1,3,1,1,3]),Int32Array.from([2,1,3,3,1,1]),Int32Array.from([2,1,3,1,3,1]),Int32Array.from([3,1,1,1,2,3]),Int32Array.from([3,1,1,3,2,1]),Int32Array.from([3,3,1,1,2,1]),Int32Array.from([3,1,2,1,1,3]),Int32Array.from([3,1,2,3,1,1]),Int32Array.from([3,3,2,1,1,1]),Int32Array.from([3,1,4,1,1,1]),Int32Array.from([2,2,1,4,1,1]),Int32Array.from([4,3,1,1,1,1]),Int32Array.from([1,1,1,2,2,4]),Int32Array.from([1,1,1,4,2,2]),Int32Array.from([1,2,1,1,2,4]),Int32Array.from([1,2,1,4,2,1]),Int32Array.from([1,4,1,1,2,2]),Int32Array.from([1,4,1,2,2,1]),Int32Array.from([1,1,2,2,1,4]),Int32Array.from([1,1,2,4,1,2]),Int32Array.from([1,2,2,1,1,4]),Int32Array.from([1,2,2,4,1,1]),Int32Array.from([1,4,2,1,1,2]),Int32Array.from([1,4,2,2,1,1]),Int32Array.from([2,4,1,2,1,1]),Int32Array.from([2,2,1,1,1,4]),Int32Array.from([4,1,3,1,1,1]),Int32Array.from([2,4,1,1,1,2]),Int32Array.from([1,3,4,1,1,1]),Int32Array.from([1,1,1,2,4,2]),Int32Array.from([1,2,1,1,4,2]),Int32Array.from([1,2,1,2,4,1]),Int32Array.from([1,1,4,2,1,2]),Int32Array.from([1,2,4,1,1,2]),Int32Array.from([1,2,4,2,1,1]),Int32Array.from([4,1,1,2,1,2]),Int32Array.from([4,2,1,1,1,2]),Int32Array.from([4,2,1,2,1,1]),Int32Array.from([2,1,2,1,4,1]),Int32Array.from([2,1,4,1,2,1]),Int32Array.from([4,1,2,1,2,1]),Int32Array.from([1,1,1,1,4,3]),Int32Array.from([1,1,1,3,4,1]),Int32Array.from([1,3,1,1,4,1]),Int32Array.from([1,1,4,1,1,3]),Int32Array.from([1,1,4,3,1,1]),Int32Array.from([4,1,1,1,1,3]),Int32Array.from([4,1,1,3,1,1]),Int32Array.from([1,1,3,1,4,1]),Int32Array.from([1,1,4,1,3,1]),Int32Array.from([3,1,1,1,4,1]),Int32Array.from([4,1,1,1,3,1]),Int32Array.from([2,1,1,4,1,2]),Int32Array.from([2,1,1,2,1,4]),Int32Array.from([2,1,1,2,3,2]),Int32Array.from([2,3,3,1,1,1,2])],e.MAX_AVG_VARIANCE=.25,e.MAX_INDIVIDUAL_VARIANCE=.7,e.CODE_SHIFT=98,e.CODE_CODE_C=99,e.CODE_CODE_B=100,e.CODE_CODE_A=101,e.CODE_FNC_1=102,e.CODE_FNC_2=97,e.CODE_FNC_3=96,e.CODE_FNC_4_A=101,e.CODE_FNC_4_B=100,e.CODE_START_A=103,e.CODE_START_B=104,e.CODE_START_C=105,e.CODE_STOP=106,e}(d.a);e.a=f},function(t,e,n){"use strict";var r,i=n(7),o=n(27),a=n(5),s=n(1),u=n(25),l=n(23),c=n(8),d=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},f=function(t){function e(e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t.call(this)||this;return r.usingCheckDigit=e,r.extendedMode=n,r.decodeRowResult="",r.counters=new Int32Array(9),r}return d(e,t),e.prototype.decodeRow=function(t,n,r){var a,u,d,f,p=this.counters;p.fill(0),this.decodeRowResult="";var m,g,y=e.findAsteriskPattern(n,p),v=n.getNextSet(y[1]),_=n.getSize();do{e.recordPattern(n,v,p);var b=e.toNarrowWidePattern(p);if(b<0)throw new s.a;m=e.patternToChar(b),this.decodeRowResult+=m,g=v;try{for(var w=(a=void 0,h(p)),k=w.next();!k.done;k=w.next()){v+=k.value}}catch(O){a={error:O}}finally{try{k&&!k.done&&(u=w.return)&&u.call(w)}finally{if(a)throw a.error}}v=n.getNextSet(v)}while("*"!==m);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var S,E=0;try{for(var C=h(p),x=C.next();!x.done;x=C.next()){E+=x.value}}catch(I){d={error:I}}finally{try{x&&!x.done&&(f=C.return)&&f.call(C)}finally{if(d)throw d.error}}if(v!==_&&2*(v-g-E)<E)throw new s.a;if(this.usingCheckDigit){for(var D=this.decodeRowResult.length-1,A=0,T=0;T<D;T++)A+=e.ALPHABET_STRING.indexOf(this.decodeRowResult.charAt(T));if(this.decodeRowResult.charAt(D)!==e.ALPHABET_STRING.charAt(A%43))throw new o.a;this.decodeRowResult=this.decodeRowResult.substring(0,D)}if(0===this.decodeRowResult.length)throw new s.a;S=this.extendedMode?e.decodeExtended(this.decodeRowResult):this.decodeRowResult;var M=(y[1]+y[0])/2,L=g+E/2;return new l.a(S,null,0,[new c.a(M,t),new c.a(L,t)],i.a.CODE_39,(new Date).getTime())},e.findAsteriskPattern=function(t,n){for(var r=t.getSize(),i=t.getNextSet(0),o=0,a=i,u=!1,l=n.length,c=i;c<r;c++)if(t.get(c)!==u)n[o]++;else{if(o===l-1){if(this.toNarrowWidePattern(n)===e.ASTERISK_ENCODING&&t.isRange(Math.max(0,a-Math.floor((c-a)/2)),a,!1))return[a,c];a+=n[0]+n[1],n.copyWithin(0,2,2+o-1),n[o-1]=0,n[o]=0,o--}else o++;n[o]=1,u=!u}throw new s.a},e.toNarrowWidePattern=function(t){var e,n,r,i=t.length,o=0;do{var a=2147483647;try{for(var s=(e=void 0,h(t)),u=s.next();!u.done;u=s.next()){(f=u.value)<a&&f>o&&(a=f)}}catch(p){e={error:p}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}o=a,r=0;for(var l=0,c=0,d=0;d<i;d++){(f=t[d])>o&&(c|=1<<i-1-d,r++,l+=f)}if(3===r){for(d=0;d<i&&r>0;d++){var f;if((f=t[d])>o&&(r--,2*f>=l))return-1}return c}}while(r>3);return-1},e.patternToChar=function(t){for(var n=0;n<e.CHARACTER_ENCODINGS.length;n++)if(e.CHARACTER_ENCODINGS[n]===t)return e.ALPHABET_STRING.charAt(n);if(t===e.ASTERISK_ENCODING)return"*";throw new s.a},e.decodeExtended=function(t){for(var e=t.length,n="",r=0;r<e;r++){var i=t.charAt(r);if("+"===i||"$"===i||"%"===i||"/"===i){var o=t.charAt(r+1),s="\0";switch(i){case"+":if(!(o>="A"&&o<="Z"))throw new a.a;s=String.fromCharCode(o.charCodeAt(0)+32);break;case"$":if(!(o>="A"&&o<="Z"))throw new a.a;s=String.fromCharCode(o.charCodeAt(0)-64);break;case"%":if(o>="A"&&o<="E")s=String.fromCharCode(o.charCodeAt(0)-38);else if(o>="F"&&o<="J")s=String.fromCharCode(o.charCodeAt(0)-11);else if(o>="K"&&o<="O")s=String.fromCharCode(o.charCodeAt(0)+16);else if(o>="P"&&o<="T")s=String.fromCharCode(o.charCodeAt(0)+43);else if("U"===o)s="\0";else if("V"===o)s="@";else if("W"===o)s="`";else{if("X"!==o&&"Y"!==o&&"Z"!==o)throw new a.a;s="\x7f"}break;case"/":if(o>="A"&&o<="O")s=String.fromCharCode(o.charCodeAt(0)-32);else{if("Z"!==o)throw new a.a;s=":"}}n+=s,r++}else n+=i}return n},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",e.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],e.ASTERISK_ENCODING=148,e}(u.a);e.a=f},function(t,e,n){"use strict";var r,i=n(7),o=n(27),a=n(5),s=n(1),u=n(25),l=n(23),c=n(8),d=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},f=function(t){function e(){var e=t.call(this)||this;return e.decodeRowResult="",e.counters=new Int32Array(6),e}return d(e,t),e.prototype.decodeRow=function(t,n,r){var o,a,u,d,f,p,m=this.findAsteriskPattern(n),g=n.getNextSet(m[1]),y=n.getSize(),v=this.counters;v.fill(0),this.decodeRowResult="";do{e.recordPattern(n,g,v);var _=this.toPattern(v);if(_<0)throw new s.a;f=this.patternToChar(_),this.decodeRowResult+=f,p=g;try{for(var b=(o=void 0,h(v)),w=b.next();!w.done;w=b.next()){g+=w.value}}catch(A){o={error:A}}finally{try{w&&!w.done&&(a=b.return)&&a.call(b)}finally{if(o)throw o.error}}g=n.getNextSet(g)}while("*"!==f);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var k=0;try{for(var S=h(v),E=S.next();!E.done;E=S.next()){k+=E.value}}catch(T){u={error:T}}finally{try{E&&!E.done&&(d=S.return)&&d.call(S)}finally{if(u)throw u.error}}if(g===y||!n.get(g))throw new s.a;if(this.decodeRowResult.length<2)throw new s.a;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var C=this.decodeExtended(this.decodeRowResult),x=(m[1]+m[0])/2,D=p+k/2;return new l.a(C,null,0,[new c.a(x,t),new c.a(D,t)],i.a.CODE_93,(new Date).getTime())},e.prototype.findAsteriskPattern=function(t){var n=t.getSize(),r=t.getNextSet(0);this.counters.fill(0);for(var i=this.counters,o=r,a=!1,u=i.length,l=0,c=r;c<n;c++)if(t.get(c)!==a)i[l]++;else{if(l===u-1){if(this.toPattern(i)===e.ASTERISK_ENCODING)return new Int32Array([o,c]);o+=i[0]+i[1],i.copyWithin(0,2,2+l-1),i[l-1]=0,i[l]=0,l--}else l++;i[l]=1,a=!a}throw new s.a},e.prototype.toPattern=function(t){var e,n,r=0;try{for(var i=h(t),o=i.next();!o.done;o=i.next()){r+=o.value}}catch(d){e={error:d}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}for(var a=0,s=t.length,u=0;u<s;u++){var l=Math.round(9*t[u]/r);if(l<1||l>4)return-1;if(0===(1&u))for(var c=0;c<l;c++)a=a<<1|1;else a<<=l}return a},e.prototype.patternToChar=function(t){for(var n=0;n<e.CHARACTER_ENCODINGS.length;n++)if(e.CHARACTER_ENCODINGS[n]===t)return e.ALPHABET_STRING.charAt(n);throw new s.a},e.prototype.decodeExtended=function(t){for(var e=t.length,n="",r=0;r<e;r++){var i=t.charAt(r);if(i>="a"&&i<="d"){if(r>=e-1)throw new a.a;var o=t.charAt(r+1),s="\0";switch(i){case"d":if(!(o>="A"&&o<="Z"))throw new a.a;s=String.fromCharCode(o.charCodeAt(0)+32);break;case"a":if(!(o>="A"&&o<="Z"))throw new a.a;s=String.fromCharCode(o.charCodeAt(0)-64);break;case"b":if(o>="A"&&o<="E")s=String.fromCharCode(o.charCodeAt(0)-38);else if(o>="F"&&o<="J")s=String.fromCharCode(o.charCodeAt(0)-11);else if(o>="K"&&o<="O")s=String.fromCharCode(o.charCodeAt(0)+16);else if(o>="P"&&o<="T")s=String.fromCharCode(o.charCodeAt(0)+43);else if("U"===o)s="\0";else if("V"===o)s="@";else if("W"===o)s="`";else{if(!(o>="X"&&o<="Z"))throw new a.a;s=String.fromCharCode(127)}break;case"c":if(o>="A"&&o<="O")s=String.fromCharCode(o.charCodeAt(0)-32);else{if("Z"!==o)throw new a.a;s=":"}}n+=s,r++}else n+=i}return n},e.prototype.checkChecksums=function(t){var e=t.length;this.checkOneChecksum(t,e-2,20),this.checkOneChecksum(t,e-1,15)},e.prototype.checkOneChecksum=function(t,n,r){for(var i=1,a=0,s=n-1;s>=0;s--)a+=i*e.ALPHABET_STRING.indexOf(t.charAt(s)),++i>r&&(i=1);if(t.charAt(n)!==e.ALPHABET_STRING[a%47])throw new o.a},e.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",e.CHARACTER_ENCODINGS=[276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350],e.ASTERISK_ENCODING=e.CHARACTER_ENCODINGS[47],e}(u.a);e.a=f},function(t,e,n){"use strict";var r,i=n(7),o=n(21),a=n(5),s=n(1),u=n(23),l=n(8),c=n(9),d=n(18),h=n(25),f=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.narrowLineWidth=-1,e}return f(e,t),e.prototype.decodeRow=function(t,n,r){var s,d,h=this.decodeStart(n),f=this.decodeEnd(n),m=new c.a;e.decodeMiddle(n,h[1],f[0],m);var g=m.toString(),y=null;null!=r&&(y=r.get(o.a.ALLOWED_LENGTHS)),null==y&&(y=e.DEFAULT_ALLOWED_LENGTHS);var v=g.length,_=!1,b=0;try{for(var w=p(y),k=w.next();!k.done;k=w.next()){var S=k.value;if(v===S){_=!0;break}S>b&&(b=S)}}catch(C){s={error:C}}finally{try{k&&!k.done&&(d=w.return)&&d.call(w)}finally{if(s)throw s.error}}if(!_&&v>b&&(_=!0),!_)throw new a.a;var E=[new l.a(h[1],t),new l.a(f[0],t)];return new u.a(g,null,0,E,i.a.ITF,(new Date).getTime())},e.decodeMiddle=function(t,n,r,i){var o=new Int32Array(10),a=new Int32Array(5),s=new Int32Array(5);for(o.fill(0),a.fill(0),s.fill(0);n<r;){h.a.recordPattern(t,n,o);for(var u=0;u<5;u++){var l=2*u;a[u]=o[l],s[u]=o[l+1]}var c=e.decodeDigit(a);i.append(c.toString()),c=this.decodeDigit(s),i.append(c.toString()),o.forEach((function(t){n+=t}))}},e.prototype.decodeStart=function(t){var n=e.skipWhiteSpace(t),r=e.findGuardPattern(t,n,e.START_PATTERN);return this.narrowLineWidth=(r[1]-r[0])/4,this.validateQuietZone(t,r[0]),r},e.prototype.validateQuietZone=function(t,e){var n=10*this.narrowLineWidth;n=n<e?n:e;for(var r=e-1;n>0&&r>=0&&!t.get(r);r--)n--;if(0!==n)throw new s.a},e.skipWhiteSpace=function(t){var e=t.getSize(),n=t.getNextSet(0);if(n===e)throw new s.a;return n},e.prototype.decodeEnd=function(t){t.reverse();try{var n=e.skipWhiteSpace(t),r=void 0;try{r=e.findGuardPattern(t,n,e.END_PATTERN_REVERSED[0])}catch(o){o instanceof s.a&&(r=e.findGuardPattern(t,n,e.END_PATTERN_REVERSED[1]))}this.validateQuietZone(t,r[0]);var i=r[0];return r[0]=t.getSize()-r[1],r[1]=t.getSize()-i,r}finally{t.reverse()}},e.findGuardPattern=function(t,n,r){var i=r.length,o=new Int32Array(i),a=t.getSize(),u=!1,l=0,c=n;o.fill(0);for(var f=n;f<a;f++)if(t.get(f)!==u)o[l]++;else{if(l===i-1){if(h.a.patternMatchVariance(o,r,e.MAX_INDIVIDUAL_VARIANCE)<e.MAX_AVG_VARIANCE)return[c,f];c+=o[0]+o[1],d.a.arraycopy(o,2,o,0,l-1),o[l-1]=0,o[l]=0,l--}else l++;o[l]=1,u=!u}throw new s.a},e.decodeDigit=function(t){for(var n=e.MAX_AVG_VARIANCE,r=-1,i=e.PATTERNS.length,o=0;o<i;o++){var a=e.PATTERNS[o],u=h.a.patternMatchVariance(t,a,e.MAX_INDIVIDUAL_VARIANCE);u<n?(n=u,r=o):u===n&&(r=-1)}if(r>=0)return r%10;throw new s.a},e.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],e.MAX_AVG_VARIANCE=.38,e.MAX_INDIVIDUAL_VARIANCE=.5,e.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],e.START_PATTERN=Int32Array.from([1,1,1,1]),e.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],e}(h.a);e.a=m},function(t,e,n){"use strict";var r;!function(t){t[t.DATA_MASK_000=0]="DATA_MASK_000",t[t.DATA_MASK_001=1]="DATA_MASK_001",t[t.DATA_MASK_010=2]="DATA_MASK_010",t[t.DATA_MASK_011=3]="DATA_MASK_011",t[t.DATA_MASK_100=4]="DATA_MASK_100",t[t.DATA_MASK_101=5]="DATA_MASK_101",t[t.DATA_MASK_110=6]="DATA_MASK_110",t[t.DATA_MASK_111=7]="DATA_MASK_111"}(r||(r={}));var i=function(){function t(t,e){this.value=t,this.isMasked=e}return t.prototype.unmaskBitMatrix=function(t,e){for(var n=0;n<e;n++)for(var r=0;r<e;r++)this.isMasked(n,r)&&t.flip(r,n)},t.values=new Map([[r.DATA_MASK_000,new t(r.DATA_MASK_000,(function(t,e){return 0===(t+e&1)}))],[r.DATA_MASK_001,new t(r.DATA_MASK_001,(function(t,e){return 0===(1&t)}))],[r.DATA_MASK_010,new t(r.DATA_MASK_010,(function(t,e){return e%3===0}))],[r.DATA_MASK_011,new t(r.DATA_MASK_011,(function(t,e){return(t+e)%3===0}))],[r.DATA_MASK_100,new t(r.DATA_MASK_100,(function(t,e){return 0===(Math.floor(t/2)+Math.floor(e/3)&1)}))],[r.DATA_MASK_101,new t(r.DATA_MASK_101,(function(t,e){return t*e%6===0}))],[r.DATA_MASK_110,new t(r.DATA_MASK_110,(function(t,e){return t*e%6<3}))],[r.DATA_MASK_111,new t(r.DATA_MASK_111,(function(t,e){return 0===(t+e+t*e%3&1)}))]]),t}();e.a=i},function(t,e,n){"use strict";var r,i=n(26),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.kind="ReaderException",e}(i.a);e.a=a},function(t,e,n){"use strict";var r=n(31),i=n(12),o=n(70),a=n(53),s=n(29),u=n(6),l=function(){function t(){}return t.clearMatrix=function(t){t.clear(255)},t.buildMatrix=function(e,n,r,i,o){t.clearMatrix(o),t.embedBasicPatterns(r,o),t.embedTypeInfo(n,i,o),t.maybeEmbedVersionInfo(r,o),t.embedDataBits(e,i,o)},t.embedBasicPatterns=function(e,n){t.embedPositionDetectionPatternsAndSeparators(n),t.embedDarkDotAtLeftBottomCorner(n),t.maybeEmbedPositionAdjustmentPatterns(e,n),t.embedTimingPatterns(n)},t.embedTypeInfo=function(e,n,i){var o=new r.a;t.makeTypeInfoBits(e,n,o);for(var a=0,s=o.getSize();a<s;++a){var u=o.get(o.getSize()-1-a),l=t.TYPE_INFO_COORDINATES[a],c=l[0],d=l[1];if(i.setBoolean(c,d,u),a<8){var h=i.getWidth()-a-1,f=8;i.setBoolean(h,f,u)}else{h=8,f=i.getHeight()-7+(a-8);i.setBoolean(h,f,u)}}},t.maybeEmbedVersionInfo=function(e,n){if(!(e.getVersionNumber()<7)){var i=new r.a;t.makeVersionInfoBits(e,i);for(var o=17,a=0;a<6;++a)for(var s=0;s<3;++s){var u=i.get(o);o--,n.setBoolean(a,n.getHeight()-11+s,u),n.setBoolean(n.getHeight()-11+s,a,u)}}},t.embedDataBits=function(e,n,r){for(var i=0,o=-1,u=r.getWidth()-1,l=r.getHeight()-1;u>0;){for(6===u&&(u-=1);l>=0&&l<r.getHeight();){for(var c=0;c<2;++c){var d=u-c;if(t.isEmpty(r.get(d,l))){var h=void 0;i<e.getSize()?(h=e.get(i),++i):h=!1,255!==n&&a.a.getDataMaskBit(n,d,l)&&(h=!h),r.setBoolean(d,l,h)}}l+=o}l+=o=-o,u-=2}if(i!==e.getSize())throw new s.a("Not all bits consumed: "+i+"/"+e.getSize())},t.findMSBSet=function(t){return 32-i.a.numberOfLeadingZeros(t)},t.calculateBCHCode=function(e,n){if(0===n)throw new u.a("0 polynomial");var r=t.findMSBSet(n);for(e<<=r-1;t.findMSBSet(e)>=r;)e^=n<<t.findMSBSet(e)-r;return e},t.makeTypeInfoBits=function(e,n,i){if(!o.a.isValidMaskPattern(n))throw new s.a("Invalid mask pattern");var a=e.getBits()<<3|n;i.appendBits(a,5);var u=t.calculateBCHCode(a,t.TYPE_INFO_POLY);i.appendBits(u,10);var l=new r.a;if(l.appendBits(t.TYPE_INFO_MASK_PATTERN,15),i.xor(l),15!==i.getSize())throw new s.a("should not happen but we got: "+i.getSize())},t.makeVersionInfoBits=function(e,n){n.appendBits(e.getVersionNumber(),6);var r=t.calculateBCHCode(e.getVersionNumber(),t.VERSION_INFO_POLY);if(n.appendBits(r,12),18!==n.getSize())throw new s.a("should not happen but we got: "+n.getSize())},t.isEmpty=function(t){return 255===t},t.embedTimingPatterns=function(e){for(var n=8;n<e.getWidth()-8;++n){var r=(n+1)%2;t.isEmpty(e.get(n,6))&&e.setNumber(n,6,r),t.isEmpty(e.get(6,n))&&e.setNumber(6,n,r)}},t.embedDarkDotAtLeftBottomCorner=function(t){if(0===t.get(8,t.getHeight()-8))throw new s.a;t.setNumber(8,t.getHeight()-8,1)},t.embedHorizontalSeparationPattern=function(e,n,r){for(var i=0;i<8;++i){if(!t.isEmpty(r.get(e+i,n)))throw new s.a;r.setNumber(e+i,n,0)}},t.embedVerticalSeparationPattern=function(e,n,r){for(var i=0;i<7;++i){if(!t.isEmpty(r.get(e,n+i)))throw new s.a;r.setNumber(e,n+i,0)}},t.embedPositionAdjustmentPattern=function(e,n,r){for(var i=0;i<5;++i)for(var o=t.POSITION_ADJUSTMENT_PATTERN[i],a=0;a<5;++a)r.setNumber(e+a,n+i,o[a])},t.embedPositionDetectionPattern=function(e,n,r){for(var i=0;i<7;++i)for(var o=t.POSITION_DETECTION_PATTERN[i],a=0;a<7;++a)r.setNumber(e+a,n+i,o[a])},t.embedPositionDetectionPatternsAndSeparators=function(e){var n=t.POSITION_DETECTION_PATTERN[0].length;t.embedPositionDetectionPattern(0,0,e),t.embedPositionDetectionPattern(e.getWidth()-n,0,e),t.embedPositionDetectionPattern(0,e.getWidth()-n,e);t.embedHorizontalSeparationPattern(0,7,e),t.embedHorizontalSeparationPattern(e.getWidth()-8,7,e),t.embedHorizontalSeparationPattern(0,e.getWidth()-8,e);t.embedVerticalSeparationPattern(7,0,e),t.embedVerticalSeparationPattern(e.getHeight()-7-1,0,e),t.embedVerticalSeparationPattern(7,e.getHeight()-7,e)},t.maybeEmbedPositionAdjustmentPatterns=function(e,n){if(!(e.getVersionNumber()<2))for(var r=e.getVersionNumber()-1,i=t.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[r],o=0,a=i.length;o!==a;o++){var s=i[o];if(s>=0)for(var u=0;u!==a;u++){var l=i[u];l>=0&&t.isEmpty(n.get(l,s))&&t.embedPositionAdjustmentPattern(l-2,s-2,n)}}},t.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),t.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),t.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),t.VERSION_INFO_POLY=7973,t.TYPE_INFO_POLY=1335,t.TYPE_INFO_MASK_PATTERN=21522,t}();e.a=l},function(t,e,n){"use strict";var r,i=n(55),o=n(75),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i.count=0,i.finderPattern=r,i}return a(e,t),e.prototype.getFinderPattern=function(){return this.finderPattern},e.prototype.getCount=function(){return this.count},e.prototype.incrementCount=function(){this.count++},e}(o.a),u=n(23),l=n(21),c=n(1),d=n(9),h=n(7),f=n(8),p=n(152),m=n(19),g=n(63),y=n(18),v=n(25),_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.possibleLeftPairs=[],e.possibleRightPairs=[],e}return _(e,t),e.prototype.decodeRow=function(t,n,r){var i,o,a,s,u=this.decodePair(n,!1,t,r);e.addOrTally(this.possibleLeftPairs,u),n.reverse();var l=this.decodePair(n,!0,t,r);e.addOrTally(this.possibleRightPairs,l),n.reverse();try{for(var d=b(this.possibleLeftPairs),h=d.next();!h.done;h=d.next()){var f=h.value;if(f.getCount()>1)try{for(var p=(a=void 0,b(this.possibleRightPairs)),m=p.next();!m.done;m=p.next()){var g=m.value;if(g.getCount()>1&&e.checkChecksum(f,g))return e.constructResult(f,g)}}catch(y){a={error:y}}finally{try{m&&!m.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}}}catch(v){i={error:v}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}throw new c.a},e.addOrTally=function(t,e){var n,r;if(null!=e){var i=!1;try{for(var o=b(t),a=o.next();!a.done;a=o.next()){var s=a.value;if(s.getValue()===e.getValue()){s.incrementCount(),i=!0;break}}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}i||t.push(e)}},e.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},e.constructResult=function(t,e){for(var n=4537077*t.getValue()+e.getValue(),r=new String(n).toString(),i=new d.a,o=13-r.length;o>0;o--)i.append("0");i.append(r);var a=0;for(o=0;o<13;o++){var s=i.charAt(o).charCodeAt(0)-"0".charCodeAt(0);a+=0===(1&o)?3*s:s}10===(a=10-a%10)&&(a=0),i.append(a.toString());var l=t.getFinderPattern().getResultPoints(),c=e.getFinderPattern().getResultPoints();return new u.a(i.toString(),null,0,[l[0],l[1],c[0],c[1]],h.a.RSS_14,(new Date).getTime())},e.checkChecksum=function(t,e){var n=(t.getChecksumPortion()+16*e.getChecksumPortion())%79,r=9*t.getFinderPattern().getValue()+e.getFinderPattern().getValue();return r>72&&r--,r>8&&r--,n===r},e.prototype.decodePair=function(t,e,n,r){try{var i=this.findFinderPattern(t,e),o=this.parseFoundFinderPattern(t,n,e,i),a=null==r?null:r.get(l.a.NEED_RESULT_POINT_CALLBACK);if(null!=a){var u=(i[0]+i[1])/2;e&&(u=t.getSize()-1-u),a.foundPossibleResultPoint(new f.a(u,n))}var c=this.decodeDataCharacter(t,o,!0),d=this.decodeDataCharacter(t,o,!1);return new s(1597*c.getValue()+d.getValue(),c.getChecksumPortion()+4*d.getChecksumPortion(),o)}catch(h){return null}},e.prototype.decodeDataCharacter=function(t,n,r){for(var i=this.getDataCharacterCounters(),a=0;a<i.length;a++)i[a]=0;if(r)v.a.recordPatternInReverse(t,n.getStartEnd()[0],i);else{v.a.recordPattern(t,n.getStartEnd()[1]+1,i);for(var s=0,u=i.length-1;s<u;s++,u--){var l=i[s];i[s]=i[u],i[u]=l}}var d=r?16:15,h=m.a.sum(new Int32Array(i))/d,f=this.getOddCounts(),p=this.getEvenCounts(),y=this.getOddRoundingErrors(),_=this.getEvenRoundingErrors();for(s=0;s<i.length;s++){var b=i[s]/h,w=Math.floor(b+.5);w<1?w=1:w>8&&(w=8);var k=Math.floor(s/2);0===(1&s)?(f[k]=w,y[k]=b-w):(p[k]=w,_[k]=b-w)}this.adjustOddEvenCounts(r,d);var S=0,E=0;for(s=f.length-1;s>=0;s--)E*=9,E+=f[s],S+=f[s];var C=0,x=0;for(s=p.length-1;s>=0;s--)C*=9,C+=p[s],x+=p[s];var D=E+3*C;if(r){if(0!==(1&S)||S>12||S<4)throw new c.a;var A=(12-S)/2,T=9-(P=e.OUTSIDE_ODD_WIDEST[A]),M=g.a.getRSSvalue(f,P,!1),L=g.a.getRSSvalue(p,T,!0),O=e.OUTSIDE_EVEN_TOTAL_SUBSET[A],I=e.OUTSIDE_GSUM[A];return new o.a(M*O+L+I,D)}if(0!==(1&x)||x>10||x<4)throw new c.a;A=(10-x)/2,T=9-(P=e.INSIDE_ODD_WIDEST[A]),M=g.a.getRSSvalue(f,P,!0),L=g.a.getRSSvalue(p,T,!1);var P,R=e.INSIDE_ODD_TOTAL_SUBSET[A];I=e.INSIDE_GSUM[A];return new o.a(L*R+M+I,D)},e.prototype.findFinderPattern=function(t,e){var n=this.getDecodeFinderCounters();n[0]=0,n[1]=0,n[2]=0,n[3]=0;for(var r=t.getSize(),o=!1,a=0;a<r&&e!==(o=!t.get(a));)a++;for(var s=0,u=a,l=a;l<r;l++)if(t.get(l)!==o)n[s]++;else{if(3===s){if(i.a.isFinderPattern(n))return[u,l];u+=n[0]+n[1],n[0]=n[2],n[1]=n[3],n[2]=0,n[3]=0,s--}else s++;n[s]=1,o=!o}throw new c.a},e.prototype.parseFoundFinderPattern=function(t,n,r,i){for(var o=t.get(i[0]),a=i[0]-1;a>=0&&o!==t.get(a);)a--;a++;var s=i[0]-a,u=this.getDecodeFinderCounters(),l=new Int32Array(u.length);y.a.arraycopy(u,0,l,1,u.length-1),l[0]=s;var c=this.parseFinderValue(l,e.FINDER_PATTERNS),d=a,h=i[1];return r&&(d=t.getSize()-1-d,h=t.getSize()-1-h),new p.a(c,[a,i[1]],d,h,n)},e.prototype.adjustOddEvenCounts=function(t,e){var n=m.a.sum(new Int32Array(this.getOddCounts())),r=m.a.sum(new Int32Array(this.getEvenCounts())),o=!1,a=!1,s=!1,u=!1;t?(n>12?a=!0:n<4&&(o=!0),r>12?u=!0:r<4&&(s=!0)):(n>11?a=!0:n<5&&(o=!0),r>10?u=!0:r<4&&(s=!0));var l=n+r-e,d=(1&n)===(t?1:0),h=1===(1&r);if(1===l)if(d){if(h)throw new c.a;a=!0}else{if(!h)throw new c.a;u=!0}else if(-1===l)if(d){if(h)throw new c.a;o=!0}else{if(!h)throw new c.a;s=!0}else{if(0!==l)throw new c.a;if(d){if(!h)throw new c.a;n<r?(o=!0,u=!0):(a=!0,s=!0)}else if(h)throw new c.a}if(o){if(a)throw new c.a;i.a.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(a&&i.a.decrement(this.getOddCounts(),this.getOddRoundingErrors()),s){if(u)throw new c.a;i.a.increment(this.getEvenCounts(),this.getOddRoundingErrors())}u&&i.a.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},e.OUTSIDE_EVEN_TOTAL_SUBSET=[1,10,34,70,126],e.INSIDE_ODD_TOTAL_SUBSET=[4,20,48,81],e.OUTSIDE_GSUM=[0,161,961,2015,2715],e.INSIDE_GSUM=[0,336,1036,1516],e.OUTSIDE_ODD_WIDEST=[8,6,4,3,1],e.INSIDE_ODD_WIDEST=[2,4,6,8],e.FINDER_PATTERNS=[Int32Array.from([3,8,2,1]),Int32Array.from([3,5,5,1]),Int32Array.from([3,3,7,1]),Int32Array.from([3,1,9,1]),Int32Array.from([2,7,4,1]),Int32Array.from([2,5,6,1]),Int32Array.from([2,3,8,1]),Int32Array.from([1,5,7,1]),Int32Array.from([1,3,9,1])],e}(i.a);e.a=w},function(t,e,n){"use strict";var r,i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.Browser="browser",t.Server="server",t.Native="native"}(r=e.Device||(e.Device={}));var o=r.Browser,a=r.Server,s=r.Native,u=!("undefined"===typeof window||!window.document||!window.document.createElement),l="undefined"!=typeof navigator&&"ReactNative"==navigator.product?s:u?o:a,c={isBrowser:l===o,isServer:l===a,isNative:l===s,device:l,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:l===o&&!!window.addEventListener,canUseViewport:l===o&&!!window.screen},d=function(){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce((function(t,e){return i(i({},t),e)}),{})}((t=c,Object.keys(t).map((function(e){return t[e]})),c));var t},h=d();e.weAreServer=function(){c.isServer=!0,h=d()},e.useSSR=function(){return h},e.default=e.useSSR},function(t,e,n){"use strict";var r=function(){function t(){}return t.floatToIntBits=function(t){return t},t.MAX_VALUE=Number.MAX_SAFE_INTEGER,t}();e.a=r},,,,,,,,,,,,,,function(t,e,n){var r,i;r=[n(13),n(36),n(198),n(199),n(65),n(78),n(171),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(172),n(166),n(43),n(66),n(39),n(122)],i=function(t,e,n,r,i,o,a,s,u,l,c,d,h,f,p,m,g,y){var v=/ jQuery\d+="(?:null|\d+)"/g,_=new RegExp("<(?:"+c+")[\\s/>]","i"),b=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,w=/<script|<style|<link/i,k=/checked\s*(?:[^=]|=\s*.checked.)/i,S=/^true\/(.*)/,E=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,C=d(e).appendChild(e.createElement("div"));function x(e,n){return t.nodeName(e,"table")&&t.nodeName(11!==n.nodeType?n:n.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function D(e){return e.type=(null!==t.find.attr(e,"type"))+"/"+e.type,e}function A(t){var e=S.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function T(e,n){if(1===n.nodeType&&t.hasData(e)){var r,i,o,a=t._data(e),s=t._data(n,a),u=a.events;if(u)for(r in delete s.handle,s.events={},u)for(i=0,o=u[r].length;i<o;i++)t.event.add(n,r,u[r][i]);s.data&&(s.data=t.extend({},s.data))}}function M(e,n){var r,i,o;if(1===n.nodeType){if(r=n.nodeName.toLowerCase(),!g.noCloneEvent&&n[t.expando]){for(i in(o=t._data(n)).events)t.removeEvent(n,i,o.handle);n.removeAttribute(t.expando)}"script"===r&&n.text!==e.text?(D(n).text=e.text,A(n)):"object"===r?(n.parentNode&&(n.outerHTML=e.outerHTML),g.html5Clone&&e.innerHTML&&!t.trim(n.innerHTML)&&(n.innerHTML=e.innerHTML)):"input"===r&&a.test(e.type)?(n.defaultChecked=n.checked=e.checked,n.value!==e.value&&(n.value=e.value)):"option"===r?n.defaultSelected=n.selected=e.defaultSelected:"input"!==r&&"textarea"!==r||(n.defaultValue=e.defaultValue)}}function L(e,r,i,o){r=n.apply([],r);var a,s,l,c,d,h,p=0,y=e.length,v=y-1,_=r[0],b=t.isFunction(_);if(b||y>1&&"string"===typeof _&&!g.checkClone&&k.test(_))return e.each((function(t){var n=e.eq(t);b&&(r[0]=_.call(this,t,n.html())),L(n,r,i,o)}));if(y&&(a=(h=m(r,e[0].ownerDocument,!1,e,o)).firstChild,1===h.childNodes.length&&(h=a),a||o)){for(l=(c=t.map(f(h,"script"),D)).length;p<y;p++)s=h,p!==v&&(s=t.clone(s,!0,!0),l&&t.merge(c,f(s,"script"))),i.call(e[p],s,p);if(l)for(d=c[c.length-1].ownerDocument,t.map(c,A),p=0;p<l;p++)s=c[p],u.test(s.type||"")&&!t._data(s,"globalEval")&&t.contains(d,s)&&(s.src?t._evalUrl&&t._evalUrl(s.src):t.globalEval((s.text||s.textContent||s.innerHTML||"").replace(E,"")));h=a=null}return e}function O(e,n,r){for(var i,o=n?t.filter(n,e):e,a=0;null!=(i=o[a]);a++)r||1!==i.nodeType||t.cleanData(f(i)),i.parentNode&&(r&&t.contains(i.ownerDocument,i)&&p(f(i,"script")),i.parentNode.removeChild(i));return e}return t.extend({htmlPrefilter:function(t){return t.replace(b,"<$1></$2>")},clone:function(e,n,r){var i,o,a,s,u,l=t.contains(e.ownerDocument,e);if(g.html5Clone||t.isXMLDoc(e)||!_.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(C.innerHTML=e.outerHTML,C.removeChild(a=C.firstChild)),(!g.noCloneEvent||!g.noCloneChecked)&&(1===e.nodeType||11===e.nodeType)&&!t.isXMLDoc(e))for(i=f(a),u=f(e),s=0;null!=(o=u[s]);++s)i[s]&&M(o,i[s]);if(n)if(r)for(u=u||f(e),i=i||f(a),s=0;null!=(o=u[s]);s++)T(o,i[s]);else T(e,a);return(i=f(a,"script")).length>0&&p(i,!l&&f(e,"script")),i=u=o=null,a},cleanData:function(e,n){for(var r,o,a,s,u=0,l=t.expando,c=t.cache,d=g.attributes,h=t.event.special;null!=(r=e[u]);u++)if((n||y(r))&&(s=(a=r[l])&&c[a])){if(s.events)for(o in s.events)h[o]?t.event.remove(r,o):t.removeEvent(r,o,s.handle);c[a]&&(delete c[a],d||"undefined"===typeof r.removeAttribute?r[l]=void 0:r.removeAttribute(l),i.push(a))}}}),t.fn.extend({domManip:L,detach:function(t){return O(this,t,!0)},remove:function(t){return O(this,t)},text:function(n){return o(this,(function(n){return void 0===n?t.text(this):this.empty().append((this[0]&&this[0].ownerDocument||e).createTextNode(n))}),null,n,arguments.length)},append:function(){return L(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||x(this,t).appendChild(t)}))},prepend:function(){return L(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=x(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return L(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return L(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var e,n=0;null!=(e=this[n]);n++){for(1===e.nodeType&&t.cleanData(f(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&t.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,n){return e=null!=e&&e,n=null==n?e:n,this.map((function(){return t.clone(this,e,n)}))},html:function(e){return o(this,(function(e){var n=this[0]||{},r=0,i=this.length;if(void 0===e)return 1===n.nodeType?n.innerHTML.replace(v,""):void 0;if("string"===typeof e&&!w.test(e)&&(g.htmlSerialize||!_.test(e))&&(g.leadingWhitespace||!l.test(e))&&!h[(s.exec(e)||["",""])[1].toLowerCase()]){e=t.htmlPrefilter(e);try{for(;r<i;r++)1===(n=this[r]||{}).nodeType&&(t.cleanData(f(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return L(this,arguments,(function(n){var r=this.parentNode;t.inArray(this,e)<0&&(t.cleanData(f(this)),r&&r.replaceChild(n,this))}),e)}}),t.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,n){t.fn[e]=function(e){for(var i,o=0,a=[],s=t(e),u=s.length-1;o<=u;o++)i=o===u?this:this.clone(!0),t(s[o])[n](i),r.apply(a,i.get());return this.pushStack(a)}})),t}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;function o(t){return o="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(t)}r=[n(13),n(36),n(77),n(201),n(162),n(400),n(166),n(43),n(205),n(39)],i=function(t,e,n,r,i,a,s){var u=/^(?:input|select|textarea)$/i,l=/^key/,c=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,d=/^(?:focusinfocus|focusoutblur)$/,h=/^([^.]*)(?:\.(.+)|)/;function f(){return!0}function p(){return!1}function m(){try{return e.activeElement}catch(t){}}function g(e,n,r,i,a,s){var u,l;if("object"===o(n)){for(l in"string"!==typeof r&&(i=i||r,r=void 0),n)g(e,l,r,i,n[l],s);return e}if(null==i&&null==a?(a=r,i=r=void 0):null==a&&("string"===typeof r?(a=i,i=void 0):(a=i,i=r,r=void 0)),!1===a)a=p;else if(!a)return e;return 1===s&&(u=a,a=function(e){return t().off(e),u.apply(this,arguments)},a.guid=u.guid||(u.guid=t.guid++)),e.each((function(){t.event.add(this,n,a,i,r)}))}return t.event={global:{},add:function(e,r,i,o,a){var s,u,l,c,d,f,p,m,g,y,v,_=t._data(e);if(_){for(i.handler&&(i=(c=i).handler,a=c.selector),i.guid||(i.guid=t.guid++),(u=_.events)||(u=_.events={}),(f=_.handle)||(f=_.handle=function(e){return"undefined"===typeof t||e&&t.event.triggered===e.type?void 0:t.event.dispatch.apply(f.elem,arguments)},f.elem=e),l=(r=(r||"").match(n)||[""]).length;l--;)g=v=(s=h.exec(r[l])||[])[1],y=(s[2]||"").split(".").sort(),g&&(d=t.event.special[g]||{},g=(a?d.delegateType:d.bindType)||g,d=t.event.special[g]||{},p=t.extend({type:g,origType:v,data:o,handler:i,guid:i.guid,selector:a,needsContext:a&&t.expr.match.needsContext.test(a),namespace:y.join(".")},c),(m=u[g])||((m=u[g]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,o,y,f)||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),d.add&&(d.add.call(e,p),p.handler.guid||(p.handler.guid=i.guid)),a?m.splice(m.delegateCount++,0,p):m.push(p),t.event.global[g]=!0);e=null}},remove:function(e,r,i,o,a){var s,u,l,c,d,f,p,m,g,y,v,_=t.hasData(e)&&t._data(e);if(_&&(f=_.events)){for(d=(r=(r||"").match(n)||[""]).length;d--;)if(g=v=(l=h.exec(r[d])||[])[1],y=(l[2]||"").split(".").sort(),g){for(p=t.event.special[g]||{},m=f[g=(o?p.delegateType:p.bindType)||g]||[],l=l[2]&&new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"),c=s=m.length;s--;)u=m[s],!a&&v!==u.origType||i&&i.guid!==u.guid||l&&!l.test(u.namespace)||o&&o!==u.selector&&("**"!==o||!u.selector)||(m.splice(s,1),u.selector&&m.delegateCount--,p.remove&&p.remove.call(e,u));c&&!m.length&&(p.teardown&&!1!==p.teardown.call(e,y,_.handle)||t.removeEvent(e,g,_.handle),delete f[g])}else for(g in f)t.event.remove(e,g+r[d],i,o,!0);t.isEmptyObject(f)&&(delete _.handle,t._removeData(e,"events"))}},trigger:function(n,i,a,u){var l,c,h,f,p,m,g,y=[a||e],v=r.call(n,"type")?n.type:n,_=r.call(n,"namespace")?n.namespace.split("."):[];if(h=m=a=a||e,3!==a.nodeType&&8!==a.nodeType&&!d.test(v+t.event.triggered)&&(v.indexOf(".")>-1&&(_=v.split("."),v=_.shift(),_.sort()),c=v.indexOf(":")<0&&"on"+v,(n=n[t.expando]?n:new t.Event(v,"object"===o(n)&&n)).isTrigger=u?2:3,n.namespace=_.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=a),i=null==i?[n]:t.makeArray(i,[n]),p=t.event.special[v]||{},u||!p.trigger||!1!==p.trigger.apply(a,i))){if(!u&&!p.noBubble&&!t.isWindow(a)){for(f=p.delegateType||v,d.test(f+v)||(h=h.parentNode);h;h=h.parentNode)y.push(h),m=h;m===(a.ownerDocument||e)&&y.push(m.defaultView||m.parentWindow||window)}for(g=0;(h=y[g++])&&!n.isPropagationStopped();)n.type=g>1?f:p.bindType||v,(l=(t._data(h,"events")||{})[n.type]&&t._data(h,"handle"))&&l.apply(h,i),(l=c&&h[c])&&l.apply&&s(h)&&(n.result=l.apply(h,i),!1===n.result&&n.preventDefault());if(n.type=v,!u&&!n.isDefaultPrevented()&&(!p._default||!1===p._default.apply(y.pop(),i))&&s(a)&&c&&a[v]&&!t.isWindow(a)){(m=a[c])&&(a[c]=null),t.event.triggered=v;try{a[v]()}catch(b){}t.event.triggered=void 0,m&&(a[c]=m)}return n.result}},dispatch:function(e){e=t.event.fix(e);var n,r,o,a,s,u,l=i.call(arguments),c=(t._data(this,"events")||{})[e.type]||[],d=t.event.special[e.type]||{};if(l[0]=e,e.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,e)){for(u=t.event.handlers.call(this,e,c),n=0;(a=u[n++])&&!e.isPropagationStopped();)for(e.currentTarget=a.elem,r=0;(s=a.handlers[r++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(s.namespace)||(e.handleObj=s,e.data=s.data,void 0!==(o=((t.event.special[s.origType]||{}).handle||s.handler).apply(a.elem,l))&&!1===(e.result=o)&&(e.preventDefault(),e.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],r=0;r<u;r++)void 0===i[o=(a=n[r]).selector+" "]&&(i[o]=a.needsContext?t(o,this).index(l)>-1:t.find(o,this,null,[l]).length),i[o]&&i.push(a);i.length&&s.push({elem:l,handlers:i})}return u<n.length&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(n){if(n[t.expando])return n;var r,i,o,a=n.type,s=n,u=this.fixHooks[a];for(u||(this.fixHooks[a]=u=c.test(a)?this.mouseHooks:l.test(a)?this.keyHooks:{}),o=u.props?this.props.concat(u.props):this.props,n=new t.Event(s),r=o.length;r--;)n[i=o[r]]=s[i];return n.target||(n.target=s.srcElement||e),3===n.target.nodeType&&(n.target=n.target.parentNode),n.metaKey=!!n.metaKey,u.filter?u.filter(n,s):n},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,n){var r,i,o,a=n.button,s=n.fromElement;return null==t.pageX&&null!=n.clientX&&(o=(i=t.target.ownerDocument||e).documentElement,r=i.body,t.pageX=n.clientX+(o&&o.scrollLeft||r&&r.scrollLeft||0)-(o&&o.clientLeft||r&&r.clientLeft||0),t.pageY=n.clientY+(o&&o.scrollTop||r&&r.scrollTop||0)-(o&&o.clientTop||r&&r.clientTop||0)),!t.relatedTarget&&s&&(t.relatedTarget=s===t.target?n.toElement:s),t.which||void 0===a||(t.which=1&a?1:2&a?3:4&a?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==m()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){if(this===m()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(t.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return t.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(e,n,r){var i=t.extend(new t.Event,r,{type:e,isSimulated:!0});t.event.trigger(i,null,n),i.isDefaultPrevented()&&r.preventDefault()}},t.removeEvent=e.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)}:function(t,e,n){var r="on"+e;t.detachEvent&&("undefined"===typeof t[r]&&(t[r]=null),t.detachEvent(r,n))},t.Event=function(e,n){if(!(this instanceof t.Event))return new t.Event(e,n);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?f:p):this.type=e,n&&t.extend(this,n),this.timeStamp=e&&e.timeStamp||t.now(),this[t.expando]=!0},t.Event.prototype={constructor:t.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=f,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=f,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=f,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},t.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,n){t.event.special[e]={delegateType:n,bindType:n,handle:function(e){var r,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||t.contains(this,i))||(e.type=o.origType,r=o.handler.apply(this,arguments),e.type=n),r}}})),a.submit||(t.event.special.submit={setup:function(){if(t.nodeName(this,"form"))return!1;t.event.add(this,"click._submit keypress._submit",(function(e){var n=e.target,r=t.nodeName(n,"input")||t.nodeName(n,"button")?t.prop(n,"form"):void 0;r&&!t._data(r,"submit")&&(t.event.add(r,"submit._submit",(function(t){t._submitBubble=!0})),t._data(r,"submit",!0))}))},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&t.event.simulate("submit",this.parentNode,e))},teardown:function(){if(t.nodeName(this,"form"))return!1;t.event.remove(this,"._submit")}}),a.change||(t.event.special.change={setup:function(){if(u.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(t.event.add(this,"propertychange._change",(function(t){"checked"===t.originalEvent.propertyName&&(this._justChanged=!0)})),t.event.add(this,"click._change",(function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),t.event.simulate("change",this,e)}))),!1;t.event.add(this,"beforeactivate._change",(function(e){var n=e.target;u.test(n.nodeName)&&!t._data(n,"change")&&(t.event.add(n,"change._change",(function(e){!this.parentNode||e.isSimulated||e.isTrigger||t.event.simulate("change",this.parentNode,e)})),t._data(n,"change",!0))}))},handle:function(t){var e=t.target;if(this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type)return t.handleObj.handler.apply(this,arguments)},teardown:function(){return t.event.remove(this,"._change"),!u.test(this.nodeName)}}),a.focusin||t.each({focus:"focusin",blur:"focusout"},(function(e,n){var r=function(e){t.event.simulate(n,e.target,t.event.fix(e))};t.event.special[n]={setup:function(){var i=this.ownerDocument||this,o=t._data(i,n);o||i.addEventListener(e,r,!0),t._data(i,n,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=t._data(i,n)-1;o?t._data(i,n,o):(i.removeEventListener(e,r,!0),t._removeData(i,n))}}})),t.fn.extend({on:function(t,e,n,r){return g(this,t,e,n,r)},one:function(t,e,n,r){return g(this,t,e,n,r,1)},off:function(e,n,r){var i,a;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,t(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"===o(e)){for(a in e)this.off(a,n,e[a]);return this}return!1!==n&&"function"!==typeof n||(r=n,n=void 0),!1===r&&(r=p),this.each((function(){t.event.remove(this,e,r,n)}))},trigger:function(e,n){return this.each((function(){t.event.trigger(e,n,this)}))},triggerHandler:function(e,n){var r=this[0];if(r)return t.event.trigger(e,n,r,!0)}}),t}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(36),n(174),n(51)],void 0===(i=function(t,e,n,r){return function(){var n,i,o,a,s,u,l=e.createElement("div"),c=e.createElement("div");function d(){var t,r,d=e.documentElement;d.appendChild(l),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=o=u=!1,i=s=!0,window.getComputedStyle&&(r=window.getComputedStyle(c),n="1%"!==(r||{}).top,u="2px"===(r||{}).marginLeft,o="4px"===(r||{width:"4px"}).width,c.style.marginRight="50%",i="4px"===(r||{marginRight:"4px"}).marginRight,(t=c.appendChild(e.createElement("div"))).style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",c.style.width="1px",s=!parseFloat((window.getComputedStyle(t)||{}).marginRight),c.removeChild(t)),c.style.display="none",(a=0===c.getClientRects().length)&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate",(t=c.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===t[0].offsetHeight)&&(t[0].style.display="",t[1].style.display="none",a=0===t[0].offsetHeight)),d.removeChild(l)}c.style&&(c.style.cssText="float:left;opacity:.5",r.opacity="0.5"===c.style.opacity,r.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",r.clearCloneStyle="content-box"===c.style.backgroundClip,(l=e.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",l.appendChild(c),r.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,t.extend(r,{reliableHiddenOffsets:function(){return null==n&&d(),a},boxSizingReliable:function(){return null==n&&d(),o},pixelMarginRight:function(){return null==n&&d(),i},pixelPosition:function(){return null==n&&d(),n},reliableMarginRight:function(){return null==n&&d(),s},reliableMarginLeft:function(){return null==n&&d(),u}}))}(),r}.apply(e,r))||(t.exports=i)},function(t,e,n){"use strict";var r=n(24),i=function(){function t(t,e,n){this.codewords=t,this.numcols=e,this.numrows=n,this.bits=new Uint8Array(e*n),r.a.fill(this.bits,2)}return t.prototype.getNumrows=function(){return this.numrows},t.prototype.getNumcols=function(){return this.numcols},t.prototype.getBits=function(){return this.bits},t.prototype.getBit=function(t,e){return 1===this.bits[e*this.numcols+t]},t.prototype.setBit=function(t,e,n){this.bits[e*this.numcols+t]=n?1:0},t.prototype.noBit=function(t,e){return 2===this.bits[e*this.numcols+t]},t.prototype.place=function(){var t=0,e=4,n=0;do{e===this.numrows&&0===n&&this.corner1(t++),e===this.numrows-2&&0===n&&this.numcols%4!==0&&this.corner2(t++),e===this.numrows-2&&0===n&&this.numcols%8===4&&this.corner3(t++),e===this.numrows+4&&2===n&&this.numcols%8===0&&this.corner4(t++);do{e<this.numrows&&n>=0&&this.noBit(n,e)&&this.utah(e,n,t++),e-=2,n+=2}while(e>=0&&n<this.numcols);e++,n+=3;do{e>=0&&n<this.numcols&&this.noBit(n,e)&&this.utah(e,n,t++),e+=2,n-=2}while(e<this.numrows&&n>=0);e+=3,n++}while(e<this.numrows||n<this.numcols);this.noBit(this.numcols-1,this.numrows-1)&&(this.setBit(this.numcols-1,this.numrows-1,!0),this.setBit(this.numcols-2,this.numrows-2,!0))},t.prototype.module=function(t,e,n,r){t<0&&(t+=this.numrows,e+=4-(this.numrows+4)%8),e<0&&(e+=this.numcols,t+=4-(this.numcols+4)%8);var i=this.codewords.charCodeAt(n);i&=1<<8-r,this.setBit(e,t,0!==i)},t.prototype.utah=function(t,e,n){this.module(t-2,e-2,n,1),this.module(t-2,e-1,n,2),this.module(t-1,e-2,n,3),this.module(t-1,e-1,n,4),this.module(t-1,e,n,5),this.module(t,e-2,n,6),this.module(t,e-1,n,7),this.module(t,e,n,8)},t.prototype.corner1=function(t){this.module(this.numrows-1,0,t,1),this.module(this.numrows-1,1,t,2),this.module(this.numrows-1,2,t,3),this.module(0,this.numcols-2,t,4),this.module(0,this.numcols-1,t,5),this.module(1,this.numcols-1,t,6),this.module(2,this.numcols-1,t,7),this.module(3,this.numcols-1,t,8)},t.prototype.corner2=function(t){this.module(this.numrows-3,0,t,1),this.module(this.numrows-2,0,t,2),this.module(this.numrows-1,0,t,3),this.module(0,this.numcols-4,t,4),this.module(0,this.numcols-3,t,5),this.module(0,this.numcols-2,t,6),this.module(0,this.numcols-1,t,7),this.module(1,this.numcols-1,t,8)},t.prototype.corner3=function(t){this.module(this.numrows-3,0,t,1),this.module(this.numrows-2,0,t,2),this.module(this.numrows-1,0,t,3),this.module(0,this.numcols-2,t,4),this.module(0,this.numcols-1,t,5),this.module(1,this.numcols-1,t,6),this.module(2,this.numcols-1,t,7),this.module(3,this.numcols-1,t,8)},t.prototype.corner4=function(t){this.module(this.numrows-1,0,t,1),this.module(this.numrows-1,this.numcols-1,t,2),this.module(0,this.numcols-3,t,3),this.module(0,this.numcols-2,t,4),this.module(0,this.numcols-1,t,5),this.module(1,this.numcols-3,t,6),this.module(1,this.numcols-2,t,7),this.module(1,this.numcols-1,t,8)},t}();e.a=i},function(t,e,n){"use strict";var r=n(9),i=n(2),o=function(){function t(){}return t.encodeECC200=function(t,e){if(t.length!==e.getDataCapacity())throw new Error("The number of codewords does not match the selected symbol");var n=new r.a;n.append(t);var i=e.getInterleavedBlockCount();if(1===i){var o=this.createECCBlock(t,e.getErrorCodewords());n.append(o)}else{for(var a=[],s=[],u=0;u<i;u++)a[u]=e.getDataLengthForInterleavedBlock(u+1),s[u]=e.getErrorLengthForInterleavedBlock(u+1);for(var l=0;l<i;l++){for(var c=new r.a,d=l;d<e.getDataCapacity();d+=i)c.append(t.charAt(d));o=this.createECCBlock(c.toString(),s[l]);for(var h=0,f=l;f<s[l]*i;f+=i)n.setCharAt(e.getDataCapacity()+f,o.charAt(h++))}}return n.toString()},t.createECCBlock=function(t,e){for(var n=-1,r=0;r<i.h.length;r++)if(i.h[r]===e){n=r;break}if(n<0)throw new Error("Illegal number of error correction codewords specified: "+e);var o=i.g[n],a=[];for(r=0;r<e;r++)a[r]=0;for(r=0;r<t.length;r++){for(var s=a[e-1]^t.charAt(r).charCodeAt(0),u=e-1;u>0;u--)0!==s&&0!==o[u]?a[u]=a[u-1]^i.a[(i.n[s]+i.n[o[u]])%255]:a[u]=a[u-1];0!==s&&0!==o[0]?a[0]=i.a[(i.n[s]+i.n[o[0]])%255]:a[0]=0}var l=[];for(r=0;r<e;r++)l[r]=a[e-r-1];return l.map((function(t){return String.fromCharCode(t)})).join("")},t}();e.a=o},function(t,e,n){"use strict";var r=n(6),i=function(){function t(t){if(this.binarizer=t,null===t)throw new r.a("Binarizer must be non-null.")}return t.prototype.getWidth=function(){return this.binarizer.getWidth()},t.prototype.getHeight=function(){return this.binarizer.getHeight()},t.prototype.getBlackRow=function(t,e){return this.binarizer.getBlackRow(t,e)},t.prototype.getBlackMatrix=function(){return null!==this.matrix&&void 0!==this.matrix||(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},t.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},t.prototype.crop=function(e,n,r,i){var o=this.binarizer.getLuminanceSource().crop(e,n,r,i);return new t(this.binarizer.createBinarizer(o))},t.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},t.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new t(this.binarizer.createBinarizer(e))},t.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new t(this.binarizer.createBinarizer(e))},t.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch(t){return""}},t}();e.a=i},function(t,e,n){"use strict";var r,i=n(128),o=n(30),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(e){var n=t.call(this,e)||this;return n.matrix=null,n}return a(e,t),e.prototype.getBlackMatrix=function(){if(null!==this.matrix)return this.matrix;var n=this.getLuminanceSource(),r=n.getWidth(),i=n.getHeight();if(r>=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var a=n.getMatrix(),s=r>>e.BLOCK_SIZE_POWER;0!==(r&e.BLOCK_SIZE_MASK)&&s++;var u=i>>e.BLOCK_SIZE_POWER;0!==(i&e.BLOCK_SIZE_MASK)&&u++;var l=e.calculateBlackPoints(a,s,u,r,i),c=new o.a(r,i);e.calculateThresholdForBlock(a,s,u,r,i,l,c),this.matrix=c}else this.matrix=t.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(t){return new e(t)},e.calculateThresholdForBlock=function(t,n,r,i,o,a,s){for(var u=o-e.BLOCK_SIZE,l=i-e.BLOCK_SIZE,c=0;c<r;c++){var d=c<<e.BLOCK_SIZE_POWER;d>u&&(d=u);for(var h=e.cap(c,2,r-3),f=0;f<n;f++){var p=f<<e.BLOCK_SIZE_POWER;p>l&&(p=l);for(var m=e.cap(f,2,n-3),g=0,y=-2;y<=2;y++){var v=a[h+y];g+=v[m-2]+v[m-1]+v[m]+v[m+1]+v[m+2]}var _=g/25;e.thresholdBlock(t,p,d,_,i,s)}}},e.cap=function(t,e,n){return t<e?e:t>n?n:t},e.thresholdBlock=function(t,n,r,i,o,a){for(var s=0,u=r*o+n;s<e.BLOCK_SIZE;s++,u+=o)for(var l=0;l<e.BLOCK_SIZE;l++)(255&t[u+l])<=i&&a.set(n+l,r+s)},e.calculateBlackPoints=function(t,n,r,i,o){for(var a=o-e.BLOCK_SIZE,s=i-e.BLOCK_SIZE,u=new Array(r),l=0;l<r;l++){u[l]=new Int32Array(n);var c=l<<e.BLOCK_SIZE_POWER;c>a&&(c=a);for(var d=0;d<n;d++){var h=d<<e.BLOCK_SIZE_POWER;h>s&&(h=s);for(var f=0,p=255,m=0,g=0,y=c*i+h;g<e.BLOCK_SIZE;g++,y+=i){for(var v=0;v<e.BLOCK_SIZE;v++){var _=255&t[y+v];f+=_,_<p&&(p=_),_>m&&(m=_)}if(m-p>e.MIN_DYNAMIC_RANGE)for(g++,y+=i;g<e.BLOCK_SIZE;g++,y+=i)for(v=0;v<e.BLOCK_SIZE;v++)f+=255&t[y+v]}var b=f>>2*e.BLOCK_SIZE_POWER;if(m-p<=e.MIN_DYNAMIC_RANGE&&(b=p/2,l>0&&d>0)){var w=(u[l-1][d]+2*u[l][d-1]+u[l-1][d-1])/4;p<w&&(b=w)}u[l][d]=b}}return u},e.BLOCK_SIZE_POWER=3,e.BLOCK_SIZE=1<<e.BLOCK_SIZE_POWER,e.BLOCK_SIZE_MASK=e.BLOCK_SIZE-1,e.MINIMUM_DIMENSION=5*e.BLOCK_SIZE,e.MIN_DYNAMIC_RANGE=24,e}(i.a);e.a=s},function(t,e,n){"use strict";var r,i=n(129),o=n(31),a=n(30),s=n(1),u=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(n){var r=t.call(this,n)||this;return r.luminances=e.EMPTY,r.buckets=new Int32Array(e.LUMINANCE_BUCKETS),r}return u(e,t),e.prototype.getBlackRow=function(t,n){var r=this.getLuminanceSource(),i=r.getWidth();void 0===n||null===n||n.getSize()<i?n=new o.a(i):n.clear(),this.initArrays(i);for(var a=r.getRow(t,this.luminances),s=this.buckets,u=0;u<i;u++)s[(255&a[u])>>e.LUMINANCE_SHIFT]++;var l=e.estimateBlackPoint(s);if(i<3)for(u=0;u<i;u++)(255&a[u])<l&&n.set(u);else{var c=255&a[0],d=255&a[1];for(u=1;u<i-1;u++){var h=255&a[u+1];(4*d-c-h)/2<l&&n.set(u),c=d,d=h}}return n},e.prototype.getBlackMatrix=function(){var t=this.getLuminanceSource(),n=t.getWidth(),r=t.getHeight(),i=new a.a(n,r);this.initArrays(n);for(var o=this.buckets,s=1;s<5;s++)for(var u=Math.floor(r*s/5),l=t.getRow(u,this.luminances),c=Math.floor(4*n/5),d=Math.floor(n/5);d<c;d++){o[(255&l[d])>>e.LUMINANCE_SHIFT]++}var h=e.estimateBlackPoint(o),f=t.getMatrix();for(s=0;s<r;s++){var p=s*n;for(d=0;d<n;d++){(255&f[p+d])<h&&i.set(d,s)}}return i},e.prototype.createBinarizer=function(t){return new e(t)},e.prototype.initArrays=function(t){this.luminances.length<t&&(this.luminances=new Uint8ClampedArray(t));for(var n=this.buckets,r=0;r<e.LUMINANCE_BUCKETS;r++)n[r]=0},e.estimateBlackPoint=function(t){for(var n=t.length,r=0,i=0,o=0,a=0;a<n;a++)t[a]>o&&(i=a,o=t[a]),t[a]>r&&(r=t[a]);var u=0,l=0;for(a=0;a<n;a++){var c=a-i;(p=t[a]*c*c)>l&&(u=a,l=p)}if(i>u){var d=i;i=u,u=d}if(u-i<=n/16)throw new s.a;var h=u-1,f=-1;for(a=u-1;a>i;a--){var p,m=a-i;(p=m*m*(u-a)*(r-t[a]))>f&&(h=a,f=p)}return h<<e.LUMINANCE_SHIFT},e.LUMINANCE_BITS=5,e.LUMINANCE_SHIFT=8-e.LUMINANCE_BITS,e.LUMINANCE_BUCKETS=1<<e.LUMINANCE_BITS,e.EMPTY=Uint8ClampedArray.from([0]),e}(i.a);e.a=l},function(t,e,n){"use strict";var r=function(){function t(t){this.source=t}return t.prototype.getLuminanceSource=function(){return this.source},t.prototype.getWidth=function(){return this.source.getWidth()},t.prototype.getHeight=function(){return this.source.getHeight()},t}();e.a=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r,i=n(52),o=n(47),a=n(6),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(n){var r=t.call(this,n.width,n.height)||this;return r.canvas=n,r.tempCanvasElement=null,r.buffer=e.makeBufferFromCanvasImageData(n),r}return s(e,t),e.makeBufferFromCanvasImageData=function(t){var n=t.getContext("2d").getImageData(0,0,t.width,t.height);return e.toGrayscaleBuffer(n.data,t.width,t.height)},e.toGrayscaleBuffer=function(t,n,r){var i=new Uint8ClampedArray(n*r);if(e.FRAME_INDEX=!e.FRAME_INDEX,e.FRAME_INDEX)for(var o=0,a=0,s=t.length;o<s;o+=4,a++){var u=void 0;if(0===t[o+3])u=255;else u=306*t[o]+601*t[o+1]+117*t[o+2]+512>>10;i[a]=u}else{o=0,a=0;for(var l=t.length;o<l;o+=4,a++){u=void 0;if(0===t[o+3])u=255;else u=306*t[o]+601*t[o+1]+117*t[o+2]+512>>10;i[a]=255-u}}return i},e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new a.a("Requested row is outside the image: "+t);var n=this.getWidth(),r=t*n;return null===e?e=this.buffer.slice(r,r+n):(e.length<n&&(e=new Uint8ClampedArray(n)),e.set(this.buffer.slice(r,r+n))),e},e.prototype.getMatrix=function(){return this.buffer},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(e,n,r,i){return t.prototype.crop.call(this,e,n,r,i),this},e.prototype.isRotateSupported=function(){return!0},e.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},e.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},e.prototype.getTempCanvasElement=function(){if(null===this.tempCanvasElement){var t=this.canvas.ownerDocument.createElement("canvas");t.width=this.canvas.width,t.height=this.canvas.height,this.tempCanvasElement=t}return this.tempCanvasElement},e.prototype.rotate=function(t){var n=this.getTempCanvasElement(),r=n.getContext("2d"),i=t*e.DEGREE_TO_RADIANS,o=this.canvas.width,a=this.canvas.height,s=Math.ceil(Math.abs(Math.cos(i))*o+Math.abs(Math.sin(i))*a),u=Math.ceil(Math.abs(Math.sin(i))*o+Math.abs(Math.cos(i))*a);return n.width=s,n.height=u,r.translate(s/2,u/2),r.rotate(i),r.drawImage(this.canvas,o/-2,a/-2),this.buffer=e.makeBufferFromCanvasImageData(n),this},e.prototype.invert=function(){return new i.a(this)},e.DEGREE_TO_RADIANS=Math.PI/180,e.FRAME_INDEX=!0,e}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(t,e,n){this.deviceId=t,this.label=e,this.kind="videoinput",this.groupId=n||void 0}return t.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},t}()},function(t,e,n){"use strict";var r,i=n(58),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n)||this;return a.compact=r,a.nbDatablocks=i,a.nbLayers=o,a}return o(e,t),e.prototype.getNbLayers=function(){return this.nbLayers},e.prototype.getNbDatablocks=function(){return this.nbDatablocks},e.prototype.isCompact=function(){return this.compact},e}(i.a);e.a=a},function(t,e,n){"use strict";var r,i=n(97),o=n(30),a=n(84),s=n(1),u=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.sampleGrid=function(t,e,n,r,i,o,s,u,l,c,d,h,f,p,m,g,y,v,_){var b=a.a.quadrilateralToQuadrilateral(r,i,o,s,u,l,c,d,h,f,p,m,g,y,v,_);return this.sampleGridWithTransform(t,e,n,b)},e.prototype.sampleGridWithTransform=function(t,e,n,r){if(e<=0||n<=0)throw new s.a;for(var a=new o.a(e,n),u=new Float32Array(2*e),l=0;l<n;l++){for(var c=u.length,d=l+.5,h=0;h<c;h+=2)u[h]=h/2+.5,u[h+1]=d;r.transformPoints(u),i.a.checkAndNudgePoints(t,u);try{for(h=0;h<c;h+=2)t.get(Math.floor(u[h]),Math.floor(u[h+1]))&&a.set(h/2,l)}catch(f){throw new s.a}}return a},e}(i.a);e.a=l},function(t,e,n){"use strict";var r,i=n(7),o=n(1),a=n(25),s=n(23),u=n(8),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.CODA_BAR_CHAR_SET={nnnnnww:"0",nnnnwwn:"1",nnnwnnw:"2",wwnnnnn:"3",nnwnnwn:"4",wnnnnwn:"5",nwnnnnw:"6",nwnnwnn:"7",nwwnnnn:"8",wnnwnnn:"9",nnnwwnn:"-",nnwwnnn:"$",wnnnwnw:":",wnwnnnw:"/",wnwnwnn:".",nnwwwww:"+",nnwwnwn:"A",nwnwnnw:"B",nnnwnww:"C",nnnwwwn:"D"},e}return l(e,t),e.prototype.decodeRow=function(t,e,n){var r=this.getValidRowData(e);if(!r)throw new o.a;var a=this.codaBarDecodeRow(r.row);if(!a)throw new o.a;return new s.a(a,null,0,[new u.a(r.left,t),new u.a(r.right,t)],i.a.CODABAR,(new Date).getTime())},e.prototype.getValidRowData=function(t){var e=t.toArray(),n=e.indexOf(!0);if(-1===n)return null;var r=e.lastIndexOf(!0);if(r<=n)return null;for(var i=[],o=(e=e.slice(n,r+1))[0],a=1,s=1;s<e.length;s++)e[s]===o?a++:(o=e[s],i.push(a),a=1);return i.push(a),i.length<23&&(i.length+1)%8!==0?null:{row:i,left:n,right:r}},e.prototype.codaBarDecodeRow=function(t){for(var e=[],n=Math.ceil(t.reduce((function(t,e){return(t+e)/2}),0));t.length>0;){var r=t.splice(0,8).splice(0,7).map((function(t){return t<n?"n":"w"})).join("");if(void 0===this.CODA_BAR_CHAR_SET[r])return null;e.push(this.CODA_BAR_CHAR_SET[r])}var i=e.join("");return this.validCodaBarString(i)?i:null},e.prototype.validCodaBarString=function(t){return/^[A-D].{1,}[A-D]$/.test(t)},e}(a.a);e.a=c},function(t,e,n){"use strict";var r,i=n(48),o=n(86),a=n(9),s=n(37),u=n(14),l=n(5),c=n(38);!function(t){t[t.PAD_ENCODE=0]="PAD_ENCODE",t[t.ASCII_ENCODE=1]="ASCII_ENCODE",t[t.C40_ENCODE=2]="C40_ENCODE",t[t.TEXT_ENCODE=3]="TEXT_ENCODE",t[t.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",t[t.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",t[t.BASE256_ENCODE=6]="BASE256_ENCODE"}(r||(r={}));var d=function(){function t(){}return t.decode=function(t){var e=new o.a(t),n=new a.a,s=new a.a,u=new Array,c=r.ASCII_ENCODE;do{if(c===r.ASCII_ENCODE)c=this.decodeAsciiSegment(e,n,s);else{switch(c){case r.C40_ENCODE:this.decodeC40Segment(e,n);break;case r.TEXT_ENCODE:this.decodeTextSegment(e,n);break;case r.ANSIX12_ENCODE:this.decodeAnsiX12Segment(e,n);break;case r.EDIFACT_ENCODE:this.decodeEdifactSegment(e,n);break;case r.BASE256_ENCODE:this.decodeBase256Segment(e,n,u);break;default:throw new l.a}c=r.ASCII_ENCODE}}while(c!==r.PAD_ENCODE&&e.available()>0);return s.length()>0&&n.append(s.toString()),new i.a(t,n.toString(),0===u.length?null:u,null)},t.decodeAsciiSegment=function(t,e,n){var i=!1;do{var o=t.readBits(8);if(0===o)throw new l.a;if(o<=128)return i&&(o+=128),e.append(String.fromCharCode(o-1)),r.ASCII_ENCODE;if(129===o)return r.PAD_ENCODE;if(o<=229){var a=o-130;a<10&&e.append("0"),e.append(""+a)}else switch(o){case 230:return r.C40_ENCODE;case 231:return r.BASE256_ENCODE;case 232:e.append(String.fromCharCode(29));break;case 233:case 234:case 241:break;case 235:i=!0;break;case 236:e.append("[)>\x1e05\x1d"),n.insert(0,"\x1e\x04");break;case 237:e.append("[)>\x1e06\x1d"),n.insert(0,"\x1e\x04");break;case 238:return r.ANSIX12_ENCODE;case 239:return r.TEXT_ENCODE;case 240:return r.EDIFACT_ENCODE;default:if(254!==o||0!==t.available())throw new l.a}}while(t.available()>0);return r.ASCII_ENCODE},t.decodeC40Segment=function(t,e){var n=!1,r=[],i=0;do{if(8===t.available())return;var o=t.readBits(8);if(254===o)return;this.parseTwoBytes(o,t.readBits(8),r);for(var a=0;a<3;a++){var s=r[a];switch(i){case 0:if(s<3)i=s+1;else{if(!(s<this.C40_BASIC_SET_CHARS.length))throw new l.a;var u=this.C40_BASIC_SET_CHARS[s];n?(e.append(String.fromCharCode(u.charCodeAt(0)+128)),n=!1):e.append(u)}break;case 1:n?(e.append(String.fromCharCode(s+128)),n=!1):e.append(String.fromCharCode(s)),i=0;break;case 2:if(s<this.C40_SHIFT2_SET_CHARS.length){u=this.C40_SHIFT2_SET_CHARS[s];n?(e.append(String.fromCharCode(u.charCodeAt(0)+128)),n=!1):e.append(u)}else switch(s){case 27:e.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new l.a}i=0;break;case 3:n?(e.append(String.fromCharCode(s+224)),n=!1):e.append(String.fromCharCode(s+96)),i=0;break;default:throw new l.a}}}while(t.available()>0)},t.decodeTextSegment=function(t,e){var n=!1,r=[],i=0;do{if(8===t.available())return;var o=t.readBits(8);if(254===o)return;this.parseTwoBytes(o,t.readBits(8),r);for(var a=0;a<3;a++){var s=r[a];switch(i){case 0:if(s<3)i=s+1;else{if(!(s<this.TEXT_BASIC_SET_CHARS.length))throw new l.a;var u=this.TEXT_BASIC_SET_CHARS[s];n?(e.append(String.fromCharCode(u.charCodeAt(0)+128)),n=!1):e.append(u)}break;case 1:n?(e.append(String.fromCharCode(s+128)),n=!1):e.append(String.fromCharCode(s)),i=0;break;case 2:if(s<this.TEXT_SHIFT2_SET_CHARS.length){u=this.TEXT_SHIFT2_SET_CHARS[s];n?(e.append(String.fromCharCode(u.charCodeAt(0)+128)),n=!1):e.append(u)}else switch(s){case 27:e.append(String.fromCharCode(29));break;case 30:n=!0;break;default:throw new l.a}i=0;break;case 3:if(!(s<this.TEXT_SHIFT3_SET_CHARS.length))throw new l.a;u=this.TEXT_SHIFT3_SET_CHARS[s];n?(e.append(String.fromCharCode(u.charCodeAt(0)+128)),n=!1):e.append(u),i=0;break;default:throw new l.a}}}while(t.available()>0)},t.decodeAnsiX12Segment=function(t,e){var n=[];do{if(8===t.available())return;var r=t.readBits(8);if(254===r)return;this.parseTwoBytes(r,t.readBits(8),n);for(var i=0;i<3;i++){var o=n[i];switch(o){case 0:e.append("\r");break;case 1:e.append("*");break;case 2:e.append(">");break;case 3:e.append(" ");break;default:if(o<14)e.append(String.fromCharCode(o+44));else{if(!(o<40))throw new l.a;e.append(String.fromCharCode(o+51))}}}}while(t.available()>0)},t.parseTwoBytes=function(t,e,n){var r=(t<<8)+e-1,i=Math.floor(r/1600);n[0]=i,r-=1600*i,i=Math.floor(r/40),n[1]=i,n[2]=r-40*i},t.decodeEdifactSegment=function(t,e){do{if(t.available()<=16)return;for(var n=0;n<4;n++){var r=t.readBits(6);if(31===r){var i=8-t.getBitOffset();return void(8!==i&&t.readBits(i))}0===(32&r)&&(r|=64),e.append(String.fromCharCode(r))}}while(t.available()>0)},t.decodeBase256Segment=function(t,e,n){var r,i=1+t.getByteOffset(),o=this.unrandomize255State(t.readBits(8),i++);if((r=0===o?t.available()/8|0:o<250?o:250*(o-249)+this.unrandomize255State(t.readBits(8),i++))<0)throw new l.a;for(var a=new Uint8Array(r),d=0;d<r;d++){if(t.available()<8)throw new l.a;a[d]=this.unrandomize255State(t.readBits(8),i++)}n.push(a);try{e.append(s.a.decode(a,u.a.ISO88591))}catch(h){throw new c.a("Platform does not support required encoding: "+h.message)}},t.unrandomize255State=function(t,e){var n=t-(149*e%255+1);return n>=0?n:n+256},t.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],t.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],t.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],t.TEXT_SHIFT2_SET_CHARS=t.C40_SHIFT2_SET_CHARS,t.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],t}();e.a=d},function(t,e,n){"use strict";var r=n(21),i=n(7),o=n(72),a=n(67),s=n(54),u=n(73),l=n(1),c=n(71),d=n(103),h=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},f=function(){function t(){}return t.prototype.decode=function(t,e){return this.setHints(e),this.decodeInternal(t)},t.prototype.decodeWithState=function(t){return null!==this.readers&&void 0!==this.readers||this.setHints(null),this.decodeInternal(t)},t.prototype.setHints=function(t){this.hints=t;var e=null!==t&&void 0!==t&&void 0!==t.get(r.a.TRY_HARDER),n=null===t||void 0===t?null:t.get(r.a.POSSIBLE_FORMATS),l=new Array;if(null!==n&&void 0!==n){var d=n.some((function(t){return t===i.a.UPC_A||t===i.a.UPC_E||t===i.a.EAN_13||t===i.a.EAN_8||t===i.a.CODABAR||t===i.a.CODE_39||t===i.a.CODE_93||t===i.a.CODE_128||t===i.a.ITF||t===i.a.RSS_14||t===i.a.RSS_EXPANDED}));d&&!e&&l.push(new s.a(t)),n.includes(i.a.QR_CODE)&&l.push(new o.a),n.includes(i.a.DATA_MATRIX)&&l.push(new u.a),n.includes(i.a.AZTEC)&&l.push(new a.a),n.includes(i.a.PDF_417)&&l.push(new c.a),d&&e&&l.push(new s.a(t))}0===l.length&&(e||l.push(new s.a(t)),l.push(new o.a),l.push(new u.a),l.push(new a.a),l.push(new c.a),e&&l.push(new s.a(t))),this.readers=l},t.prototype.reset=function(){var t,e;if(null!==this.readers)try{for(var n=h(this.readers),r=n.next();!r.done;r=n.next()){r.value.reset()}}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}},t.prototype.decodeInternal=function(t){var e,n;if(null===this.readers)throw new d.a("No readers where selected, nothing can be read.");try{for(var r=h(this.readers),i=r.next();!i.done;i=r.next()){var o=i.value;try{return o.decode(t,this.hints)}catch(a){if(a instanceof d.a)continue}}}catch(s){e={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}throw new l.a("No MultiFormat Readers were able to detect the code.")},t}();e.a=f},function(t,e,n){"use strict";var r=n(86),i=n(32),o=n(48),a=n(14),s=n(5),u=n(9),l=n(37),c=n(28),d=function(){function t(){}return t.decode=function(e,n,a,l){var d=new r.a(e),h=new u.a,f=new Array,p=-1,m=-1;try{var g=null,y=!1,v=void 0;do{if(d.available()<4)v=c.a.TERMINATOR;else{var _=d.readBits(4);v=c.a.forBits(_)}switch(v){case c.a.TERMINATOR:break;case c.a.FNC1_FIRST_POSITION:case c.a.FNC1_SECOND_POSITION:y=!0;break;case c.a.STRUCTURED_APPEND:if(d.available()<16)throw new s.a;p=d.readBits(8),m=d.readBits(8);break;case c.a.ECI:var b=t.parseECIValue(d);if(null===(g=i.a.getCharacterSetECIByValue(b)))throw new s.a;break;case c.a.HANZI:var w=d.readBits(4),k=d.readBits(v.getCharacterCountBits(n));w===t.GB2312_SUBSET&&t.decodeHanziSegment(d,h,k);break;default:var S=d.readBits(v.getCharacterCountBits(n));switch(v){case c.a.NUMERIC:t.decodeNumericSegment(d,h,S);break;case c.a.ALPHANUMERIC:t.decodeAlphanumericSegment(d,h,S,y);break;case c.a.BYTE:t.decodeByteSegment(d,h,S,g,f,l);break;case c.a.KANJI:t.decodeKanjiSegment(d,h,S);break;default:throw new s.a}}}while(v!==c.a.TERMINATOR)}catch(E){throw new s.a}return new o.a(e,h.toString(),0===f.length?null:f,null===a?null:a.toString(),p,m)},t.decodeHanziSegment=function(t,e,n){if(13*n>t.available())throw new s.a;for(var r=new Uint8Array(2*n),i=0;n>0;){var o=t.readBits(13),u=o/96<<8&4294967295|o%96;u+=u<959?41377:42657,r[i]=u>>8&255,r[i+1]=255&u,i+=2,n--}try{e.append(l.a.decode(r,a.a.GB2312))}catch(c){throw new s.a(c)}},t.decodeKanjiSegment=function(t,e,n){if(13*n>t.available())throw new s.a;for(var r=new Uint8Array(2*n),i=0;n>0;){var o=t.readBits(13),u=o/192<<8&4294967295|o%192;u+=u<7936?33088:49472,r[i]=u>>8,r[i+1]=u,i+=2,n--}try{e.append(l.a.decode(r,a.a.SHIFT_JIS))}catch(c){throw new s.a(c)}},t.decodeByteSegment=function(t,e,n,r,i,o){if(8*n>t.available())throw new s.a;for(var u,c=new Uint8Array(n),d=0;d<n;d++)c[d]=t.readBits(8);u=null===r?a.a.guessEncoding(c,o):r.getName();try{e.append(l.a.decode(c,u))}catch(h){throw new s.a(h)}i.push(c)},t.toAlphaNumericChar=function(e){if(e>=t.ALPHANUMERIC_CHARS.length)throw new s.a;return t.ALPHANUMERIC_CHARS[e]},t.decodeAlphanumericSegment=function(e,n,r,i){for(var o=n.length();r>1;){if(e.available()<11)throw new s.a;var a=e.readBits(11);n.append(t.toAlphaNumericChar(Math.floor(a/45))),n.append(t.toAlphaNumericChar(a%45)),r-=2}if(1===r){if(e.available()<6)throw new s.a;n.append(t.toAlphaNumericChar(e.readBits(6)))}if(i)for(var u=o;u<n.length();u++)"%"===n.charAt(u)&&(u<n.length()-1&&"%"===n.charAt(u+1)?n.deleteCharAt(u+1):n.setCharAt(u,String.fromCharCode(29)))},t.decodeNumericSegment=function(e,n,r){for(;r>=3;){if(e.available()<10)throw new s.a;var i=e.readBits(10);if(i>=1e3)throw new s.a;n.append(t.toAlphaNumericChar(Math.floor(i/100))),n.append(t.toAlphaNumericChar(Math.floor(i/10)%10)),n.append(t.toAlphaNumericChar(i%10)),r-=3}if(2===r){if(e.available()<7)throw new s.a;var o=e.readBits(7);if(o>=100)throw new s.a;n.append(t.toAlphaNumericChar(Math.floor(o/10))),n.append(t.toAlphaNumericChar(o%10))}else if(1===r){if(e.available()<4)throw new s.a;var a=e.readBits(4);if(a>=10)throw new s.a;n.append(t.toAlphaNumericChar(a))}},t.parseECIValue=function(t){var e=t.readBits(8);if(0===(128&e))return 127&e;if(128===(192&e))return(63&e)<<8&4294967295|t.readBits(8);if(192===(224&e))return(31&e)<<16&4294967295|t.readBits(16);throw new s.a},t.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",t.GB2312_SUBSET=1,t}();e.a=d},function(t,e,n){"use strict";(function(t){var r,i,o=n(5),a=n(32),s=n(48),u=n(139),l=n(24),c=n(9),d=n(12),h=n(176),f=n(270),p=n(37);function m(){if("undefined"!==typeof window)return window.BigInt||null;if("undefined"!==typeof t)return t.BigInt||null;if("undefined"!==typeof self)return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}function g(t){if("undefined"===typeof i&&(i=m()),null===i)throw new Error("BigInt is not supported!");return i(t)}!function(t){t[t.ALPHA=0]="ALPHA",t[t.LOWER=1]="LOWER",t[t.MIXED=2]="MIXED",t[t.PUNCT=3]="PUNCT",t[t.ALPHA_SHIFT=4]="ALPHA_SHIFT",t[t.PUNCT_SHIFT=5]="PUNCT_SHIFT"}(r||(r={}));var y=function(){function t(){}return t.decode=function(e,n){var r=new c.a(""),i=a.a.ISO8859_1;r.enableDecoding(i);for(var l=1,d=e[l++],h=new u.a;l<e[0];){switch(d){case t.TEXT_COMPACTION_MODE_LATCH:l=t.textCompaction(e,l,r);break;case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:l=t.byteCompaction(d,e,i,l,r);break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:r.append(e[l++]);break;case t.NUMERIC_COMPACTION_MODE_LATCH:l=t.numericCompaction(e,l,r);break;case t.ECI_CHARSET:a.a.getCharacterSetECIByValue(e[l++]);break;case t.ECI_GENERAL_PURPOSE:l+=2;break;case t.ECI_USER_DEFINED:l++;break;case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:l=t.decodeMacroBlock(e,l,h);break;case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:throw new o.a;default:l--,l=t.textCompaction(e,l,r)}if(!(l<e.length))throw o.a.getFormatInstance();d=e[l++]}if(0===r.length())throw o.a.getFormatInstance();var f=new s.a(null,r.toString(),null,n);return f.setOther(h),f},t.decodeMacroBlock=function(e,n,r){if(n+t.NUMBER_OF_SEQUENCE_CODEWORDS>e[0])throw o.a.getFormatInstance();for(var i=new Int32Array(t.NUMBER_OF_SEQUENCE_CODEWORDS),a=0;a<t.NUMBER_OF_SEQUENCE_CODEWORDS;a++,n++)i[a]=e[n];r.setSegmentIndex(d.a.parseInt(t.decodeBase900toBase10(i,t.NUMBER_OF_SEQUENCE_CODEWORDS)));var s=new c.a;n=t.textCompaction(e,n,s),r.setFileId(s.toString());var u=-1;for(e[n]===t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD&&(u=n+1);n<e[0];)switch(e[n]){case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:switch(e[++n]){case t.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME:var f=new c.a;n=t.textCompaction(e,n+1,f),r.setFileName(f.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_SENDER:var p=new c.a;n=t.textCompaction(e,n+1,p),r.setSender(p.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE:var m=new c.a;n=t.textCompaction(e,n+1,m),r.setAddressee(m.toString());break;case t.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT:var g=new c.a;n=t.numericCompaction(e,n+1,g),r.setSegmentCount(d.a.parseInt(g.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP:var y=new c.a;n=t.numericCompaction(e,n+1,y),r.setTimestamp(h.a.parseLong(y.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM:var v=new c.a;n=t.numericCompaction(e,n+1,v),r.setChecksum(d.a.parseInt(v.toString()));break;case t.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE:var _=new c.a;n=t.numericCompaction(e,n+1,_),r.setFileSize(h.a.parseLong(_.toString()));break;default:throw o.a.getFormatInstance()}break;case t.MACRO_PDF417_TERMINATOR:n++,r.setLastSegment(!0);break;default:throw o.a.getFormatInstance()}if(-1!==u){var b=n-u;r.isLastSegment()&&b--,r.setOptionalData(l.a.copyOfRange(e,u,u+b))}return n},t.textCompaction=function(e,n,r){for(var i=new Int32Array(2*(e[0]-n)),o=new Int32Array(2*(e[0]-n)),a=0,s=!1;n<e[0]&&!s;){var u=e[n++];if(u<t.TEXT_COMPACTION_MODE_LATCH)i[a]=u/30,i[a+1]=u%30,a+=2;else switch(u){case t.TEXT_COMPACTION_MODE_LATCH:i[a++]=t.TEXT_COMPACTION_MODE_LATCH;break;case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:n--,s=!0;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:i[a]=t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE,u=e[n++],o[a]=u,a++}}return t.decodeTextCompaction(i,o,a,r),n},t.decodeTextCompaction=function(e,n,i,o){for(var a=r.ALPHA,s=r.ALPHA,u=0;u<i;){var l=e[u],c="";switch(a){case r.ALPHA:if(l<26)c=String.fromCharCode(65+l);else switch(l){case 26:c=" ";break;case t.LL:a=r.LOWER;break;case t.ML:a=r.MIXED;break;case t.PS:s=a,a=r.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[u]);break;case t.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.LOWER:if(l<26)c=String.fromCharCode(97+l);else switch(l){case 26:c=" ";break;case t.AS:s=a,a=r.ALPHA_SHIFT;break;case t.ML:a=r.MIXED;break;case t.PS:s=a,a=r.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[u]);break;case t.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.MIXED:if(l<t.PL)c=t.MIXED_CHARS[l];else switch(l){case t.PL:a=r.PUNCT;break;case 26:c=" ";break;case t.LL:a=r.LOWER;break;case t.AL:a=r.ALPHA;break;case t.PS:s=a,a=r.PUNCT_SHIFT;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[u]);break;case t.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.PUNCT:if(l<t.PAL)c=t.PUNCT_CHARS[l];else switch(l){case t.PAL:a=r.ALPHA;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[u]);break;case t.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.ALPHA_SHIFT:if(a=s,l<26)c=String.fromCharCode(65+l);else switch(l){case 26:c=" ";break;case t.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}break;case r.PUNCT_SHIFT:if(a=s,l<t.PAL)c=t.PUNCT_CHARS[l];else switch(l){case t.PAL:a=r.ALPHA;break;case t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE:o.append(n[u]);break;case t.TEXT_COMPACTION_MODE_LATCH:a=r.ALPHA}}""!==c&&o.append(c),u++}},t.byteCompaction=function(e,n,r,i,o){var a=new f.a,s=0,u=0,l=!1;switch(e){case t.BYTE_COMPACTION_MODE_LATCH:for(var c=new Int32Array(6),d=n[i++];i<n[0]&&!l;)switch(c[s++]=d,u=900*u+d,d=n[i++]){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:i--,l=!0;break;default:if(s%5===0&&s>0){for(var h=0;h<6;++h)a.write(Number(g(u)>>g(8*(5-h))));u=0,s=0}}i===n[0]&&d<t.TEXT_COMPACTION_MODE_LATCH&&(c[s++]=d);for(var m=0;m<s;m++)a.write(c[m]);break;case t.BYTE_COMPACTION_MODE_LATCH_6:for(;i<n[0]&&!l;){var y=n[i++];if(y<t.TEXT_COMPACTION_MODE_LATCH)s++,u=900*u+y;else switch(y){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.NUMERIC_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:i--,l=!0}if(s%5===0&&s>0){for(h=0;h<6;++h)a.write(Number(g(u)>>g(8*(5-h))));u=0,s=0}}}return o.append(p.a.decode(a.toByteArray(),r)),i},t.numericCompaction=function(e,n,r){for(var i=0,o=!1,a=new Int32Array(t.MAX_NUMERIC_CODEWORDS);n<e[0]&&!o;){var s=e[n++];if(n===e[0]&&(o=!0),s<t.TEXT_COMPACTION_MODE_LATCH)a[i]=s,i++;else switch(s){case t.TEXT_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH:case t.BYTE_COMPACTION_MODE_LATCH_6:case t.BEGIN_MACRO_PDF417_CONTROL_BLOCK:case t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD:case t.MACRO_PDF417_TERMINATOR:n--,o=!0}(i%t.MAX_NUMERIC_CODEWORDS===0||s===t.NUMERIC_COMPACTION_MODE_LATCH||o)&&i>0&&(r.append(t.decodeBase900toBase10(a,i)),i=0)}return n},t.decodeBase900toBase10=function(e,n){for(var r=g(0),i=0;i<n;i++)r+=t.EXP900[n-i-1]*g(e[i]);var a=r.toString();if("1"!==a.charAt(0))throw new o.a;return a.substring(1)},t.TEXT_COMPACTION_MODE_LATCH=900,t.BYTE_COMPACTION_MODE_LATCH=901,t.NUMERIC_COMPACTION_MODE_LATCH=902,t.BYTE_COMPACTION_MODE_LATCH_6=924,t.ECI_USER_DEFINED=925,t.ECI_GENERAL_PURPOSE=926,t.ECI_CHARSET=927,t.BEGIN_MACRO_PDF417_CONTROL_BLOCK=928,t.BEGIN_MACRO_PDF417_OPTIONAL_FIELD=923,t.MACRO_PDF417_TERMINATOR=922,t.MODE_SHIFT_TO_BYTE_COMPACTION_MODE=913,t.MAX_NUMERIC_CODEWORDS=15,t.MACRO_PDF417_OPTIONAL_FIELD_FILE_NAME=0,t.MACRO_PDF417_OPTIONAL_FIELD_SEGMENT_COUNT=1,t.MACRO_PDF417_OPTIONAL_FIELD_TIME_STAMP=2,t.MACRO_PDF417_OPTIONAL_FIELD_SENDER=3,t.MACRO_PDF417_OPTIONAL_FIELD_ADDRESSEE=4,t.MACRO_PDF417_OPTIONAL_FIELD_FILE_SIZE=5,t.MACRO_PDF417_OPTIONAL_FIELD_CHECKSUM=6,t.PL=25,t.LL=27,t.AS=27,t.ML=28,t.AL=28,t.PS=29,t.PAL=29,t.PUNCT_CHARS=";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",t.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",t.EXP900=m()?function(){var t=[];t[0]=g(1);var e=g(900);t[1]=e;for(var n=2;n<16;n++)t[n]=t[n-1]*e;return t}():[],t.NUMBER_OF_SEQUENCE_CODEWORDS=2,t}();e.a=y}).call(this,n(271))},function(t,e,n){"use strict";var r=function(){function t(){this.segmentCount=-1,this.fileSize=-1,this.timestamp=-1,this.checksum=-1}return t.prototype.getSegmentIndex=function(){return this.segmentIndex},t.prototype.setSegmentIndex=function(t){this.segmentIndex=t},t.prototype.getFileId=function(){return this.fileId},t.prototype.setFileId=function(t){this.fileId=t},t.prototype.getOptionalData=function(){return this.optionalData},t.prototype.setOptionalData=function(t){this.optionalData=t},t.prototype.isLastSegment=function(){return this.lastSegment},t.prototype.setLastSegment=function(t){this.lastSegment=t},t.prototype.getSegmentCount=function(){return this.segmentCount},t.prototype.setSegmentCount=function(t){this.segmentCount=t},t.prototype.getSender=function(){return this.sender||null},t.prototype.setSender=function(t){this.sender=t},t.prototype.getAddressee=function(){return this.addressee||null},t.prototype.setAddressee=function(t){this.addressee=t},t.prototype.getFileName=function(){return this.fileName},t.prototype.setFileName=function(t){this.fileName=t},t.prototype.getFileSize=function(){return this.fileSize},t.prototype.setFileSize=function(t){this.fileSize=t},t.prototype.getChecksum=function(){return this.checksum},t.prototype.setChecksum=function(t){this.checksum=t},t.prototype.getTimestamp=function(){return this.timestamp},t.prototype.setTimestamp=function(t){this.timestamp=t},t}();e.a=r},function(t,e,n){"use strict";var r=n(7),i=n(22),o=n(30),a=n(50),s=n(91),u=n(6),l=n(38),c=function(){function t(){}return t.prototype.encode=function(e,n,o,l,c){if(0===e.length)throw new u.a("Found empty contents");if(n!==r.a.QR_CODE)throw new u.a("Can only encode QR_CODE, but got "+n);if(o<0||l<0)throw new u.a("Requested dimensions are too small: "+o+"x"+l);var d=a.a.L,h=t.QUIET_ZONE_SIZE;null!==c&&(void 0!==c.get(i.a.ERROR_CORRECTION)&&(d=a.a.fromString(c.get(i.a.ERROR_CORRECTION).toString())),void 0!==c.get(i.a.MARGIN)&&(h=Number.parseInt(c.get(i.a.MARGIN).toString(),10)));var f=s.a.encode(e,d,c);return t.renderResult(f,o,l,h)},t.renderResult=function(t,e,n,r){var i=t.getMatrix();if(null===i)throw new l.a;for(var a=i.getWidth(),s=i.getHeight(),u=a+2*r,c=s+2*r,d=Math.max(e,u),h=Math.max(n,c),f=Math.min(Math.floor(d/u),Math.floor(h/c)),p=Math.floor((d-a*f)/2),m=Math.floor((h-s*f)/2),g=new o.a(d,h),y=0,v=m;y<s;y++,v+=f)for(var _=0,b=p;_<a;_++,b+=f)1===i.get(_,y)&&g.setRegion(b,v,f,f);return g},t.QUIET_ZONE_SIZE=4,t}();e.a=c},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2),i=n(17),o=function(){function t(){}return t.prototype.getEncodingMode=function(){return r.b},t.prototype.encode=function(t){if(i.a.determineConsecutiveDigitCount(t.getMessage(),t.pos)>=2)t.writeCodeword(this.encodeASCIIDigits(t.getMessage().charCodeAt(t.pos),t.getMessage().charCodeAt(t.pos+1))),t.pos+=2;else{var e=t.getCurrentChar(),n=i.a.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(n!==this.getEncodingMode())switch(n){case r.c:return t.writeCodeword(r.j),void t.signalEncoderChange(r.c);case r.d:return t.writeCodeword(r.k),void t.signalEncoderChange(r.d);case r.w:t.writeCodeword(r.i),t.signalEncoderChange(r.w);break;case r.u:t.writeCodeword(r.m),t.signalEncoderChange(r.u);break;case r.f:t.writeCodeword(r.l),t.signalEncoderChange(r.f);break;default:throw new Error("Illegal mode: "+n)}else i.a.isExtendedASCII(e)?(t.writeCodeword(r.v),t.writeCodeword(e-128+1),t.pos++):(t.writeCodeword(e+1),t.pos++)}},t.prototype.encodeASCIIDigits=function(t,e){if(i.a.isDigit(t)&&i.a.isDigit(e))return 10*(t-48)+(e-48)+130;throw new Error("not digits: "+t+e)},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(14),i=n(9),o=n(17),a=n(2),s=function(){function t(){}return t.prototype.getEncodingMode=function(){return a.c},t.prototype.encode=function(t){var e=new i.a;for(e.append(0);t.hasMoreCharacters();){var n=t.getCurrentChar();if(e.append(n),t.pos++,o.a.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(a.b);break}}var s=e.length()-1,u=t.getCodewordCount()+s+1;t.updateSymbolInfo(u);var l=t.getSymbolInfo().getDataCapacity()-u>0;if(t.hasMoreCharacters()||l)if(s<=249)e.setCharAt(0,r.a.getCharAt(s));else{if(!(s<=1555))throw new Error("Message length not in valid ranges: "+s);e.setCharAt(0,r.a.getCharAt(Math.floor(s/250)+249)),e.insert(1,r.a.getCharAt(s%250))}var c=0;for(n=e.length();c<n;c++)t.writeCodeword(this.randomize255State(e.charAt(c).charCodeAt(0),t.getCodewordCount()+1))},t.prototype.randomize255State=function(t,e){var n=t+(149*e%255+1);return n<=255?n:n-256},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(14),i=n(9),o=n(2),a=n(17),s=function(){function t(){}return t.prototype.getEncodingMode=function(){return o.f},t.prototype.encode=function(t){for(var e=new i.a;t.hasMoreCharacters();){var n=t.getCurrentChar();if(this.encodeChar(n,e),t.pos++,e.length()>=4){t.writeCodewords(this.encodeToCodewords(e.toString()));var s=e.toString().substring(4);if(e.setLengthToZero(),e.append(s),a.a.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(o.b);break}}}e.append(r.a.getCharAt(31)),this.handleEOD(t,e)},t.prototype.handleEOD=function(t,e){try{var n=e.length();if(0===n)return;if(1===n){t.updateSymbolInfo();var r=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount(),i=t.getRemainingCharacters();if(i>r&&(t.updateSymbolInfo(t.getCodewordCount()+1),r=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount()),i<=r&&r<=2)return}if(n>4)throw new Error("Count must not exceed 4");var a=n-1,s=this.encodeToCodewords(e.toString()),u=!t.hasMoreCharacters()&&a<=2;if(a<=2)t.updateSymbolInfo(t.getCodewordCount()+a),(r=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount())>=3&&(u=!1,t.updateSymbolInfo(t.getCodewordCount()+s.length));u?(t.resetSymbolInfo(),t.pos-=a):t.writeCodewords(s)}finally{t.signalEncoderChange(o.b)}},t.prototype.encodeChar=function(t,e){t>=" ".charCodeAt(0)&&t<="?".charCodeAt(0)?e.append(t):t>="@".charCodeAt(0)&&t<="^".charCodeAt(0)?e.append(r.a.getCharAt(t-64)):a.a.illegalCharacter(r.a.getCharAt(t))},t.prototype.encodeToCodewords=function(t){var e=t.length;if(0===e)throw new Error("StringBuilder must not be empty");var n=(t.charAt(0).charCodeAt(0)<<18)+((e>=2?t.charAt(1).charCodeAt(0):0)<<12)+((e>=3?t.charAt(2).charCodeAt(0):0)<<6)+(e>=4?t.charAt(3).charCodeAt(0):0),r=n>>16&255,o=n>>8&255,a=255&n,s=new i.a;return s.append(r),e>=2&&s.append(o),e>=3&&s.append(a),s.toString()},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(9),i=n(82),o=function(){function t(t){this.msg=t,this.pos=0,this.skipAtEnd=0;for(var e=t.split("").map((function(t){return t.charCodeAt(0)})),n=new r.a,i=0,o=e.length;i<o;i++){var a=String.fromCharCode(255&e[i]);if("?"===a&&"?"!==t.charAt(i))throw new Error("Message contains characters outside ISO-8859-1 encoding.");n.append(a)}this.msg=n.toString(),this.shape=0,this.codewords=new r.a,this.newEncoding=-1}return t.prototype.setSymbolShape=function(t){this.shape=t},t.prototype.setSizeConstraints=function(t,e){this.minSize=t,this.maxSize=e},t.prototype.getMessage=function(){return this.msg},t.prototype.setSkipAtEnd=function(t){this.skipAtEnd=t},t.prototype.getCurrentChar=function(){return this.msg.charCodeAt(this.pos)},t.prototype.getCurrent=function(){return this.msg.charCodeAt(this.pos)},t.prototype.getCodewords=function(){return this.codewords},t.prototype.writeCodewords=function(t){this.codewords.append(t)},t.prototype.writeCodeword=function(t){this.codewords.append(t)},t.prototype.getCodewordCount=function(){return this.codewords.length()},t.prototype.getNewEncoding=function(){return this.newEncoding},t.prototype.signalEncoderChange=function(t){this.newEncoding=t},t.prototype.resetEncoderSignal=function(){this.newEncoding=-1},t.prototype.hasMoreCharacters=function(){return this.pos<this.getTotalMessageCharCount()},t.prototype.getTotalMessageCharCount=function(){return this.msg.length-this.skipAtEnd},t.prototype.getRemainingCharacters=function(){return this.getTotalMessageCharCount()-this.pos},t.prototype.getSymbolInfo=function(){return this.symbolInfo},t.prototype.updateSymbolInfo=function(t){void 0===t&&(t=this.getCodewordCount()),(null==this.symbolInfo||t>this.symbolInfo.getDataCapacity())&&(this.symbolInfo=i.a.lookup(t,this.shape,this.minSize,this.maxSize,!0))},t.prototype.resetSymbolInfo=function(){this.symbolInfo=null},t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r,i=n(14),o=n(9),a=n(61),s=n(17),u=n(2),l=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.getEncodingMode=function(){return u.w},e.prototype.encode=function(t){for(var e=new o.a;t.hasMoreCharacters();){var n=t.getCurrentChar();if(t.pos++,this.encodeChar(n,e),e.length()%3===0)if(this.writeNextTriplet(t,e),s.a.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(u.b);break}}this.handleEOD(t,e)},e.prototype.encodeChar=function(t,e){switch(t){case 13:e.append(0);break;case"*".charCodeAt(0):e.append(1);break;case">".charCodeAt(0):e.append(2);break;case" ".charCodeAt(0):e.append(3);break;default:t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)?e.append(t-48+4):t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)?e.append(t-65+14):s.a.illegalCharacter(i.a.getCharAt(t))}return 1},e.prototype.handleEOD=function(t,e){t.updateSymbolInfo();var n=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount(),r=e.length();t.pos-=r,(t.getRemainingCharacters()>1||n>1||t.getRemainingCharacters()!==n)&&t.writeCodeword(u.x),t.getNewEncoding()<0&&t.signalEncoderChange(u.b)},e}(a.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r,i=n(61),o=n(2),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.getEncodingMode=function(){return o.u},e.prototype.encodeChar=function(t,e){if(t===" ".charCodeAt(0))return e.append(3),1;if(t>="0".charCodeAt(0)&&t<="9".charCodeAt(0))return e.append(t-48+4),1;if(t>="a".charCodeAt(0)&&t<="z".charCodeAt(0))return e.append(t-97+14),1;if(t<" ".charCodeAt(0))return e.append(0),e.append(t),2;if(t<="/".charCodeAt(0))return e.append(1),e.append(t-33),2;if(t<="@".charCodeAt(0))return e.append(1),e.append(t-58+15),2;if(t>="[".charCodeAt(0)&&t<="_".charCodeAt(0))return e.append(1),e.append(t-91+22),2;if(t==="`".charCodeAt(0))return e.append(2),e.append(0),2;if(t<="Z".charCodeAt(0))return e.append(2),e.append(t-65+1),2;if(t<=127)return e.append(2),e.append(t-123+27),2;e.append("1\x1e");var n=2;return n+=this.encodeChar(t-128,e)},e}(i.a)},function(t,e,n){"use strict";var r=function(){function t(){}return t.prototype.isCompact=function(){return this.compact},t.prototype.setCompact=function(t){this.compact=t},t.prototype.getSize=function(){return this.size},t.prototype.setSize=function(t){this.size=t},t.prototype.getLayers=function(){return this.layers},t.prototype.setLayers=function(t){this.layers=t},t.prototype.getCodeWords=function(){return this.codeWords},t.prototype.setCodeWords=function(t){this.codeWords=t},t.prototype.getMatrix=function(){return this.matrix},t.prototype.setMatrix=function(t){this.matrix=t},t}();e.a=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return T}));var r,i=n(38),o=n(94),a=n(85),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.encodeCompressedGtin=function(t,e){t.append("(01)");var n=t.length();t.append("9"),this.encodeCompressedGtinWithoutAI(t,e,n)},e.prototype.encodeCompressedGtinWithoutAI=function(t,n,r){for(var i=0;i<4;++i){var o=this.getGeneralDecoder().extractNumericValueFromBitArray(n+10*i,10);o/100===0&&t.append("0"),o/10===0&&t.append("0"),t.append(o)}e.appendCheckDigit(t,r)},e.appendCheckDigit=function(t,e){for(var n=0,r=0;r<13;r++){var i=t.charAt(r+e).charCodeAt(0)-"0".charCodeAt(0);n+=0===(1&r)?3*i:i}10===(n=10-n%10)&&(n=0),t.append(n)},e.GTIN_SIZE=40,e}(a.a),l=n(9),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(t){function e(e){return t.call(this,e)||this}return c(e,t),e.prototype.parseInformation=function(){var t=new l.a;t.append("(01)");var n=t.length(),r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE,4);return t.append(r),this.encodeCompressedGtinWithoutAI(t,e.HEADER_SIZE+4,n),this.getGeneralDecoder().decodeAllCodes(t,e.HEADER_SIZE+44)},e.HEADER_SIZE=4,e}(u),h=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(t){function e(e){return t.call(this,e)||this}return h(e,t),e.prototype.parseInformation=function(){var t=new l.a;return this.getGeneralDecoder().decodeAllCodes(t,e.HEADER_SIZE)},e.HEADER_SIZE=5,e}(a.a),p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.encodeCompressedWeight=function(t,e,n){var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e,n);this.addWeightCode(t,r);for(var i=this.checkWeight(r),o=1e5,a=0;a<5;++a)i/o===0&&t.append("0"),o/=10;t.append(i)},e}(u),g=n(1),y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(t){function e(e){return t.call(this,e)||this}return y(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()!==e.HEADER_SIZE+m.GTIN_SIZE+e.WEIGHT_SIZE)throw new g.a;var t=new l.a;return this.encodeCompressedGtin(t,e.HEADER_SIZE),this.encodeCompressedWeight(t,e.HEADER_SIZE+m.GTIN_SIZE,e.WEIGHT_SIZE),t.toString()},e.HEADER_SIZE=5,e.WEIGHT_SIZE=15,e}(m),_=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(t){function e(e){return t.call(this,e)||this}return _(e,t),e.prototype.addWeightCode=function(t,e){t.append("(3103)")},e.prototype.checkWeight=function(t){return t},e}(v),w=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(t){function e(e){return t.call(this,e)||this}return w(e,t),e.prototype.addWeightCode=function(t,e){e<1e4?t.append("(3202)"):t.append("(3203)")},e.prototype.checkWeight=function(t){return t<1e4?t:t-1e4},e}(v),S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=function(t){function e(e){return t.call(this,e)||this}return S(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+u.GTIN_SIZE)throw new g.a;var t=new l.a;this.encodeCompressedGtin(t,e.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+u.GTIN_SIZE,e.LAST_DIGIT_SIZE);t.append("(392"),t.append(n),t.append(")");var r=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+u.GTIN_SIZE+e.LAST_DIGIT_SIZE,null);return t.append(r.getNewString()),t.toString()},e.HEADER_SIZE=8,e.LAST_DIGIT_SIZE=2,e}(u),C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),x=function(t){function e(e){return t.call(this,e)||this}return C(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()<e.HEADER_SIZE+u.GTIN_SIZE)throw new g.a;var t=new l.a;this.encodeCompressedGtin(t,e.HEADER_SIZE);var n=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+u.GTIN_SIZE,e.LAST_DIGIT_SIZE);t.append("(393"),t.append(n),t.append(")");var r=this.getGeneralDecoder().extractNumericValueFromBitArray(e.HEADER_SIZE+u.GTIN_SIZE+e.LAST_DIGIT_SIZE,e.FIRST_THREE_DIGITS_SIZE);r/100===0&&t.append("0"),r/10===0&&t.append("0"),t.append(r);var i=this.getGeneralDecoder().decodeGeneralPurposeField(e.HEADER_SIZE+u.GTIN_SIZE+e.LAST_DIGIT_SIZE+e.FIRST_THREE_DIGITS_SIZE,null);return t.append(i.getNewString()),t.toString()},e.HEADER_SIZE=8,e.LAST_DIGIT_SIZE=2,e.FIRST_THREE_DIGITS_SIZE=10,e}(u),D=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.dateCode=r,i.firstAIdigits=n,i}return D(e,t),e.prototype.parseInformation=function(){if(this.getInformation().getSize()!==e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE+e.DATE_SIZE)throw new g.a;var t=new l.a;return this.encodeCompressedGtin(t,e.HEADER_SIZE),this.encodeCompressedWeight(t,e.HEADER_SIZE+e.GTIN_SIZE,e.WEIGHT_SIZE),this.encodeCompressedDate(t,e.HEADER_SIZE+e.GTIN_SIZE+e.WEIGHT_SIZE),t.toString()},e.prototype.encodeCompressedDate=function(t,n){var r=this.getGeneralDecoder().extractNumericValueFromBitArray(n,e.DATE_SIZE);if(38400!==r){t.append("("),t.append(this.dateCode),t.append(")");var i=r%32,o=(r/=32)%12+1,a=r/=12;a/10===0&&t.append("0"),t.append(a),o/10===0&&t.append("0"),t.append(o),i/10===0&&t.append("0"),t.append(i)}},e.prototype.addWeightCode=function(t,e){t.append("("),t.append(this.firstAIdigits),t.append(e/1e5),t.append(")")},e.prototype.checkWeight=function(t){return t%1e5},e.HEADER_SIZE=8,e.WEIGHT_SIZE=20,e.DATE_SIZE=16,e}(m);function T(t){try{if(t.get(1))return new d(t);if(!t.get(2))return new f(t);switch(o.a.extractNumericValueFromBitArray(t,1,4)){case 4:return new b(t);case 5:return new k(t)}switch(o.a.extractNumericValueFromBitArray(t,1,5)){case 12:return new E(t);case 13:return new x(t)}switch(o.a.extractNumericValueFromBitArray(t,1,7)){case 56:return new A(t,"310","11");case 57:return new A(t,"320","11");case 58:return new A(t,"310","13");case 59:return new A(t,"320","13");case 60:return new A(t,"310","15");case 61:return new A(t,"320","15");case 62:return new A(t,"310","17");case 63:return new A(t,"320","17")}}catch(e){throw console.log(e),new i.a("unknown decoder: "+t)}}},function(t,e,n){"use strict";var r,i=function(){function t(){}return t.singletonList=function(t){return[t]},t.min=function(t,e){return t.sort(e)[0]},t}(),o=n(31),a=function(){function t(t){this.previous=t}return t.prototype.getPrevious=function(){return this.previous},t}(),s=n(12),u=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.value=n,i.bitCount=r,i}return u(e,t),e.prototype.appendTo=function(t,e){t.appendBits(this.value,this.bitCount)},e.prototype.add=function(t,n){return new e(this,t,n)},e.prototype.addBinaryShift=function(t,n){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new e(this,t,n)},e.prototype.toString=function(){var t=this.value&(1<<this.bitCount)-1;return t|=1<<this.bitCount,"<"+s.a.toBinaryString(t|1<<this.bitCount).substring(1)+">"},e}(a),c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),d=function(t){function e(e,n,r){var i=t.call(this,e,0,0)||this;return i.binaryShiftStart=n,i.binaryShiftByteCount=r,i}return c(e,t),e.prototype.appendTo=function(t,e){for(var n=0;n<this.binaryShiftByteCount;n++)(0===n||31===n&&this.binaryShiftByteCount<=62)&&(t.appendBits(31,5),this.binaryShiftByteCount>62?t.appendBits(this.binaryShiftByteCount-31,16):0===n?t.appendBits(Math.min(this.binaryShiftByteCount,31),5):t.appendBits(this.binaryShiftByteCount-31,5)),t.appendBits(e[this.binaryShiftStart+n],8)},e.prototype.addBinaryShift=function(t,n){return new e(this,t,n)},e.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},e}(l);function h(t,e,n){return new l(t,e,n)}var f=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],p=new l(null,0,0),m=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])],g=n(24),y=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var v=function(t){var e,n;try{for(var r=y(t),i=r.next();!i.done;i=r.next()){var o=i.value;g.a.fill(o,-1)}}catch(a){e={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}return t[0][4]=0,t[1][4]=0,t[1][0]=28,t[3][4]=0,t[2][4]=0,t[2][0]=15,t}(g.a.createInt32Array(6,6)),_=n(14),b=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},w=function(){function t(t,e,n,r){this.token=t,this.mode=e,this.binaryShiftByteCount=n,this.bitCount=r}return t.prototype.getMode=function(){return this.mode},t.prototype.getToken=function(){return this.token},t.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},t.prototype.getBitCount=function(){return this.bitCount},t.prototype.latchAndAppend=function(e,n){var r=this.bitCount,i=this.token;if(e!==this.mode){var o=m[this.mode][e];i=h(i,65535&o,o>>16),r+=o>>16}var a=2===e?4:5;return new t(i=h(i,n,a),e,0,r+a)},t.prototype.shiftAndAppend=function(e,n){var r=this.token,i=2===this.mode?4:5;return r=h(r,v[this.mode][e],i),new t(r=h(r,n,5),this.mode,0,this.bitCount+i+5)},t.prototype.addBinaryShiftChar=function(e){var n=this.token,r=this.mode,i=this.bitCount;if(4===this.mode||2===this.mode){var o=m[r][0];n=h(n,65535&o,o>>16),i+=o>>16,r=0}var a=0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8,s=new t(n,r,this.binaryShiftByteCount+1,i+a);return 2078===s.binaryShiftByteCount&&(s=s.endBinaryShift(e+1)),s},t.prototype.endBinaryShift=function(e){if(0===this.binaryShiftByteCount)return this;var n=this.token;return new t(n=function(t,e,n){return new d(t,e,n)}(n,e-this.binaryShiftByteCount,this.binaryShiftByteCount),this.mode,0,this.bitCount)},t.prototype.isBetterThanOrEqualTo=function(e){var n=this.bitCount+(m[this.mode][e.mode]>>16);return this.binaryShiftByteCount<e.binaryShiftByteCount?n+=t.calculateBinaryShiftCost(e)-t.calculateBinaryShiftCost(this):this.binaryShiftByteCount>e.binaryShiftByteCount&&e.binaryShiftByteCount>0&&(n+=10),n<=e.bitCount},t.prototype.toBitArray=function(t){for(var e,n,r=[],i=this.endBinaryShift(t.length).token;null!==i;i=i.getPrevious())r.unshift(i);var a=new o.a;try{for(var s=b(r),u=s.next();!u.done;u=s.next()){u.value.appendTo(a,t)}}catch(l){e={error:l}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return a},t.prototype.toString=function(){return _.a.format("%s bits=%d bytes=%d",f[this.mode],this.bitCount,this.binaryShiftByteCount)},t.calculateBinaryShiftCost=function(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0},t.INITIAL_STATE=new t(p,0,0,0),t}();var k=function(t){var e=_.a.getCharCode(" "),n=_.a.getCharCode("."),r=_.a.getCharCode(",");t[0][e]=1;for(var i=_.a.getCharCode("Z"),o=_.a.getCharCode("A"),a=o;a<=i;a++)t[0][a]=a-o+2;t[1][e]=1;var s=_.a.getCharCode("z"),u=_.a.getCharCode("a");for(a=u;a<=s;a++)t[1][a]=a-u+2;t[2][e]=1;var l=_.a.getCharCode("9"),c=_.a.getCharCode("0");for(a=c;a<=l;a++)t[2][a]=a-c+2;t[2][r]=12,t[2][n]=13;for(var d=["\0"," ","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\v","\f","\r","\x1b","\x1c","\x1d","\x1e","\x1f","@","\\","^","_","`","|","~","\x7f"],h=0;h<d.length;h++)t[3][_.a.getCharCode(d[h])]=h;var f=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"];for(h=0;h<f.length;h++)_.a.getCharCode(f[h])>0&&(t[4][_.a.getCharCode(f[h])]=h);return t}(g.a.createInt32Array(5,256)),S=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},E=function(){function t(t){this.text=t}return t.prototype.encode=function(){for(var e=_.a.getCharCode(" "),n=_.a.getCharCode("\n"),r=i.singletonList(w.INITIAL_STATE),o=0;o<this.text.length;o++){var a=void 0,s=o+1<this.text.length?this.text[o+1]:0;switch(this.text[o]){case _.a.getCharCode("\r"):a=s===n?2:0;break;case _.a.getCharCode("."):a=s===e?3:0;break;case _.a.getCharCode(","):a=s===e?4:0;break;case _.a.getCharCode(":"):a=s===e?5:0;break;default:a=0}a>0?(r=t.updateStateListForPair(r,o,a),o++):r=this.updateStateListForChar(r,o)}return i.min(r,(function(t,e){return t.getBitCount()-e.getBitCount()})).toBitArray(this.text)},t.prototype.updateStateListForChar=function(e,n){var r,i,o=[];try{for(var a=S(e),s=a.next();!s.done;s=a.next()){var u=s.value;this.updateStateForChar(u,n,o)}}catch(l){r={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return t.simplifyStates(o)},t.prototype.updateStateForChar=function(t,e,n){for(var r=255&this.text[e],i=k[t.getMode()][r]>0,o=null,a=0;a<=4;a++){var s=k[a][r];if(s>0){if(null==o&&(o=t.endBinaryShift(e)),!i||a===t.getMode()||2===a){var u=o.latchAndAppend(a,s);n.push(u)}if(!i&&v[t.getMode()][a]>=0){var l=o.shiftAndAppend(a,s);n.push(l)}}}if(t.getBinaryShiftByteCount()>0||0===k[t.getMode()][r]){var c=t.addBinaryShiftChar(e);n.push(c)}},t.updateStateListForPair=function(t,e,n){var r,i,o=[];try{for(var a=S(t),s=a.next();!s.done;s=a.next()){var u=s.value;this.updateStateForPair(u,e,n,o)}}catch(l){r={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return this.simplifyStates(o)},t.updateStateForPair=function(t,e,n,r){var i=t.endBinaryShift(e);if(r.push(i.latchAndAppend(4,n)),4!==t.getMode()&&r.push(i.shiftAndAppend(4,n)),3===n||4===n){var o=i.latchAndAppend(2,16-n).latchAndAppend(2,1);r.push(o)}if(t.getBinaryShiftByteCount()>0){var a=t.addBinaryShiftChar(e).addBinaryShiftChar(e+1);r.push(a)}},t.simplifyStates=function(t){var e,n,r,i,o=[];try{for(var a=S(t),s=a.next();!s.done;s=a.next()){var u=s.value,l=!0,c=function(t){if(t.isBetterThanOrEqualTo(u))return l=!1,"break";u.isBetterThanOrEqualTo(t)&&(o=o.filter((function(e){return e!==t})))};try{for(var d=(r=void 0,S(o)),h=d.next();!h.done;h=d.next()){if("break"===c(h.value))break}}catch(f){r={error:f}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}l&&o.push(u)}}catch(p){e={error:p}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return o},t}();e.a=E},function(t,e,n){"use strict";var r,i=n(7),o=n(19),a=n(1),s=n(23),u=n(18),l=n(55),c=n(75),d=n(152),h=n(63),f=n(31),p=function(){function t(){}return t.buildBitArray=function(t){var e=2*t.length-1;null==t[t.length-1].getRightChar()&&(e-=1);for(var n=12*e,r=new f.a(n),i=0,o=t[0].getRightChar().getValue(),a=11;a>=0;--a)0!==(o&1<<a)&&r.set(i),i++;for(a=1;a<t.length;++a){for(var s=t[a],u=s.getLeftChar().getValue(),l=11;l>=0;--l)0!==(u&1<<l)&&r.set(i),i++;if(null!==s.getRightChar()){var c=s.getRightChar().getValue();for(l=11;l>=0;--l)0!==(c&1<<l)&&r.set(i),i++}}return r},t}(),m=n(148),g=function(){function t(t,e,n,r){this.leftchar=t,this.rightchar=e,this.finderpattern=n,this.maybeLast=r}return t.prototype.mayBeLast=function(){return this.maybeLast},t.prototype.getLeftChar=function(){return this.leftchar},t.prototype.getRightChar=function(){return this.rightchar},t.prototype.getFinderPattern=function(){return this.finderpattern},t.prototype.mustBeLast=function(){return null==this.rightchar},t.prototype.toString=function(){return"[ "+this.leftchar+", "+this.rightchar+" : "+(null==this.finderpattern?"null":this.finderpattern.getValue())+" ]"},t.equals=function(e,n){return e instanceof t&&(t.equalsOrNull(e.leftchar,n.leftchar)&&t.equalsOrNull(e.rightchar,n.rightchar)&&t.equalsOrNull(e.finderpattern,n.finderpattern))},t.equalsOrNull=function(e,n){return null===e?null===n:t.equals(e,n)},t.prototype.hashCode=function(){return this.leftchar.getValue()^this.rightchar.getValue()^this.finderpattern.getValue()},t}(),y=function(){function t(t,e,n){this.pairs=t,this.rowNumber=e,this.wasReversed=n}return t.prototype.getPairs=function(){return this.pairs},t.prototype.getRowNumber=function(){return this.rowNumber},t.prototype.isReversed=function(){return this.wasReversed},t.prototype.isEquivalent=function(t){return this.checkEqualitity(this,t)},t.prototype.toString=function(){return"{ "+this.pairs+" }"},t.prototype.equals=function(e,n){return e instanceof t&&(this.checkEqualitity(e,n)&&e.wasReversed===n.wasReversed)},t.prototype.checkEqualitity=function(t,e){var n;if(t&&e)return t.forEach((function(t,r){e.forEach((function(e){t.getLeftChar().getValue()===e.getLeftChar().getValue()&&t.getRightChar().getValue()===e.getRightChar().getValue()&&t.getFinderPatter().getValue()===e.getFinderPatter().getValue()&&(n=!0)}))})),n},t}(),v=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),_=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},b=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.pairs=new Array(e.MAX_PAIRS),n.rows=new Array,n.startEnd=[2],n}return v(e,t),e.prototype.decodeRow=function(t,n,r){this.pairs.length=0,this.startFromEven=!1;try{return e.constructResult(this.decodeRow2pairs(t,n))}catch(i){}return this.pairs.length=0,this.startFromEven=!0,e.constructResult(this.decodeRow2pairs(t,n))},e.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},e.prototype.decodeRow2pairs=function(t,e){for(var n,r=!1;!r;)try{this.pairs.push(this.retrieveNextPair(e,this.pairs,t))}catch(o){if(o instanceof a.a){if(!this.pairs.length)throw new a.a;r=!0}}if(this.checkChecksum())return this.pairs;if(n=!!this.rows.length,this.storeRow(t,!1),n){var i=this.checkRowsBoolean(!1);if(null!=i)return i;if(null!=(i=this.checkRowsBoolean(!0)))return i}throw new a.a},e.prototype.checkRowsBoolean=function(t){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,t&&(this.rows=this.rows.reverse());var e=null;try{e=this.checkRows(new Array,0)}catch(n){console.log(n)}return t&&(this.rows=this.rows.reverse()),e},e.prototype.checkRows=function(t,n){for(var r,i,o=n;o<this.rows.length;o++){var s=this.rows[o];this.pairs.length=0;try{for(var u=(r=void 0,_(t)),l=u.next();!l.done;l=u.next()){var c=l.value;this.pairs.push(c.getPairs())}}catch(h){r={error:h}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}if(this.pairs.push(s.getPairs()),e.isValidSequence(this.pairs)){if(this.checkChecksum())return this.pairs;var d=new Array(t);d.push(s);try{return this.checkRows(d,o+1)}catch(f){console.log(f)}}}throw new a.a},e.isValidSequence=function(t){var n,r;try{for(var i=_(e.FINDER_PATTERN_SEQUENCES),o=i.next();!o.done;o=i.next()){var a=o.value;if(!(t.length>a.length)){for(var s=!0,u=0;u<t.length;u++)if(t[u].getFinderPattern().getValue()!==a[u]){s=!1;break}if(s)return!0}}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1},e.prototype.storeRow=function(t,n){for(var r=0,i=!1,o=!1;r<this.rows.length;){var a=this.rows[r];if(a.getRowNumber()>t){o=a.isEquivalent(this.pairs);break}i=a.isEquivalent(this.pairs),r++}o||i||e.isPartialRow(this.pairs,this.rows)||(this.rows.push(r,new y(this.pairs,t,n)),this.removePartialRows(this.pairs,this.rows))},e.prototype.removePartialRows=function(t,e){var n,r,i,o,a,s;try{for(var u=_(e),l=u.next();!l.done;l=u.next()){var c=l.value;if(c.getPairs().length!==t.length){try{for(var d=(i=void 0,_(c.getPairs())),h=d.next();!h.done;h=d.next()){var f=h.value,p=!1;try{for(var m=(a=void 0,_(t)),y=m.next();!y.done;y=m.next()){var v=y.value;if(g.equals(f,v)){p=!0;break}}}catch(b){a={error:b}}finally{try{y&&!y.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}p||!1}}catch(w){i={error:w}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}}catch(k){n={error:k}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}},e.isPartialRow=function(t,e){var n,r,i,o,a,s;try{for(var u=_(e),l=u.next();!l.done;l=u.next()){var c=l.value,d=!0;try{for(var h=(i=void 0,_(t)),f=h.next();!f.done;f=h.next()){var p=f.value,m=!1;try{for(var g=(a=void 0,_(c.getPairs())),y=g.next();!y.done;y=g.next()){var v=y.value;if(p.equals(v)){m=!0;break}}}catch(b){a={error:b}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}if(!m){d=!1;break}}}catch(w){i={error:w}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}if(d)return!0}}catch(k){n={error:k}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return!1},e.prototype.getRows=function(){return this.rows},e.constructResult=function(t){var e=p.buildBitArray(t),n=Object(m.a)(e).parseInformation(),r=t[0].getFinderPattern().getResultPoints(),o=t[t.length-1].getFinderPattern().getResultPoints(),a=[r[0],r[1],o[0],o[1]];return new s.a(n,null,null,a,i.a.RSS_EXPANDED,null)},e.prototype.checkChecksum=function(){var t=this.pairs.get(0),e=t.getLeftChar(),n=t.getRightChar();if(null===n)return!1;for(var r=n.getChecksumPortion(),i=2,o=1;o<this.pairs.size();++o){var a=this.pairs.get(o);r+=a.getLeftChar().getChecksumPortion(),i++;var s=a.getRightChar();null!=s&&(r+=s.getChecksumPortion(),i++)}return 211*(i-4)+(r%=211)===e.getValue()},e.getNextSecondBar=function(t,e){var n;return t.get(e)?(n=t.getNextUnset(e),n=t.getNextSet(n)):(n=t.getNextSet(e),n=t.getNextUnset(n)),n},e.prototype.retrieveNextPair=function(t,n,r){var i,o=n.length%2===0;this.startFromEven&&(o=!o);var s=!0,u=-1;do{this.findNextPair(t,n,u),null===(i=this.parseFoundFinderPattern(t,r,o))?u=e.getNextSecondBar(t,this.startEnd[0]):s=!1}while(s);var l,c=this.decodeDataCharacter(t,i,o,!0);if(!this.isEmptyPair(n)&&n[n.length-1].mustBeLast())throw new a.a;try{l=this.decodeDataCharacter(t,i,o,!1)}catch(d){l=null,console.log(d)}return new g(c,l,i,!0)},e.prototype.isEmptyPair=function(t){return 0===t.length},e.prototype.findNextPair=function(t,n,r){var i=this.getDecodeFinderCounters();i[0]=0,i[1]=0,i[2]=0,i[3]=0;var o,s=t.getSize();if(r>=0)o=r;else if(this.isEmptyPair(n))o=0;else{o=n[n.length-1].getFinderPattern().getStartEnd()[1]}var u=n.length%2!==0;this.startFromEven&&(u=!u);for(var l=!1;o<s&&(l=!t.get(o));)o++;for(var c=0,d=o,h=o;h<s;h++)if(t.get(h)!==l)i[c]++;else{if(3===c){if(u&&e.reverseCounters(i),e.isFinderPattern(i))return this.startEnd[0]=d,void(this.startEnd[1]=h);u&&e.reverseCounters(i),d+=i[0]+i[1],i[0]=i[2],i[1]=i[3],i[2]=0,i[3]=0,c--}else c++;i[c]=1,l=!l}throw new a.a},e.reverseCounters=function(t){for(var e=t.length,n=0;n<e/2;++n){var r=t[n];t[n]=t[e-n-1],t[e-n-1]=r}},e.prototype.parseFoundFinderPattern=function(t,n,r){var i,o,a;if(r){for(var s=this.startEnd[0]-1;s>=0&&!t.get(s);)s--;s++,i=this.startEnd[0]-s,o=s,a=this.startEnd[1]}else o=this.startEnd[0],i=(a=t.getNextUnset(this.startEnd[1]+1))-this.startEnd[1];var l,c=this.getDecodeFinderCounters();u.a.arraycopy(c,0,c,1,c.length-1),c[0]=i;try{l=this.parseFinderValue(c,e.FINDER_PATTERNS)}catch(h){return null}return new d.a(l,[o,a],o,a,n)},e.prototype.decodeDataCharacter=function(t,n,r,i){for(var s=this.getDataCharacterCounters(),u=0;u<s.length;u++)s[u]=0;if(i)e.recordPatternInReverse(t,n.getStartEnd()[0],s);else{e.recordPattern(t,n.getStartEnd()[1],s);for(var l=0,d=s.length-1;l<d;l++,d--){var f=s[l];s[l]=s[d],s[d]=f}}var p=o.a.sum(new Int32Array(s))/17,m=(n.getStartEnd()[1]-n.getStartEnd()[0])/15;if(Math.abs(p-m)/m>.3)throw new a.a;var g=this.getOddCounts(),y=this.getEvenCounts(),v=this.getOddRoundingErrors(),_=this.getEvenRoundingErrors();for(l=0;l<s.length;l++){var b=1*s[l]/p,w=b+.5;if(w<1){if(b<.3)throw new a.a;w=1}else if(w>8){if(b>8.7)throw new a.a;w=8}var k=l/2;0===(1&l)?(g[k]=w,v[k]=b-w):(y[k]=w,_[k]=b-w)}this.adjustOddEvenCounts(17);var S=4*n.getValue()+(r?0:2)+(i?0:1)-1,E=0,C=0;for(l=g.length-1;l>=0;l--){if(e.isNotA1left(n,r,i)){var x=e.WEIGHTS[S][2*l];C+=g[l]*x}E+=g[l]}var D=0;for(l=y.length-1;l>=0;l--)if(e.isNotA1left(n,r,i)){x=e.WEIGHTS[S][2*l+1];D+=y[l]*x}var A=C+D;if(0!==(1&E)||E>13||E<4)throw new a.a;var T=(13-E)/2,M=e.SYMBOL_WIDEST[T],L=9-M,O=h.a.getRSSvalue(g,M,!0),I=h.a.getRSSvalue(y,L,!1),P=O*e.EVEN_TOTAL_SUBSET[T]+I+e.GSUM[T];return new c.a(P,A)},e.isNotA1left=function(t,e,n){return!(0===t.getValue()&&e&&n)},e.prototype.adjustOddEvenCounts=function(t){var n=o.a.sum(new Int32Array(this.getOddCounts())),r=o.a.sum(new Int32Array(this.getEvenCounts())),i=!1,s=!1;n>13?s=!0:n<4&&(i=!0);var u=!1,l=!1;r>13?l=!0:r<4&&(u=!0);var c=n+r-t,d=1===(1&n),h=0===(1&r);if(1===c)if(d){if(h)throw new a.a;s=!0}else{if(!h)throw new a.a;l=!0}else if(-1===c)if(d){if(h)throw new a.a;i=!0}else{if(!h)throw new a.a;u=!0}else{if(0!==c)throw new a.a;if(d){if(!h)throw new a.a;n<r?(i=!0,l=!0):(s=!0,u=!0)}else if(h)throw new a.a}if(i){if(s)throw new a.a;e.increment(this.getOddCounts(),this.getOddRoundingErrors())}if(s&&e.decrement(this.getOddCounts(),this.getOddRoundingErrors()),u){if(l)throw new a.a;e.increment(this.getEvenCounts(),this.getOddRoundingErrors())}l&&e.decrement(this.getEvenCounts(),this.getEvenRoundingErrors())},e.SYMBOL_WIDEST=[7,5,4,3,1],e.EVEN_TOTAL_SUBSET=[4,20,52,104,204],e.GSUM=[0,348,1388,2948,3988],e.FINDER_PATTERNS=[Int32Array.from([1,8,4,1]),Int32Array.from([3,6,4,1]),Int32Array.from([3,4,6,1]),Int32Array.from([3,2,8,1]),Int32Array.from([2,6,5,1]),Int32Array.from([2,2,9,1])],e.WEIGHTS=[[1,3,9,27,81,32,96,77],[20,60,180,118,143,7,21,63],[189,145,13,39,117,140,209,205],[193,157,49,147,19,57,171,91],[62,186,136,197,169,85,44,132],[185,133,188,142,4,12,36,108],[113,128,173,97,80,29,87,50],[150,28,84,41,123,158,52,156],[46,138,203,187,139,206,196,166],[76,17,51,153,37,111,122,155],[43,129,176,106,107,110,119,146],[16,48,144,10,30,90,59,177],[109,116,137,200,178,112,125,164],[70,210,208,202,184,130,179,115],[134,191,151,31,93,68,204,190],[148,22,66,198,172,94,71,2],[6,18,54,162,64,192,154,40],[120,149,25,75,14,42,126,167],[79,26,78,23,69,207,199,175],[103,98,83,38,114,131,182,124],[161,61,183,127,170,88,53,159],[55,165,73,8,24,72,5,15],[45,135,194,160,58,174,100,89]],e.FINDER_PAT_A=0,e.FINDER_PAT_B=1,e.FINDER_PAT_C=2,e.FINDER_PAT_D=3,e.FINDER_PAT_E=4,e.FINDER_PAT_F=5,e.FINDER_PATTERN_SEQUENCES=[[e.FINDER_PAT_A,e.FINDER_PAT_A],[e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B],[e.FINDER_PAT_A,e.FINDER_PAT_C,e.FINDER_PAT_B,e.FINDER_PAT_D],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_C],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_D,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_E,e.FINDER_PAT_B,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_D],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_E],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F],[e.FINDER_PAT_A,e.FINDER_PAT_A,e.FINDER_PAT_B,e.FINDER_PAT_B,e.FINDER_PAT_C,e.FINDER_PAT_D,e.FINDER_PAT_D,e.FINDER_PAT_E,e.FINDER_PAT_E,e.FINDER_PAT_F,e.FINDER_PAT_F]],e.MAX_PAIRS=11,e}(l.a);e.a=b},function(t,e,n){"use strict";var r,i=n(27),o=n(6),a=n(18),s=n(9),u=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},l=function(){function t(t,e){if(0===e.length)throw new o.a;this.field=t;var n=e.length;if(n>1&&0===e[0]){for(var r=1;r<n&&0===e[r];)r++;r===n?this.coefficients=new Int32Array([0]):(this.coefficients=new Int32Array(n-r),a.a.arraycopy(e,r,this.coefficients,0,this.coefficients.length))}else this.coefficients=e}return t.prototype.getCoefficients=function(){return this.coefficients},t.prototype.getDegree=function(){return this.coefficients.length-1},t.prototype.isZero=function(){return 0===this.coefficients[0]},t.prototype.getCoefficient=function(t){return this.coefficients[this.coefficients.length-1-t]},t.prototype.evaluateAt=function(t){var e,n;if(0===t)return this.getCoefficient(0);if(1===t){var r=0;try{for(var i=u(this.coefficients),o=i.next();!o.done;o=i.next()){var a=o.value;r=this.field.add(r,a)}}catch(d){e={error:d}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}for(var s=this.coefficients[0],l=this.coefficients.length,c=1;c<l;c++)s=this.field.add(this.field.multiply(t,s),this.coefficients[c]);return s},t.prototype.add=function(e){if(!this.field.equals(e.field))throw new o.a("ModulusPolys do not have same ModulusGF field");if(this.isZero())return e;if(e.isZero())return this;var n=this.coefficients,r=e.coefficients;if(n.length>r.length){var i=n;n=r,r=i}var s=new Int32Array(r.length),u=r.length-n.length;a.a.arraycopy(r,0,s,0,u);for(var l=u;l<r.length;l++)s[l]=this.field.add(n[l-u],r[l]);return new t(this.field,s)},t.prototype.subtract=function(t){if(!this.field.equals(t.field))throw new o.a("ModulusPolys do not have same ModulusGF field");return t.isZero()?this:this.add(t.negative())},t.prototype.multiply=function(e){return e instanceof t?this.multiplyOther(e):this.multiplyScalar(e)},t.prototype.multiplyOther=function(e){if(!this.field.equals(e.field))throw new o.a("ModulusPolys do not have same ModulusGF field");if(this.isZero()||e.isZero())return new t(this.field,new Int32Array([0]));for(var n=this.coefficients,r=n.length,i=e.coefficients,a=i.length,s=new Int32Array(r+a-1),u=0;u<r;u++)for(var l=n[u],c=0;c<a;c++)s[u+c]=this.field.add(s[u+c],this.field.multiply(l,i[c]));return new t(this.field,s)},t.prototype.negative=function(){for(var e=this.coefficients.length,n=new Int32Array(e),r=0;r<e;r++)n[r]=this.field.subtract(0,this.coefficients[r]);return new t(this.field,n)},t.prototype.multiplyScalar=function(e){if(0===e)return new t(this.field,new Int32Array([0]));if(1===e)return this;for(var n=this.coefficients.length,r=new Int32Array(n),i=0;i<n;i++)r[i]=this.field.multiply(this.coefficients[i],e);return new t(this.field,r)},t.prototype.multiplyByMonomial=function(e,n){if(e<0)throw new o.a;if(0===n)return new t(this.field,new Int32Array([0]));for(var r=this.coefficients.length,i=new Int32Array(r+e),a=0;a<r;a++)i[a]=this.field.multiply(this.coefficients[a],n);return new t(this.field,i)},t.prototype.toString=function(){for(var t=new s.a,e=this.getDegree();e>=0;e--){var n=this.getCoefficient(e);0!==n&&(n<0?(t.append(" - "),n=-n):t.length()>0&&t.append(" + "),0!==e&&1===n||t.append(n),0!==e&&(1===e?t.append("x"):(t.append("x^"),t.append(e))))}return t.toString()},t}(),c=n(20),d=n(83),h=function(){function t(){}return t.prototype.add=function(t,e){return(t+e)%this.modulus},t.prototype.subtract=function(t,e){return(this.modulus+t-e)%this.modulus},t.prototype.exp=function(t){return this.expTable[t]},t.prototype.log=function(t){if(0===t)throw new o.a;return this.logTable[t]},t.prototype.inverse=function(t){if(0===t)throw new d.a;return this.expTable[this.modulus-this.logTable[t]-1]},t.prototype.multiply=function(t,e){return 0===t||0===e?0:this.expTable[(this.logTable[t]+this.logTable[e])%(this.modulus-1)]},t.prototype.getSize=function(){return this.modulus},t.prototype.equals=function(t){return t===this},t}(),f=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(t){function e(e,n){var r=t.call(this)||this;r.modulus=e,r.expTable=new Int32Array(e),r.logTable=new Int32Array(e);for(var i=1,o=0;o<e;o++)r.expTable[o]=i,i=i*n%e;for(o=0;o<e-1;o++)r.logTable[r.expTable[o]]=o;return r.zero=new l(r,new Int32Array([0])),r.one=new l(r,new Int32Array([1])),r}return f(e,t),e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(t,e){if(t<0)throw new o.a;if(0===e)return this.zero;var n=new Int32Array(t+1);return n[0]=e,new l(this,n)},e.PDF417_GF=new e(c.a.NUMBER_OF_CODEWORDS,3),e}(h),m=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(){function t(){this.field=p.PDF417_GF}return t.prototype.decode=function(t,e,n){for(var r,o,a=new l(this.field,t),s=new Int32Array(e),u=!1,c=e;c>0;c--){var d=a.evaluateAt(this.field.exp(c));s[e-c]=d,0!==d&&(u=!0)}if(!u)return 0;var h=this.field.getOne();if(null!=n)try{for(var f=m(n),p=f.next();!p.done;p=f.next()){var g=p.value,y=this.field.exp(t.length-1-g),v=new l(this.field,new Int32Array([this.field.subtract(0,y),1]));h=h.multiply(v)}}catch(x){r={error:x}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}var _=new l(this.field,s),b=this.runEuclideanAlgorithm(this.field.buildMonomial(e,1),_,e),w=b[0],k=b[1],S=this.findErrorLocations(w),E=this.findErrorMagnitudes(k,w,S);for(c=0;c<S.length;c++){var C=t.length-1-this.field.log(S[c]);if(C<0)throw i.a.getChecksumInstance();t[C]=this.field.subtract(t[C],E[c])}return S.length},t.prototype.runEuclideanAlgorithm=function(t,e,n){if(t.getDegree()<e.getDegree()){var r=t;t=e,e=r}for(var o=t,a=e,s=this.field.getZero(),u=this.field.getOne();a.getDegree()>=Math.round(n/2);){var l=o,c=s;if(s=u,(o=a).isZero())throw i.a.getChecksumInstance();a=l;for(var d=this.field.getZero(),h=o.getCoefficient(o.getDegree()),f=this.field.inverse(h);a.getDegree()>=o.getDegree()&&!a.isZero();){var p=a.getDegree()-o.getDegree(),m=this.field.multiply(a.getCoefficient(a.getDegree()),f);d=d.add(this.field.buildMonomial(p,m)),a=a.subtract(o.multiplyByMonomial(p,m))}u=d.multiply(s).subtract(c).negative()}var g=u.getCoefficient(0);if(0===g)throw i.a.getChecksumInstance();var y=this.field.inverse(g);return[u.multiply(y),a.multiply(y)]},t.prototype.findErrorLocations=function(t){for(var e=t.getDegree(),n=new Int32Array(e),r=0,o=1;o<this.field.getSize()&&r<e;o++)0===t.evaluateAt(o)&&(n[r]=this.field.inverse(o),r++);if(r!==e)throw i.a.getChecksumInstance();return n},t.prototype.findErrorMagnitudes=function(t,e,n){for(var r=e.getDegree(),i=new Int32Array(r),o=1;o<=r;o++)i[r-o]=this.field.multiply(o,e.getCoefficient(o));var a=new l(this.field,i),s=n.length,u=new Int32Array(s);for(o=0;o<s;o++){var c=this.field.inverse(n[o]),d=this.field.subtract(0,t.evaluateAt(c)),h=this.field.inverse(a.evaluateAt(c));u[o]=this.field.multiply(d,h)}return u},t}();e.a=g},function(t,e,n){"use strict";var r=n(8),i=function(){function t(t,e,n,i,o){this.value=t,this.startEnd=e,this.value=t,this.startEnd=e,this.resultPoints=new Array,this.resultPoints.push(new r.a(n,o)),this.resultPoints.push(new r.a(i,o))}return t.prototype.getValue=function(){return this.value},t.prototype.getStartEnd=function(){return this.startEnd},t.prototype.getResultPoints=function(){return this.resultPoints},t.prototype.equals=function(e){if(!(e instanceof t))return!1;var n=e;return this.value===n.value},t.prototype.hashCode=function(){return this.value},t}();e.a=i},function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,t);var e,n,a,s=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.checkedIds=new Set}},{key:"connect",value:function(){this.checkedIds=new Set}},{key:"checkedRows",value:function(t){this.checkedIds=t.detail.ids}},{key:"storeSamples",value:function(t){this.checkedIds=t.detail.ids}}])&&r(e.prototype,n),a&&r(e,a),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(3).b)},function(t,e,n){"use strict";!function t(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}(),t.exports=n(597)},,,,,,,,function(t,e,n){var r,i;r=[n(65)],void 0===(i=function(t){return t.slice}.apply(e,r))||(t.exports=i)},function(t,e,n){var r;void 0===(r=function(){return{}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[n(13),n(77)],i=function(t,e){return t.Callbacks=function(n){n="string"===typeof n?function(n){var r={};return t.each(n.match(e)||[],(function(t,e){r[e]=!0})),r}(n):t.extend({},n);var r,i,o,a,s=[],u=[],l=-1,c=function(){for(a=n.once,o=r=!0;u.length;l=-1)for(i=u.shift();++l<s.length;)!1===s[l].apply(i[0],i[1])&&n.stopOnFalse&&(l=s.length,i=!1);n.memory||(i=!1),r=!1,a&&(s=i?[]:"")},d={add:function(){return s&&(i&&!r&&(l=s.length-1,u.push(i)),function e(r){t.each(r,(function(r,i){t.isFunction(i)?n.unique&&d.has(i)||s.push(i):i&&i.length&&"string"!==t.type(i)&&e(i)}))}(arguments),i&&!r&&c()),this},remove:function(){return t.each(arguments,(function(e,n){for(var r;(r=t.inArray(n,s,r))>-1;)s.splice(r,1),r<=l&&l--})),this},has:function(e){return e?t.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=i="",this},disabled:function(){return!s},lock:function(){return a=!0,i||d.disable(),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],u.push(e),r||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},t}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(36),n(43),n(95)],void 0===(i=function(t,e){var n;function r(){e.addEventListener?(e.removeEventListener("DOMContentLoaded",i),window.removeEventListener("load",i)):(e.detachEvent("onreadystatechange",i),window.detachEvent("onload",i))}function i(){(e.addEventListener||"load"===window.event.type||"complete"===e.readyState)&&(r(),t.ready())}t.fn.ready=function(e){return t.ready.promise().done(e),this},t.extend({isReady:!1,readyWait:1,holdReady:function(e){e?t.readyWait++:t.ready(!0)},ready:function(r){(!0===r?--t.readyWait:t.isReady)||(t.isReady=!0,!0!==r&&--t.readyWait>0||(n.resolveWith(e,[t]),t.fn.triggerHandler&&(t(e).triggerHandler("ready"),t(e).off("ready"))))}}),t.ready.promise=function(o){if(!n)if(n=t.Deferred(),"complete"===e.readyState||"loading"!==e.readyState&&!e.documentElement.doScroll)window.setTimeout(t.ready);else if(e.addEventListener)e.addEventListener("DOMContentLoaded",i),window.addEventListener("load",i);else{e.attachEvent("onreadystatechange",i),window.attachEvent("onload",i);var a=!1;try{a=null==window.frameElement&&e.documentElement}catch(s){}a&&a.doScroll&&function e(){if(!t.isReady){try{a.doScroll("left")}catch(s){return window.setTimeout(e,50)}r(),t.ready()}}()}return n.promise(o)},t.ready.promise()}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13)],void 0===(i=function(t){return function(e){var n=t.noData[(e.nodeName+" ").toLowerCase()],r=+e.nodeType||1;return(1===r||9===r)&&(!n||!0!==n&&e.getAttribute("classid")===n)}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(95),n(164)],i=function(t){return t.extend({queue:function(e,n,r){var i;if(e)return n=(n||"fx")+"queue",i=t._data(e,n),r&&(!i||t.isArray(r)?i=t._data(e,n,t.makeArray(r)):i.push(r)),i||[]},dequeue:function(e,n){n=n||"fx";var r=t.queue(e,n),i=r.length,o=r.shift(),a=t._queueHooks(e,n);"inprogress"===o&&(o=r.shift(),i--),o&&("fx"===n&&r.unshift("inprogress"),delete a.stop,o.call(e,(function(){t.dequeue(e,n)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,n){var r=n+"queueHooks";return t._data(e,r)||t._data(e,r,{empty:t.Callbacks("once memory").add((function(){t._removeData(e,n+"queue"),t._removeData(e,r)}))})}}),t.fn.extend({queue:function(e,n){var r=2;return"string"!==typeof e&&(n=e,e="fx",r--),arguments.length<r?t.queue(this[0],e):void 0===n?this:this.each((function(){var r=t.queue(this,e,n);t._queueHooks(this,e),"fx"===e&&"inprogress"!==r[0]&&t.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){t.dequeue(this,e)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(e,n){var r,i=1,o=t.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};for("string"!==typeof e&&(n=e,e=void 0),e=e||"fx";s--;)(r=t._data(a[s],e+"queueHooks"))&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}}),t}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;function o(t){return o="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(t)}r=[n(13),n(399),n(169),n(77),n(206),n(207),n(208),n(209),n(36),n(43),n(401),n(167),n(79),n(95),n(66)],i=function(t,e,n,r,i,a,s,u){var l,c,d=/^(?:toggle|show|hide)$/,h=/queueHooks$/;function f(){return window.setTimeout((function(){l=void 0})),l=t.now()}function p(t,e){var n,r={height:t},o=0;for(e=e?1:0;o<4;o+=2-e)r["margin"+(n=i[o])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function m(t,e,n){for(var r,i=(g.tweeners[e]||[]).concat(g.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function g(e,n,r){var i,o,a=0,s=g.prefilters.length,u=t.Deferred().always((function(){delete c.elem})),c=function(){if(o)return!1;for(var t=l||f(),n=Math.max(0,d.startTime+d.duration-t),r=1-(n/d.duration||0),i=0,a=d.tweens.length;i<a;i++)d.tweens[i].run(r);return u.notifyWith(e,[d,r,n]),r<1&&a?n:(u.resolveWith(e,[d]),!1)},d=u.promise({elem:e,props:t.extend({},n),opts:t.extend(!0,{specialEasing:{},easing:t.easing._default},r),originalProperties:n,originalOptions:r,startTime:l||f(),duration:r.duration,tweens:[],createTween:function(n,r){var i=t.Tween(e,d.opts,n,r,d.opts.specialEasing[n]||d.opts.easing);return d.tweens.push(i),i},stop:function(t){var n=0,r=t?d.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)d.tweens[n].run(1);return t?(u.notifyWith(e,[d,1,0]),u.resolveWith(e,[d,t])):u.rejectWith(e,[d,t]),this}}),h=d.props;for(!function(e,n){var r,i,o,a,s;for(r in e)if(o=n[i=t.camelCase(r)],a=e[r],t.isArray(a)&&(o=a[1],a=e[r]=a[0]),r!==i&&(e[i]=a,delete e[r]),(s=t.cssHooks[i])&&"expand"in s)for(r in a=s.expand(a),delete e[i],a)r in e||(e[r]=a[r],n[r]=o);else n[i]=o}(h,d.opts.specialEasing);a<s;a++)if(i=g.prefilters[a].call(d,e,h,d.opts))return t.isFunction(i.stop)&&(t._queueHooks(d.elem,d.opts.queue).stop=t.proxy(i.stop,i)),i;return t.map(h,m,d),t.isFunction(d.opts.start)&&d.opts.start.call(e,d),t.fx.timer(t.extend(c,{elem:e,anim:d,queue:d.opts.queue})),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always)}return t.Animation=t.extend(g,{tweeners:{"*":[function(t,e){var r=this.createTween(t,e);return s(r.elem,t,n.exec(e),r),r}]},tweener:function(e,n){t.isFunction(e)?(n=e,e=["*"]):e=e.match(r);for(var i,o=0,a=e.length;o<a;o++)i=e[o],g.tweeners[i]=g.tweeners[i]||[],g.tweeners[i].unshift(n)},prefilters:[function(n,r,i){var o,s,l,c,h,f,p,g=this,y={},v=n.style,_=n.nodeType&&a(n),b=t._data(n,"fxshow");for(o in i.queue||(null==(h=t._queueHooks(n,"fx")).unqueued&&(h.unqueued=0,f=h.empty.fire,h.empty.fire=function(){h.unqueued||f()}),h.unqueued++,g.always((function(){g.always((function(){h.unqueued--,t.queue(n,"fx").length||h.empty.fire()}))}))),1===n.nodeType&&("height"in r||"width"in r)&&(i.overflow=[v.overflow,v.overflowX,v.overflowY],"inline"===("none"===(p=t.css(n,"display"))?t._data(n,"olddisplay")||u(n.nodeName):p)&&"none"===t.css(n,"float")&&(e.inlineBlockNeedsLayout&&"inline"!==u(n.nodeName)?v.zoom=1:v.display="inline-block")),i.overflow&&(v.overflow="hidden",e.shrinkWrapBlocks()||g.always((function(){v.overflow=i.overflow[0],v.overflowX=i.overflow[1],v.overflowY=i.overflow[2]}))),r)if(s=r[o],d.exec(s)){if(delete r[o],l=l||"toggle"===s,s===(_?"hide":"show")){if("show"!==s||!b||void 0===b[o])continue;_=!0}y[o]=b&&b[o]||t.style(n,o)}else p=void 0;if(t.isEmptyObject(y))"inline"===("none"===p?u(n.nodeName):p)&&(v.display=p);else for(o in b?"hidden"in b&&(_=b.hidden):b=t._data(n,"fxshow",{}),l&&(b.hidden=!_),_?t(n).show():g.done((function(){t(n).hide()})),g.done((function(){var e;for(e in t._removeData(n,"fxshow"),y)t.style(n,e,y[e])})),y)c=m(_?b[o]:0,o,g),o in b||(b[o]=c.start,_&&(c.end=c.start,c.start="width"===o||"height"===o?1:0))}],prefilter:function(t,e){e?g.prefilters.unshift(t):g.prefilters.push(t)}}),t.speed=function(e,n,r){var i=e&&"object"===o(e)?t.extend({},e):{complete:r||!r&&n||t.isFunction(e)&&e,duration:e,easing:r&&n||n&&!t.isFunction(n)&&n};return i.duration=t.fx.off?0:"number"===typeof i.duration?i.duration:i.duration in t.fx.speeds?t.fx.speeds[i.duration]:t.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){t.isFunction(i.old)&&i.old.call(this),i.queue&&t.dequeue(this,i.queue)},i},t.fn.extend({fadeTo:function(t,e,n,r){return this.filter(a).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(e,n,r,i){var o=t.isEmptyObject(e),a=t.speed(n,r,i),s=function(){var n=g(this,t.extend({},e),a);(o||t._data(this,"finish"))&&n.stop(!0)};return s.finish=s,o||!1===a.queue?this.each(s):this.queue(a.queue,s)},stop:function(e,n,r){var i=function(t){var e=t.stop;delete t.stop,e(r)};return"string"!==typeof e&&(r=n,n=e,e=void 0),n&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var n=!0,o=null!=e&&e+"queueHooks",a=t.timers,s=t._data(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&h.test(o)&&i(s[o]);for(o=a.length;o--;)a[o].elem!==this||null!=e&&a[o].queue!==e||(a[o].anim.stop(r),n=!1,a.splice(o,1));!n&&r||t.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var n,r=t._data(this),i=r[e+"queue"],o=r[e+"queueHooks"],a=t.timers,s=i?i.length:0;for(r.finish=!0,t.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),n=a.length;n--;)a[n].elem===this&&a[n].queue===e&&(a[n].anim.stop(!0),a.splice(n,1));for(n=0;n<s;n++)i[n]&&i[n].finish&&i[n].finish.call(this);delete r.finish}))}}),t.each(["toggle","show","hide"],(function(e,n){var r=t.fn[n];t.fn[n]=function(t,e,i){return null==t||"boolean"===typeof t?r.apply(this,arguments):this.animate(p(n,!0),t,e,i)}})),t.each({slideDown:p("show"),slideUp:p("hide"),slideToggle:p("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,n){t.fn[e]=function(t,e,r){return this.animate(n,t,e,r)}})),t.timers=[],t.fx.tick=function(){var e,n=t.timers,r=0;for(l=t.now();r<n.length;r++)(e=n[r])()||n[r]!==e||n.splice(r--,1);n.length||t.fx.stop(),l=void 0},t.fx.timer=function(e){t.timers.push(e),e()?t.fx.start():t.timers.pop()},t.fx.interval=13,t.fx.start=function(){c||(c=window.setInterval(t.fx.tick,t.fx.interval))},t.fx.stop=function(){window.clearInterval(c),c=null},t.fx.speeds={slow:600,fast:200,_default:400},t}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(170)],void 0===(i=function(t){return new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i")}.apply(e,r))||(t.exports=i)},function(t,e,n){var r;void 0===(r=function(){return/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(){return/^(?:checkbox|radio)$/i}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[n(13),n(36),n(51)],void 0===(i=function(t,e,n){var r,i,o;return r=e.createElement("div"),i=e.createDocumentFragment(),o=e.createElement("input"),r.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n.leadingWhitespace=3===r.firstChild.nodeType,n.tbody=!r.getElementsByTagName("tbody").length,n.htmlSerialize=!!r.getElementsByTagName("link").length,n.html5Clone="<:nav></:nav>"!==e.createElement("nav").cloneNode(!0).outerHTML,o.type="checkbox",o.checked=!0,i.appendChild(o),n.appendChecked=o.checked,r.innerHTML="<textarea>x</textarea>",n.noCloneChecked=!!r.cloneNode(!0).lastChild.defaultValue,i.appendChild(r),(o=e.createElement("input")).setAttribute("type","radio"),o.setAttribute("checked","checked"),o.setAttribute("name","t"),r.appendChild(o),n.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,n.noCloneEvent=!!r.addEventListener,r[t.expando]=1,n.attributes=!r.getAttribute(t.expando),n}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(170)],void 0===(i=function(t){return new RegExp("^("+t+")(?!px)[a-z%]+$","i")}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(36)],void 0===(i=function(t){return t.documentElement}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(36),n(51)],void 0===(i=function(t,e){var n,r,i,o,a;return r=t.createElement("input"),i=t.createElement("div"),o=t.createElement("select"),a=o.appendChild(t.createElement("option")),(i=t.createElement("div")).setAttribute("className","t"),i.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=i.getElementsByTagName("a")[0],r.setAttribute("type","checkbox"),i.appendChild(r),(n=i.getElementsByTagName("a")[0]).style.cssText="top:1px",e.getSetAttribute="t"!==i.className,e.style=/top/.test(n.getAttribute("style")),e.hrefNormalized="/a"===n.getAttribute("href"),e.checkOn=!!r.value,e.optSelected=a.selected,e.enctype=!!t.createElement("form").enctype,o.disabled=!0,e.optDisabled=!a.disabled,(r=t.createElement("input")).setAttribute("value",""),e.input=""===r.getAttribute("value"),r.value="t",r.setAttribute("type","radio"),e.radioValue="t"===r.value,e}.apply(e,r))||(t.exports=i)},function(t,e,n){"use strict";var r=function(){function t(){}return t.parseLong=function(t,e){return void 0===e&&(e=void 0),parseInt(t,e)},t}();e.a=r},function(t,e,n){var r,i,o;function a(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"===typeof t)return u(t,e);var n=Object.prototype.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)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t){return l="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},l(t)}i=[],r=function(t){"use strict";var e=function(t,e){if("farzher"==t)return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!t||!e)return P;var n=h(t);x(e)||(e=d(e));var r=n.bitflags;return(r&e._bitflags)!==r?P:p(n,e)},n=function(t,e,n){if("farzher"==t)return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:e?e[0]:P}];if(!t)return n&&n.all?f(t,e,n):T;var r=h(t),i=r.bitflags,o=(r.containsSpace,n&&n.threshold||A),a=n&&n.limit||D,s=0,u=0,l=e.length;if(n&&n.key)for(var c=n.key,m=0;m<l;++m){var g=e[m];(S=C(g,c))&&(x(S)||(S=d(S)),(i&S._bitflags)===i&&(M=p(r,S))!==P&&(M.score<o||(M={target:M.target,_targetLower:"",_targetLowerCodes:P,_nextBeginningIndexes:P,_bitflags:0,score:M.score,_indexes:M._indexes,obj:g},s<a?(R.add(M),++s):(++u,M.score>R.peek().score&&R.replaceTop(M)))))}else if(n&&n.keys){var y=n.scoreFn||E,v=n.keys,_=v.length;for(m=0;m<l;++m){g=e[m];for(var b=new Array(_),w=0;w<_;++w)c=v[w],(S=C(g,c))?(x(S)||(S=d(S)),(i&S._bitflags)!==i?b[w]=P:b[w]=p(r,S)):b[w]=P;b.obj=g;var k=y(b);k!==P&&(k<o||(b.score=k,s<a?(R.add(b),++s):(++u,k>R.peek().score&&R.replaceTop(b))))}}else for(m=0;m<l;++m){var S,M;(S=e[m])&&(x(S)||(S=d(S)),(i&S._bitflags)===i&&(M=p(r,S))!==P&&(M.score<o||(s<a?(R.add(M),++s):(++u,M.score>R.peek().score&&R.replaceTop(M)))))}if(0===s)return T;var L=new Array(s);for(m=s-1;m>=0;--m)L[m]=R.poll();return L.total=s+u,L},r=function(t,e,n){if("function"===typeof e)return i(t,e);if(t===P)return P;void 0===e&&(e="<b>"),void 0===n&&(n="</b>");var r="",o=0,a=!1,s=t.target,u=s.length,l=t._indexes;l=l.slice(0,l.len).sort((function(t,e){return t-e}));for(var c=0;c<u;++c){var d=s[c];if(l[o]===c){if(a||(a=!0,r+=e),++o===l.length){r+=d+n+s.substr(c+1);break}}else a&&(a=!1,r+=n);r+=d}return r},i=function(t,e){if(t===P)return P;var n=t.target,r=n.length,i=t._indexes;i=i.slice(0,i.len).sort((function(t,e){return t-e}));for(var o="",a=0,s=0,u=!1,l=(t=[],0);l<r;++l){var c=n[l];if(i[s]===l){if(++s,u||(u=!0,t.push(o),o=""),s===i.length){o+=c,t.push(e(o,a++)),o="",t.push(n.substr(l+1));break}}else u&&(u=!1,t.push(e(o,a++)),o="");o+=c}return t},o=function(t){return t._indexes.slice(0,t._indexes.len).sort((function(t,e){return t-e}))},u=function(t){"string"!==typeof t&&(t="");var e=g(t);return{target:t,_targetLower:e._lower,_targetLowerCodes:e.lowerCodes,_nextBeginningIndexes:P,_bitflags:e.bitflags,score:P,_indexes:[0],obj:P}},c=function(t){"string"!==typeof t&&(t=""),t=t.trim();var e=g(t),n=[];if(e.containsSpace){var r=t.split(/\s+/);r=a(new Set(r));for(var i=0;i<r.length;i++)if(""!==r[i]){var o=g(r[i]);n.push({lowerCodes:o.lowerCodes,_lower:r[i].toLowerCase(),containsSpace:!1})}}return{lowerCodes:e.lowerCodes,bitflags:e.bitflags,containsSpace:e.containsSpace,_lower:e._lower,spaceSearches:n}},d=function(t){if(t.length>999)return u(t);var e=b.get(t);return void 0!==e||(e=u(t),b.set(t,e)),e},h=function(t){if(t.length>999)return c(t);var e=w.get(t);return void 0!==e||(e=c(t),w.set(t,e)),e},f=function(t,e,n){var r=[];r.total=e.length;var i=n&&n.limit||D;if(n&&n.key)for(var o=0;o<e.length;o++){var a=e[o];if(c=C(a,n.key)){x(c)||(c=d(c)),c.score=A,c._indexes.len=0;var s=c;if(s={target:s.target,_targetLower:"",_targetLowerCodes:P,_nextBeginningIndexes:P,_bitflags:0,score:c.score,_indexes:P,obj:a},r.push(s),r.length>=i)return r}}else if(n&&n.keys)for(o=0;o<e.length;o++){a=e[o];for(var u=new Array(n.keys.length),l=n.keys.length-1;l>=0;--l)(c=C(a,n.keys[l]))?(x(c)||(c=d(c)),c.score=A,c._indexes.len=0,u[l]=c):u[l]=P;if(u.obj=a,u.score=A,r.push(u),r.length>=i)return r}else for(o=0;o<e.length;o++){var c;if((c=e[o])&&(x(c)||(c=d(c)),c.score=A,c._indexes.len=0,r.push(c),r.length>=i))return r}return r},p=function(t,e){if(!1===(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&t.containsSpace)return m(t,e);for(var n=t._lower,r=t.lowerCodes,i=r[0],o=e._targetLowerCodes,a=r.length,s=o.length,u=0,l=0,c=0;;){if(i===o[l]){if(k[c++]=l,++u===a)break;i=r[u]}if(++l>=s)return P}u=0;var d=!1,h=0,f=e._nextBeginningIndexes;f===P&&(f=e._nextBeginningIndexes=v(e.target)),l=0===k[0]?0:f[k[0]-1];var p=0;if(l!==s)for(;;)if(l>=s){if(u<=0)break;if(++p>200)break;--u,l=f[S[--h]]}else if(r[u]===o[l]){if(S[h++]=l,++u===a){d=!0;break}++l}else l=f[l];var g=e._targetLower.indexOf(n,k[0]),y=~g;if(y&&!d)for(var _=0;_<c;++_)k[_]=g+_;var b=!1;if(y&&(b=e._nextBeginningIndexes[g-1]===g),d)var w=S,E=h;else w=k,E=c;var C=0,x=0;for(_=1;_<a;++_)w[_]-w[_-1]!==1&&(C-=w[_],++x);if(C-=(w[a-1]-w[0]-(a-1)+12)*x,0!==w[0]&&(C-=w[0]*w[0]*.2),d){var D=1;for(_=f[0];_<s;_=f[_])++D;D>24&&(C*=10*(D-24))}else C*=1e3;for(y&&(C/=1+a*a*1),b&&(C/=1+a*a*1),C-=s-a,e.score=C,_=0;_<E;++_)e._indexes[_]=w[_];return e._indexes.len=E,e},m=function(t,e){for(var n=new Set,r=0,i=P,o=0,a=t.spaceSearches,u=0;u<a.length;++u){var l=a[u];if((i=p(l,e))===P)return P;r+=i.score,i._indexes[0]<o&&(r-=o-i._indexes[0]),o=i._indexes[0];for(var c=0;c<i._indexes.len;++c)n.add(i._indexes[c])}var d=p(t,e,!0);if(d!==P&&d.score>r)return d;i.score=r,u=0;var h,f=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=s(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}(n);try{for(f.s();!(h=f.n()).done;){var m=h.value;i._indexes[u++]=m}}catch(g){f.e(g)}finally{f.f()}return i._indexes.len=u,i},g=function(t){for(var e=t.length,n=t.toLowerCase(),r=[],i=0,o=!1,a=0;a<e;++a){var s=r[a]=n.charCodeAt(a);32!==s?i|=1<<(s>=97&&s<=122?s-97:s>=48&&s<=57?26:s<=127?30:31):o=!0}return{lowerCodes:r,bitflags:i,containsSpace:o,_lower:n}},y=function(t){for(var e=t.length,n=[],r=0,i=!1,o=!1,a=0;a<e;++a){var s=t.charCodeAt(a),u=s>=65&&s<=90,l=u||s>=97&&s<=122||s>=48&&s<=57,c=u&&!i||!o||!l;i=u,o=l,c&&(n[r++]=a)}return n},v=function(t){for(var e=t.length,n=y(t),r=[],i=n[0],o=0,a=0;a<e;++a)i>a?r[a]=i:(i=n[++o],r[a]=void 0===i?e:i);return r},_=function(){b.clear(),w.clear(),k=[],S=[]},b=new Map,w=new Map,k=[],S=[],E=function(t){for(var e=A,n=t.length,r=0;r<n;++r){var i=t[r];if(i!==P){var o=i.score;o>e&&(e=o)}}return e===A?P:e},C=function(t,e){var n=t[e];if(void 0!==n)return n;var r=e;Array.isArray(e)||(r=e.split("."));for(var i=r.length,o=-1;t&&++o<i;)t=t[r[o]];return t},x=function(t){return"object"===l(t)},D=1/0,A=-D,T=[];T.total=0;var M,L,O,I,P=null,R=(M=[],L=0,I=function(t){for(var e=0,n=M[e],r=1;r<L;){var i=r+1;e=r,i<L&&M[i].score<M[r].score&&(e=i),M[e-1>>1]=M[e],r=1+(e<<1)}for(var o=e-1>>1;e>0&&n.score<M[o].score;o=(e=o)-1>>1)M[e]=M[o];M[e]=n},(O={}).add=function(t){var e=L;M[L++]=t;for(var n=e-1>>1;e>0&&t.score<M[n].score;n=(e=n)-1>>1)M[e]=M[n];M[e]=t},O.poll=function(t){if(0!==L){var e=M[0];return M[0]=M[--L],I(),e}},O.peek=function(t){if(0!==L)return M[0]},O.replaceTop=function(t){M[0]=t,I()},O);return{single:e,go:n,highlight:r,prepare:u,indexes:o,cleanup:_}},void 0===(o="function"===typeof r?r.apply(e,i):r)||(t.exports=o)},function(t,e,n){"use strict";n.r(e),function(t){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var i=n&&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()}),r))}};function o(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function s(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:u(s(t))}function l(t){return t&&t.referenceNode?t.referenceNode:t}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function h(t){return 11===t?c:10===t?d:c||d}function f(t){if(!t)return document.documentElement;for(var e=h(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"===a(n,"position")?f(n):n:t?t.ownerDocument.documentElement:document.documentElement}function p(t){return null!==t.parentNode?p(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&&f(a.firstElementChild)!==a?f(u):u;var l=p(t);return l.host?m(l.host,e):m(t,p(e).host)}function g(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 v(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],h(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function _(t){var e=t.body,n=t.documentElement,r=h(10)&&getComputedStyle(n);return{height:v("Height",e,n,r),width:v("Width",e,n,r)}}var b=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),w=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function S(t){return k({},t,{right:t.left+t.width,bottom:t.top+t.height})}function E(t){var e={};try{if(h(10)){e=t.getBoundingClientRect();var n=g(t,"top"),r=g(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(f){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?_(t.ownerDocument):{},s=o.width||t.clientWidth||i.width,u=o.height||t.clientHeight||i.height,l=t.offsetWidth-s,c=t.offsetHeight-u;if(l||c){var d=a(t);l-=y(d,"x"),c-=y(d,"y"),i.width-=l,i.height-=c}return S(i)}function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=h(10),i="HTML"===e.nodeName,o=E(t),s=E(e),l=u(t),c=a(e),d=parseFloat(c.borderTopWidth),f=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=S({top:o.top-s.top-d,left:o.left-s.left-f,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),y=parseFloat(c.marginLeft);p.top-=d-m,p.bottom-=d-m,p.left-=f-y,p.right-=f-y,p.marginTop=m,p.marginLeft=y}return(r&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(p=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=g(e,"top"),i=g(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 x(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var n=s(t);return!!n&&x(n)}function D(t){if(!t||!t.parentElement||h())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function A(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?D(t):m(t,l(e));if("viewport"===r)o=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=C(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:g(n),s=e?0:g(n,"left");return S({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}(a,i);else{var c=void 0;"scrollParent"===r?"BODY"===(c=u(s(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===r?t.ownerDocument.documentElement:r;var d=C(c,a,i);if("HTML"!==c.nodeName||x(a))o=d;else{var h=_(t.ownerDocument),f=h.height,p=h.width;o.top+=d.top-d.marginTop,o.bottom=f+d.top,o.left+=d.left-d.marginLeft,o.right=p+d.left}}var y="number"===typeof(n=n||0);return o.left+=y?n:n.left||0,o.top+=y?n:n.top||0,o.right-=y?n:n.right||0,o.bottom-=y?n:n.bottom||0,o}function T(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=A(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 k({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,d=t.split("-")[1];return c+(d?"-"+d:"")}function M(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return C(n,r?D(e):m(e,l(n)),r)}function L(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 O(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 I(t,e,n){n=n.split("-")[0];var r=L(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[O(s)],i}function P(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function R(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=P(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&&o(n)&&(e.offsets.popper=S(e.offsets.popper),e.offsets.reference=S(e.offsets.reference),e=n(e,t))})),e}function N(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=M(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=T(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=I(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=R(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function F(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function j(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if("undefined"!==typeof document.body.style[o])return o}return null}function B(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[j("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Y(t){var e=t.ownerDocument;return e?e.defaultView:window}function H(t,e,n,r){var i="BODY"===t.nodeName,o=i?t.ownerDocument.defaultView:t;o.addEventListener(e,n,{passive:!0}),i||H(u(o.parentNode),e,n,r),r.push(o)}function z(t,e,n,r){n.updateBound=r,Y(t).addEventListener("resize",n.updateBound,{passive:!0});var i=u(t);return H(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=z(this.reference,this.options,this.state,this.scheduleUpdate))}function V(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,Y(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function U(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function q(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&U(e[n])&&(r="px"),t.style[n]=e[n]+r}))}var G=n&&/Firefox/i.test(navigator.userAgent);function $(t,e,n){var r=P(t,(function(t){return t.name===e})),i=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!i){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var K=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=K.slice(3);function X(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(t),r=Z.slice(n+1).concat(Z.slice(0,n));return e?r.reverse():r}var J="flip",Q="clockwise",tt="counterclockwise";function et(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(P(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];if(!o)return t;if(0===a.indexOf("%")){return S("%p"===a?n:r)[e]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,i,e,n)}))})),l.forEach((function(t,e){t.forEach((function(n,r){U(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}var nt={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=k({},a,c[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=U(+n)?[+n,0]:et(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||f(t.instance.popper);t.instance.reference===n&&(n=f(n));var r=j("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=A(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,d={primary:function(t){var n=c[t];return c[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(c[t],u[t])),w({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=c[n];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=k({},c,d[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[u])&&(t.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[s])&&(t.offsets.popper[u]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!$(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,s=o.popper,u=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",d=l?"Top":"Left",h=d.toLowerCase(),f=l?"left":"top",p=l?"bottom":"right",m=L(r)[c];u[p]-m<s[h]&&(t.offsets.popper[h]-=s[h]-(u[p]-m)),u[h]+m>s[p]&&(t.offsets.popper[h]+=u[h]+m-s[p]),t.offsets.popper=S(t.offsets.popper);var g=u[h]+u[c]/2-m/2,y=a(t.instance.popper),v=parseFloat(y["margin"+d]),_=parseFloat(y["border"+d+"Width"]),b=g-t.offsets.popper[h]-v-_;return b=Math.max(Math.min(s[c]-m,b),0),t.arrowElement=r,t.offsets.arrow=(w(n={},h,Math.round(b)),w(n,f,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(F(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=A(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=O(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case J:a=[r,i];break;case Q:a=X(r);break;case tt:a=X(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=O(r);var l=t.offsets.popper,c=t.offsets.reference,d=Math.floor,h="left"===r&&d(l.right)>d(c.left)||"right"===r&&d(l.left)<d(c.right)||"top"===r&&d(l.bottom)>d(c.top)||"bottom"===r&&d(l.top)<d(c.bottom),f=d(l.left)<d(n.left),p=d(l.right)>d(n.right),m=d(l.top)<d(n.top),g=d(l.bottom)>d(n.bottom),y="left"===r&&f||"right"===r&&p||"top"===r&&m||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),_=!!e.flipVariations&&(v&&"start"===o&&f||v&&"end"===o&&p||!v&&"start"===o&&m||!v&&"end"===o&&g),b=!!e.flipVariationsByContent&&(v&&"start"===o&&p||v&&"end"===o&&f||!v&&"start"===o&&g||!v&&"end"===o&&m),w=_||b;(h||y||w)&&(t.flipped=!0,(h||y)&&(r=a[u+1]),w&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=k({},t.offsets.popper,I(t.instance.popper,t.offsets.reference,t.placement)),t=R(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=O(e),t.offsets.popper=S(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!$(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=P(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=P(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=f(t.instance.popper),u=E(s),l={position:i.position},c=function(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},u=o(i.width),l=o(r.width),c=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=e?c||d||u%2===l%2?o:a:s,f=e?o:s;return{left:h(u%2===1&&l%2===1&&!d&&e?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:h(r.right)}}(t,window.devicePixelRatio<2||!G),d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",p=j("transform"),m=void 0,g=void 0;if(g="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-u.height+c.bottom:c.top,m="right"===h?"HTML"===s.nodeName?-s.clientWidth+c.right:-u.width+c.right:c.left,a&&p)l[p]="translate3d("+m+"px, "+g+"px, 0)",l[d]=0,l[h]=0,l.willChange="transform";else{var y="bottom"===d?-1:1,v="right"===h?-1:1;l[d]=g*y,l[h]=m*v,l.willChange=d+", "+h}var _={"x-placement":t.placement};return t.attributes=k({},_,t.attributes),t.styles=k({},l,t.styles),t.arrowStyles=k({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return q(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&q(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=M(i,e,t,n.positionFixed),a=T(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),q(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:nt},it=function(){function t(e,n){var r=this,a=arguments.length>2&&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=i(this.update.bind(this)),this.options=k({},t.Defaults,a),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(k({},t.Defaults.modifiers,a.modifiers)).forEach((function(e){r.options.modifiers[e]=k({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return k({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&o(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 b(t,[{key:"update",value:function(){return N.call(this)}},{key:"destroy",value:function(){return B.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return V.call(this)}}]),t}();it.Utils=("undefined"!==typeof window?window:t).PopperUtils,it.placements=K,it.Defaults=rt,e.default=it}.call(this,n(271))},function(t,e,n){var r,i;r=function(){var t,e,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function i(t,e,n){return t<e?e:t>n?n:t}function o(t){return 100*(-1+t)}function a(t,e,n){var i;return(i="translate3d"===r.positionUsing?{transform:"translate3d("+o(t)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(t)+"%,0)"}:{"margin-left":o(t)+"%"}).transition="all "+e+"ms "+n,i}n.configure=function(t){var e,n;for(e in t)void 0!==(n=t[e])&&t.hasOwnProperty(e)&&(r[e]=n);return this},n.status=null,n.set=function(t){var e=n.isStarted();t=i(t,r.minimum,1),n.status=1===t?null:t;var o=n.render(!e),l=o.querySelector(r.barSelector),c=r.speed,d=r.easing;return o.offsetWidth,s((function(e){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),u(l,a(t,c,d)),1===t?(u(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){u(o,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){n.remove(),e()}),c)}),c)):setTimeout(e,c)})),this},n.isStarted=function(){return"number"===typeof n.status},n.start=function(){n.status||n.set(0);var t=function t(){setTimeout((function(){n.status&&(n.trickle(),t())}),r.trickleSpeed)};return r.trickle&&t(),this},n.done=function(t){return t||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(t){var e=n.status;return e?("number"!==typeof t&&(t=(1-e)*i(Math.random()*e,.1,.95)),e=i(e+t,0,.994),n.set(e)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},t=0,e=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===e&&n.start(),t++,e++,r.always((function(){0===--e?(t=0,n.done()):n.set((t-e)/t)})),this):this},n.render=function(t){if(n.isRendered())return document.getElementById("nprogress");c(document.documentElement,"nprogress-busy");var e=document.createElement("div");e.id="nprogress",e.innerHTML=r.template;var i,a=e.querySelector(r.barSelector),s=t?"-100":o(n.status||0),l=document.querySelector(r.parent);return u(a,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(i=e.querySelector(r.spinnerSelector))&&f(i),l!=document.body&&c(l,"nprogress-custom-parent"),l.appendChild(e),e},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&f(t)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var s=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),u=function(){var t=["Webkit","O","Moz","ms"],e={};function n(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var n=document.body.style;if(e in n)return e;for(var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);i--;)if((r=t[i]+o)in n)return r;return e}function i(t){return t=n(t),e[t]||(e[t]=r(t))}function o(t,e,n){e=i(e),t.style[e]=n}return function(t,e){var n,r,i=arguments;if(2==i.length)for(n in e)void 0!==(r=e[n])&&e.hasOwnProperty(n)&&o(t,n,r);else o(t,i[1],i[2])}}();function l(t,e){return("string"==typeof t?t:h(t)).indexOf(" "+e+" ")>=0}function c(t,e){var n=h(t),r=n+e;l(n,e)||(t.className=r.substring(1))}function d(t,e){var n,r=h(t);l(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function h(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function f(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return n},void 0===(i="function"===typeof r?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){"use strict";n.r(e);var r,i,o=n(4),a=n.n(o),s=n(106),u=n.n(s),l=n(580),c=n.n(l);!function(t){t.DELETE="DELETE",t.GET="GET",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.PATCH="PATCH",t.POST="POST",t.PUT="PUT",t.CONNECT="CONNECT",t.TRACE="TRACE"}(r||(r={})),function(t){t.CACHE_FIRST="cache-first",t.CACHE_AND_NETWORK="cache-and-network",t.NETWORK_ONLY="network-only",t.CACHE_ONLY="cache-only",t.NO_CACHE="no-cache",t.EXACT_CACHE_AND_NETWORK="exact-cache-and-network"}(i||(i={}));var d=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},h=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},f=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function p(t,e,n,r,i,o,a,s){if(void 0===n&&(n=""),void 0===r&&(r=""),void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a=""),void 0===s&&(s=""),!t){var u=void 0;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;(u=new Error(e.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u}}var m,g=function(t){return"string"===typeof t},y=function(t){return"[object Object]"===Object.prototype.toString.call(t)},v=function(t){return y(t)||Array.isArray(t)},_=function(t){return"function"===typeof t},b=function(t){if(!t)return{};return["body","cache","credentials","headers","integrity","keepalive","method","mode","redirect","referrer","referrerPolicy","signal","window"].reduce((function(e,n){return n in t&&(e[n]=t[n]),e}),{})},w=function(t){return void 0===t||null===t};!function(t){t.Browser="browser",t.Server="server",t.Native="native"}(m||(m={}));var k=m.Browser,S=m.Server,E=m.Native,C=!("undefined"===typeof window||!window.document||!window.document.createElement),x="undefined"!==typeof navigator&&"ReactNative"===navigator.product?E:C?k:S,D=x===S,A=function(t,e,n){return d(void 0,void 0,void 0,(function(){var r,i;return h(this,(function(o){switch(o.label){case 0:if("undefined"===typeof t)throw Error("Response cannot be undefined... \ud83d\ude35");if("undefined"===typeof n)throw Error("responseType cannot be undefined... \ud83d\ude35");if(null==(r=Array.isArray(n)?n:[n])[0])throw Error("could not parse data from response \ud83d\ude35");return[4,T(t,r)];case 1:return i=o.sent(),[2,!w(e)&&w(i)?e:i]}}))}))},T=function t(e,n,r){return void 0===r&&(r=0),d(void 0,void 0,void 0,(function(){var i;return h(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,e.clone()[n[r]]()];case 1:return[2,o.sent()];case 2:if(i=o.sent(),n.length-1===r)throw i;return[2,t(e.clone(),n,++r)];case 3:return[2]}}))}))},M=["headers","ok","redirected","trailer","status","statusText","type","url","body","bodyUsed","data"],L=["clone","arrayBuffer","blob","formData","json","text"],O=f(M,L),I=function(t,e){return Object.defineProperties({},O.reduce((function(n,r){return M.includes(r)?n[r]={get:function(){var n=t instanceof Response?t:t&&t.current;if(n)return"data"===r?e.current:("clone"in n?n.clone():{})[r]},enumerable:!0}:L.includes(r)&&(n[r]={value:function(){var e=t instanceof Response?t:t&&t.current;if(e)return("clone"in e?e.clone():{})[r]()},enumerable:!0}),n}),{}))},P=(I(),function(t){return d(void 0,void 0,void 0,(function(){var e,n,r,i;return h(this,(function(o){switch(o.label){case 0:return[4,t.text()];case 1:return e=o.sent(),n=t.status,r=t.statusText,i=function(t){var e={};return t.forEach((function(t,n){e[n]=t})),e}(t.headers),[2,{body:e,status:n,statusText:r,headers:i}]}}))}))});var R=function(t,e){return Object(o.useCallback)(t,(n=e,r=Object(o.useRef)(),JSON.stringify(n)!==JSON.stringify(r.current)&&(r.current=n),r.current));var n,r},N=function(t){return Number.isInteger(t)&&t>0},F=function(t,e){var n=new Error(e);return n.name=t+"",n},j=function(t,e){return t?e?e.endsWith("/")&&t.startsWith("/")?t.substr(1):e.endsWith("/")||t.startsWith("/")||t.startsWith("?")||t.startsWith("&")||e.includes("?")?t:"/"+t:t.startsWith("?")||t.startsWith("&")||t.startsWith("/")?t:"/"+t:""},B=Object(o.createContext)({url:"",options:{},graphql:!1}),Y=B,H=function(){return H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},H.apply(this,arguments)},z={host:"",path:void 0,customOptions:{cacheLife:0,cachePolicy:i.CACHE_FIRST,interceptors:{},onAbort:function(){},onError:function(){},onNewData:function(t,e){return e},onTimeout:function(){},perPage:0,persist:!1,responseType:["json","text","blob","arrayBuffer"],retries:0,retryDelay:1e3,retryOn:[],suspense:!1,timeout:0,data:void 0,loading:!1},requestInit:{headers:{Accept:"application/json, text/plain, */*"}},dependencies:void 0},W=Object.entries(z).reduce((function(t,e){var n,r=e[0],i=e[1];return y(i)?H(H({},t),i):H(H({},t),((n={})[r]=i,n))}),{}),V=function(){return V=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},V.apply(this,arguments)};function U(t,e,n){p(!(y(t)&&y(e)),"You cannot have a 2nd parameter of useFetch as object when your first argument is an object.");var r=Object(o.useContext)(Y),i=Object(o.useMemo)((function(){var e=t;return g(e)&&e.includes("://")?e:r.url?r.url:W.host}),[r.url,t]),a=Object(o.useMemo)((function(){var e=t;if(g(e)&&!e.includes("://"))return e}),[t]),s=Object(o.useMemo)((function(){return _(t)?t:_(e)?e:void 0}),[]),u=Object(o.useMemo)((function(){var n={headers:{}};y(t)?n=t:y(e)&&(n=e);var i=r.options,o=V(V(V(V({},W),i),n),{headers:V(V(V({},W.headers),i.headers),n.headers),interceptors:V(V(V({},W.interceptors),i.interceptors),n.interceptors)});return s?s(o):o}),[t,s,r.options]),l=Object(o.useMemo)((function(){return b(u)}),[u]),c=Object(o.useMemo)((function(){return Array.isArray(e)?e:Array.isArray(n)?n:W.dependencies}),[e,n]),d=u.cacheLife,h=u.retries,f=u.retryDelay,m=u.retryOn;p(Number.isInteger(d)&&d>=0,"`cacheLife` must be a number >= 0"),p(Number.isInteger(h)&&h>=0,"`retries` must be a number >= 0"),p(_(f)||Number.isInteger(f)&&f>=0,"`retryDelay` must be a positive number or a function returning a positive number."),p(_(m)||Array.isArray(m)&&m.every(N),"`retryOn` must be an array of positive numbers or a function returning a boolean.");var v=u.loading||Array.isArray(c),w=Object(o.useMemo)((function(){var t={};return"request"in u.interceptors&&(t.request=u.interceptors.request),"response"in u.interceptors&&(t.response=u.interceptors.response),t}),[u]);return{host:i,path:a,customOptions:Object(o.useMemo)((function(){var t=Object.keys(z.customOptions).reduce((function(t,e){return t[e]=u[e],t}),{});return V(V({},t),{interceptors:w,loading:v})}),[w,v]),requestInit:l,dependencies:c}}var q=function(){return q=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},q.apply(this,arguments)},G=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},$=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},K=r.GET;function Z(t,e,n,i,o,a,s,u,l,c){return G(this,void 0,void 0,(function(){var i,d,h,f,m,y,_,b,w=this;return $(this,(function(k){switch(k.label){case 0:return p(!(v(u)&&v(l)),"If first argument of "+e.toLowerCase()+"() is an object, you cannot have a 2nd argument. \ud83d\ude1c"),p(!(e===K&&v(u)),"You can only have query params as 1st argument of request.get()"),p(!(e===K&&void 0!==l),"You can only have query params as 1st argument of request.get()"),i=!D&&u instanceof URLSearchParams?"?"+u:g(u)?u:"",d=""+a+j(s,a)+j(i),h=u instanceof FormData?u:v(u)?JSON.stringify(u):!D&&(l instanceof FormData||l instanceof URLSearchParams)?l:v(l)||g(l)?JSON.stringify(l):v(t.body)||g(l)?JSON.stringify(t.body):null,f=function(){var n=(t.headers||{})["Content-Type"],i=!!n||[r.POST,r.PUT,r.PATCH].includes(e)&&!(h instanceof FormData),o=q({},t.headers);if(i)o["Content-Type"]=n||"application/json";else if(0===Object.keys(o).length)return null;return o}(),[4,G(w,void 0,void 0,(function(){var r;return $(this,(function(o){switch(o.label){case 0:return r=q(q({},t),{method:e,signal:n.signal}),null!==f?r.headers=f:delete r.headers,null!==h&&(r.body=h),c?[4,c({options:r,url:a,path:s,route:i})]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}}))}))];case 1:return m=k.sent(),y=Object.entries({url:d,method:e,body:m.body||""}).map((function(t){return t[0]+":"+t[1]})).join("||"),_={url:d,options:m},b={},[4,o.has(y)];case 2:return b.isCached=k.sent(),b.id=y,[4,o.get(y)];case 3:return[2,(_.response=(b.cached=k.sent(),b),_)]}}))}))}var X=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},J=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},Q="useHTTPcache",tt=function(){try{return JSON.parse(localStorage.getItem(Q)||"{}")}catch(t){return localStorage.removeItem(Q),{}}},et=function(t){var e=t.cacheLife,n=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return X(void 0,void 0,void 0,(function(){var e;return J(this,(function(n){return e=tt(),t.forEach((function(t){return delete e[t]})),localStorage.setItem(Q,JSON.stringify(e)),[2]}))}))},r=function(t){var e=tt()[t]||{},r=e.expiration,i=e.response,o=r>0&&r<Date.now();return o&&n(t),o||!i};return Object.defineProperties(tt(),{get:{value:function(t){return X(void 0,void 0,void 0,(function(){var e,n,i,o,a,s;return J(this,(function(u){return r(t)?[2]:(e=tt(),n=e[t].response,i=n.body,o=n.headers,a=n.status,s=n.statusText,[2,new Response(i,{status:a,statusText:s,headers:new Headers(o||{})})])}))}))},writable:!1},set:{value:function(t,n){return X(void 0,void 0,void 0,(function(){var r,i,o,a;return J(this,(function(s){switch(s.label){case 0:return r=tt(),i=r,o=t,a={},[4,P(n)];case 1:return i[o]=(a.response=s.sent(),a.expiration=Date.now()+e,a),localStorage.setItem(Q,JSON.stringify(r)),[2]}}))}))},writable:!1},has:{value:function(t){return X(void 0,void 0,void 0,(function(){return J(this,(function(e){return[2,!r(t)]}))}))},writable:!1},delete:{value:n,writable:!1},clear:{value:function(){return X(void 0,void 0,void 0,(function(){return J(this,(function(t){return localStorage.setItem(Q,JSON.stringify({})),[2]}))}))},writable:!1}})},nt=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},rt=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},it={},ot=function(t){var e=t.cacheLife,n=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return nt(void 0,void 0,void 0,(function(){var e,n,r;return rt(this,(function(i){for(e=0,n=t;e<n.length;e++)r=n[e],delete it[r],delete it[r+":ts"];return[2]}))}))},r=function(t){var e=it[t+":ts"],r=e>0&&e<Date.now();return r&&n(t),r||!it[t]};return Object.defineProperties(it,{get:{value:function(t){return nt(void 0,void 0,void 0,(function(){return rt(this,(function(e){return r(t)?[2]:[2,it[t]]}))}))},writable:!1,configurable:!0},set:{value:function(t,n){return nt(void 0,void 0,void 0,(function(){return rt(this,(function(r){return it[t]=n,it[t+":ts"]=e>0?Date.now()+e:0,[2]}))}))},writable:!1,configurable:!0},has:{value:function(t){return nt(void 0,void 0,void 0,(function(){return rt(this,(function(e){return[2,!r(t)]}))}))},writable:!1,configurable:!0},delete:{value:n,writable:!1,configurable:!0},clear:{value:function(){return nt(void 0,void 0,void 0,(function(){return rt(this,(function(t){return it={},[2]}))}))},writable:!1,configurable:!0}})},at=i.NETWORK_ONLY,st=i.NO_CACHE,ut=function(t){var e=t.persist,n=t.cacheLife,r=t.cachePolicy,i=u()(),o=i.isNative;return p(!(i.isServer&&e),"There is no persistent storage on the Server currently! \ud83d\ude45\u200d\u2642\ufe0f"),p(!(o&&e),"React Native support for persistent cache is not yet implemented. \ud83d\ude45\u200d\u2642\ufe0f"),p(!(e&&[st,at].includes(r)),"You cannot use option 'persist' with cachePolicy: "+r+" \ud83d\ude45\u200d\u2642\ufe0f"),e?et({cacheLife:n||864e5}):ot({cacheLife:n})},lt=function(){return lt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},lt.apply(this,arguments)},ct=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},dt=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},ht=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},ft=i.CACHE_FIRST;var pt=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=U.apply(void 0,e),a=i.host,s=i.path,l=i.customOptions,d=i.requestInit,h=i.dependencies,f=l.cacheLife,m=l.cachePolicy,g=l.interceptors,y=l.onAbort,v=l.onError,b=l.onNewData,w=l.onTimeout,k=l.perPage,S=l.persist,E=l.responseType,C=l.retries,x=l.retryDelay,D=l.retryOn,T=l.suspense,M=l.timeout,L=ht(l,["cacheLife","cachePolicy","interceptors","onAbort","onError","onNewData","onTimeout","perPage","persist","responseType","retries","retryDelay","retryOn","suspense","timeout"]),O=ut({persist:S,cacheLife:f,cachePolicy:m}),P=u()().isServer,N=Object(o.useRef)(),j=Object(o.useRef)({}),B=Object(o.useRef)(L.data),Y=Object(o.useRef)(!1),H=Object(o.useRef)(0),z=Object(o.useRef)(),W=Object(o.useRef)(!0),V=Object(o.useRef)("pending"),q=Object(o.useRef)(),G=Object(o.useRef)(!1),$=c()(L.loading),K=$[0],X=$[1],J=Object(o.useReducer)((function(){return{}}),[])[1],Q=R((function(e){var n=function(n,i){return ct(t,void 0,void 0,(function(){var t,o,u,l,c,h,f,S,x,I,R,V,U,q,G,$;return dt(this,(function(K){switch(K.label){case 0:return P?[2]:(N.current=new AbortController,N.current.signal.onabort=y,t=N.current,[4,Z(d,e,t,0,O,a,s,n,i,g.request)]);case 1:if(o=K.sent(),u=o.url,l=o.options,c=o.response,z.current=void 0,k>0&&!W.current&&!z.current)return[2,B.current];T||X(!0),h=M&&setTimeout((function(){Y.current=!0,t.abort(),w&&w()}),M),K.label=2;case 2:return K.trys.push([2,17,23,24]),c.isCached&&m===ft?(S=c.cached,[3,5]):[3,3];case 3:return[4,fetch(u,l)];case 4:S=K.sent().clone(),K.label=5;case 5:return j.current=S.clone(),[4,A(S,L.data,E)];case 6:return f=K.sent(),j.current.data=b(B.current,f),x=j,g.response?[4,g.response({response:j.current,request:d})]:[3,8];case 7:return I=K.sent(),[3,9];case 8:I=j.current,K.label=9;case 9:return x.current=I,p("data"in j.current,"You must have `data` field on the Response returned from your `interceptors.response`"),B.current=j.current.data,q={attempt:H.current,response:S},(R=!_(D)&&Array.isArray(D)&&D.length<1&&!1===(null===S||void 0===S?void 0:S.ok)||Array.isArray(D)&&D.includes(S.status))?[3,12]:(V=_(D))?[4,D(q)]:[3,11];case 10:V=K.sent(),K.label=11;case 11:R=V,K.label=12;case 12:return R&&C>0&&C>H.current?[4,r(q,n,i)]:[3,14];case 13:return[2,K.sent()];case 14:return m!==ft||c.isCached?[3,16]:[4,O.set(c.id,S.clone())];case 15:K.sent(),K.label=16;case 16:return Array.isArray(B.current)&&B.current.length%k&&(W.current=!1),[3,24];case 17:return U=K.sent(),H.current>=C&&Y.current&&(z.current=F("AbortError","Timeout Error")),q={attempt:H.current,error:U},(G=!_(D)&&Array.isArray(D)&&D.length<1)?[3,20]:($=_(D))?[4,D(q)]:[3,19];case 18:$=K.sent(),K.label=19;case 19:G=$,K.label=20;case 20:return G&&C>0&&C>H.current?[4,r(q,n,i)]:[3,22];case 21:return[2,K.sent()];case 22:return"AbortError"!==U.name&&(z.current=U),[3,24];case 23:return Y.current=!1,h&&clearTimeout(h),N.current=void 0,[7];case 24:return!S||S.ok||z.current||(z.current=F(S.status,S.statusText)),T||X(!1),H.current===C&&(H.current=0),z.current&&v({error:z.current}),[2,B.current]}}))}))},r=function(e,r,i){return ct(t,void 0,void 0,(function(){var t;return dt(this,(function(o){switch(o.label){case 0:return t=_(x)?x(e):x,Number.isInteger(t)&&t>=0||console.error("retryDelay must be a number >= 0! If you're using it as a function, it must also return a number >= 0."),H.current++,t?[4,(a=t,new Promise((function(t){return setTimeout(t,a)})))]:[3,2];case 1:o.sent(),o.label=2;case 2:return[4,n(r,i)];case 3:return[2,o.sent()]}var a}))}))};return T?function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return ct(t,void 0,void 0,(function(){return dt(this,(function(t){switch(t.label){case 0:return q.current=n.apply(void 0,e).then((function(t){return V.current="success",t}),(function(){V.current="error"})),J(),[4,q.current];case 1:return[2,t.sent()]}}))}))}:n}),[P,y,d,a,s,g,m,k,M,S,f,w,L.data,b,J,T]),tt=Object(o.useCallback)(Q(r.POST),[Q]),et=Object(o.useCallback)(Q(r.DELETE),[Q]),nt=Object(o.useMemo)((function(){return Object.defineProperties({get:Q(r.GET),post:tt,patch:Q(r.PATCH),put:Q(r.PUT),options:Q(r.OPTIONS),head:Q(r.HEAD),connect:Q(r.CONNECT),trace:Q(r.TRACE),del:et,delete:et,abort:function(){return N.current&&N.current.abort()},query:function(t,e){return tt({query:t,variables:e})},mutate:function(t,e){return tt({mutation:t,variables:e})},cache:O},{loading:{get:function(){return K.current}},error:{get:function(){return z.current}},data:{get:function(){return B.current}}})}),[Q]),rt=Object(o.useMemo)((function(){return I(j,B)}),[]);if(Object(o.useEffect)((function(){if(G.current=!0,Array.isArray(h)){var t=(d.method||r.GET).toLowerCase();(0,nt[t])()}return function(){return G.current=!1}}),h),Object(o.useEffect)((function(){return nt.abort}),[]),T&&q.current){if(P)throw new Error("Suspense on server side is not yet supported! \ud83d\ude45\u200d\u2642\ufe0f");switch(V.current){case"pending":throw q.current;case"error":throw z.current}}return Object.assign([nt,rt,K.current,z.current],lt(lt({request:nt,response:rt},nt),{loading:K.current,data:B.current,error:z.current}))},mt=n(582),gt=n.n(mt);function yt(t){return yt="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},yt(t)}var vt="object"===("undefined"===typeof window?"undefined":yt(window)),_t=(gt.a,vt?window:null),bt=function(t){return!!t.addEventListener},wt=function(t){return!!t.on},kt=function(t,e,n,r){void 0===n&&(n=_t),Object(o.useEffect)((function(){if(e&&n)return bt(n)?n.addEventListener(t,e,r):wt(n)&&n.on(t,e,r),function(){bt(n)?n.removeEventListener(t,e,r):wt(n)&&n.off(t,e,r)}}),[t,e,n,JSON.stringify(r)])},St=function(){},Et=function(t,e,n,r){void 0===e&&(e=St),void 0===n&&(n={}),void 0===r&&(r=[t]);var i=n.event,a=void 0===i?"keydown":i,s=n.target,u=n.options,l=Object(o.useMemo)((function(){var n,r="function"===typeof(n=t)?n:"string"===typeof n?function(t){return t.key===n}:n?function(){return!0}:function(){return!1};return function(t){if(r(t))return e(t)}}),r);kt(a,l,s,u)};var Ct=n(182);function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(n),!0).forEach((function(e){At(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function At(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tt(){Tt=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(A){u=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(x([])));y&&y!==e&&n.call(y,o)&&(m=y);var v=p.prototype=h.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function i(r,o,a,s){var u=c(t[r],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:D}}function D(){return{value:void 0,done:!0}}return f.prototype=p,r(v,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(v),u(v,s,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function Mt(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function Lt(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Ot(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ot(t,e)}(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 Ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var It=function(t){var e=Lt(Object(o.useState)(null),2),n=e[0],r=e[1],i=Lt(Object(o.useState)(t.query||""),2),s=i[0],u=i[1],l=Lt(Object(o.useState)([]),2),c=l[0],d=l[1],h=pt("/api/v1"),f=h.get,p=h.loading,m=h.abort,g=function(t,e,n){var r=this,i=Object(o.useRef)(null),a=Object(o.useRef)(0),s=Object(o.useRef)(null),u=Object(o.useRef)([]),l=Object(o.useRef)(),c=Object(o.useRef)(),d=Object(o.useRef)(t),h=Object(o.useRef)(!0);d.current=t;var f=!e&&0!==e&&"undefined"!==typeof window;if("function"!==typeof t)throw new TypeError("Expected a function");e=+e||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,y=g?Math.max(+n.maxWait||0,e):null,v=Object(o.useCallback)((function(t){var e=u.current,n=l.current;return u.current=l.current=null,a.current=t,c.current=d.current.apply(n,e)}),[]),_=Object(o.useCallback)((function(t,e){f&&cancelAnimationFrame(s.current),s.current=f?requestAnimationFrame(t):setTimeout(t,e)}),[f]),b=Object(o.useCallback)((function(t){if(!h.current)return!1;var n=t-i.current,r=t-a.current;return!i.current||n>=e||n<0||g&&r>=y}),[y,g,e]),w=Object(o.useCallback)((function(t){return s.current=null,m&&u.current?v(t):(u.current=l.current=null,c.current)}),[v,m]),k=Object(o.useCallback)((function(){var t=Date.now();if(b(t))return w(t);if(h.current){var n=t-i.current,r=t-a.current,o=e-n,s=g?Math.min(o,y-r):o;_(k,s)}}),[y,g,b,_,w,e]),S=Object(o.useCallback)((function(){s.current&&(f?cancelAnimationFrame(s.current):clearTimeout(s.current)),a.current=0,u.current=i.current=l.current=s.current=null}),[f]),E=Object(o.useCallback)((function(){return s.current?w(Date.now()):c.current}),[w]);Object(o.useEffect)((function(){return h.current=!0,function(){h.current=!1}}),[]);var C=Object(o.useCallback)((function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=Date.now(),d=b(o);if(u.current=t,l.current=r,i.current=o,d){if(!s.current&&h.current)return a.current=i.current,_(k,e),p?v(i.current):c.current;if(g)return _(k,e),v(i.current)}return s.current||_(k,e),c.current}),[v,p,g,b,_,k,e]),x=Object(o.useCallback)((function(){return!!s.current}),[]);return Object(o.useMemo)((function(){return{callback:C,cancel:S,flush:E,pending:x}}),[C,S,E,x])}((function(t){return v()}),250),y=Object(o.useRef)();Object(o.useEffect)((function(){y.current=null===c||void 0===c?void 0:c.results})),Et("ArrowUp",(function(){r((function(t){return null===t?y.current.length-1:0===t?null:t>0?t-1:t}))})),Et("ArrowDown",(function(){r((function(t){return null===t?0:t===y.current.length-1?null:t+1<y.current.length?t+1:t}))}));var v=function(){var t,e=(t=Tt().mark((function t(){var e,n;return Tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(m(),d([]),r(null),s&&!(s.length<3)){t.next=5;break}return t.abrupt("return");case 5:return t.next=7,f(b());case 7:null!==(n=t.sent)&&void 0!==n&&null!==(e=n.data)&&void 0!==e&&e.results&&d(n.data);case 9:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){Mt(o,r,i,a,s,"next",t)}function s(t){Mt(o,r,i,a,s,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}(),_=function(t){if("ArrowUp"===t.key||"ArrowDown"===t.key)return t.preventDefault(),!1;"Escape"===t.key&&(u(""),d([]))},b=function(){return"".concat("/search","/").concat(encodeURIComponent(s),".json")},w=function(){var t=new URL(window.location.href);return t.searchParams.set("static_query",s),t};return a.a.createElement("div",{id:"SearchComponent"},a.a.createElement("form",{onSubmit:function(t){t.preventDefault(),document.location=null===n?w():c.results[n].path}},a.a.createElement("div",{className:"search--input-container"},a.a.createElement("i",{className:["fas fa-spinner fa-spin","search--input-spinner",p?"search--input-spinner-active":"search--input-spinner-hidden"].join(" ")}),a.a.createElement("input",{type:"query",placeholder:"Search...",className:["search--input","form-control",null!==c&&void 0!==c&&c.results&&(null===c||void 0===c?void 0:c.results.length)>0?"search--input-with-data":""].join(" "),value:s,onChange:function(t){var e=t.target.value;u(e),g.callback(),e.length<3&&d([])},onKeyDown:_,onKeyUp:_}))),c&&(null===c||void 0===c?void 0:c.results)&&(null===c||void 0===c?void 0:c.results.length)>0&&a.a.createElement("div",{className:"search--results-outer-container"},a.a.createElement("div",{className:"search--results-container"},c.results.map((function(t,e){return a.a.createElement(Ct.default,{key:e+t,result:Dt({},t),selected:n===e})})),a.a.createElement("div",{className:"search--results-total"},"Total results: ",c.total," - ",a.a.createElement("a",{href:w()},"View All")))))};It.defaultProps={};e.default=It},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(56),a=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function s(t,e){var n=function(t){var e=t.name;if(e&&-1!==e.lastIndexOf(".")&&!t.type){var n=e.split(".").pop().toLowerCase(),r=a.get(n);r&&Object.defineProperty(t,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return t}(t);if("string"!==typeof n.path){var r=t.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof e?e:"string"===typeof r&&r.length>0?r:t.name,writable:!1,configurable:!1,enumerable:!0})}return n}function u(t){return u="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},u(t)}var l=[".DS_Store","Thumbs.db"];function c(t){return"object"===u(t)&&null!==t}function d(t){return m(t.target.files).map((function(t){return s(t)}))}function h(t){return Object(o.a)(this,void 0,void 0,(function(){return Object(o.b)(this,(function(e){switch(e.label){case 0:return[4,Promise.all(t.map((function(t){return t.getFile()})))];case 1:return[2,e.sent().map((function(t){return s(t)}))]}}))}))}function f(t,e){return Object(o.a)(this,void 0,void 0,(function(){var n;return Object(o.b)(this,(function(r){switch(r.label){case 0:return null===t?[2,[]]:t.items?(n=m(t.items).filter((function(t){return"file"===t.kind})),"drop"!==e?[2,n]:[4,Promise.all(n.map(g))]):[3,2];case 1:return[2,p(y(r.sent()))];case 2:return[2,p(m(t.files).map((function(t){return s(t)})))]}}))}))}function p(t){return t.filter((function(t){return-1===l.indexOf(t.name)}))}function m(t){if(null===t)return[];for(var e=[],n=0;n<t.length;n++){var r=t[n];e.push(r)}return e}function g(t){if("function"!==typeof t.webkitGetAsEntry)return v(t);var e=t.webkitGetAsEntry();return e&&e.isDirectory?b(e):v(t)}function y(t){return t.reduce((function(t,e){return Object(o.c)(t,Array.isArray(e)?y(e):[e])}),[])}function v(t){var e=t.getAsFile();if(!e)return Promise.reject(t+" is not a File");var n=s(e);return Promise.resolve(n)}function _(t){return Object(o.a)(this,void 0,void 0,(function(){return Object(o.b)(this,(function(e){return[2,t.isDirectory?b(t):w(t)]}))}))}function b(t){var e=t.createReader();return new Promise((function(t,n){var r=[];!function i(){var a=this;e.readEntries((function(e){return Object(o.a)(a,void 0,void 0,(function(){var a,s,u;return Object(o.b)(this,(function(o){switch(o.label){case 0:if(e.length)return[3,5];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return a=o.sent(),t(a),[3,4];case 3:return s=o.sent(),n(s),[3,4];case 4:return[3,6];case 5:u=Promise.all(e.map(_)),r.push(u),i(),o.label=6;case 6:return[2]}}))}))}),(function(t){n(t)}))}()}))}function w(t){return Object(o.a)(this,void 0,void 0,(function(){return Object(o.b)(this,(function(e){return[2,new Promise((function(e,n){t.file((function(n){var r=s(n,t.fullPath);e(r)}),(function(t){n(t)}))}))]}))}))}var k=n(583),S=n.n(k);function E(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function C(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?E(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function x(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function D(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A(t,e)}(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){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var T="file-invalid-type",M="file-too-large",L="file-too-small",O="too-many-files",I=function(t){t=Array.isArray(t)&&1===t.length?t[0]:t;var e=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:T,message:"File type must be ".concat(e)}},P=function(t){return{code:M,message:"File is larger than ".concat(t," ").concat(1===t?"byte":"bytes")}},R=function(t){return{code:L,message:"File is smaller than ".concat(t," ").concat(1===t?"byte":"bytes")}},N={code:O,message:"Too many files"};function F(t,e){var n="application/x-moz-file"===t.type||S()(t,e);return[n,n?null:I(e)]}function j(t,e,n){if(B(t.size))if(B(e)&&B(n)){if(t.size>n)return[!1,P(n)];if(t.size<e)return[!1,R(e)]}else{if(B(e)&&t.size<e)return[!1,R(e)];if(B(n)&&t.size>n)return[!1,P(n)]}return[!0,null]}function B(t){return void 0!==t&&null!==t}function Y(t){return"function"===typeof t.isPropagationStopped?t.isPropagationStopped():"undefined"!==typeof t.cancelBubble&&t.cancelBubble}function H(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,(function(t){return"Files"===t||"application/x-moz-file"===t})):!!t.target&&!!t.target.files}function z(t){t.preventDefault()}function W(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.some((function(e){return!Y(t)&&e&&e.apply(void 0,[t].concat(r)),Y(t)}))}}function V(){return"showOpenFilePicker"in window}function U(t){return t="string"===typeof t?t.split(","):t,[{description:"everything",accept:Array.isArray(t)?t.filter((function(t){return"audio/*"===t||"video/*"===t||"image/*"===t||"text/*"===t||/\w+\/[-+.\w]+/g.test(t)})).reduce((function(t,e){return C(C({},t),{},x({},e,[]))}),{}):{}}]}var q=["children"],G=["open"],$=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],K=["refKey","onChange","onClick"];function Z(t){return function(t){if(Array.isArray(t))return Q(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||J(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(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)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||J(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 J(t,e){if(t){if("string"===typeof t)return Q(t,e);var n=Object.prototype.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)?Q(t,e):void 0}}function Q(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function tt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function et(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(n),!0).forEach((function(e){nt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rt(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var it=Object(r.forwardRef)((function(t,e){var n=t.children,o=st(rt(t,q)),a=o.open,s=rt(o,G);return Object(r.useImperativeHandle)(e,(function(){return{open:a}}),[a]),i.a.createElement(r.Fragment,null,n(et(et({},s),{},{open:a})))}));it.displayName="Dropzone";var ot={disabled:!1,getFilesFromEvent:function(t){return Object(o.a)(this,void 0,void 0,(function(){return Object(o.b)(this,(function(e){return c(t)&&c(t.dataTransfer)?[2,f(t.dataTransfer,t.type)]:function(t){return c(t)&&c(t.target)}(t)?[2,d(t)]:Array.isArray(t)&&t.every((function(t){return"getFile"in t&&"function"===typeof t.getFile}))?[2,h(t)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1};it.defaultProps=ot;var at={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function st(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=et(et({},ot),t),n=e.accept,i=e.disabled,o=e.getFilesFromEvent,a=e.maxSize,s=e.minSize,u=e.multiple,l=e.maxFiles,c=e.onDragEnter,d=e.onDragLeave,h=e.onDragOver,f=e.onDrop,p=e.onDropAccepted,m=e.onDropRejected,g=e.onFileDialogCancel,y=e.onFileDialogOpen,v=e.useFsAccessApi,_=e.preventDropOnDocument,b=e.noClick,w=e.noKeyboard,k=e.noDrag,S=e.noDragEventsBubbling,E=e.validator,C=Object(r.useMemo)((function(){return"function"===typeof y?y:lt}),[y]),x=Object(r.useMemo)((function(){return"function"===typeof g?g:lt}),[g]),A=Object(r.useRef)(null),T=Object(r.useRef)(null),M=X(Object(r.useReducer)(ut,at),2),L=M[0],O=M[1],I=L.isFocused,P=L.isFileDialogActive,R=L.draggedFiles,B=function(){P&&setTimeout((function(){T.current&&(T.current.files.length||(O({type:"closeDialog"}),x()))}),300)};Object(r.useEffect)((function(){return v&&V()?function(){}:(window.addEventListener("focus",B,!1),function(){window.removeEventListener("focus",B,!1)})}),[T,P,x,v]);var q=Object(r.useRef)([]),G=function(t){A.current&&A.current.contains(t.target)||(t.preventDefault(),q.current=[])};Object(r.useEffect)((function(){return _&&(document.addEventListener("dragover",z,!1),document.addEventListener("drop",G,!1)),function(){_&&(document.removeEventListener("dragover",z),document.removeEventListener("drop",G))}}),[A,_]);var J=Object(r.useCallback)((function(t){t.preventDefault(),t.persist(),vt(t),q.current=[].concat(Z(q.current),[t.target]),H(t)&&Promise.resolve(o(t)).then((function(e){Y(t)&&!S||(O({draggedFiles:e,isDragActive:!0,type:"setDraggedFiles"}),c&&c(t))}))}),[o,c,S]),Q=Object(r.useCallback)((function(t){t.preventDefault(),t.persist(),vt(t);var e=H(t);if(e&&t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(n){}return e&&h&&h(t),!1}),[h,S]),tt=Object(r.useCallback)((function(t){t.preventDefault(),t.persist(),vt(t);var e=q.current.filter((function(t){return A.current&&A.current.contains(t)})),n=e.indexOf(t.target);-1!==n&&e.splice(n,1),q.current=e,e.length>0||(O({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),H(t)&&d&&d(t))}),[A,d,S]),it=Object(r.useCallback)((function(t,e){var r=[],i=[];t.forEach((function(t){var e=X(F(t,n),2),o=e[0],u=e[1],l=X(j(t,s,a),2),c=l[0],d=l[1],h=E?E(t):null;if(o&&c&&!h)r.push(t);else{var f=[u,d];h&&(f=f.concat(h)),i.push({file:t,errors:f.filter((function(t){return t}))})}})),(!u&&r.length>1||u&&l>=1&&r.length>l)&&(r.forEach((function(t){i.push({file:t,errors:[N]})})),r.splice(0)),O({acceptedFiles:r,fileRejections:i,type:"setFiles"}),f&&f(r,i,e),i.length>0&&m&&m(i,e),r.length>0&&p&&p(r,e)}),[O,u,n,s,a,l,f,p,m,E]),st=Object(r.useCallback)((function(t){t.preventDefault(),t.persist(),vt(t),q.current=[],H(t)&&Promise.resolve(o(t)).then((function(e){Y(t)&&!S||it(e,t)})),O({type:"reset"})}),[o,it,S]),ct=Object(r.useCallback)((function(){if(v&&V()){O({type:"openDialog"}),C();var t={multiple:u,types:U(n)};window.showOpenFilePicker(t).then((function(t){return o(t)})).then((function(t){return it(t,null)})).catch((function(t){return x(t)})).finally((function(){return O({type:"closeDialog"})}))}else T.current&&(O({type:"openDialog"}),C(),T.current.value=null,T.current.click())}),[O,C,x,v,it,n,u]),dt=Object(r.useCallback)((function(t){A.current&&A.current.isEqualNode(t.target)&&(32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),ct()))}),[A,T,ct]),ht=Object(r.useCallback)((function(){O({type:"focus"})}),[]),ft=Object(r.useCallback)((function(){O({type:"blur"})}),[]),pt=Object(r.useCallback)((function(){b||(!function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(t){return-1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")}(t)||function(t){return-1!==t.indexOf("Edge/")}(t)}()?ct():setTimeout(ct,0))}),[T,b,ct]),mt=function(t){return i?null:t},gt=function(t){return w?null:mt(t)},yt=function(t){return k?null:mt(t)},vt=function(t){S&&t.stopPropagation()},_t=Object(r.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,r=t.role,o=t.onKeyDown,a=t.onFocus,s=t.onBlur,u=t.onClick,l=t.onDragEnter,c=t.onDragOver,d=t.onDragLeave,h=t.onDrop,f=rt(t,$);return et(et(nt({onKeyDown:gt(W(o,dt)),onFocus:gt(W(a,ht)),onBlur:gt(W(s,ft)),onClick:mt(W(u,pt)),onDragEnter:yt(W(l,J)),onDragOver:yt(W(c,Q)),onDragLeave:yt(W(d,tt)),onDrop:yt(W(h,st)),role:"string"===typeof r&&""!==r?r:"button"},n,A),i||w?{}:{tabIndex:0}),f)}}),[A,dt,ht,ft,pt,J,Q,tt,st,w,k,i]),bt=Object(r.useCallback)((function(t){t.stopPropagation()}),[]),wt=Object(r.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,r=void 0===e?"ref":e,i=t.onChange,o=t.onClick,a=rt(t,K);return et(et({},nt({accept:n,multiple:u,type:"file",style:{display:"none"},onChange:mt(W(i,st)),onClick:mt(W(o,bt)),autoComplete:"off",tabIndex:-1},r,T)),a)}}),[T,n,u,st,i]),kt=R.length,St=kt>0&&function(t){var e=t.files,n=t.accept,r=t.minSize,i=t.maxSize,o=t.multiple,a=t.maxFiles;return!(!o&&e.length>1||o&&a>=1&&e.length>a)&&e.every((function(t){var e=D(F(t,n),1)[0],o=D(j(t,r,i),1)[0];return e&&o}))}({files:R,accept:n,minSize:s,maxSize:a,multiple:u,maxFiles:l}),Et=kt>0&&!St;return et(et({},L),{},{isDragAccept:St,isDragReject:Et,isFocused:I&&!i,getRootProps:_t,getInputProps:wt,rootRef:A,inputRef:T,open:mt(ct)})}function ut(t,e){switch(e.type){case"focus":return et(et({},t),{},{isFocused:!0});case"blur":return et(et({},t),{},{isFocused:!1});case"openDialog":return et(et({},at),{},{isFileDialogActive:!0});case"closeDialog":return et(et({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=e.isDragActive,r=e.draggedFiles;return et(et({},t),{},{draggedFiles:r,isDragActive:n});case"setFiles":return et(et({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return et({},at);default:return t}}function lt(){}var ct=n(275),dt=n(184);function ht(t){return function(t){if(Array.isArray(t))return yt(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||gt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mt(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||gt(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 gt(t,e){if(t){if("string"===typeof t)return yt(t,e);var n=Object.prototype.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)?yt(t,e):void 0}}function yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var vt=function(t){var e=t.resourceType,n=t.resourceId,o=t.from,a=t.dropzoneOptions,s=mt(Object(r.useState)([]),2),u=s[0],l=s[1],c=mt(Object(r.useState)([]),2),d=c[0],h=c[1],f=mt(Object(r.useState)(!1),2),p=f[0],m=f[1],g=(document.querySelector("#attachment_uploader_overlay input[type=file]"),document.querySelector("#attachment_uploader_form")),y=document.querySelector("#attach_files_link"),v=function(){var t=document.querySelector("#attachment_uploader_overlay");t.classList.add("attachment_uploader_overlay_active"),t.classList.remove("attachment_uploader_overlay_inactive")},_=function(){var t=document.querySelector("#attachment_uploader_overlay");t.classList.remove("attachment_uploader_overlay_active"),t.classList.add("attachment_uploader_overlay_inactive")},b=st(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ft(Object(n),!0).forEach((function(e){pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({onDrop:function(t){return 0===w?_():v()},onDragEnter:function(){v()},onDragLeave:function(){_()},noClick:!0,noKeyboard:!0},a)),w=b.acceptedFiles,k=b.getRootProps,S=b.getInputProps,E=b.isDragActive,C=b.open;y.onclick=C,Object(r.useEffect)((function(){h([].concat(ht(d),[Array.from(w)]).flat()),w.length>0&&(m(!0),x())}),[w]),Object(r.useEffect)((function(){u.length===w.length&&0!==u.length&&g.submit()}),[u]),Object(r.useEffect)((function(){document.querySelector("#attachment_uploader_overlay")&&(p?v():_())}),[p]);var x=function(){w.forEach((function(t){return function(t){new ct.DirectUpload(t,"/rails/active_storage/direct_uploads").create((function(e,n){if(e)console.error(e);else{var r=document.createElement("input");r.setAttribute("type","hidden"),r.setAttribute("value",n.signed_id),r.name="attachments[]",g.appendChild(r),console.log(r),l((function(e){return[].concat(ht(e),[t])}))}}))}(t)}))},D=(d.map((function(t){return i.a.createElement("li",{key:t.path},t.path," - ",t.size," bytes")})),document.querySelector("meta[name='csrf-token']").getAttribute("content"));return i.a.createElement("div",{id:"attachment_uploader_overlay",className:"attachment_uploader_overlay"},i.a.createElement("form",{id:"attachment_uploader_form",action:"/attachments",acceptCharset:"UTF-8",method:"post",className:"attachment_uploader_form"},i.a.createElement("input",{type:"hidden",name:"authenticity_token",value:D}),i.a.createElement("input",{type:"hidden",name:"resource_type",id:"resource_type",value:e}),i.a.createElement("input",{type:"hidden",name:"resource_id",id:"resource_id",value:n}),i.a.createElement("input",{type:"hidden",name:"from",id:"from",value:o}),i.a.createElement("div",Object.assign({},k(),{className:"attachment_uploader_container"}),i.a.createElement("input",S()),p&&i.a.createElement("div",{className:"attachment_uploader_progress_container"},i.a.createElement(dt.default,null),i.a.createElement("div",{className:"attachment_uploader_text"},"Attaching files, please wait...")),E?i.a.createElement("div",{className:"attachment_uploader_dropzone"},"Drop the files here!"):i.a.createElement("div",null))))};vt.defaultProps={};e.default=vt},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r),o=n(581),a=n.n(o),s=n(183);function u(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=function(t){var e=t.result,n=t.selected,r=u({},a()(e.type),e),o=s["".concat(e.type,"Result")];return i.a.createElement("div",{className:["search--result",n?"search--selected":"search--unselected"].join(" ")},i.a.createElement(o,r))}},function(t,e,n){"use strict";n.r(e),n.d(e,"WorkspaceResult",(function(){return a})),n.d(e,"InventoryResult",(function(){return s})),n.d(e,"ItemResult",(function(){return u})),n.d(e,"StorageAreaResult",(function(){return l})),n.d(e,"SampleShipmentResult",(function(){return c})),n.d(e,"SiteSampleShipmentResult",(function(){return d})),n.d(e,"VendorShipmentResult",(function(){return h})),n.d(e,"ReplenishmentResult",(function(){return f})),n.d(e,"SampleResult",(function(){return p})),n.d(e,"SampleGroupResult",(function(){return m})),n.d(e,"SubjectResult",(function(){return g})),n.d(e,"OrderResult",(function(){return y})),n.d(e,"ProtocolResult",(function(){return v})),n.d(e,"SiteResult",(function(){return _}));var r=n(4),i=n.n(r),o=(n(596),function(t){var e=t.result,n=t.children;return i.a.createElement("a",{href:e.path},i.a.createElement("div",{className:"search--result-header"},e.type),n)}),a=function(t){var e=t.workspace;return i.a.createElement(o,{result:e},e.name," / ",e.site.name)},s=function(t){var e,n,r=t.inventory;return i.a.createElement(o,{result:r},r.name," / ",(null===(e=r.workspace)||void 0===e?void 0:e.sponsor_name)&&i.a.createElement(i.a.Fragment,null,r.workspace.sponsor_name),!(null!==(n=r.workspace)&&void 0!==n&&n.sponsor_name)&&i.a.createElement(i.a.Fragment,null,r.workspace.name))},u=function(t){var e=t.item;return i.a.createElement(o,{result:e},e.name," (",e.state,") / ",e.inventory.name," / ",e.workspace.name)},l=function(t){var e=t.storageArea;return i.a.createElement(o,{result:e},e.name," / ",e.site.name)},c=function(t){var e=t.sampleShipment;return i.a.createElement(o,{result:e},e.name," (",e.shipped_at,")")},d=function(t){var e=t.siteSampleShipment;return i.a.createElement(o,{result:e},e.name," (",e.shipped_at,")")},h=function(t){var e=t.vendorShipment;return i.a.createElement(o,{result:e},e.name," (",e.shipped_at,")")},f=function(t){var e=t.replenishment;return i.a.createElement(o,{result:e},e.name," (",e.shipped_at,")")},p=function(t){var e=t.sample;return i.a.createElement(o,{result:e},e.name," / ",e.sample_timepoint.name," / ",e.subject.name)},m=function(t){var e=t.sampleGroup;return i.a.createElement(o,{result:e},e.name," / ",e.sample_type.name)},g=function(t){var e=t.subject;return i.a.createElement(o,{result:e},e.subject_identifier," / ",e.workspace.name)},y=function(t){var e=t.order;return i.a.createElement(o,{result:e},e.name," / ",e.site.name," / ",e.inventory.name)},v=function(t){var e=t.protocol;return i.a.createElement(o,{result:e},e.name," / ",e.sponsor.name)},_=function(t){var e=t.site;return i.a.createElement(o,{result:e},e.name)}},function(t,e,n){"use strict";n.r(e);var r=n(4),i=n.n(r);e.default=function(){return i.a.createElement("div",{className:"attachment_uploader_spinner_outer_container"},i.a.createElement("div",{className:"attachment_uploader_spinner_inner_container"},i.a.createElement("div",null),i.a.createElement("div",null),i.a.createElement("div",null),i.a.createElement("div",null),i.a.createElement("div",null),i.a.createElement("div",null),i.a.createElement("div",null),i.a.createElement("div",null),i.a.createElement("div",null),i.a.createElement("div",null)))}},,,,,,,,,,,,,,function(t,e,n){var r,i;r=[n(65)],void 0===(i=function(t){return t.concat}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(65)],void 0===(i=function(t){return t.push}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(65)],void 0===(i=function(t){return t.indexOf}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(163)],void 0===(i=function(t){return t.hasOwnProperty}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(39)],void 0===(i=function(t){return t.expr.match.needsContext}.apply(e,r))||(t.exports=i)},function(t,e,n){var r;void 0===(r=function(){return/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[n(13),n(200),n(202),n(39)],void 0===(i=function(t,e,n){var r=/^.[^:#\[\.,]*$/;function i(e,n,i){if(t.isFunction(n))return t.grep(e,(function(t,e){return!!n.call(t,e,t)!==i}));if(n.nodeType)return t.grep(e,(function(t){return t===n!==i}));if("string"===typeof n){if(r.test(n))return t.filter(n,e,i);n=t.filter(n,e)}return t.grep(e,(function(e){return t.inArray(e,n)>-1!==i}))}t.filter=function(e,n,r){var i=n[0];return r&&(e=":not("+e+")"),1===n.length&&1===i.nodeType?t.find.matchesSelector(i,e)?[i]:[]:t.find.matches(e,t.grep(n,(function(t){return 1===t.nodeType})))},t.fn.extend({find:function(e){var n,r=[],i=this,o=i.length;if("string"!==typeof e)return this.pushStack(t(e).filter((function(){for(n=0;n<o;n++)if(t.contains(i[n],this))return!0})));for(n=0;n<o;n++)t.find(e,i[n],r);return(r=this.pushStack(o>1?t.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(e){return!!i(this,"string"===typeof e&&n.test(e)?t(e):e||[],!1).length}})}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;function o(t){return o="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(t)}r=[n(13),n(65),n(397),n(166)],i=function(t,e,n,r){var i=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,a=/([A-Z])/g;function s(e,n,r){if(void 0===r&&1===e.nodeType){var o="data-"+n.replace(a,"-$1").toLowerCase();if("string"===typeof(r=e.getAttribute(o))){try{r="true"===r||"false"!==r&&("null"===r?null:+r+""===r?+r:i.test(r)?t.parseJSON(r):r)}catch(s){}t.data(e,n,r)}else r=void 0}return r}function u(e){var n;for(n in e)if(("data"!==n||!t.isEmptyObject(e[n]))&&"toJSON"!==n)return!1;return!0}function l(n,i,a,s){if(r(n)){var u,l,c=t.expando,d=n.nodeType,h=d?t.cache:n,f=d?n[c]:n[c]&&c;if(f&&h[f]&&(s||h[f].data)||void 0!==a||"string"!==typeof i)return f||(f=d?n[c]=e.pop()||t.guid++:c),h[f]||(h[f]=d?{}:{toJSON:t.noop}),"object"!==o(i)&&"function"!==typeof i||(s?h[f]=t.extend(h[f],i):h[f].data=t.extend(h[f].data,i)),l=h[f],s||(l.data||(l.data={}),l=l.data),void 0!==a&&(l[t.camelCase(i)]=a),"string"===typeof i?null==(u=l[i])&&(u=l[t.camelCase(i)]):u=l,u}}function c(e,i,o){if(r(e)){var a,s,l=e.nodeType,c=l?t.cache:e,d=l?e[t.expando]:t.expando;if(c[d]){if(i&&(a=o?c[d]:c[d].data)){s=(i=t.isArray(i)?i.concat(t.map(i,t.camelCase)):i in a||(i=t.camelCase(i))in a?[i]:i.split(" ")).length;for(;s--;)delete a[i[s]];if(o?!u(a):!t.isEmptyObject(a))return}(o||(delete c[d].data,u(c[d])))&&(l?t.cleanData([e],!0):n.deleteExpando||c!=c.window?delete c[d]:c[d]=void 0)}}}return t.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?t.cache[e[t.expando]]:e[t.expando])&&!u(e)},data:function(t,e,n){return l(t,e,n)},removeData:function(t,e){return c(t,e)},_data:function(t,e,n){return l(t,e,n,!0)},_removeData:function(t,e){return c(t,e,!0)}}),t.fn.extend({data:function(e,n){var r,i,a,u=this[0],l=u&&u.attributes;if(void 0===e){if(this.length&&(a=t.data(u),1===u.nodeType&&!t._data(u,"parsedAttrs"))){for(r=l.length;r--;)l[r]&&0===(i=l[r].name).indexOf("data-")&&s(u,i=t.camelCase(i.slice(5)),a[i]);t._data(u,"parsedAttrs",!0)}return a}return"object"===o(e)?this.each((function(){t.data(this,e)})):arguments.length>1?this.each((function(){t.data(this,e,n)})):u?s(u,e,t.data(u,e)):void 0},removeData:function(e){return this.each((function(){t.removeData(this,e)}))}}),t}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r;void 0===(r=function(){return["Top","Right","Bottom","Left"]}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[n(13),n(39)],void 0===(i=function(t){return function(e,n){return e=n||e,"none"===t.css(e,"display")||!t.contains(e.ownerDocument,e)}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(169)],void 0===(i=function(t,e){return function(n,r,i,o){var a,s=1,u=20,l=o?function(){return o.cur()}:function(){return t.css(n,r,"")},c=l(),d=i&&i[3]||(t.cssNumber[r]?"":"px"),h=(t.cssNumber[r]||"px"!==d&&+c)&&e.exec(t.css(n,r));if(h&&h[3]!==d){d=d||h[3],i=i||[],h=+c||1;do{h/=s=s||".5",t.style(n,r,h+d)}while(s!==(s=l()/c)&&1!==s&&--u)}return i&&(h=+h||+c||0,a=i[1]?h+(i[1]+1)*i[2]:+i[2],o&&(o.unit=d,o.start=h,o.end=a)),a}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(36),n(121)],void 0===(i=function(t,e){var n,r={HTML:"block",BODY:"block"};function i(e,n){var r=t(n.createElement(e)).appendTo(n.body),i=t.css(r[0],"display");return r.detach(),i}return function(o){var a=e,s=r[o];return s||("none"!==(s=i(o,a))&&s||((a=((n=(n||t("<iframe frameborder='0' width='0' height='0'/>")).appendTo(a.documentElement))[0].contentWindow||n[0].contentDocument).document).write(),a.close(),s=i(o,a),n.detach()),r[o]=s),s}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r;void 0===(r=function(){return/<([\w:-]+)/}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(){return/^$|\/(?:java|ecma)script/i}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(){return/^\s+/}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r;void 0===(r=function(){return"abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video"}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[n(213)],void 0===(i=function(t){return function(e){var n=t.split("|"),r=e.createDocumentFragment();if(r.createElement)for(;n.length;)r.createElement(n.pop());return r}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(172)],void 0===(i=function(t){var e={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:t.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};return e.optgroup=e.option,e.tbody=e.tfoot=e.colgroup=e.caption=e.thead,e.th=e.td,e}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13)],void 0===(i=function(t){return function e(n,r){var i,o,a=0,s="undefined"!==typeof n.getElementsByTagName?n.getElementsByTagName(r||"*"):"undefined"!==typeof n.querySelectorAll?n.querySelectorAll(r||"*"):void 0;if(!s)for(s=[],i=n.childNodes||n;null!=(o=i[a]);a++)!r||t.nodeName(o,r)?s.push(o):t.merge(s,e(o,r));return void 0===r||r&&t.nodeName(n,r)?t.merge([n],s):s}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13)],void 0===(i=function(t){return function(e,n){for(var r,i=0;null!=(r=e[i]);i++)t._data(r,"globalEval",!n||t._data(n[i],"globalEval"))}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(171),n(210),n(211),n(212),n(214),n(215),n(216),n(217),n(172)],void 0===(i=function(t,e,n,r,i,o,a,s,u,l){var c=/<|&#?\w+;/,d=/<tbody/i;function h(t){e.test(t.type)&&(t.defaultChecked=t.checked)}return function(e,f,p,m,g){for(var y,v,_,b,w,k,S,E=e.length,C=o(f),x=[],D=0;D<E;D++)if((v=e[D])||0===v)if("object"===t.type(v))t.merge(x,v.nodeType?[v]:v);else if(c.test(v)){for(b=b||C.appendChild(f.createElement("div")),w=(n.exec(v)||["",""])[1].toLowerCase(),S=a[w]||a._default,b.innerHTML=S[1]+t.htmlPrefilter(v)+S[2],y=S[0];y--;)b=b.lastChild;if(!l.leadingWhitespace&&i.test(v)&&x.push(f.createTextNode(i.exec(v)[0])),!l.tbody)for(y=(v="table"!==w||d.test(v)?"<table>"!==S[1]||d.test(v)?0:b:b.firstChild)&&v.childNodes.length;y--;)t.nodeName(k=v.childNodes[y],"tbody")&&!k.childNodes.length&&v.removeChild(k);for(t.merge(x,b.childNodes),b.textContent="";b.firstChild;)b.removeChild(b.firstChild);b=C.lastChild}else x.push(f.createTextNode(v));for(b&&C.removeChild(b),l.appendChecked||t.grep(s(x,"input"),h),D=0;v=x[D++];)if(m&&t.inArray(v,m)>-1)g&&g.push(v);else if(_=t.contains(v.ownerDocument,v),b=s(C.appendChild(v),"script"),_&&u(b),p)for(y=0;v=b[y++];)r.test(v.type||"")&&p.push(v);return b=null,C}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r;void 0===(r=function(){return/^margin/}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[e,n(13),n(174),n(173),n(219),n(123),n(39)],i=function(t,e,n,r,i,o){var a,s,u=/^(top|right|bottom|left)$/;window.getComputedStyle?(a=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=window),e.getComputedStyle(t)},s=function(t,n,s){var u,l,c,d,h=t.style;return""!==(d=(s=s||a(t))?s.getPropertyValue(n)||s[n]:void 0)&&void 0!==d||e.contains(t.ownerDocument,t)||(d=e.style(t,n)),s&&!o.pixelMarginRight()&&r.test(d)&&i.test(n)&&(u=h.width,l=h.minWidth,c=h.maxWidth,h.minWidth=h.maxWidth=h.width=d,d=s.width,h.width=u,h.minWidth=l,h.maxWidth=c),void 0===d?d:d+""}):n.currentStyle&&(a=function(t){return t.currentStyle},s=function(t,e,n){var i,o,s,l,c=t.style;return null==(l=(n=n||a(t))?n[e]:void 0)&&c&&c[e]&&(l=c[e]),r.test(l)&&!u.test(e)&&(i=c.left,(s=(o=t.runtimeStyle)&&o.left)&&(o.left=t.currentStyle.left),c.left="fontSize"===e?"1em":l,l=c.pixelLeft+"px",c.left=i,s&&(o.left=s)),void 0===l?l:l+""||"auto"}),t.getStyles=a,t.curCSS=s}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r;r=function(){return function(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}}.call(e,n,e,t),void 0===r||(t.exports=r)},function(t,e,n){var r,i;r=[n(13),n(175),n(43)],i=function(t,e){var n=/\r/g,r=/[\x20\t\r\n\f]+/g;t.fn.extend({val:function(e){var r,i,o,a=this[0];return arguments.length?(o=t.isFunction(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=o?e.call(this,n,t(this).val()):e)?i="":"number"===typeof i?i+="":t.isArray(i)&&(i=t.map(i,(function(t){return null==t?"":t+""}))),(r=t.valHooks[this.type]||t.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,i,"value")||(this.value=i))}))):a?(r=t.valHooks[a.type]||t.valHooks[a.nodeName.toLowerCase()])&&"get"in r&&void 0!==(i=r.get(a,"value"))?i:"string"===typeof(i=a.value)?i.replace(n,""):null==i?"":i:void 0}}),t.extend({valHooks:{option:{get:function(e){var n=t.find.attr(e,"value");return null!=n?n:t.trim(t.text(e)).replace(r," ")}},select:{get:function(n){for(var r,i,o=n.options,a=n.selectedIndex,s="select-one"===n.type||a<0,u=s?null:[],l=s?a+1:o.length,c=a<0?l:s?a:0;c<l;c++)if(((i=o[c]).selected||c===a)&&(e.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!t.nodeName(i.parentNode,"optgroup"))){if(r=t(i).val(),s)return r;u.push(r)}return u},set:function(e,n){for(var r,i,o=e.options,a=t.makeArray(n),s=o.length;s--;)if(i=o[s],t.inArray(t.valHooks.option.get(i),a)>-1)try{i.selected=r=!0}catch(u){i.scrollHeight}else i.selected=!1;return r||(e.selectedIndex=-1),o}}}}),t.each(["radio","checkbox"],(function(){t.valHooks[this]={set:function(e,n){if(t.isArray(n))return e.checked=t.inArray(t(e).val(),n)>-1}},e.checkOn||(t.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}))}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(78),n(175),n(39)],i=function(t,e,n){var r=/^(?:input|select|textarea|button|object)$/i,i=/^(?:a|area)$/i;t.fn.extend({prop:function(n,r){return e(this,t.prop,n,r,arguments.length>1)},removeProp:function(e){return e=t.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(t){}}))}}),t.extend({prop:function(e,n,r){var i,o,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&t.isXMLDoc(e)||(n=t.propFix[n]||n,o=t.propHooks[n]),void 0!==r?o&&"set"in o&&void 0!==(i=o.set(e,r,n))?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=t.find.attr(e,"tabindex");return n?parseInt(n,10):r.test(e.nodeName)||i.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),n.hrefNormalized||t.each(["href","src"],(function(e,n){t.propHooks[n]={get:function(t){return t.getAttribute(n,4)}}})),n.optSelected||(t.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,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})),n.enctype||(t.propFix.enctype="encoding")}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(122)],i=function(t){t.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,n){t.fn[n]=function(t,e){return arguments.length>0?this.on(n,null,t,e):this.trigger(n)}})),t.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}})}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(13)],void 0===(i=function(t){return t.now()}.apply(e,r))||(t.exports=i)},function(t,e,n){var r;void 0===(r=function(){return/\?/}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";n(228),n(229),n(42),n(230);var r=n(231);n.d(e,"BrowserMultiFormatReader",(function(){return r.a}));n(232),n(233),n(234),n(235),n(130),n(236),n(131)},function(t,e,n){"use strict";var r,i=n(42),o=n(67),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){function e(e){return void 0===e&&(e=500),t.call(this,new o.a,e)||this}a(e,t)}(i.a)},function(t,e,n){"use strict";var r,i=n(42),o=n(54),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){function e(e,n){return void 0===e&&(e=500),t.call(this,new o.a(n),e,n)||this}a(e,t)}(i.a)},function(t,e,n){"use strict";var r,i=n(42),o=n(73),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){function e(e){return void 0===e&&(e=500),t.call(this,new o.a,e)||this}a(e,t)}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r,i=n(42),o=n(136),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(e,n){void 0===e&&(e=null),void 0===n&&(n=500);var r=new o.a;return r.setHints(e),t.call(this,r,n)||this}return a(e,t),e.prototype.decodeBitmap=function(t){return this.reader.decodeWithState(t)},e}(i.a)},function(t,e,n){"use strict";var r,i=n(42),o=n(71),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){function e(e){return void 0===e&&(e=500),t.call(this,new o.a,e)||this}a(e,t)}(i.a)},function(t,e,n){"use strict";var r,i=n(42),o=n(72),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){function e(e){return void 0===e&&(e=500),t.call(this,new o.a,e)||this}a(e,t)}(i.a)},function(t,e,n){"use strict";var r=n(22),i=n(91),o=n(50),a=n(6),s=n(38);!function(){function t(){}t.prototype.write=function(e,n,s,u){if(void 0===u&&(u=null),0===e.length)throw new a.a("Found empty contents");if(n<0||s<0)throw new a.a("Requested dimensions are too small: "+n+"x"+s);var l=o.a.L,c=t.QUIET_ZONE_SIZE;null!==u&&(void 0!==u.get(r.a.ERROR_CORRECTION)&&(l=o.a.fromString(u.get(r.a.ERROR_CORRECTION).toString())),void 0!==u.get(r.a.MARGIN)&&(c=Number.parseInt(u.get(r.a.MARGIN).toString(),10)));var d=i.a.encode(e,l,u);return this.renderResult(d,n,s,c)},t.prototype.writeToDom=function(t,e,n,r,i){void 0===i&&(i=null),"string"===typeof t&&(t=document.querySelector(t));var o=this.write(e,n,r,i);t&&t.appendChild(o)},t.prototype.renderResult=function(t,e,n,r){var i=t.getMatrix();if(null===i)throw new s.a;for(var o=i.getWidth(),a=i.getHeight(),u=o+2*r,l=a+2*r,c=Math.max(e,u),d=Math.max(n,l),h=Math.min(Math.floor(c/u),Math.floor(d/l)),f=Math.floor((c-o*h)/2),p=Math.floor((d-a*h)/2),m=this.createSVGElement(c,d),g=0,y=p;g<a;g++,y+=h)for(var v=0,_=f;v<o;v++,_+=h)if(1===i.get(v,g)){var b=this.createSvgRectElement(_,y,h,h);m.appendChild(b)}return m},t.prototype.createSVGElement=function(e,n){var r=document.createElementNS(t.SVG_NS,"svg");return r.setAttributeNS(null,"height",e.toString()),r.setAttributeNS(null,"width",n.toString()),r},t.prototype.createSvgRectElement=function(e,n,r,i){var o=document.createElementNS(t.SVG_NS,"rect");return o.setAttributeNS(null,"x",e.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"height",r.toString()),o.setAttributeNS(null,"width",i.toString()),o.setAttributeNS(null,"fill","#000000"),o},t.QUIET_ZONE_SIZE=4,t.SVG_NS="http://www.w3.org/2000/svg"}()},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r=n(140),i=n(7),o=n(6);!function(){function t(){}t.prototype.encode=function(t,e,n,a,s){if(e!==i.a.QR_CODE)throw new o.a("No encoder available for format "+e);return(new r.a).encode(t,e,n,a,s)}}()},function(t,e,n){"use strict";var r,i=n(18),o=n(47),a=n(52),s=n(6),u=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){function e(e,n,r,i,o,a,u,l){var c=t.call(this,a,u)||this;if(c.yuvData=e,c.dataWidth=n,c.dataHeight=r,c.left=i,c.top=o,i+a>n||o+u>r)throw new s.a("Crop rectangle does not fit within image data.");return l&&c.reverseHorizontal(a,u),c}u(e,t),e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new s.a("Requested row is outside the image: "+t);var n=this.getWidth();(null===e||void 0===e||e.length<n)&&(e=new Uint8ClampedArray(n));var r=(t+this.top)*this.dataWidth+this.left;return i.a.arraycopy(this.yuvData,r,e,0,n),e},e.prototype.getMatrix=function(){var t=this.getWidth(),e=this.getHeight();if(t===this.dataWidth&&e===this.dataHeight)return this.yuvData;var n=t*e,r=new Uint8ClampedArray(n),o=this.top*this.dataWidth+this.left;if(t===this.dataWidth)return i.a.arraycopy(this.yuvData,o,r,0,n),r;for(var a=0;a<e;a++){var s=a*t;i.a.arraycopy(this.yuvData,o,r,s,t),o+=this.dataWidth}return r},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(t,n,r,i){return new e(this.yuvData,this.dataWidth,this.dataHeight,this.left+t,this.top+n,r,i,!1)},e.prototype.renderThumbnail=function(){for(var t=this.getWidth()/e.THUMBNAIL_SCALE_FACTOR,n=this.getHeight()/e.THUMBNAIL_SCALE_FACTOR,r=new Int32Array(t*n),i=this.yuvData,o=this.top*this.dataWidth+this.left,a=0;a<n;a++){for(var s=a*t,u=0;u<t;u++){var l=255&i[o+u*e.THUMBNAIL_SCALE_FACTOR];r[s+u]=4278190080|65793*l}o+=this.dataWidth*e.THUMBNAIL_SCALE_FACTOR}return r},e.prototype.getThumbnailWidth=function(){return this.getWidth()/e.THUMBNAIL_SCALE_FACTOR},e.prototype.getThumbnailHeight=function(){return this.getHeight()/e.THUMBNAIL_SCALE_FACTOR},e.prototype.reverseHorizontal=function(t,e){for(var n=this.yuvData,r=0,i=this.top*this.dataWidth+this.left;r<e;r++,i+=this.dataWidth)for(var o=i+t/2,a=i,s=i+t-1;a<o;a++,s--){var u=n[a];n[a]=n[s],n[s]=u}},e.prototype.invert=function(){return new a.a(this)},e.THUMBNAIL_SCALE_FACTOR=2}(o.a)},function(t,e,n){"use strict";var r,i=n(52),o=n(47),a=n(18),s=n(6),u=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){function e(e,n,r,i,o,a,u){var l=t.call(this,n,r)||this;if(l.dataWidth=i,l.dataHeight=o,l.left=a,l.top=u,4===e.BYTES_PER_ELEMENT){for(var c=n*r,d=new Uint8ClampedArray(c),h=0;h<c;h++){var f=e[h],p=f>>16&255,m=f>>7&510,g=255&f;d[h]=(p+m+g)/4&255}l.luminances=d}else l.luminances=e;if(void 0===i&&(l.dataWidth=n),void 0===o&&(l.dataHeight=r),void 0===a&&(l.left=0),void 0===u&&(l.top=0),l.left+n>l.dataWidth||l.top+r>l.dataHeight)throw new s.a("Crop rectangle does not fit within image data.");return l}u(e,t),e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new s.a("Requested row is outside the image: "+t);var n=this.getWidth();(null===e||void 0===e||e.length<n)&&(e=new Uint8ClampedArray(n));var r=(t+this.top)*this.dataWidth+this.left;return a.a.arraycopy(this.luminances,r,e,0,n),e},e.prototype.getMatrix=function(){var t=this.getWidth(),e=this.getHeight();if(t===this.dataWidth&&e===this.dataHeight)return this.luminances;var n=t*e,r=new Uint8ClampedArray(n),i=this.top*this.dataWidth+this.left;if(t===this.dataWidth)return a.a.arraycopy(this.luminances,i,r,0,n),r;for(var o=0;o<e;o++){var s=o*t;a.a.arraycopy(this.luminances,i,r,s,t),i+=this.dataWidth}return r},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(t,n,r,i){return new e(this.luminances,r,i,this.dataWidth,this.dataHeight,this.left+t,this.top+n)},e.prototype.invert=function(){return new i.a(this)}}(o.a)},function(t,e,n){"use strict";var r=n(7),i=n(22),o=n(93),a=n(30),s=n(60),u=n(90),l=n(12),c=n(38),d=n(6),h=n(14);!function(){function t(){}t.prototype.encode=function(t,e,n,r){return this.encodeWithHints(t,e,n,r,null)},t.prototype.encodeWithHints=function(e,n,r,a,c){var d=u.a.ISO_8859_1,h=o.a.DEFAULT_EC_PERCENT,f=o.a.DEFAULT_AZTEC_LAYERS;return null!=c&&(c.has(i.a.CHARACTER_SET)&&(d=s.a.forName(c.get(i.a.CHARACTER_SET).toString())),c.has(i.a.ERROR_CORRECTION)&&(h=l.a.parseInt(c.get(i.a.ERROR_CORRECTION).toString())),c.has(i.a.AZTEC_LAYERS)&&(f=l.a.parseInt(c.get(i.a.AZTEC_LAYERS).toString()))),t.encodeLayers(e,n,r,a,d,h,f)},t.encodeLayers=function(e,n,i,a,s,u,l){if(n!==r.a.AZTEC)throw new d.a("Can only encode AZTEC, but got "+n);var c=o.a.encode(h.a.getBytes(e,s),u,l);return t.renderResult(c,i,a)},t.renderResult=function(t,e,n){var r=t.getMatrix();if(null==r)throw new c.a;for(var i=r.getWidth(),o=r.getHeight(),s=Math.max(e,i),u=Math.max(n,o),l=Math.min(s/i,u/o),d=(s-i*l)/2,h=(u-o*l)/2,f=new a.a(s,u),p=0,m=h;p<o;p++,m+=l)for(var g=0,y=d;g<i;g++,y+=l)r.get(g,p)&&f.setRegion(y,m,l,l);return f}}()},function(t,e,n){"use strict";var r,i,o=n(7),a=n(30),s=n(22),u=n(89),l=n(60),c=(n(141),n(142),n(61),n(124)),d=(n(143),n(144),n(125)),h=n(17),f=n(2),p=n(90),m=n(37),g=n(14),y=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},v=function(){function t(t){this.charset=t,this.name=t.name}return t.prototype.canEncode=function(t){try{return null!=m.a.encode(t,this.charset)}catch(e){return!1}},t}(),_=function(){function t(t,e,n){var r,i,o,a,s,u;this.ENCODERS=["IBM437","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","windows-1250","windows-1251","windows-1252","windows-1256","Shift_JIS"].map((function(t){return new v(l.a.forName(t))})),this.encoders=[];var c=[];c.push(new v(p.a.ISO_8859_1));for(var d=null!=e&&e.name.startsWith("UTF"),h=0;h<t.length;h++){var f=!1;try{for(var m=(r=void 0,y(c)),g=m.next();!g.done;g=m.next()){var _=g.value,b=t.charAt(h);if(b.charCodeAt(0)===n||_.canEncode(b)){f=!0;break}}}catch(D){r={error:D}}finally{try{g&&!g.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}if(!f)try{for(var w=(o=void 0,y(this.ENCODERS)),k=w.next();!k.done;k=w.next()){if((_=k.value).canEncode(t.charAt(h))){c.push(_),f=!0;break}}}catch(A){o={error:A}}finally{try{k&&!k.done&&(a=w.return)&&a.call(w)}finally{if(o)throw o.error}}f||(d=!0)}if(1!==c.length||d){this.encoders=[];var S=0;try{for(var E=y(c),C=E.next();!C.done;C=E.next()){_=C.value;this.encoders[S++]=_}}catch(T){s={error:T}}finally{try{C&&!C.done&&(u=E.return)&&u.call(E)}finally{if(s)throw s.error}}}else this.encoders=[c[0]];var x=-1;if(null!=e)for(h=0;h<this.encoders.length;h++)if(null!=this.encoders[h]&&e.name===this.encoders[h].name){x=h;break}this.priorityEncoderIndex=x}return t.prototype.length=function(){return this.encoders.length},t.prototype.getCharsetName=function(t){if(!(t<this.length()))throw new Error("index must be less than length");return this.encoders[t].name},t.prototype.getCharset=function(t){if(!(t<this.length()))throw new Error("index must be less than length");return this.encoders[t].charset},t.prototype.getECIValue=function(t){return this.encoders[t].charset.getValueIdentifier()},t.prototype.getPriorityEncoderIndex=function(){return this.priorityEncoderIndex},t.prototype.canEncode=function(t,e){if(!(e<this.length()))throw new Error("index must be less than length");return!0},t.prototype.encode=function(t,e){if(!(e<this.length()))throw new Error("index must be less than length");return m.a.encode(g.a.getCharAt(t),this.encoders[e].name)},t}(),b=n(12),w=n(9),k=function(){function t(t,e,n){this.fnc1=n;var r=new _(t,e,n);if(1===r.length())for(var i=0;i<this.bytes.length;i++){var o=t.charAt(i).charCodeAt(0);this.bytes[i]=o===n?1e3:o}else this.bytes=this.encodeMinimally(t,r,n)}return t.prototype.getFNC1Character=function(){return this.fnc1},t.prototype.length=function(){return this.bytes.length},t.prototype.haveNCharacters=function(t,e){if(t+e-1>=this.bytes.length)return!1;for(var n=0;n<e;n++)if(this.isECI(t+n))return!1;return!0},t.prototype.charAt=function(t){if(t<0||t>=this.length())throw new Error(""+t);if(this.isECI(t))throw new Error("value at "+t+" is not a character but an ECI");return this.isFNC1(t)?this.fnc1:this.bytes[t]},t.prototype.subSequence=function(t,e){if(t<0||t>e||e>this.length())throw new Error(""+t);for(var n=new w.a,r=t;r<e;r++){if(this.isECI(r))throw new Error("value at "+r+" is not a character but an ECI");n.append(this.charAt(r))}return n.toString()},t.prototype.isECI=function(t){if(t<0||t>=this.length())throw new Error(""+t);return this.bytes[t]>255&&this.bytes[t]<=999},t.prototype.isFNC1=function(t){if(t<0||t>=this.length())throw new Error(""+t);return 1e3===this.bytes[t]},t.prototype.getECIValue=function(t){if(t<0||t>=this.length())throw new Error(""+t);if(!this.isECI(t))throw new Error("value at "+t+" is not an ECI but a character");return this.bytes[t]-256},t.prototype.addEdge=function(t,e,n){(null==t[e][n.encoderIndex]||t[e][n.encoderIndex].cachedTotalSize>n.cachedTotalSize)&&(t[e][n.encoderIndex]=n)},t.prototype.addEdges=function(t,e,n,r,i,o){var a=t.charAt(r).charCodeAt(0),s=0,u=e.length();e.getPriorityEncoderIndex()>=0&&(a===o||e.canEncode(a,e.getPriorityEncoderIndex()))&&(u=(s=e.getPriorityEncoderIndex())+1);for(var l=s;l<u;l++)(a===o||e.canEncode(a,l))&&this.addEdge(n,r+1,new S(a,e,l,i,o))},t.prototype.encodeMinimally=function(t,e,n){var r=t.length,i=new(S[r+1][e.length()]);this.addEdges(t,e,i,0,null,n);for(var o=1;o<=r;o++){for(var a=0;a<e.length();a++)null!=i[o][a]&&o<r&&this.addEdges(t,e,i,o,i[o][a],n);for(a=0;a<e.length();a++)i[o-1][a]=null}var s=-1,u=b.a.MAX_VALUE;for(a=0;a<e.length();a++)if(null!=i[r][a]){var l=i[r][a];l.cachedTotalSize<u&&(u=l.cachedTotalSize,s=a)}if(s<0)throw new Error('Failed to encode "'+t+'"');for(var c=[],d=i[r][s];null!=d;){if(d.isFNC1())c.unshift(1e3);else{var h=e.encode(d.c,d.encoderIndex);for(o=h.length-1;o>=0;o--)c.unshift(255&h[o])}(null===d.previous?0:d.previous.encoderIndex)!==d.encoderIndex&&c.unshift(256+e.getECIValue(d.encoderIndex)),d=d.previous}var f=[];for(o=0;o<f.length;o++)f[o]=c[o];return f},t}(),S=function(){function t(t,e,n,r,i){this.c=t,this.encoderSet=e,this.encoderIndex=n,this.previous=r,this.fnc1=i,this.c=t===i?1e3:t;var o=this.isFNC1()?1:e.encode(t,n).length;(null===r?0:r.encoderIndex)!==n&&(o+=3),null!=r&&(o+=r.cachedTotalSize),this.cachedTotalSize=o}return t.prototype.isFNC1=function(){return 1e3===this.c},t}(),E=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),C=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},x=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},D=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(x(arguments[e]));return t};!function(t){t[t.ASCII=0]="ASCII",t[t.C40=1]="C40",t[t.TEXT=2]="TEXT",t[t.X12=3]="X12",t[t.EDF=4]="EDF",t[t.B256=5]="B256"}(i||(i={}));var A=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],T=function(){function t(){}return t.isExtendedASCII=function(t,e){return t!==e&&t>=128&&t<=255},t.isInC40Shift1Set=function(t){return t<=31},t.isInC40Shift2Set=function(t,e){var n,r;try{for(var i=C(A),o=i.next();!o.done;o=i.next()){if(o.value.charCodeAt(0)===t)return!0}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t===e},t.isInTextShift1Set=function(t){return this.isInC40Shift1Set(t)},t.isInTextShift2Set=function(t,e){return this.isInC40Shift2Set(t,e)},t.encodeHighLevel=function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=-1),void 0===r&&(r=0);var i=0;return t.startsWith(f.p)&&t.endsWith(f.s)?(i=5,t=t.substring(f.p.length,t.length-2)):t.startsWith(f.r)&&t.endsWith(f.s)&&(i=6,t=t.substring(f.r.length,t.length-2)),decodeURIComponent(escape(String.fromCharCode.apply(String,D(this.encode(t,e,n,r,i)))))},t.encode=function(t,e,n,r,i){return this.encodeMinimally(new O(t,e,n,r,i)).getBytes()},t.addEdge=function(t,e){var n=e.fromPosition+e.characterLength;(null===t[n][e.getEndMode()]||t[n][e.getEndMode()].cachedTotalSize>e.cachedTotalSize)&&(t[n][e.getEndMode()]=e)},t.getNumberOfC40Words=function(e,n,r,i){for(var o=0,a=n;a<e.length();a++){if(e.isECI(a))return i[0]=0,0;var s=e.charAt(a);if(r&&h.a.isNativeC40(s)||!r&&h.a.isNativeText(s))o++;else if(t.isExtendedASCII(s,e.getFNC1Character())){var u=255&s;u>=128&&(r&&h.a.isNativeC40(u-128)||!r&&h.a.isNativeText(u-128))?o+=3:o+=4}else o+=2;if(o%3===0||(o-2)%3===0&&a+1===e.length())return i[0]=a-n+1,Math.ceil(o/3)}return i[0]=0,0},t.addEdges=function(e,n,r,o){var a,s;if(e.isECI(r))this.addEdge(n,new L(e,i.ASCII,r,1,o));else{var u,l=e.charAt(r);if(null===o||o.getEndMode()!==i.EDF){h.a.isDigit(l)&&e.haveNCharacters(r,2)&&h.a.isDigit(e.charAt(r+1))?this.addEdge(n,new L(e,i.ASCII,r,2,o)):this.addEdge(n,new L(e,i.ASCII,r,1,o));var c=[i.C40,i.TEXT];try{for(var d=C(c),f=d.next();!f.done;f=d.next()){var p=f.value,m=[];t.getNumberOfC40Words(e,r,p===i.C40,m)>0&&this.addEdge(n,new L(e,p,r,m[0],o))}}catch(y){a={error:y}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}e.haveNCharacters(r,3)&&h.a.isNativeX12(e.charAt(r))&&h.a.isNativeX12(e.charAt(r+1))&&h.a.isNativeX12(e.charAt(r+2))&&this.addEdge(n,new L(e,i.X12,r,3,o)),this.addEdge(n,new L(e,i.B256,r,1,o))}for(u=0;u<3;u++){var g=r+u;if(!e.haveNCharacters(g,1)||!h.a.isNativeEDIFACT(e.charAt(g)))break;this.addEdge(n,new L(e,i.EDF,r,u+1,o))}3===u&&e.haveNCharacters(r,4)&&h.a.isNativeEDIFACT(e.charAt(r+3))&&this.addEdge(n,new L(e,i.EDF,r,4,o))}},t.encodeMinimally=function(t){var e=t.length(),n=Array(e+1).fill(null).map((function(){return Array(6).fill(0)}));this.addEdges(t,n,0,null);for(var r=1;r<=e;r++){for(var i=0;i<6;i++)null!==n[r][i]&&r<e&&this.addEdges(t,n,r,n[r][i]);for(i=0;i<6;i++)n[r-1][i]=null}var o=-1,a=b.a.MAX_VALUE;for(i=0;i<6;i++)if(null!==n[e][i]){var s=n[e][i],u=i>=1&&i<=3?s.cachedTotalSize+1:s.cachedTotalSize;u<a&&(a=u,o=i)}if(o<0)throw new Error('Failed to encode "'+t+'"');return new M(n[e][o])},t}(),M=function(){function t(t){var e=t.input,n=0,r=[],o=[],a=[];t.mode!==i.C40&&t.mode!==i.TEXT&&t.mode!==i.X12||t.getEndMode()===i.ASCII||(n+=this.prepend(L.getBytes(254),r));for(var s=t;null!==s;)n+=this.prepend(s.getDataBytes(),r),null!==s.previous&&s.getPreviousStartMode()===s.getMode()||(s.getMode()===i.B256&&(n<=249?(r.unshift(n),n++):(r.unshift(n%250),r.unshift(n/250+249),n+=2),o.push(r.length),a.push(n)),this.prepend(s.getLatchBytes(),r),n=0),s=s.previous;5===e.getMacroId()?n+=this.prepend(L.getBytes(236),r):6===e.getMacroId()&&(n+=this.prepend(L.getBytes(237),r)),e.getFNC1Character()>0&&(n+=this.prepend(L.getBytes(232),r));for(var u=0;u<o.length;u++)this.applyRandomPattern(r,r.length-o[u],a[u]);var l=t.getMinSymbolSize(r.length);for(r.length<l&&r.push(129);r.length<l;)r.push(this.randomize253State(r.length+1));this.bytes=new Uint8Array(r.length);for(u=0;u<this.bytes.length;u++)this.bytes[u]=r[u]}return t.prototype.prepend=function(t,e){for(var n=t.length-1;n>=0;n--)e.unshift(t[n]);return t.length},t.prototype.randomize253State=function(t){var e=129+(149*t%253+1);return e<=254?e:e-254},t.prototype.applyRandomPattern=function(t,e,n){for(var r=0;r<n;r++){var i=e+r,o=(255&t[i])+(149*(i+1)%255+1);t[i]=o<=255?o:o-256}},t.prototype.getBytes=function(){return this.bytes},t}(),L=function(){function t(t,e,n,r,o){if(this.input=t,this.mode=e,this.fromPosition=n,this.characterLength=r,this.previous=o,this.allCodewordCapacities=[3,5,8,10,12,16,18,22,30,32,36,44,49,62,86,114,144,174,204,280,368,456,576,696,816,1050,1304,1558],this.squareCodewordCapacities=[3,5,8,12,18,22,30,36,44,62,86,114,144,174,204,280,368,456,576,696,816,1050,1304,1558],this.rectangularCodewordCapacities=[5,10,16,33,32,49],!(n+r<=t.length()))throw new Error("Invalid edge");var a=null!==o?o.cachedTotalSize:0,s=this.getPreviousMode();switch(e){case i.ASCII:a++,(t.isECI(n)||T.isExtendedASCII(t.charAt(n),t.getFNC1Character()))&&a++,s!==i.C40&&s!==i.TEXT&&s!==i.X12||a++;break;case i.B256:a++,(s!==i.B256||250===this.getB256Size())&&a++,s===i.ASCII?a++:s!==i.C40&&s!==i.TEXT&&s!==i.X12||(a+=2);break;case i.C40:case i.TEXT:case i.X12:if(e===i.X12)a+=2;else{a+=2*T.getNumberOfC40Words(t,n,e===i.C40,[])}s===i.ASCII||s===i.B256?a++:s===e||s!==i.C40&&s!==i.TEXT&&s!==i.X12||(a+=2);break;case i.EDF:a+=3,s===i.ASCII||s===i.B256?a++:s!==i.C40&&s!==i.TEXT&&s!==i.X12||(a+=2)}this.cachedTotalSize=a}return t.prototype.getB256Size=function(){for(var t=0,e=this;null!==e&&e.mode===i.B256&&t<=250;)t++,e=e.previous;return t},t.prototype.getPreviousStartMode=function(){return null===this.previous?i.ASCII:this.previous.mode},t.prototype.getPreviousMode=function(){return null===this.previous?i.ASCII:this.previous.getEndMode()},t.prototype.getEndMode=function(){if(this.mode===i.EDF){if(this.characterLength<4)return i.ASCII;if((t=this.getLastASCII())>0&&this.getCodewordsRemaining(this.cachedTotalSize+t)<=2-t)return i.ASCII}if(this.mode===i.C40||this.mode===i.TEXT||this.mode===i.X12){if(this.fromPosition+this.characterLength>=this.input.length()&&0===this.getCodewordsRemaining(this.cachedTotalSize))return i.ASCII;var t;if(1===(t=this.getLastASCII())&&0===this.getCodewordsRemaining(this.cachedTotalSize+1))return i.ASCII}return this.mode},t.prototype.getMode=function(){return this.mode},t.prototype.getLastASCII=function(){var t=this.input.length(),e=this.fromPosition+this.characterLength;return t-e>4||e>=t?0:t-e===1?T.isExtendedASCII(this.input.charAt(e),this.input.getFNC1Character())?0:1:t-e===2?T.isExtendedASCII(this.input.charAt(e),this.input.getFNC1Character())||T.isExtendedASCII(this.input.charAt(e+1),this.input.getFNC1Character())?0:h.a.isDigit(this.input.charAt(e))&&h.a.isDigit(this.input.charAt(e+1))?1:2:t-e===3?h.a.isDigit(this.input.charAt(e))&&h.a.isDigit(this.input.charAt(e+1))&&!T.isExtendedASCII(this.input.charAt(e+2),this.input.getFNC1Character())||h.a.isDigit(this.input.charAt(e+1))&&h.a.isDigit(this.input.charAt(e+2))&&!T.isExtendedASCII(this.input.charAt(e),this.input.getFNC1Character())?2:0:h.a.isDigit(this.input.charAt(e))&&h.a.isDigit(this.input.charAt(e+1))&&h.a.isDigit(this.input.charAt(e+2))&&h.a.isDigit(this.input.charAt(e+3))?2:0},t.prototype.getMinSymbolSize=function(t){var e,n,r,i,o,a;switch(this.input.getShapeHint()){case 1:try{for(var s=C(this.squareCodewordCapacities),u=s.next();!u.done;u=s.next()){if((f=u.value)>=t)return f}}catch(p){e={error:p}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}break;case 2:try{for(var l=C(this.rectangularCodewordCapacities),c=l.next();!c.done;c=l.next()){if((f=c.value)>=t)return f}}catch(m){r={error:m}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}try{for(var d=C(this.allCodewordCapacities),h=d.next();!h.done;h=d.next()){var f;if((f=h.value)>=t)return f}}catch(g){o={error:g}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}return this.allCodewordCapacities[this.allCodewordCapacities.length-1]},t.prototype.getCodewordsRemaining=function(t){return this.getMinSymbolSize(t)-t},t.getBytes=function(t,e){var n=new Uint8Array(e?2:1);return n[0]=t,e&&(n[1]=e),n},t.prototype.setC40Word=function(t,e,n,r,i){var o=1600*(255&n)+40*(255&r)+(255&i)+1;t[e]=o/256,t[e+1]=o%256},t.prototype.getX12Value=function(t){return 13===t?0:42===t?1:62===t?2:32===t?3:t>=48&&t<=57?t-44:t>=65&&t<=90?t-51:t},t.prototype.getX12Words=function(){if(this.characterLength%3!==0)throw new Error("X12 words must be a multiple of 3");for(var t=new Uint8Array(this.characterLength/3*2),e=0;e<t.length;e+=2)this.setC40Word(t,e,this.getX12Value(this.input.charAt(this.fromPosition+e/2*3)),this.getX12Value(this.input.charAt(this.fromPosition+e/2*3+1)),this.getX12Value(this.input.charAt(this.fromPosition+e/2*3+2)));return t},t.prototype.getShiftValue=function(t,e,n){return e&&T.isInC40Shift1Set(t)||!e&&T.isInTextShift1Set(t)?0:e&&T.isInC40Shift2Set(t,n)||!e&&T.isInTextShift2Set(t,n)?1:2},t.prototype.getC40Value=function(t,e,n,r){if(n===r){if(2!==e)throw new Error("FNC1 cannot be used in C40 shift 2");return 27}return t?n<=31?n:32===n?3:n<=47?n-33:n<=57?n-44:n<=64?n-43:n<=90?n-51:n<=95?n-69:n<=127?n-96:n:0===n?0:0===e&&n<=3?n-1:1===e&&n<=31?n:32===n?3:n>=33&&n<=47?n-33:n>=48&&n<=57?n-44:n>=58&&n<=64?n-43:n>=65&&n<=90?n-64:n>=91&&n<=95?n-69:96===n?0:n>=97&&n<=122?n-83:n>=123&&n<=127?n-96:n},t.prototype.getC40Words=function(t,e){for(var n=[],r=0;r<this.characterLength;r++){var i=this.input.charAt(this.fromPosition+r);if(t&&h.a.isNativeC40(i)||!t&&h.a.isNativeText(i))n.push(this.getC40Value(t,0,i,e));else if(T.isExtendedASCII(i,e)){var o=(255&i)-128;if(t&&h.a.isNativeC40(o)||!t&&h.a.isNativeText(o))n.push(1),n.push(30),n.push(this.getC40Value(t,0,o,e));else{n.push(1),n.push(30);a=this.getShiftValue(o,t,e);n.push(a),n.push(this.getC40Value(t,a,o,e))}}else{var a=this.getShiftValue(i,t,e);n.push(a),n.push(this.getC40Value(t,a,i,e))}}if(n.length%3!==0){if((n.length-2)%3!==0||this.fromPosition+this.characterLength!==this.input.length())throw new Error("C40 words must be a multiple of 3");n.push(0)}var s=new Uint8Array(n.length/3*2),u=0;for(r=0;r<n.length;r+=3)this.setC40Word(s,u,255&n[r],255&n[r+1],255&n[r+2]),u+=2;return s},t.prototype.getEDFBytes=function(){for(var t=Math.ceil(this.characterLength/4),e=new Uint8Array(3*t),n=this.fromPosition,r=Math.min(this.fromPosition+this.characterLength-1,this.input.length()-1),i=0;i<t;i+=3){for(var o=[],a=0;a<4;a++)o[a]=n<=r?63&this.input.charAt(n++):n===r+1?31:0;var s=o[0]<<18;s|=o[1]<<12,s|=o[2]<<6,s|=o[3],e[i]=s>>16&255,e[i+1]=s>>8&255,e[i+2]=255&s}return e},t.prototype.getLatchBytes=function(){switch(this.getPreviousMode()){case i.ASCII:case i.B256:switch(this.mode){case i.B256:return t.getBytes(231);case i.C40:return t.getBytes(230);case i.TEXT:return t.getBytes(239);case i.X12:return t.getBytes(238);case i.EDF:return t.getBytes(240)}break;case i.C40:case i.TEXT:case i.X12:if(this.mode!==this.getPreviousMode())switch(this.mode){case i.ASCII:return t.getBytes(254);case i.B256:return t.getBytes(254,231);case i.C40:return t.getBytes(254,230);case i.TEXT:return t.getBytes(254,239);case i.X12:return t.getBytes(254,238);case i.EDF:return t.getBytes(254,240)}break;case i.EDF:if(this.mode!==i.EDF)throw new Error("Cannot switch from EDF to "+this.mode)}return new Uint8Array(0)},t.prototype.getDataBytes=function(){switch(this.mode){case i.ASCII:return this.input.isECI(this.fromPosition)?t.getBytes(241,this.input.getECIValue(this.fromPosition)+1):T.isExtendedASCII(this.input.charAt(this.fromPosition),this.input.getFNC1Character())?t.getBytes(235,this.input.charAt(this.fromPosition)-127):2===this.characterLength?t.getBytes(10*this.input.charAt(this.fromPosition)+this.input.charAt(this.fromPosition+1)+130):this.input.isFNC1(this.fromPosition)?t.getBytes(232):t.getBytes(this.input.charAt(this.fromPosition)+1);case i.B256:return t.getBytes(this.input.charAt(this.fromPosition));case i.C40:return this.getC40Words(!0,this.input.getFNC1Character());case i.TEXT:return this.getC40Words(!1,this.input.getFNC1Character());case i.X12:return this.getX12Words();case i.EDF:return this.getEDFBytes()}},t}(),O=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.shape=i,a.macroId=o,a}return E(e,t),e.prototype.getMacroId=function(){return this.macroId},e.prototype.getShapeHint=function(){return this.shape},e}(k),I=n(82);n(146),n(145),function(){function t(){}t.prototype.encode=function(t,e,n,r,i){if(void 0===i&&(i=null),""===t.trim())throw new Error("Found empty contents");if(e!==o.a.DATA_MATRIX)throw new Error("Can only encode DATA_MATRIX, but got "+e);if(n<0||r<0)throw new Error("Requested dimensions can't be negative: "+n+"x"+r);var a,u=0,f=null,p=null;if(null!=i){var m=i.get(s.a.DATA_MATRIX_SHAPE);null!=m&&(u=m);var g=i.get(s.a.MIN_SIZE);null!=g&&(f=g);var y=i.get(s.a.MAX_SIZE);null!=y&&(p=y)}if(null!=i&&i.has(s.a.DATA_MATRIX_COMPACT)&&Boolean(i.get(s.a.DATA_MATRIX_COMPACT).toString())){var v=i.has(s.a.GS1_FORMAT)&&Boolean(i.get(s.a.GS1_FORMAT).toString()),_=null;i.has(s.a.CHARACTER_SET)&&(_=l.a.forName(i.get(s.a.CHARACTER_SET).toString())),a=T.encodeHighLevel(t,_,v?29:-1,u)}else{var b=null!=i&&i.has(s.a.FORCE_C40)&&Boolean(i.get(s.a.FORCE_C40).toString());a=h.a.encodeHighLevel(t,u,f,p,b)}var w=I.a.lookup(a.length,u,f,p,!0),k=d.a.encodeECC200(a,w),S=new c.a(k,w.getSymbolDataWidth(),w.getSymbolDataHeight());return S.place(),this.encodeLowLevel(S,w,n,r)},t.prototype.encodeLowLevel=function(t,e,n,r){for(var i=e.getSymbolDataWidth(),o=e.getSymbolDataHeight(),a=new u.a(e.getSymbolWidth(),e.getSymbolHeight()),s=0,l=0;l<o;l++){var c=void 0;if(l%e.matrixHeight===0){c=0;for(var d=0;d<e.getSymbolWidth();d++)a.setBoolean(c,s,d%2===0),c++;s++}c=0;for(d=0;d<i;d++)d%e.matrixWidth===0&&(a.setBoolean(c,s,!0),c++),a.setBoolean(c,s,t.getBit(d,l)),c++,d%e.matrixWidth===e.matrixWidth-1&&(a.setBoolean(c,s,l%2===0),c++);if(s++,l%e.matrixHeight===e.matrixHeight-1){c=0;for(d=0;d<e.getSymbolWidth();d++)a.setBoolean(c,s,!0),c++;s++}}return this.convertByteMatrixToBitMatrix(a,n,r)},t.prototype.convertByteMatrixToBitMatrix=function(t,e,n){var r,i=t.getWidth(),o=t.getHeight(),s=Math.max(e,i),u=Math.max(n,o),l=Math.min(s/i,u/o),c=(s-i*l)/2,d=(u-o*l)/2;n<o||e<i?(c=0,d=0,r=new a.a(i,o)):r=new a.a(e,n),r.clear();for(var h=0,f=d;h<o;h++,f+=l)for(var p=0,m=c;p<i;p++,m+=l)1===t.get(p,h)&&r.setRegion(m,f,l,l);return r}}()},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"connect",value:function(){var e=t(this.inputTarget),n={url:this.staticDataValue,adjustWidth:!1,list:{match:{enabled:!0}}};e.easyAutocomplete(n)}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b);s.values={staticData:String},s.targets=["input"]}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"initialize",value:function(){this.checkedIds=new Set}},{key:"checkedRows",value:function(e){this.checkedIds=e.detail.ids;var n=Array.from(e.detail.ids);n.length&&t.ajax({type:"GET",url:"/batches/check_work_orders/?work_order_ids=".concat(n),dataType:"script"})}},{key:"approveSelected",value:function(t){if(t.preventDefault(),!t.target.classList.contains("disabled")){var e=Array.from(this.checkedIds).join(","),n=t.target.getAttribute("data-batch-id");window.location.href="/batches/".concat(n,"/approve_work_orders/?work_order_ids=").concat(e,"&redirect_to=").concat(location.href)}}},{key:"revertSelected",value:function(t){if(t.preventDefault(),!t.target.classList.contains("disabled")){var e=Array.from(this.checkedIds).join(","),n=t.target.getAttribute("data-batch-id");window.location.href="/batches/".concat(n,"/revert_work_orders/?work_order_ids=").concat(e,"&redirect_to=").concat(location.href)}}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"collectionStepModal",value:function(e){if(e.preventDefault(),!e.target.classList.contains("disabled")){var n=e.target.dataset.collectionId;t.ajax({type:"GET",url:"/configuration/".concat(this.configIdValue,"/collection_step_modal/?collection_id=").concat(n),dataType:"script"})}}},{key:"aliquotPlanModal",value:function(e){if(e.preventDefault(),!e.target.classList.contains("disabled")){var n=e.target.dataset.collectionId,r=e.target.dataset.aliquotPlanId;t.ajax({type:"GET",url:"/configuration/".concat(this.configIdValue,"/aliquot_plan_modal/?collection_id=").concat(n,"&aliquot_plan_id=").concat(r),dataType:"script"})}}},{key:"verifySubmitAliquotPlan",value:function(e){e.preventDefault();var n=this.primaryAliquotsTarget.value,r=this.totalAliquotsTarget.value;"0"==this.useCollectionContainerToggleTarget.value&&n>r?(t(this.primaryAliquotsWarningTarget).removeClass("d-none"),t(this.primaryAliquotsTarget).addClass("border border-warning")):t("#aliquot_plan_form").submit()}},{key:"sampleHandlingModal",value:function(e){if(e.preventDefault(),!e.target.classList.contains("disabled")){var n=e.target.dataset.aliquotPlanId;t.ajax({type:"GET",url:"/configuration/".concat(this.configIdValue,"/sample_handling_modal/?aliquot_plan_id=").concat(n),dataType:"script"})}}},{key:"manageConfigStepsModal",value:function(e){e.preventDefault(),t("#hide_config_steps").is(":checked")&&localStorage.setItem("hide-config-steps-modal","true"),t("#config_steps_modal").modal("toggle")}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b);s.targets=["primaryAliquots","totalAliquots","primaryAliquotsWarning","useCollectionContainerToggle"],s.values={configId:String}}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"connect",value:function(){var t=document.getElementById("item_quantity"),e=this.expectedValue,n=document.getElementById("reorder-quantity-help-text"),r=document.getElementById("low-quantity-alert");t.addEventListener("change",(function(){parseInt(t.value)<parseInt(e)?(r.classList.remove("d-none"),n.classList.add("d-none")):(r.classList.add("d-none"),n.classList.remove("d-none"))}))}},{key:"deleteReorder",value:function(e){e.preventDefault();var n=this.inventoryValue,r=location.href;t.ajax({type:"POST",url:"/inventories/".concat(n,"/delete_reorder"),data:{redirect_to:r},dataType:"script",beforeSend:function(e){e.setRequestHeader("X-CSRF-Token",t("meta[name='csrf-token']").attr("content"))}})}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b);s.values={expected:String,inventory:String}}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(3),i=n(16);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var l=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,u,l=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return n=c,(r=[{key:"connect",value:function(){this.initializeMultiSelects()}},{key:"fetchSchedules",value:function(t){Object(i.b)("/sample_timepoints/".concat(this.timepointIdValue,"/fetch_copy_steps_origin_info?fetch_action=schedules&sample_type_id=").concat(this.originSampleTypeTarget.value),{responseKind:"turbo-stream"})}},{key:"fetchVisitTemplates",value:function(t){Object(i.b)("/sample_timepoints/".concat(this.timepointIdValue,"/fetch_copy_steps_origin_info?fetch_action=visit_templates&visit_schedule_id=").concat(this.originVisitScheduleTarget.value,"&sample_type_id=").concat(this.originSampleTypeTarget.value),{responseKind:"turbo-stream"})}},{key:"fetchTargetSchedules",value:function(t){Object(i.b)("/sample_timepoints/".concat(this.timepointIdValue,"/fetch_copy_steps_target_info?fetch_action=schedules&sample_type_id=").concat(this.targetSampleTypeTarget.value),{responseKind:"turbo-stream"})}},{key:"fetchTargetVisitTemplates",value:function(t){Object(i.b)("/sample_timepoints/".concat(this.timepointIdValue,"/fetch_copy_steps_target_info?fetch_action=visit_templates&visit_schedule_id=").concat(this.targetVisitScheduleTarget.value,"&sample_type_id=").concat(this.targetSampleTypeTarget.value),{responseKind:"turbo-stream"})}},{key:"initializeMultiSelects",value:function(){if("true"==this.originVisitTemplatesInstanceValue){var e=this.timepointIdValue;t("#origin-visit-template-select").on("changed.bs.select",(function(n,r,o){var a,s=n.target.options[r].value;a=o?"add":"remove",Object(i.b)("/sample_timepoints/".concat(e,"/update_origin_timepoints?update_action=").concat(a,"&clicked_visit_template_id=").concat(s,"&sample_type_id=").concat(t("#origin_sample_type").find(":selected").val()),{responseKind:"turbo-stream"})})),t(".selectpicker").selectpicker("refresh")}else if("true"==this.targetVisitTemplatesInstanceValue){var n=this.timepointIdValue;t("#target-visit-template-select").on("changed.bs.select",(function(e,r,o){var a,s=e.target.options[r].value;a=o?"add":"remove",Object(i.b)("/sample_timepoints/".concat(n,"/update_target_timepoints?update_action=").concat(a,"&clicked_visit_template_id=").concat(s,"&sample_type_id=").concat(t("#target_sample_type").find(":selected").val()),{responseKind:"turbo-stream"})})),t(".selectpicker").selectpicker("refresh")}}},{key:"updateSelectedTimepoint",value:function(t){var e=t.target,n=e.dataset.timepointId;e.classList.contains("secondary-grey","selected")?(e.classList.remove("secondary-grey","selected"),this.timepointToCopyTarget.setAttribute("value","")):(e.classList.add("secondary-grey","selected"),this.originTimepointTargets.forEach((function(t){t.dataset.timepointId!=n&&t.classList.remove("secondary-grey","selected")})),this.timepointToCopyTarget.setAttribute("value",e.dataset.timepointId)),this.handleSubmitButton()}},{key:"updateSelectedTargetTimepoint",value:function(t){var e=t.target.closest(".target-timepoint");if(""==this.targetedTimepointsTarget.value)var n=[];else n=this.targetedTimepointsTarget.value.split(",");var r=e.dataset.timepointId;e.classList.contains("selected")?(this.deSelectTargetTimepoint(e),n.splice(n.indexOf(r),1)):(this.selectTargetTimepoint(e),n.push(r)),n=n.toString(),this.targetedTimepointsTarget.setAttribute("value",n),this.handleSubmitButton()}},{key:"handleSubmit",value:function(e){e.preventDefault(),""!=this.targetedTimepointsTarget.value&&(console.log("submit the form"),t("#copy_steps_form").submit())}},{key:"handleSubmitButton",value:function(){""==this.targetedTimepointsTarget.value||""==this.timepointToCopyTarget.value?(this.modalSubmitTarget.setAttribute("disabled","true"),this.modalSubmitTarget.classList.add("disabled")):(this.modalSubmitTarget.removeAttribute("disabled"),this.modalSubmitTarget.classList.remove("disabled"));var t,e=this.targetedTimepointsTarget.value.split(",").length;""==this.targetedTimepointsTarget.value?t="Copy to timepoint":1==e?t="Copy to 1 timepoint":e>1&&(t="Copy to ".concat(e," timepoints")),this.modalSubmitTarget.setAttribute("value",t),this.handleOverrideWarning()}},{key:"handleOverrideWarning",value:function(){if(""==this.targetedTimepointsTarget.value)this.overrideWarningTarget.classList.add("d-none");else{var t=!1;this.targetTimepointTargets.forEach((function(e){e.classList.contains("selected")&&"true"==e.dataset.overrideWarning&&(t=!0)})),t?this.overrideWarningTarget.classList.remove("d-none"):this.overrideWarningTarget.classList.add("d-none")}}},{key:"clearAllTargetTimepoints",value:function(t){var e=this;this.targetTimepointTargets.forEach((function(t){e.deSelectTargetTimepoint(t)})),this.targetedTimepointsTarget.setAttribute("value",""),this.handleSubmitButton()}},{key:"selectAllTargetTimepoints",value:function(t){var e=this,n=[];this.targetTimepointTargets.forEach((function(t){e.selectTargetTimepoint(t),n.push(t.dataset.timepointId)})),n=n.toString(),this.targetedTimepointsTarget.setAttribute("value",n),this.handleSubmitButton()}},{key:"selectTargetTimepoint",value:function(e){e.classList.add("selected"),"true"==e.dataset.overrideWarning?e.classList.add("alert-danger"):e.classList.add("secondary-grey"),t(e).children(".fa-square-o").addClass("d-none"),t(e).children(".fa-check-square").removeClass("d-none")}},{key:"deSelectTargetTimepoint",value:function(e){e.classList.remove("secondary-grey","selected","alert-danger"),t(e).children(".fa-square-o").removeClass("d-none"),t(e).children(".fa-check-square").addClass("d-none")}}])&&o(n.prototype,r),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.b);l.values={timepointId:String,originVisitTemplatesInstance:String,targetVisitTemplatesInstance:String},l.targets=["originSampleType","originVisitSchedule","originVisitTemplates","targetSampleType","targetVisitSchedule","targetVisitTemplates","originTimepoint","targetTimepoint","timepointToCopy","targetedTimepoints","modalSubmit","overrideWarning"]}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,s=[{key:"targets",get:function(){return["numberField"]}}],(a=[{key:"connect",value:function(){this.initializeNumberButtons(),this.enforceMinMax(),this.enforceSimpleWholeNumbers()}},{key:"initializeNumberButtons",value:function(){this.numberFieldTargets.forEach((function(e){"false"!=e.dataset.spinner&&t(e).inputSpinner()}))}},{key:"enforceMinMax",value:function(){this.numberFieldTargets.forEach((function(t){t.addEventListener("change",(function(){""!=t.value&&(parseInt(t.value)<parseInt(t.min)&&(t.value=t.min),parseInt(t.value)>parseInt(t.max)&&(t.value=t.max))}))}))}},{key:"enforceSimpleWholeNumbers",value:function(){this.numberFieldTargets.forEach((function(t){"true"==t.dataset.simpleWholeNumbers&&t.addEventListener("keydown",(function(t){var e=new RegExp("^[0-9]*$");t.ctrlKey||t.altKey||"string"!==typeof t.key||1!==t.key.length||e.test(t.key)||t.preventDefault()}))}))}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"connect",value:function(){document.addEventListener("turbo:frame-render",(function(e){t(".selectpicker").selectpicker("refresh")})),this.initializeSortLogic(),this.initializeStorageAreaFieldLogic(),this.initializeStepDrawer()}},{key:"initializeSortLogic",value:function(){t("#steps-sortable").length>0&&t("#steps-sortable").sortable({axis:"y",items:".item",cursor:"move",handle:".fa-grip-vertical",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(e,n){var r=this;t("#steps-sortable").find(".step-card").each((function(e){var n=t(t(r).find(".step-card")[e]),i="step_card_".concat(e);n.attr("id",i),(n=t("#".concat(i))).find('[name*="step_label"]').attr("name","step_label_".concat(e)),n.find('[name*="step_type"]').attr("name","step_type_".concat(e)),n.find('[name*="step_requirements"]').attr("name","step_requirements_".concat(e)),n.find('[name*="instructions"]').attr("name","instructions_".concat(e)),n.find(".remove-step-link").attr("target",e)}))}})}},{key:"initializeStorageAreaFieldLogic",value:function(){var e=t("#storage_area_field"),n=t("#config_id").attr("data-config-id"),r={placeholder:"Find or Create Storage Area",adjustWidth:!1,getValue:"storage_area",url:function(t){return"/configuration/fetch_configuration_storage_areas?si="+t+"&config_id="+n},listLocation:"storage_areas",list:{maxNumberOfElements:10,match:{enabled:!0},sort:{enabled:!0},onChooseEvent:function(){var r={s:e.val(),config_id:n};t.ajax({type:"GET",url:"/configuration/fetch_storage_area",data:r,dataType:"script"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};e.easyAutocomplete(r)}},{key:"initializeStepDrawer",value:function(){var e=t("#draw_container_type").val().split("/")[0],n=t(".step-drawer-options").not(".d-none");n[0].id.split("_")[0]!=e&&(n.addClass("d-none"),t(".step-drawer-options#".concat(e,"_step_options")).removeClass("d-none"))}},{key:"toggleStepDrawer",value:function(e){t(".step-option-drawer").toggleClass("d-none"),t(e.target).text("Hide"==t(e.target).text()?"Add another step":"Hide")}},{key:"updateProcedureStepTurboFrame",value:function(e){var n={},r=[],i=t(e.target)[0].getAttribute("modal-context");t(e.target).parents("#steps-sortable").find(".step-card").each((function(e,n){var o={};o.index=e,o.step_label=t(n).find("input[name='step_label_".concat(e,"']"))[0].value,o.instructions=t(n).find("input[name='instructions_".concat(e,"']"))[0].value,o.step_type=t(n).find("input[name='step_type_".concat(e,"']"))[0].value,"aliquot"==o.step_type?(o.total_aliquots=t(n).find("#total_aliquots")[0].value,o.primary_aliquots=t(n).find("#primary_aliquots")[0].value,o.use_collection_container=t(n).parents("#aliquot_plan_modal").find("#use_collection_container").prop("checked")):"storage"==o.step_type?(o.storage_area_name=t(n).find("#storage_area_field")[0].value,o.storage_duration=t(n).find("#storage_duration")[0].value,o.storage_duration_unit=t(n).find("#storage_duration_unit")[0].value,o.storage_temperature=t(n).find("#storage_temperature")[0].value):"handling"!=i&&(o.step_requirements=t(n).find("select[name='step_requirements_".concat(e,"']"))[0].value),r.push(o)})),n.stepData=r,n.config_id=t(e.target)[0].getAttribute("config-id"),n.collection_id=t(e.target)[0].getAttribute("collection-id"),n.aliquot_plan_id=t(e.target)[0].getAttribute("aliquot-plan-id"),n.action=t(e.target)[0].getAttribute("action"),n.target=t(e.target)[0].getAttribute("target"),n.default_step=t(e.target)[0].getAttribute("default-step"),n.new_step_type=t(e.target)[0].getAttribute("new-step-type"),n.modal_context=i,"collection"==i&&(n.draw_container_type=t(e.target).closest("#collection_step_modal").find("#draw_container_type").val()),t(e.target).closest(".modal").find("#procedure_step_data_for_turbo")[0].value=JSON.stringify(n),t(e.target).closest(".modal").find("#procedure-step-turbo-form")[0].requestSubmit()}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function s(t){return'<div class="input-group ${groupClass}">\n    <input type="number" inputmode="decimal" style="text-align: ${textAlign}; border-width: 1px 0px 1px 1px;" class="form-control form-control-text-input" bootstrap-input-spinner="true" data-action="change->protocols--enrollment-target#updateCounts" data-protocols--enrollment-target-target="'.concat(t,'">\n    <button style="min-width: ${buttonsWidth}; border-radius: 0px 0px 0px 0px;" class="btn btn-decrement ${buttonsClass} btn-minus" type="button">${decrementButton}</button>\n    <button style="min-width: ${buttonsWidth}; border-radius: 0px 5px 5px 0px; border-width: 1px 1px 1px 0px;" class="btn btn-increment ${buttonsClass} btn-plus" type="button">${incrementButton}</button>\n  </div>')}n.d(e,"a",(function(){return u}));var u=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(c,e);var n,a,u,l=o(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return n=c,(a=[{key:"initialize",value:function(){this.numberFormatter=new Intl.NumberFormat,this.totalCount=0,this.cohortCount=0,this.cohortsVisible=!1}},{key:"connect",value:function(){this.cohortsVisible=!!this.hasCohortsCheckboxTarget&&this.cohortsCheckboxTarget.checked,this.updateCohortControlVisibility(),this.updateCounts(),t(this.totalCountTarget).inputSpinner({template:s("totalCount")}),t(this.cohortCountTargets).inputSpinner({template:s("cohortCount")})}},{key:"updateCounts",value:function(){this.calculateCounts(),this.updateCohortCount()}},{key:"toggleCohorts",value:function(t){this.cohortsVisible=t.target.checked,this.updateCohortControlVisibility()}},{key:"updateCohortControlVisibility",value:function(){var t=this;this.cohortControlTargets.forEach((function(e){e.classList.toggle("d-none",!t.cohortsVisible)})),this.updateCohortCount()}},{key:"calculateCounts",value:function(){this.totalCount=parseInt(this.totalCountTarget.value,10)||0,this.cohortCount=this.cohortCountTargets.reduce((function(t,e){return t+(parseInt(e.value,10)||0)}),0)}},{key:"updateCohortCount",value:function(){var t=this.cohortCount!==this.totalCount;if(this.saveTarget.disabled=t&&this.cohortsVisible,this.cohortsVisible){var e=this.subjectCountsTarget;e.classList.toggle("text-danger",t);var n=this.numberFormatter.format(this.totalCount),r=this.numberFormatter.format(this.cohortCount),i=document.createTextNode("".concat(r,"/").concat(n," distributed"));e.replaceChildren(i)}}}])&&r(n.prototype,a),u&&r(n,u),Object.defineProperty(n,"prototype",{writable:!1}),c}(n(3).b);u.targets=["cohortControl","cohortCount","cohortsCheckbox","save","subjectCounts","totalCount"]}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));var r=n(3),i=n(16);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var l=["part_type","force_numeric","character_limit","joiner_type","part_value"],c=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(d,e);var n,r,u,c=s(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,(r=[{key:"connect",value:function(){this.initializeSortLogic()}},{key:"initializeSortLogic",value:function(){var e=this.planIdValue;t("#parts-sortable").length>0&&t("#parts-sortable").sortable({axis:"y",items:".item",cursor:"move",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(n,r){var o=this,a=[];t("#parts-sortable").find(".part-card").each((function(e,n){n=t(t(o).find(".part-card")[e]);var r={index:e};n.attr("id","part_card_".concat(e)),l.forEach((function(t){if(n.find('[name*="'.concat(t,'"]')).length>0){var i="".concat(t,"_").concat(e);n.find('[name*="'.concat(t,'"]')).attr("name",i),n.find('[name*="'.concat(t,'"]')).attr("id",i),["part_type","joiner_type"].includes(t)&&(r[t]=n.find('[name*="'.concat(t,'"]'))[0].value)}})),a.push(r)})),Object(i.b)("/subject_identifier_plans/".concat(e,"/update_plan_preview?part_data=").concat(JSON.stringify(a)),{responseKind:"turbo-stream"})}})}},{key:"updatePartFormTurboFrame",value:function(e){var n={},r=[];r=this.gatherPartData(r),n.partData=r,n.action=t(e.target)[0].getAttribute("action"),n.target=t(e.target)[0].getAttribute("target"),document.getElementById("plan_part_data_for_turbo").value=JSON.stringify(n),document.getElementById("plan-part-turbo-form").requestSubmit()}},{key:"changePartType",value:function(t){var e=t.target.closest(".part-card").id,n=JSON.stringify(this.gatherPreviewData([]));Object(i.b)("/subject_identifier_plans/".concat(this.planIdValue,"/load_part_card?part_type=").concat(t.target.value,"&target_card=").concat(e,"&part_data=").concat(n),{responseKind:"turbo-stream"})}},{key:"updatePreview",value:function(t){var e=JSON.stringify(this.gatherPreviewData([]));Object(i.b)("/subject_identifier_plans/".concat(this.planIdValue,"/update_plan_preview?part_data=").concat(e),{responseKind:"turbo-stream"})}},{key:"gatherPartData",value:function(e){return t(this.partsContainerTarget).find(".part-card").each((function(t,n){var r={};r.index=t,l.forEach((function(e){var n=document.getElementsByName("".concat(e,"_").concat(t))[0];void 0!=n&&(r[e]=n.value)})),e.push(r)})),e}},{key:"gatherPreviewData",value:function(e){return t(this.partsContainerTarget).find(".part-card").each((function(t,n){var r={};r.index=t;var i=document.getElementsByName("part_type_".concat(t))[0];void 0!=i&&(r.part_type=i.value),document.getElementsByName("joiner_type_".concat(t)).length>0&&(r.joiner_type=document.getElementsByName("joiner_type_".concat(t))[0].value),e.push(r)})),e}}])&&o(n.prototype,r),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),d}(r.b);c.values={planId:String},c.targets=["partsContainer","standardFieldsContainer"]}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u}));var r=n(3);n(16);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(l,e);var n,r,s,u=a(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(r=[{key:"connect",value:function(){}},{key:"toggleRaceForm",value:function(e){e.target.checked?(t(this.raceFieldTarget).show(),t(this.raceRequiredTarget).show(),t(this.raceLabelTarget).show()):(t(this.raceFieldTarget).hide(),t(this.raceRequiredTarget).hide(),t(this.raceLabelTarget).hide())}},{key:"toggleEthnicityForm",value:function(e){e.target.checked?(t(this.ethnicityFieldTarget).show(),t(this.ethnicityRequiredTarget).show(),t(this.ethnicityLabelTarget).show()):(t(this.ethnicityFieldTarget).hide(),t(this.ethnicityRequiredTarget).hide(),t(this.ethnicityLabelTarget).hide())}},{key:"toggleScreeningIdFields",value:function(e){e.target.checked?(t(this.screeningIdFieldsTarget).show(),t("#screening_id_length").attr("required",!0)):(t(this.screeningIdFieldsTarget).hide(),t("#screening_id_length").attr("required",!1))}}])&&i(n.prototype,r),s&&i(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(r.b);u.values={planId:String},u.targets=["raceField","ethnicityField","raceRequired","ethnicityRequired","raceLabel","ethnicityLabel","screeningIdRequired","screeningIdFields","screeningIdLength"]}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"connect",value:function(){}},{key:"toggleCollapseIcon",value:function(e){var n=e.target.closest(".report-toggle").getAttribute("data-report-id");t("#toggle-icon-".concat(n)).toggleClass("fa-chevron-up"),t("#toggle-icon-".concat(n)).toggleClass("fa-chevron-down")}},{key:"submitForm",value:function(t){t.target.closest("form").submit()}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b);s.values={planId:String},s.targets=[]}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"connect",value:function(){this.element.addEventListener("turbo:frame-render",this.refreshElements.bind(this))}},{key:"disconnect",value:function(){this.element.removeEventListener("turbo:frame-render",this.refreshElements.bind(this))}},{key:"refreshElements",value:function(){t(".datepicker").datepicker()}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(3),i=n(16);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var l=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,u,l=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return n=c,u=[{key:"targets",get:function(){return["modalButton","subjectSelect","visitSelect","procedureSelect","timepointSelect","sampleCheck","kickerSubmit","kickerChecker","swapSamplesCheck","recordConflict"]}}],(r=[{key:"initialize",value:function(){this.selectedSampleIds=new Set}},{key:"connect",value:function(){t("#swap_toggle").tooltip(),this.checkedSamples=new Set(this.sampleCheckTargets.filter((function(t){return!!t&&t.checked})).map((function(t){return t.dataset.sampleId}))),this.handleConflicts()}},{key:"toggle",value:function(t){var e=t.target.dataset.sampleId;this.checkedSamples.has(e)?this.checkedSamples.delete(e):this.checkedSamples.add(e),this.updateConflictChecker()}},{key:"updateConflictChecker",value:function(){this.checkedSamples.size>0&&this.timepointSelectTarget.value?(this.kickerCheckerTarget.disabled=!1,this.kickerCheckerTarget.classList.remove("disabled")):(this.kickerCheckerTarget.disabled=!0,this.kickerCheckerTarget.classList.add("disabled"))}},{key:"updateSubmitButton",value:function(){this.checkedSamples.size>0&&this.timepointSelectTarget.value?this.kickerSubmitTarget.disabled=!1:this.kickerSubmitTarget.disabled=!0}},{key:"fetchContext",value:function(t){var e=this.subjectSelectTarget.value,n=this.visitSelectTarget.value,r=this.procedureSelectTarget.value,o=this.timepointSelectTarget.value;Object(i.b)("/workspaces/".concat(this.workspaceIdValue,"/fetch_sample_kicker_options?collection_id=").concat(this.collectionIdValue,"&subject_id=").concat(e,"&visit_id=").concat(n,"&procedure_id=").concat(r,"&timepoint_id=").concat(o,"&selected_samples=").concat(Array.from(this.checkedSamples)),{responseKind:"turbo-stream"})}},{key:"checkForConflicts",value:function(t){t.preventDefault();var e=this.visitSelectTarget.value,n=this.timepointSelectTarget.value;Object(i.b)("/workspaces/".concat(this.workspaceIdValue,"/check_for_kicker_conflicts?collection_id=").concat(this.collectionIdValue,"&visit_id=").concat(e,"&timepoint_id=").concat(n,"&selected_samples=").concat(Array.from(this.checkedSamples)),{responseKind:"turbo-stream"})}},{key:"handleConflicts",value:function(t){(0==this.recordConflictTargets.length||this.recordConflictTargets.length>0&&this.recordConflictTargets.filter((function(t){return!!t&&t.checked})).length>0)&&(0==this.swapSamplesCheckTargets.length||this.swapSamplesCheckTargets.length>0&&this.swapSamplesCheckTarget.checked)?(this.kickerSubmitTarget.disabled=!1,this.kickerSubmitTarget.classList.remove("disabled")):(this.kickerSubmitTarget.disabled=!0,this.kickerSubmitTarget.classList.add("disabled"))}}])&&o(n.prototype,r),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.b);l.values={workspaceId:String,collectionId:String}}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"connect",value:function(){this.initializeSortLogic()}},{key:"initializeSortLogic",value:function(){t("#steps-sortable").length>0&&t("#steps-sortable").sortable({axis:"y",items:".item",cursor:"move",handle:".fa-grip-vertical",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(e,n){var r=this;t("#steps-sortable").find(".step-card").each((function(e){var n=t(t(r).find(".step-card")[e]),i="step_card_".concat(e);n.attr("id",i),(n=t("#".concat(i))).find('[name*="step_label"]').attr("name","step_label_".concat(e)),n.find('[name*="step_type"]').attr("name","step_type_".concat(e)),n.find('[name*="step_requirements"]').attr("name","step_requirements_".concat(e)),n.find('[name*="instructions"]').attr("name","instructions_".concat(e)),n.find(".remove-step-link").attr("target",e)}))}})}},{key:"updatePrepStepTurboFrame",value:function(e){var n={},r=[];t(e.target).parents("#steps-sortable").find(".step-card").each((function(e,n){var i={};i.index=e,i.step_label=t(n).find("input[name='step_label_".concat(e,"']"))[0].value,i.instructions=t(n).find("input[name='instructions_".concat(e,"']"))[0].value,i.step_type="shipment",r.push(i)})),n.stepData=r,n.action=t(e.target)[0].getAttribute("action"),n.target=t(e.target)[0].getAttribute("target"),t("#sample_prep_step_data_for_turbo")[0].value=JSON.stringify(n),t("#sample-prep-step-turbo-form")[0].requestSubmit()}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return p}));var r=n(46),i=n(3);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(){s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(T){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),s=new x(i||[]);return r(a,"_invoke",{value:k(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=c;var h={};function f(){}function p(){}function m(){}var g={};l(g,o,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(D([])));v&&v!==e&&n.call(v,o)&&(g=v);var _=m.prototype=f.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var u=d(t[r],t,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&n.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function k(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function D(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=m,r(_,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:p,configurable:!0}),p.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(_),l(_,u,"Generator"),l(_,o,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=D,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function u(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=h(t);if(e){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t){t.stopPropagation()}var p=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(g,e);var n,i,a,h,p,m=d(g);function g(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=m.call.apply(m,[this].concat(n))).timeout=null,t.models=new Set,t.selectedResultIndex=null,t.hasPerformedSearch=!1,t.abortController=null,t}return n=g,i=[{key:"connect",value:function(){clearTimeout(this.timeout),this.selectedResultIndex=null,this.query=this.hasInputTarget?this.inputTarget.value:"",this.dropdownValue?(this.resultContext="dropdown",new URLSearchParams(window.location.search).has("static_query")&&(this.query="",this.hasInputTarget&&(this.inputTarget.value="")),this.$menu=t(this.menuTarget),this.$menu.on("click.bs.dropdown",f),this.$menu.parent().on("shown.bs.dropdown",this.focus.bind(this)),this.$menu.parent().on("hidden.bs.dropdown",this.dropdownHidden.bind(this))):(this.resultContext="page",t(this.element).on("click","a.page-link",this.pageClicked.bind(this)),this.hasPerformedSearch||this.updateSearch()),this.updateClearButton(),this.updateResultVisibility()}},{key:"disconnect",value:function(){clearTimeout(this.timeout),this.abortController&&this.abortController.abort(),this.$menu&&(this.$menu.off("click.bs.dropdown",null,f),this.$menu.parent().off("shown.bs.dropdown",null,this.focus.bind(this)),this.$menu.parent().off("hidden.bs.dropdown",this.dropdownHidden.bind(this))),t(this.element).off("click","a.page-link",this.pageClicked.bind(this))}},{key:"modelTargetConnected",value:function(t){t.checked?this.models.add(t.value):this.models.delete(t.value),this.updateCheckToggle()}},{key:"close",value:function(){this.$menu&&this.$menu.removeClass("show")}},{key:"clear",value:function(t){t.preventDefault(),clearTimeout(this.timeout),this.abortController&&this.abortController.abort(),0!==this.query.length&&(this.query=this.inputTarget.value="",this.updateClearButton(),this.updateSearch())}},{key:"updateClearButton",value:function(){this.hasClearTarget&&this.clearTarget.classList.toggle("d-none",0===this.query.length)}},{key:"updateResultVisibility",value:function(){var t=0===this.query.length&&!this.hasPerformedSearch;this.resultsTarget.classList.toggle("d-none",t)}},{key:"debounce",value:function(t){var e=this,n=t.target;this.query=n.value,this.updateClearButton(),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.updateSearch()}),325)}},{key:"updateSearch",value:(h=s().mark((function t(){var e,n,i,o,a,u,l,c,d,h=arguments;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=h.length>0&&void 0!==h[0]?h[0]:null,n=Date.now(),clearTimeout(this.timeout),this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.hasPerformedSearch=!0,this.updateResultVisibility(),this.element.ariaBusy="true",this.hasQueryTextTarget&&(this.queryTextTarget.textContent=this.query),i=new URL(window.location),(o=new URLSearchParams(i.search)).set("static_query",this.query),o.set("search_models",Array.from(this.models).join(",")),o.set("context",this.resultContext),e&&o.set("page",e),i.search=o,t.prev=16,t.next=19,fetch(i,{signal:this.abortController.signal,headers:{accept:"text/vnd.turbo-stream.html, text/html, application/xhtml+xml"}});case 19:if(200===(a=t.sent).status){t.next=22;break}throw new Error("Got unexpected status code when searching: ".concat(a.status));case 22:if(null===(u=a.headers.get("content-type"))||void 0===u||!u.match(/^text\/vnd\.turbo-stream\.html/)){t.next=35;break}if(l=Date.now()-n,!((c=500-l)>0)){t.next=29;break}return t.next=29,new Promise((function(t){return setTimeout(t,c)}));case 29:return t.next=31,a.text();case 31:d=t.sent,r.a.renderStreamMessage(d),t.next=36;break;case 35:throw new Error("Search response was not Turbo Stream: ".concat(u));case 36:t.next=44;break;case 38:if(t.prev=38,t.t0=t.catch(16),"AbortError"===t.t0.name){t.next=44;break}return console.error(t.t0),0!==this.query.length&&(alert("Could not load search results. Please try again."),window.location.reload()),t.abrupt("return");case 44:this.selectedResultIndex=null,this.updateSelectedResult(),this.updateCheckToggle(),this.element.ariaBusy="false",this.focus();case 49:case"end":return t.stop()}}),t,this,[[16,38]])})),p=function(){var t=this,e=arguments;return new Promise((function(n,r){var i=h.apply(t,e);function o(t){u(i,n,r,o,a,"next",t)}function a(t){u(i,n,r,o,a,"throw",t)}o(void 0)}))},function(){return p.apply(this,arguments)})},{key:"toggle",value:function(t){var e=t.target,n=e.value;this.checkTarget.checked=!1,this.checkTarget.parentNode.classList.remove("active"),this.models.size===this.modelTargets.length&&(this.modelTargets.forEach((function(t){return t.checked=n===t.value})),this.models.clear()),e.parentNode.classList.toggle("active",e.checked),e.checked?this.models.add(n):this.models.delete(n),this.updateCheckToggle(),this.updateSearch()}},{key:"focus",value:function(){this.inputTarget.focus()}},{key:"dropdownHidden",value:function(){this.hasPerformedSearch=!1,this.updateResultVisibility()}},{key:"pageClicked",value:function(t){var e=t.target.getAttribute("href");if(e){t.preventDefault();var n=new URL(e,window.location);this.updateSearch(n.searchParams.get("page"))}}},{key:"updateCheckToggle",value:function(){var t=this,e=this.checkTarget.checked||this.models.size===this.modelTargets.length;this.checkTarget.parentNode.classList.toggle("active",e),this.syncButton(this.checkTarget,this.checkTarget.dataset.searchSyncParam),this.modelTargets.forEach((function(n){n.checked&=!e,n.parentNode.classList.toggle("active",n.checked),t.syncButton(n,n.dataset.searchSyncParam)})),e&&this.modelTargets.forEach((function(e){t.models.add(e.value)}))}},{key:"syncButton",value:function(t,e){var n=document.getElementById(e);n&&(n.checked=t.checked,n.parentNode.classList.toggle("active",t.parentNode.classList.contains("active")))}},{key:"checkAll",value:function(){this.updateCheckToggle(),this.updateSearch()}},{key:"up",value:function(t){t.preventDefault(),null===this.selectedResultIndex?this.selectedResultIndex=0:this.selectedResultIndex>0&&(this.selectedResultIndex-=1),this.updateSelectedResult()}},{key:"down",value:function(t){t.preventDefault(),null===this.selectedResultIndex?this.selectedResultIndex=0:this.selectedResultIndex<=this.resultTargets.length-2&&(this.selectedResultIndex+=1),this.updateSelectedResult()}},{key:"updateSelectedResult",value:function(){var t=this;if(this.resultTargets.forEach((function(e,n){var r=n===t.selectedResultIndex;e.classList.toggle("border-dark",r)})),null!==this.selectedResultIndex){var e=this.resultTargets[this.selectedResultIndex],n=0===this.selectedResultIndex?"end":"nearest";e.scrollIntoView({behavior:"smooth",block:n})}}},{key:"visit",value:function(t){if(t.preventDefault(),null===this.selectedResultIndex)if(this.dropdownValue){var e=new URL(window.location.href);e.searchParams.set("static_query",this.query),e.searchParams.set("search_models",o(this.models).join(",")),r.a.visit(e)}else this.updateSearch();else{var n,i=this.resultTargets[this.selectedResultIndex];i.hasAttribute("href")?i.click():null===(n=i.querySelector('[data-search-target="link"]'))||void 0===n||n.click()}}},{key:"support",value:function(){window.Intercom&&Intercom("show")}}],i&&l(n.prototype,i),a&&l(n,a),Object.defineProperty(n,"prototype",{writable:!1}),g}(i.b);p.targets=["check","clear","input","menu","model","queryText","result","results"],p.values={dropdown:Boolean}}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));var r=n(3),i=n(177),o=n.n(i);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,e);var n,r,i,l=u(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return n=c,(r=[{key:"connect",value:function(){this.entryCount=this.entryTargets.length,this.preparedEntries=null,this.selectedEntryIndex=null,this.$menu=t(this.element.closest(".dropdown-menu")),this.$dropdown=this.$menu.parent(),this.$dropdown.on("shown.bs.dropdown",this.focus.bind(this)),this.$dropdown.on("hidden.bs.dropdown",this.hidden.bind(this)),this.toggleInput()}},{key:"disconnect",value:function(){this.$dropdown.off("shown.bs.dropdown",this.focus.bind(this)),this.$dropdown.off("hidden.bs.dropdown",this.hidden.bind(this))}},{key:"toggleInput",value:function(){var t=!this.hasMinSearchSizeValue||this.entryTargets.length>=this.minSearchSizeValue;this.inputFormTarget.classList.toggle("d-none",!t),t&&this.$menu.css("min-width","375px")}},{key:"focus",value:function(){this.inputFieldTarget.focus(),this.$menu.width(this.$menu.width())}},{key:"hidden",value:function(){this.inputFieldTarget.value="",this.$menu.css("width",""),this.reset()}},{key:"reset",value:function(){this.selectedEntryIndex=null,this.entryTargets.forEach((function(t){return t.classList.remove("d-none")})),this.updateSelectedEntry()}},{key:"prepareEntries",value:function(){this.preparedEntries||(this.preparedEntries=this.entryTargets.map((function(t,e){return{index:e,textPrepared:o.a.prepare(t.textContent)}})))}},{key:"visibleEntries",value:function(){return this.entryTargets.filter((function(t){return!t.classList.contains("d-none")}))}},{key:"updateSelectedEntry",value:function(){var t=this;this.visibleEntries().forEach((function(e,n){var r=n===t.selectedEntryIndex;e.classList.toggle("active",r)}))}},{key:"filter",value:function(t){if(this.selectedEntryIndex=null,this.updateSelectedEntry(),0!==t.target.value.length){this.prepareEntries();var e=o.a.go(t.target.value,this.preparedEntries,{key:"textPrepared"}),n=new Set(e.map((function(t){return t.obj.index})));this.entryTargets.forEach((function(t,e){t.classList.toggle("d-none",!n.has(e))}))}else this.reset()}},{key:"key",value:function(t){if(["ArrowUp","ArrowDown","Enter"].includes(t.key)){t.preventDefault();var e=this.visibleEntries();switch(t.key){case"ArrowUp":null===this.selectedEntryIndex?this.selectedEntryIndex=0:this.selectedEntryIndex>0&&(this.selectedEntryIndex-=1);break;case"ArrowDown":null===this.selectedEntryIndex?this.selectedEntryIndex=0:this.selectedEntryIndex<=e.length-2&&(this.selectedEntryIndex+=1);break;case"Enter":return null===this.selectedEntryIndex&&(this.selectedEntryIndex=0),void e[this.selectedEntryIndex].click()}var n=0===this.selectedEntryIndex?"end":"nearest";e[this.selectedEntryIndex].scrollIntoView({behavior:"smooth",block:n}),this.updateSelectedEntry()}}}])&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.b);c.targets=["inputForm","inputField","entry"],c.values={minSearchSize:Number}}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"loadPrepPlan",value:function(e){t("#prep-plan-picker")[0].requestSubmit()}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"connect",value:function(){var e=this;"true"==this.editFormValue&&(t(".datepicker").datepicker({clearBtn:!0,format:"dd-M-yyyy",keepEmptyValues:!0,autoclose:!0}).on("changeDate",(function(t){e.manageOtherAliquots()})),t(".timepicker").timepicker().on("changeTime.timepicker",this.manageOtherAliquots))}},{key:"triggerModal",value:function(e){e.preventDefault(),t(this.confirmationModalTarget).modal()}},{key:"toggleModal",value:function(e){t(this.confirmationModalTarget).modal("hide")}},{key:"promptReason",value:function(e){var n=t(this.confirmationModalTarget).find("#reason-field");t(n).removeClass("d-none"),t(n).addClass("d-flex")}},{key:"toggleSubmitButtons",value:function(){var e=t(this.confirmationModalTarget).find("#submit-buttons");""==this.reasonSelectTarget.value?t(e).addClass("d-none"):t(e).removeClass("d-none")}},{key:"manageOtherAliquots",value:function(){t("#shipped-submit").removeClass("d-none"),t("#pending-submit").addClass("d-none"),t("#other-aliquots-span").removeClass("d-none")}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b);s.targets=["confirmationModal","reasonSelect"],s.values={editForm:String}}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u}));var r=n(3);n(16);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=s(t);if(e){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(l,e);var n,r,s,u=a(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(r=[{key:"connect",value:function(){this.initializeSortLogic()}},{key:"initializeSortLogic",value:function(){t("#steps-sortable").length>0&&t("#steps-sortable").sortable({axis:"y",items:".item",cursor:"move",handle:".fa-grip-vertical",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(e,n){var r=this;t("#steps-sortable").find(".step-card").each((function(e){var n=t(t(r).find(".step-card")[e]),i="step_card_".concat(e);n.attr("id",i),(n=t("#".concat(i))).find('[name*="step_label"]').attr("name","step_label_".concat(e)),n.find('[name*="step_type"]').attr("name","step_type_".concat(e)),n.find('[name*="step_requirements"]').attr("name","step_requirements_".concat(e)),n.find('[name*="instructions"]').attr("name","instructions_".concat(e)),n.find(".remove-step-link").attr("target",e)}))}})}},{key:"updateTimepointStepTurboFrame",value:function(e){var n={},r=[];t(e.target).parents("#steps-sortable").find(".step-card").each((function(e,n){var i={};i.index=e,i.step_label=t(n).find("input[name='step_label_".concat(e,"']"))[0].value,i.instructions=t(n).find("input[name='instructions_".concat(e,"']"))[0].value,i.step_type=t(n).find("input[name='step_type_".concat(e,"']"))[0].value,i.step_requirements=t(n).find("select[name='step_requirements_".concat(e,"']"))[0].value,r.push(i)})),n.stepData=r,n.action=t(e.target)[0].getAttribute("action"),n.target=t(e.target)[0].getAttribute("target"),n.default_step=t(e.target)[0].getAttribute("default-step"),n.new_step_type=t(e.target)[0].getAttribute("new-step-type"),t("#sample_timepoint_step_data_for_turbo")[0].value=JSON.stringify(n),t("#sample-timepoint-step-turbo-form")[0].requestSubmit()}},{key:"validateStepOrder",value:function(t){t.preventDefault();for(var e=0,n=document.getElementsByName("step_type_".concat(e))[0],r={};void 0!=n;)r[n.value]=e,e++,n=document.getElementsByName("step_type_".concat(e))[0];r.collection>r.aliquot||r.storage<r.aliquot||void 0!=r.meta_fields&&r.aliquot<r.meta_fields?document.getElementById("order_error").classList.remove("d-none"):(document.getElementById("order_error").classList.add("d-none"),document.getElementById("timepoint_step_form").requestSubmit())}}])&&i(n.prototype,r),s&&i(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(r.b);u.values={timepointId:String}}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,s=[{key:"targets",get:function(){return["modal"]}}],(a=[{key:"connect",value:function(){this.target=t(this.modalTarget)}},{key:"open",value:function(){this.target.modal("show"),t(this.element).find(".selectpicker").selectpicker("refresh"),t(".datepicker").datepicker(),t("input[type='number']").not(".no-input-spinner").inputSpinner(),t('[data-toggle="tooltip"]').tooltip()}},{key:"close",value:function(){this.target.modal("hide")}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c}));var r=n(46);function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(d,e);var n,o,l,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,l=[{key:"targets",get:function(){return["checkAll","tableRow","actionDropdown","actionCount","actionsButton","paginationOption"]}},{key:"values",get:function(){return{query:String,updateUrl:{type:Boolean,default:!0}}}}],(o=[{key:"initialize",value:function(){this.rowCount=0,this.enabledRowCount=0,this.checkedItems=new Set}},{key:"connect",value:function(){this.rowCount=this.tableRowTargets.length,this.enabledRowCount=this.tableRowTargets.filter((function(t){var e=t.querySelector('input[type="checkbox"]');return!!e&&!e.disabled})).length,this.checkedItems=new Set(this.tableRowTargets.filter((function(t){var e=t.querySelector('input[type="checkbox"]');return!!e&&e.checked})).map((function(t){return t.dataset.id}))),this.updateControls(),this.rendered(),this.setPaginationOptionLinks()}},{key:"rendered",value:function(){t(".selectpicker").selectpicker({noneSelectedText:""}),this.manageFilterPills()}},{key:"manageFilterPills",value:function(){var e=this,n=!1;t(".pill-input").on("change.bs.select",(function(){n=!0})),t(".pill-input").on("hidden.bs.select",(function(t){n&&(t.preventDefault,this.form.requestSubmit()),n=!1})),t(".search").on("keyup",(function(t){13==t.keyCode&&(t.preventDefault(),this.form.requestSubmit())})),t(".search").on("focusout",(function(t){""!=t.currentTarget.value&&(t.preventDefault(),this.form.requestSubmit())})),t(".turbo-table").tooltip({selector:'[data-toggle="tooltip"]'}),t(".input-daterange").datepicker({clearBtn:!0,format:"dd-M-yyyy",keepEmptyValues:!0,autoclose:!0}).on("changeDate",(function(t){e.datepickerUpdated(t)}))}},{key:"datepickerUpdated",value:function(t){var e=i(t.currentTarget.querySelectorAll(".form-control")),n=e.map((function(t){return t.value}));document.querySelector("#date-range-values").value="".concat(n[0],";").concat(n[1]),""!=n[1]&&e[1].form.submit()}},{key:"startedLoading",value:function(){this.element.classList.add("turbo-table-loading")}},{key:"finishedLoading",value:function(){this.element.classList.remove("turbo-table-loading")}},{key:"queryValueChanged",value:function(){if(this.updateUrlValue){var t=new URLSearchParams(this.queryValue),e=new URL(window.location.href);e.search=t.toString(),r.a.navigator.history.replace(e)}}},{key:"notifyCheckedRowsChanged",value:function(){this.dispatch("checkedRows",{detail:{ids:this.checkedItems}})}},{key:"notifyCheckedAll",value:function(){this.dispatch("checkedRows",{detail:{ids:this.checkedItems,check_all:!0}})}},{key:"toggle",value:function(t){var e=t.params.id;this.checkedItems.has(e)?this.checkedItems.delete(e):this.checkedItems.add(e),this.updateControls(),this.notifyCheckedRowsChanged()}},{key:"checkAll",value:function(){var t=this;if(0!==this.enabledRowCount){var e=0===this.checkedItems.size;this.tableRowTargets.forEach((function(n){var r=n.dataset.id,i=n.querySelector('input[type="checkbox"]');e&&!i.disabled?(t.checkedItems.add(r),i.checked=!0):(t.checkedItems.delete(r),i.checked=!1,n.classList.remove("active"))})),this.updateControls(),this.notifyCheckedAll()}}},{key:"updateControls",value:function(){if(this.hasCheckAllTarget){this.checkAllTarget.checked=this.enabledRowCount>0&&this.checkedItems.size===this.rowCount,this.checkAllTarget.indeterminate=0!==this.checkedItems.size&&this.checkedItems.size!==this.rowCount,this.checkAllTarget.disabled=0===this.enabledRowCount,this.hasActionCountTarget&&(this.actionCountTarget.innerHTML=this.checkedItems.size,this.actionDropdownTarget.disabled=0===this.checkedItems.size);var t=this.checkedItems.size>1;this.actionsButtonTargets.forEach((function(e){var n=e.parentNode;t?(e.disabled=!0,e.style.pointerEvents="none",n.dataset.toggle="tooltip",n.dataset.placement="left",n.title='Use the "Actions for checked items" button'):(e.disabled=!1,e.style.pointerEvents="",n.dataset.toggle="",n.title="")}))}}},{key:"submitChecked",value:function(t){t.detail.perform(this.checkedItems)}},{key:"setPaginationOptionLinks",value:function(){var t=new URLSearchParams(this.queryValue),e=new URL(window.location.href);this.paginationOptionTargets.forEach((function(n){var r=n.dataset.option;t.set("per_page",r),e.search=t.toString(),n.href=e.href}))}},{key:"loadingAnimation",value:function(){document.getElementById("turbo-table-frame").ariaBusy=!0}}])&&a(n.prototype,o),l&&a(n,l),Object.defineProperty(n,"prototype",{writable:!1}),d}(n(3).b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(3),i=n(16);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var l=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,u,l=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return n=c,u=[{key:"targets",get:function(){return["visitsContainer"]}}],(r=[{key:"connect",value:function(){t('[data-toggle="tooltip"]').tooltip(),this.loadPreferredView(),this.enableDragToReschedule()}},{key:"loadPreferredView",value:function(){var e=localStorage.getItem(this.storagePrefix());"byMonth"==e&&"month"!=this.element.dataset.viewType?Object(i.b)("/".concat(this.resourceType(),"s/").concat(this.resourceId(),"/visits_by_month"),{responseKind:"turbo-stream"}):"byWeek"==e&&"week"!=this.element.dataset.viewType?Object(i.b)("/".concat(this.resourceType(),"s/").concat(this.resourceId(),"/visits_by_week"),{responseKind:"turbo-stream"}):t(".selectpicker").selectpicker({noneSelectedText:""})}},{key:"enableDragToReschedule",value:function(){"list"!=this.element.dataset.viewType&&"workspace"==this.resourceType()&&(Array.from(this.element.getElementsByClassName("draggable")).forEach(this.initializeDraggable),Array.from(this.element.getElementsByClassName("day")).forEach(this.initializeDroppable))}},{key:"resourceId",value:function(){return this.element.dataset.resourceId}},{key:"resourceType",value:function(){return this.element.dataset.resourceType}},{key:"storagePrefix",value:function(){return"".concat(this.resourceType(),"_visits_").concat(this.resourceId())}},{key:"byMonth",value:function(t){localStorage.setItem(this.storagePrefix(),"byMonth");var e="/".concat(this.resourceType(),"s/").concat(this.resourceId(),"/visits_by_month");void 0!=t.currentTarget.dataset.startDate&&(e="".concat(e,"?start_date=").concat(t.currentTarget.dataset.startDate)),Object(i.b)(e,{responseKind:"turbo-stream"})}},{key:"byWeek",value:function(t){localStorage.setItem(this.storagePrefix(),"byWeek");var e="/".concat(this.resourceType(),"s/").concat(this.resourceId(),"/visits_by_week");void 0!=t.currentTarget.dataset.startDate&&(e="".concat(e,"?start_date=").concat(t.currentTarget.dataset.startDate)),Object(i.b)(e,{responseKind:"turbo-stream"})}},{key:"byList",value:function(t){localStorage.setItem(this.storagePrefix(),"byList"),Object(i.b)("/".concat(this.resourceType(),"s/").concat(this.resourceId(),"/visits_by_list"),{responseKind:"turbo-stream"})}},{key:"initializeDraggable",value:function(e){t(e).draggable({containment:"table",scroll:!1,stop:function(){}})}},{key:"initializeDroppable",value:function(e){t(e).droppable({drop:function(e,n){var r=t(this).find(".date_string").data("date"),o=t(this).find(".calendar_type").data("calendar-type"),a=n.draggable.find(".subject_visit_id").data("subject-visit-id"),s="/subject_visits/".concat(a,"/change_visit_date?date=").concat(r,"&calendar_type=").concat(o);Object(i.c)(s,{responseKind:"turbo-stream"}),t(".simple-calendar table").LoadingOverlay("show",{imageAutoResize:!1,size:"64px"})}})}}])&&o(n.prototype,r),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(3),i=n(64);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var l=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,u,l=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return n=c,u=[{key:"targets",get:function(){return["aliquotNote"]}}],(r=[{key:"connect",value:function(){t(".autocomplete-barcode-field").each(window.initializeTimepointBarcodeField),this.aliquotNoteTargets.forEach(i.b),t("#clear_timepoint_modal").modal("hide"),"true"==t("#identification_barcode_detected").val()&&t("#identification_barcode_detected_modal").modal()}},{key:"toggleCollapseIcon",value:function(e){var n=e.target.getAttribute("data-step-id");t("#toggle-icon-".concat(n)).toggleClass("fa-chevron-up"),t("#toggle-icon-".concat(n)).toggleClass("fa-chevron-down")}},{key:"toggleCollectedStatus",value:function(e){t(".not-collected-select").on("change",(function(e){var n=e.target.getAttribute("data-sample-group-id"),r=e.target.getAttribute("data-timepoint-id"),i=e.target.getAttribute("name");t(e.target).prop("checked")?(t(".autocomplete-barcode-field[data-sample-group-id='".concat(n,"'][data-timepoint-id='").concat(r,"']")).removeClass(" d-none"),t(".autocomplete-barcode-field[data-sample-group-id='".concat(n,"'][data-timepoint-id='").concat(r,"']")).attr("placeholder","Scan or type"),t("#timepoint_".concat(r,"_sample_group_").concat(n,"_not_collected_reason")).addClass("d-none"),t('select[name="timepoint_'.concat(r,"_sample_group_").concat(n,'_reason"]')).prop("required",!1),t("#timepoint_".concat(r,"_sample_group_").concat(n,"_label")).removeClass("d-none"),t("label[for='".concat(i,"']")).text("Collected"),t(".timepoint-meta-field[data-timepoint-id='".concat(r,"']")).attr("disabled",!1)):(t(".autocomplete-barcode-field[data-sample-group-id='".concat(n,"'][data-timepoint-id='").concat(r,"']")).addClass("d-none"),t(".autocomplete-barcode-field[data-sample-group-id='".concat(n,"'][data-timepoint-id='").concat(r,"']")).val(""),t(".autocomplete-barcode-field[data-sample-group-id='".concat(n,"'][data-timepoint-id='").concat(r,"']")).attr("required",!1),t("#timepoint_".concat(r,"_sample_group_").concat(n,"_not_collected_reason")).removeClass("d-none"),t('select[name="timepoint_'.concat(r,"_sample_group_").concat(n,'_reason"]')).prop("required",!0),t("#timepoint_".concat(r,"_sample_group_").concat(n,"_label")).addClass("d-none"),t("label[for='".concat(i,"']")).text("Not collected"))}))}},{key:"clearTimepointModal",value:function(e){if(e.preventDefault(),!e.target.classList.contains("disabled")){var n=e.target.dataset.visitId,r=e.target.dataset.sampleTimepointId,i=e.target.dataset.ffs,o=e.target.dataset.selectedLanguageId;t.ajax({type:"GET",url:"/subject_visits/".concat(n,"/clear_timepoint_modal/?sample_timepoint_id=").concat(r,"&ffs=").concat(i,"&selected_language_id=").concat(o),dataType:"script"}),t(e.target.closest("div.procedure-step")).find(".autocomplete-barcode-field").each((function(e,n){t(n)[0].dispatchEvent(new Event("keyup"))})),t(e.target.closest("div.procedure-step")).find(".aliquot-notes").each((function(e,n){t(n)[0].dispatchEvent(new Event("keyup"))}))}}},{key:"generateRandomBarcodes",value:function(e){e.target.classList.contains("disabled")||t(e.target.closest("div.procedure-step")).find(".autocomplete-barcode-field").each((function(e,n){""==t(n)[0].value.trim()&&"Scan or type"==t(n)[0].placeholder&&(t(n)[0].value="RB-".concat(Math.random().toString(36).substring(2,10)),t(n)[0].dispatchEvent(new Event("keyup")))}))}}])&&o(n.prototype,r),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,s=[{key:"targets",get:function(){return["visitScheduleSelect","configuredKitsForVisit","noVisitSelected","buildVisitButton"]}}],(a=[{key:"connect",value:function(){this.fetchInventory()}},{key:"fetchInventory",value:function(){var e=this.visitScheduleSelectTarget.value;if(""!=e){var n={template_id:e};t.ajax({type:"GET",url:"fetch_configured_kits",data:n,dataType:"script"})}else this.configuredKitsForVisitTarget.classList.add("d-none"),this.noVisitSelectedTarget.classList.remove("d-none"),this.buildVisitButtonTarget.disabled=!0}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}function o(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var i=a(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,"a",(function(){return s}));var s=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(l,e);var n,a,s,u=o(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return n=l,(a=[{key:"connect",value:function(){window.initializeTimepickers(),t(".datepicker").datepicker(),document.addEventListener("turbo:frame-missing",(function(t){var e=t.detail,n=e.response,r=e.visit;t.preventDefault(),r(n.url)})),t('input[type="number"]').each((function(e,n){t(n).inputSpinner()})),t(".timepicker").timepicker({showMeridian:!1,showSeconds:!0,minuteStep:10,secondStep:10,icons:{up:"fas fa-chevron-up",down:"fas fa-chevron-down"}})}},{key:"checkCollectionDate",value:function(e){e.target.value.toLowerCase()!==e.target.getAttribute("data-visit-date").toLowerCase()?t(".date-mismatch-alert").removeClass("d-none"):t(".date-mismatch-alert").addClass("d-none")}},{key:"toggleCollapseIcon",value:function(e){var n=e.target.getAttribute("data-step-id");t("#toggle-icon-".concat(n)).toggleClass("fa-chevron-up"),t("#toggle-icon-".concat(n)).toggleClass("fa-chevron-down")}},{key:"toggleConsentModalTrigger",value:function(e){t(e.target).prop("checked")&&2==t(e.target).val()?(t(".consent-complete").addClass("d-none"),t(".consent-modal").removeClass("d-none")):(t(".consent-complete").removeClass("d-none"),t(".consent-modal").addClass("d-none"))}},{key:"toggleProcedureCollectedStatus",value:function(e){t(".procedure-not-collected-select").on("change",(function(e){var n=e.target.getAttribute("data-timepoint-id"),r=e.target.getAttribute("data-step-id");t(e.target).prop("checked")?(t("#collection_date_".concat(r)).removeClass("d-none"),t("#step_time_".concat(r)).removeClass("d-none"),t("#step_time_".concat(r)).prop("required",!0),t("label[for='timepoint_".concat(n,"_collection_status']")).text("Collected"),t(".collection-not-collected-reason").addClass("d-none"),t("#reason-not-collected-select").prop("required",!1),t(".time-label").removeClass("d-none"),t(".date-label").removeClass("d-none"),t(".time-zone-indicator").removeClass("d-none"),t(".not-collected-select").each((function(e){t(this).prop("checked",!0),t("label[for='".concat(t(this).attr("name"),"']")).text("Collected")})),t(".autocomplete-barcode-field").attr("disabled",!1),t(".autocomplete-barcode-field").attr("placeholder","Scan or type"),t(".timepoint-meta-field[data-timepoint-id='".concat(n,"']")).attr("disabled",!1),t(".mark-complete").each((function(e){t(this).prop("disabled")&&t(this).removeClass("d-none")}))):(t("#collection_date_".concat(r)).addClass("d-none"),t("#step_time_".concat(r)).addClass("d-none"),t("#step_time_".concat(r)).prop("required",!1),t("label[for='timepoint_".concat(n,"_collection_status']")).text("Not collected"),t(".collection-not-collected-reason").removeClass("d-none"),t("#reason-not-collected-select").prop("required",!0),t(".time-label").addClass("d-none"),t(".date-label").addClass("d-none"),t(".time-zone-indicator").addClass("d-none"),t(".not-collected-select").each((function(e){t(this).prop("checked",!1),t("label[for='".concat(t(this).attr("name"),"']")).text("Not collected")})),t(".autocomplete-barcode-field").attr("disabled",!0),t(".autocomplete-barcode-field").attr("placeholder","Not Collected"),t(".autocomplete-barcode-field").val(""),t(".mark-complete").each((function(e){t(this).prop("disabled")&&t(this).addClass("d-none")})))}))}}])&&r(n.prototype,a),s&&r(n,s),Object.defineProperty(n,"prototype",{writable:!1}),l}(n(3).b)}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var r=n(3),i=n(16);function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(T){l=function(t,e,n){return t[e]=n}}function c(t,e,n,i){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),s=new x(i||[]);return r(a,"_invoke",{value:k(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=c;var h={};function f(){}function p(){}function m(){}var g={};l(g,a,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(D([])));v&&v!==e&&n.call(v,a)&&(g=v);var _=m.prototype=f.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(r,o,a,s){var u=d(t[r],t,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&n.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function k(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return A()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=d(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function D(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return p.prototype=m,r(_,"constructor",{value:m,configurable:!0}),r(m,"constructor",{value:p,configurable:!0}),p.displayName=l(m,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},b(w.prototype),l(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(_),l(_,u,"Generator"),l(_,a,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=D,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:D(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function a(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}var d=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(h,e);var n,r,c,d=l(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return n=h,r=[{key:"connect",value:function(){t((function(){t('[data-toggle="tooltip"]').tooltip()}))}},{key:"clearTimepointModal",value:function(e){if(e.preventDefault(),!e.target.classList.contains("disabled")){var n=e.target.dataset.visitId,r=e.target.dataset.sampleTimepointId,i=e.target.dataset.ffs;t.ajax({type:"GET",url:"/subject_visits/".concat(n,"/clear_timepoint_modal/?sample_timepoint_id=").concat(r,"&ffs=").concat(i),dataType:"script"})}}},{key:"clearUrlParams",value:function(t){var e=new URL("".concat(window.location.href.split("?")[0]));window.Turbo.navigator.history.replace(e)}},{key:"loadTimepoint",value:function(e){e.target.classList.contains("disabled")||(t(".timepoint-indicator-active").removeClass("timepoint-indicator-active"),e.target.closest("div.timepoint-selector").classList.add("timepoint-indicator-active"));var n=t(e.target).closest(".timepoint-selector"),r=n.attr("data-timepoint-id"),s=n.attr("data-visit-id"),u=n.attr("data-language-id"),l=document.querySelector("[data-timepoint-id='".concat(r,"'] > div > .timepoint-window-link"));null!==l&&l.matches(":hover")||(Object(i.b)("/subject_visits/".concat(s,"/load_timepoint?sample_timepoint_id=").concat(r,"&selected_language_id=").concat(u,"&sort_preference=").concat(this.sortPreferenceValue),{responseKind:"turbo-stream"}),document.addEventListener("turbo:before-stream-render",function(){var t,e=(t=o().mark((function t(e){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(n=document.getElementById(e.target.target))&&(r=n.dataset.streamExitClass)&&(e.preventDefault(),n.classList.add(r),n.addEventListener("animationend",(function(){e.target.performAction()})));case 2:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function s(t){a(o,r,i,s,u,"next",t)}function u(t){a(o,r,i,s,u,"throw",t)}s(void 0)}))});return function(t){return e.apply(this,arguments)}}(),{once:!0}))}},{key:"sortTimepoints",value:function(t){var e=t.target.dataset.sortBy,n=t.target.dataset.visitId,r=t.target.dataset.timepointId;Array.prototype.forEach.call(document.getElementsByClassName("sort-preference-input"),(function(t){t.setAttribute("value",e)})),Object(i.b)("/subject_visits/".concat(n,"/sort_timepoints?sample_timepoint_id=").concat(r,"&sort_by=").concat(e),{responseKind:"turbo-stream"})}}],r&&s(n.prototype,r),c&&s(n,c),Object.defineProperty(n,"prototype",{writable:!1}),h}(r.b);d.values={sortPreference:String,visitId:String}}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(153),i=n(16);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);if(e){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var l=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,e);var n,r,u,l=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return n=c,u=[{key:"values",get:function(){return{selectAllSamples:{type:Boolean,default:!1},sampleIds:{type:Array,default:[]},allSampleIds:{type:Array,default:[]},workspaceId:String}}}],(r=[{key:"findSampleIds",value:function(){return this.selectAllSamplesValue?this.allSampleIdsValue:this.sampleIdsValue}},{key:"createNewShipment",value:function(e){if(e.preventDefault(),!e.target.classList.contains("disabled")){var n=document.createElement("button");n.disabled=!0,n.classList.add("btn","btn-sm","btn-secondary");var r=document.createElement("span");r.classList.add("spinner-border","spinner-border-sm","mr-2");var o=document.createTextNode("Creating Shipment...");n.replaceChildren(r,o),this.createShipmentButtonTarget.replaceWith(n);var a=this.findSampleIds();a.length>15&&(Object(i.b)("/workspaces/".concat(this.workspaceIdValue,"/notify_shipment_in_progress?sample_count=").concat(a.length),{responseKind:"turbo-stream"}),t(this.addToShipmentModalTarget).modal("hide")),this.dispatch("submit",{detail:{perform:function(n){var r=e.target.dataset.sampleId;t.ajax({type:"POST",url:"/sample_shipments/create_sample_shipment/?sample_ids=".concat(a,"&sample_id=").concat(r),data:{redirect_to:window.location.href},dataType:"script"})}}})}}},{key:"addToPendingShipment",value:function(e){if(e.preventDefault(),!e.target.classList.contains("disabled")){var n=document.createElement("button");n.disabled=!0,n.classList.add("btn","btn-sm","btn-secondary");var r=document.createElement("span");r.classList.add("spinner-border","spinner-border-sm","mr-2");var o=document.createTextNode("Adding to Shipment...");n.replaceChildren(r,o),e.target.replaceWith(n);var a=this.findSampleIds();a.length>15&&(Object(i.b)("/workspaces/".concat(this.workspaceIdValue,"/notify_shipment_in_progress?sample_count=").concat(a.length,"&pending_shipment_id=").concat(e.target.dataset.shipmentId),{responseKind:"turbo-stream"}),t(this.addToShipmentModalTarget).modal("hide")),this.dispatch("submit",{detail:{perform:function(n){var r=e.target.dataset.sampleId,i=e.target.dataset.shipmentId;t.ajax({type:"POST",url:"/sample_shipments/add_sample_to_existing_shipment/?sample_ids=".concat(a,"&sample_id=").concat(r,"&shipment_id=").concat(i),data:{redirect_to:window.location.href},dataType:"script"})}}})}}},{key:"choosePendingShipment",value:function(e){if(e.preventDefault(),!e.target.classList.contains("disabled")){var n=this.findSampleIds();this.dispatch("submit",{detail:{perform:function(r){var i=e.target.dataset.sampleId;t.ajax({type:"GET",url:"/sample_shipments/fetch_pending_shipments/?sample_ids=".concat(n,"&sample_id=").concat(i),dataType:"script"})}}})}}},{key:"storageRecord",value:function(e){if(e.preventDefault(),!e.target.classList.contains("disabled")){var n=this.findSampleIds();this.dispatch("submit",{detail:{perform:function(r){var i=e.target.getAttribute("data-sample-id"),o=location.href;null==t("#turbo-table-filter-form")&&(o=t("#turbo-table-filter-form").action),t.ajax({type:"GET",url:"/samples/".concat(i,"/storage_record_modal?sample_ids=").concat(n),data:{redirect_to:o},dataType:"script"})}}})}}},{key:"incinerateSamples",value:function(e){e.preventDefault(),e.target.classList.contains("disabled")||this.dispatch("submit",{detail:{perform:function(n){var r=e.target.getAttribute("data-sample-id");t.ajax({type:"GET",url:"/samples/".concat(r,"/incinerate_samples_modal?redirect_to=").concat(location.href),dataType:"script"})}}})}},{key:"checkedRows",value:function(e){var n=Array.from(e.detail.ids);this.sampleIdsValue=n,e.detail.check_all&&n.length>0?t("#select-full-collection-prompt").removeClass("d-none"):this.deselectAllSamples(),0==n.length?(this.hideButtons(),t(".sample-row-action-button").removeClass("disabled")):(t(".sample-row-action-button").addClass("disabled"),this.hideButtons(),t("#calculating_compatibility_button").show(),this.checkShippingCompatibility())}},{key:"hideButtons",value:function(){t("#add_to_shipment_button").hide(),t("#cannot_commingle").hide(),t("#store_multiple_button").hide(),t("#cannot_store").hide(),t("#cannot_ship_or_store").hide()}},{key:"checkShippingCompatibility",value:function(){var e=this.findSampleIds();t.ajax({type:"GET",url:"/samples/check_shipping_compatibility?sample_ids=".concat(e,"&workspace_id=").concat(this.workspaceIdValue,"&select_all_samples=").concat(this.selectAllSamplesValue),dataType:"script"})}},{key:"selectAllSamples",value:function(){t("#select-full-collection-prompt").addClass("d-none"),t("#selected-full-collection-notification").removeClass("d-none"),this.selectAllSamplesValue=!0,this.hideButtons(),t("#calculating_compatibility_button").show(),this.checkShippingCompatibility()}},{key:"deselectAllSamples",value:function(){t("#selected-full-collection-notification").addClass("d-none"),t("#select-full-collection-prompt").addClass("d-none"),this.selectAllSamplesValue=!1}}])&&o(n.prototype,r),u&&o(n,u),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.a);l.targets=["buttonsDiv","createShipmentButton","addToShipmentModal"]}).call(this,n(15))},function(t,e,n){"use strict";(function(t,r){n.d(e,"a",(function(){return c}));var i=n(3),o=n(16);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=function(e){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(d,e);var n,i,l,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return n=d,l=[{key:"targets",get:function(){return["cohortSelect","groupSelect","visitScheduleDiv","visitSchedulePicker","subjectIdentifierField","subjectParam","subjectMatchIdField","subjectScreeningIdentifierField","screeningIdAlertIcon","enrollSubjectForm"]}}],(i=[{key:"connect",value:function(){}},{key:"subjectIdentifierFieldTargetConnected",value:function(t){this.initializeSubjectField()}},{key:"subjectScreeningIdentifierFieldTargetConnected",value:function(t){this.initializeSubjectScreeningIdField()}},{key:"screeningIdAlertIconTargetConnected",value:function(e){t('[data-toggle="tooltip"]').tooltip()}},{key:"getVisitSchedules",value:function(t){var e="",n="",r="";this.hasCohortSelectTarget&&(e=this.cohortSelectTarget.value),this.hasGroupSelectTarget&&(n=this.groupSelectTarget.value),this.hasSubjectParamTarget&&(r=this.subjectParamTarget.value),this.hasGroupSelectTarget&&""==n&&this.hasCohortSelectTarget&&""==e?(this.visitScheduleDivTarget.style.display="none",this.visitSchedulePickerTarget.value):Object(o.b)("/workspaces/".concat(this.workspaceIdValue,"/fetch_subject_visit_schedules_for_cohorts_and_groups?group_id=").concat(n,"&cohort_id=").concat(e,"&subject_id=").concat(r),{responseKind:"turbo-stream"})}},{key:"initializeSubjectScreeningIdField",value:function(){var e=this.workspaceIdValue,n={placeholder:"Find or create subject by screening identifier",adjustWidth:!1,getValue:"screening_identifier",url:function(t){return"fetch_subjects?screening=true&s="+t},listLocation:"subjects",list:{maxNumberOfElements:10,match:{enabled:!0},onChooseEvent:function(){r.done(),r.remove(),Object(o.b)("/workspaces/".concat(e,"/fetch_subject_status?screening=true&s=").concat(t("#enroll_subject_screening_identifier").val()),{responseKind:"turbo-stream"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};t(this.subjectScreeningIdentifierFieldTarget).easyAutocomplete(n)}},{key:"initializeSubjectField",value:function(){var e=this.workspaceIdValue,n={placeholder:"Find or create subject",adjustWidth:!1,getValue:"identifier",url:function(t){return"fetch_subjects?si="+t},listLocation:"subjects",list:{maxNumberOfElements:10,match:{enabled:!0},onChooseEvent:function(){r.done(),r.remove(),Object(o.b)("/workspaces/".concat(e,"/fetch_subject_status?s=").concat(t("#enroll_subject_identifier").val()),{responseKind:"turbo-stream"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};t(this.subjectIdentifierFieldTarget).easyAutocomplete(n),t(this.subjectIdentifierFieldTarget).closest(".input-group").each((function(e,n){t(n).removeClass("input-group");var r=t(n).find(".easy-autocomplete");t(n).find(".input-group-prepend").prependTo(r),t(n).find(".input-group-append")&&t(n).find(".input-group-append").appendTo(r),r.addClass("input-group")}))}},{key:"manageSubjectFields",value:function(e){""!=this.subjectIdentifierFieldTarget.value||this.useScreeningIdValue&&""!=this.subjectScreeningIdentifierFieldTarget.value?(13==e.keycode||this.subjectIdentifierFieldTarget.value.length>=1)&&(t("#visit_schedule_picker").show(),t("#group_and_cohort_pickers").show(),Object(o.b)("/workspaces/".concat(this.workspaceIdValue,"/fetch_subject_status?s=").concat(this.subjectIdentifierFieldTarget.value,"&subject_match_id=").concat(this.subjectMatchIdFieldTarget.value),{responseKind:"turbo-stream"})):(t("#visit_schedule_picker").hide(),t("#group_and_cohort_pickers").hide())}},{key:"manageScreeningFieldChanges",value:function(e){""==this.subjectScreeningIdentifierFieldTarget.value&&""==this.subjectIdentifierFieldTarget.value?(t("#visit_schedule_picker").hide(),t("#group_and_cohort_pickers").hide()):(13==e.keycode||this.subjectScreeningIdentifierFieldTarget.value.length>=1)&&(t("#visit_schedule_picker").show(),t("#group_and_cohort_pickers").show(),Object(o.b)("/workspaces/".concat(this.workspaceIdValue,"/fetch_subject_status?screening=true&s=").concat(this.subjectScreeningIdentifierFieldTarget.value,"&subject_match_id=").concat(this.subjectMatchIdFieldTarget.value),{responseKind:"turbo-stream"}))}},{key:"manageSubmit",value:function(t){t.preventDefault();var e=this.subjectIdentifierFieldTarget.value,n=this.subjectScreeningIdentifierFieldTarget.value;""==e&&this.subjectIdentifierFieldTarget.setAttribute("value",n),this.enrollSubjectFormTarget.submit()}}])&&a(n.prototype,i),l&&a(n,l),Object.defineProperty(n,"prototype",{writable:!1}),d}(i.b);c.values={workspaceId:String,useScreeningId:Boolean}}).call(this,n(15),n(179))},function(t,e,n){"use strict";var r,i=n(24),o=n(92),a=n(26),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.kind="NullPointerException",e}(a.a),l=u,c=function(){function t(){}return t.prototype.writeBytes=function(t){this.writeBytesOffset(t,0,t.length)},t.prototype.writeBytesOffset=function(t,e,n){if(null==t)throw new l;if(e<0||e>t.length||n<0||e+n>t.length||e+n<0)throw new o.a;if(0!==n)for(var r=0;r<n;r++)this.write(t[e+r])},t.prototype.flush=function(){},t.prototype.close=function(){},t}(),d=n(12),h=n(6),f=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e}(a.a),m=p,g=n(18),y=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(t){function e(e){void 0===e&&(e=32);var n=t.call(this)||this;if(n.count=0,e<0)throw new h.a("Negative initial size: "+e);return n.buf=new Uint8Array(e),n}return y(e,t),e.prototype.ensureCapacity=function(t){t-this.buf.length>0&&this.grow(t)},e.prototype.grow=function(t){var e=this.buf.length<<1;if(e-t<0&&(e=t),e<0){if(t<0)throw new m;e=d.a.MAX_VALUE}this.buf=i.a.copyOfUint8Array(this.buf,e)},e.prototype.write=function(t){this.ensureCapacity(this.count+1),this.buf[this.count]=t,this.count+=1},e.prototype.writeBytesOffset=function(t,e,n){if(e<0||e>t.length||n<0||e+n-t.length>0)throw new o.a;this.ensureCapacity(this.count+n),g.a.arraycopy(t,e,this.buf,this.count,n),this.count+=n},e.prototype.writeTo=function(t){t.writeBytesOffset(this.buf,0,this.count)},e.prototype.reset=function(){this.count=0},e.prototype.toByteArray=function(){return i.a.copyOfUint8Array(this.buf,this.count)},e.prototype.size=function(){return this.count},e.prototype.toString=function(t){return t?"string"===typeof t?this.toString_string(t):this.toString_number(t):this.toString_void()},e.prototype.toString_void=function(){return new String(this.buf).toString()},e.prototype.toString_string=function(t){return new String(this.buf).toString()},e.prototype.toString_number=function(t){return new String(this.buf).toString()},e.prototype.close=function(){},e}(c);e.a=v},function(t,e){function n(t){return n="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},n(t)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(i){"object"===("undefined"===typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(t,e){for(var n,a,s=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))i.call(n,l)&&(s[l]=n[l]);if(r){a=r(n);for(var c=0;c<a.length;c++)o.call(n,a[c])&&(s[a[c]]=n[a[c]])}}return s}},function(module,exports){var topLevel="undefined"===typeof window?this:window;module.exports=function(className){var constructor;return constructor=topLevel[className],constructor||(constructor=eval(className)),constructor&&constructor.default&&(constructor=constructor.default),constructor}},function(t,e){t.exports=function(t){return function(e){var n=e.split("."),r=n.shift(),i=n,o=t("./"+r);return i.forEach((function(t){o=o[t]})),o.__esModule&&(o=o.default),o}}},function(t,e,n){"use strict";function r(t){return r="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},r(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(o=i.key,a=void 0,a=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===r(a)?a:String(a)),i)}var o,a}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n.r(e),n.d(e,"DirectUpload",(function(){return y})),n.d(e,"start",(function(){return E}));var s={exports:{}};!function(t,e){t.exports=function(t){var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+e[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+e[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+e[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+e[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+e[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+e[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+e[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+e[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+e[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+e[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+e[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+e[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+e[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+e[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+e[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+e[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+e[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+e[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+e[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+e[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+e[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+e[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+e[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+e[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+e[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+e[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+e[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+e[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+e[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+e[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+e[9]-343485551|0)<<21|r>>>11)+i|0,t[0]=n+t[0]|0,t[1]=r+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function o(t){var e,i,o,a,s,u,l=t.length,c=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=l;e+=64)n(c,r(t.substring(e-64,e)));for(i=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(c,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*l).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(c,o),c}function a(t){var e,r,o,a,s,u,l=t.length,c=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=l;e+=64)n(c,i(t.subarray(e-64,e)));for(r=(t=e-64<l?t.subarray(e-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<r;e+=1)o[e>>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(c,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*l).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(c,o),c}function s(t){var n,r="";for(n=0;n<4;n+=1)r+=e[t>>8*n+4&15]+e[t>>8*n&15];return r}function u(t){var e;for(e=0;e<t.length;e+=1)t[e]=s(t[e]);return t.join("")}function l(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function c(t,e){var n,r=t.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=t.charCodeAt(n);return e?o:i}function d(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function h(t,e,n){var r=new Uint8Array(t.byteLength+e.byteLength);return r.set(new Uint8Array(t)),r.set(new Uint8Array(e),t.byteLength),n?r:r.buffer}function f(t){var e,n=[],r=t.length;for(e=0;e<r-1;e+=2)n.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}return u(o("hello")),"undefined"===typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,s,u=this.byteLength,l=e(n,u),c=u;return r!==t&&(c=e(r,u)),l>c?new ArrayBuffer(0):(i=c-l,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,l,i),a.set(s),o)}}(),p.prototype.append=function(t){return this.appendBinary(l(t)),this},p.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,i=this._buff.length;for(e=64;e<=i;e+=64)n(this._hash,r(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},p.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),n=u(this._hash),t&&(n=f(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(t,e){var r,i,o,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,t),a=0;a<16;a+=1)t[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,t[14]=i,t[15]=o,n(this._hash,t)},p.hash=function(t,e){return p.hashBinary(l(t),e)},p.hashBinary=function(t,e){var n=u(o(t));return e?f(n):n},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(t){var e,r=h(this._buff.buffer,t,!0),o=r.length;for(this._length+=t.byteLength,e=64;e<=o;e+=64)n(this._hash,i(r.subarray(e-64,e)));return this._buff=e-64<o?new Uint8Array(r.buffer.slice(e-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r[e]<<(e%4<<3);return this._finish(o,i),n=u(this._hash),t&&(n=f(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var t=p.prototype.getState.call(this);return t.buff=d(t.buff),t},p.ArrayBuffer.prototype.setState=function(t){return t.buff=c(t.buff,!0),p.prototype.setState.call(this,t)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(t,e){var n=u(a(new Uint8Array(t)));return e?f(n):n},p}()}(s);var u=s.exports,l=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,c=function(){function t(e){i(this,t),this.file=e,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}return a(t,[{key:"create",value:function(t){var e=this;this.callback=t,this.md5Buffer=new u.ArrayBuffer,this.fileReader=new FileReader,this.fileReader.addEventListener("load",(function(t){return e.fileReaderDidLoad(t)})),this.fileReader.addEventListener("error",(function(t){return e.fileReaderDidError(t)})),this.readNextChunk()}},{key:"fileReaderDidLoad",value:function(t){if(this.md5Buffer.append(t.target.result),!this.readNextChunk()){var e=this.md5Buffer.end(!0),n=btoa(e);this.callback(null,n)}}},{key:"fileReaderDidError",value:function(t){this.callback("Error reading ".concat(this.file.name))}},{key:"readNextChunk",value:function(){if(this.chunkIndex<this.chunkCount||0==this.chunkIndex&&0==this.chunkCount){var t=this.chunkIndex*this.chunkSize,e=Math.min(t+this.chunkSize,this.file.size),n=l.call(this.file,t,e);return this.fileReader.readAsArrayBuffer(n),this.chunkIndex++,!0}return!1}}],[{key:"create",value:function(e,n){new t(e).create(n)}}]),t}();function d(t,e){return"string"==typeof t&&(e=t,t=document),t.querySelector(e)}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.disabled,i=n.bubbles,o=n.cancelable,a=n.detail,s=document.createEvent("Event");s.initEvent(e,i||!0,o||!0),s.detail=a||{};try{t.disabled=!1,t.dispatchEvent(s)}finally{t.disabled=r}return s}function f(t){return Array.isArray(t)?t:Array.from?Array.from(t):[].slice.call(t)}var p=function(){function t(e,n,r){var o=this;i(this,t),this.file=e,this.attributes={filename:e.name,content_type:e.type||"application/octet-stream",byte_size:e.size,checksum:n},this.xhr=new XMLHttpRequest,this.xhr.open("POST",r,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");var a=function(t){var e=d(document.head,'meta[name="'.concat(t,'"]'));if(e)return e.getAttribute("content")}("csrf-token");void 0!=a&&this.xhr.setRequestHeader("X-CSRF-Token",a),this.xhr.addEventListener("load",(function(t){return o.requestDidLoad(t)})),this.xhr.addEventListener("error",(function(t){return o.requestDidError(t)}))}return a(t,[{key:"status",get:function(){return this.xhr.status}},{key:"response",get:function(){var t=this.xhr,e=t.responseType,n=t.response;return"json"==e?n:JSON.parse(n)}},{key:"create",value:function(t){this.callback=t,this.xhr.send(JSON.stringify({blob:this.attributes}))}},{key:"requestDidLoad",value:function(t){if(this.status>=200&&this.status<300){var e=this.response,n=e.direct_upload;delete e.direct_upload,this.attributes=e,this.directUploadData=n,this.callback(null,this.toJSON())}else this.requestDidError(t)}},{key:"requestDidError",value:function(t){this.callback('Error creating Blob for "'.concat(this.file.name,'". Status: ').concat(this.status))}},{key:"toJSON",value:function(){var t={};for(var e in this.attributes)t[e]=this.attributes[e];return t}}]),t}(),m=function(){function t(e){var n=this;i(this,t),this.blob=e,this.file=e.file;var r=e.directUploadData,o=r.url,a=r.headers;for(var s in this.xhr=new XMLHttpRequest,this.xhr.open("PUT",o,!0),this.xhr.responseType="text",a)this.xhr.setRequestHeader(s,a[s]);this.xhr.addEventListener("load",(function(t){return n.requestDidLoad(t)})),this.xhr.addEventListener("error",(function(t){return n.requestDidError(t)}))}return a(t,[{key:"create",value:function(t){this.callback=t,this.xhr.send(this.file.slice())}},{key:"requestDidLoad",value:function(t){var e=this.xhr,n=e.status,r=e.response;n>=200&&n<300?this.callback(null,r):this.requestDidError(t)}},{key:"requestDidError",value:function(t){this.callback('Error storing "'.concat(this.file.name,'". Status: ').concat(this.xhr.status))}}]),t}(),g=0,y=function(){function t(e,n,r){i(this,t),this.id=++g,this.file=e,this.url=n,this.delegate=r}return a(t,[{key:"create",value:function(t){var e=this;c.create(this.file,(function(n,r){if(n)t(n);else{var i=new p(e.file,r,e.url);v(e.delegate,"directUploadWillCreateBlobWithXHR",i.xhr),i.create((function(n){if(n)t(n);else{var r=new m(i);v(e.delegate,"directUploadWillStoreFileWithXHR",r.xhr),r.create((function(e){e?t(e):t(null,i.toJSON())}))}}))}}))}}]),t}();function v(t,e){if(t&&"function"==typeof t[e]){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return t[e].apply(t,r)}}var _=function(){function t(e,n){i(this,t),this.input=e,this.file=n,this.directUpload=new y(this.file,this.url,this),this.dispatch("initialize")}return a(t,[{key:"start",value:function(t){var e=this,n=document.createElement("input");n.type="hidden",n.name=this.input.name,this.input.insertAdjacentElement("beforebegin",n),this.dispatch("start"),this.directUpload.create((function(r,i){r?(n.parentNode.removeChild(n),e.dispatchError(r)):n.value=i.signed_id,e.dispatch("end"),t(r)}))}},{key:"uploadRequestDidProgress",value:function(t){var e=t.loaded/t.total*100;e&&this.dispatch("progress",{progress:e})}},{key:"url",get:function(){return this.input.getAttribute("data-direct-upload-url")}},{key:"dispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.file=this.file,e.id=this.directUpload.id,h(this.input,"direct-upload:".concat(t),{detail:e})}},{key:"dispatchError",value:function(t){this.dispatch("error",{error:t}).defaultPrevented||alert(t)}},{key:"directUploadWillCreateBlobWithXHR",value:function(t){this.dispatch("before-blob-request",{xhr:t})}},{key:"directUploadWillStoreFileWithXHR",value:function(t){var e=this;this.dispatch("before-storage-request",{xhr:t}),t.upload.addEventListener("progress",(function(t){return e.uploadRequestDidProgress(t)}))}}]),t}(),b=function(){function t(e){var n,r;i(this,t),this.form=e,this.inputs=(n=e,r="input[type=file][data-direct-upload-url]:not([disabled])","string"==typeof n&&(r=n,n=document),f(n.querySelectorAll(r))).filter((function(t){return t.files.length}))}return a(t,[{key:"start",value:function(t){var e=this,n=this.createDirectUploadControllers();this.dispatch("start"),function r(){var i=n.shift();i?i.start((function(n){n?(t(n),e.dispatch("end")):r()})):(t(),e.dispatch("end"))}()}},{key:"createDirectUploadControllers",value:function(){var t=[];return this.inputs.forEach((function(e){f(e.files).forEach((function(n){var r=new _(e,n);t.push(r)}))})),t}},{key:"dispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this.form,"direct-uploads:".concat(t),{detail:e})}}]),t}(),w="data-direct-uploads-processing",k=new WeakMap,S=!1;function E(){S||(S=!0,document.addEventListener("click",C,!0),document.addEventListener("submit",x,!0),document.addEventListener("ajax:before",D))}function C(t){var e=t.target;"INPUT"!=e.tagName&&"BUTTON"!=e.tagName||"submit"!=e.type||!e.form||k.set(e.form,e)}function x(t){A(t)}function D(t){"FORM"==t.target.tagName&&A(t)}function A(t){var e=t.target;if(e.hasAttribute(w))t.preventDefault();else{var n=new b(e),r=n.inputs;r.length&&(t.preventDefault(),e.setAttribute(w,""),r.forEach(T),n.start((function(t){e.removeAttribute(w),t?r.forEach(M):function(t){var e=k.get(t)||d(t,"input[type=submit], button[type=submit]");if(e){var n=e.disabled;e.disabled=!1,e.focus(),e.click(),e.disabled=n}else(e=document.createElement("input")).type="submit",e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e);k.delete(t)}(e)})))}}function T(t){t.disabled=!0}function M(t){t.disabled=!1}setTimeout((function(){window.ActiveStorage&&E()}),1)},function(t,e,n){function r(t){return r="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},r(t)}var i=n(4),o=n(154),a=n(600),s=n(602),u=n(273),l=n(274),c=n(608),d=n(609),h=n(622),f=h.supportsHydration,p=h.reactHydrate,m=h.createReactRootLike,g={CLASS_NAME_ATTR:"data-react-class",PROPS_ATTR:"data-react-props",RENDER_ATTR:"data-hydrate",CACHE_ID_ATTR:"data-react-cache-id",TURBOLINKS_PERMANENT_ATTR:"data-turbolinks-permanent",jQuery:"undefined"!==typeof window&&"undefined"!==typeof window.jQuery&&window.jQuery,components:{},findDOMNodes:function(t){var e,n,i=g.CLASS_NAME_ATTR;switch(r(t)){case"undefined":e="["+i+"]",n=document;break;case"object":e="["+i+"]",n=t;break;case"string":e=t+"["+i+"], "+t+" ["+i+"]",n=document}return g.jQuery?g.jQuery(e,n):n.querySelectorAll(e)},getConstructor:u,constructorFromGlobal:u,constructorFromRequireContext:l,constructorFromRequireContextWithGlobalFallback:c,useContext:function(t){this.getConstructor=c(t)},useContexts:function(t){this.getConstructor=d(t)},serverRender:function(t,e,n){var r=this.getConstructor(e),o=i.createElement(r,n);return a[t](o)},mountComponents:function(t){for(var e=g,n=e.findDOMNodes(t),r=0;r<n.length;++r){var o=n[r],a=o.getAttribute(e.CLASS_NAME_ATTR),s=e.getConstructor(a),u=o.getAttribute(e.PROPS_ATTR),l=u&&JSON.parse(u),c=o.getAttribute(e.RENDER_ATTR),d=o.getAttribute(e.CACHE_ID_ATTR),h=o.hasAttribute(e.TURBOLINKS_PERMANENT_ATTR);if(!s){var y="Cannot find component: '"+a+"'";throw console&&console.log&&console.log("%c[react-rails] %c"+y+" for element","font-weight: bold","",o),new Error(y+". Make sure your component is available to render.")}var v=this.components[d];void 0===v&&(v=i.createElement(s,l),h&&(this.components[d]=v)),v=c&&f()?p(o,v):m(o).render(v)}},unmountComponents:function(t){for(var e=g.findDOMNodes(t),n=0;n<e.length;++n){var r=e[n];o.unmountComponentAtNode(r)}},detectEvents:function(){s(this)},handleMount:function(t){var e=void 0;t&&t.target&&(e=t.target),g.mountComponents(e)},handleUnmount:function(t){var e=void 0;t&&t.target&&(e=t.target),g.unmountComponents(e)}};"undefined"!==typeof window&&g.detectEvents(),self.ReactRailsUJS=g,t.exports=g},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){var r,i;r=[n(163)],void 0===(i=function(t){return t.toString}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(393)],void 0===(i=function(t,e){t.find=e,t.expr=e.selectors,t.expr[":"]=t.expr.pseudos,t.uniqueSort=t.unique=e.uniqueSort,t.text=e.getText,t.isXMLDoc=e.isXML,t.contains=e.contains}.apply(e,r))||(t.exports=i)},function(t,e,n){var r;!function(i){var o,a,s,u,l,c,d,h,f,p,m,g,y,v,_,b,w,k,S,E="sizzle"+1*new Date,C=i.document,x=0,D=0,A=lt(),T=lt(),M=lt(),L=function(t,e){return t===e&&(m=!0),0},O=1<<31,I={}.hasOwnProperty,P=[],R=P.pop,N=P.push,F=P.push,j=P.slice,B=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},Y="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",z="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",W="\\["+H+"*("+z+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+H+"*\\]",V=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",U=new RegExp(H+"+","g"),q=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),G=new RegExp("^"+H+"*,"+H+"*"),$=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),K=new RegExp("="+H+"*([^\\]'\"]*?)"+H+"*\\]","g"),Z=new RegExp(V),X=new RegExp("^"+z+"$"),J={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,tt=/^h\d$/i,et=/^[^{]+\{\s*\[native \w/,nt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rt=/[+~]/,it=/'|\\/g,ot=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig"),at=function(t,e,n){var r="0x"+e-65536;return r!==r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},st=function(){g()};try{F.apply(P=j.call(C.childNodes),C.childNodes),P[C.childNodes.length].nodeType}catch(Ct){F={apply:P.length?function(t,e){N.apply(t,j.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function ut(t,e,n,r){var i,o,s,u,l,d,f,p,m=e&&e.ownerDocument,v=e?e.nodeType:9;if(n=n||[],"string"!==typeof t||!t||1!==v&&9!==v&&11!==v)return n;if(!r&&((e?e.ownerDocument||e:C)!==y&&g(e),e=e||y,_)){if(11!==v&&(d=nt.exec(t)))if(i=d[1]){if(9===v){if(!(s=e.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(m&&(s=m.getElementById(i))&&S(e,s)&&s.id===i)return n.push(s),n}else{if(d[2])return F.apply(n,e.getElementsByTagName(t)),n;if((i=d[3])&&a.getElementsByClassName&&e.getElementsByClassName)return F.apply(n,e.getElementsByClassName(i)),n}if(a.qsa&&!M[t+" "]&&(!b||!b.test(t))){if(1!==v)m=e,p=t;else if("object"!==e.nodeName.toLowerCase()){for((u=e.getAttribute("id"))?u=u.replace(it,"\\$&"):e.setAttribute("id",u=E),o=(f=c(t)).length,l=X.test(u)?"#"+u:"[id='"+u+"']";o--;)f[o]=l+" "+_t(f[o]);p=f.join(","),m=rt.test(t)&&yt(e.parentNode)||e}if(p)try{return F.apply(n,m.querySelectorAll(p)),n}catch(w){}finally{u===E&&e.removeAttribute("id")}}}return h(t.replace(q,"$1"),e,n,r)}function lt(){var t=[];return function e(n,r){return t.push(n+" ")>s.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function ct(t){return t[E]=!0,t}function dt(t){var e=y.createElement("div");try{return!!t(e)}catch(Ct){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ht(t,e){for(var n=t.split("|"),r=n.length;r--;)s.attrHandle[n[r]]=e}function ft(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||O)-(~t.sourceIndex||O);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function mt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function gt(t){return ct((function(e){return e=+e,ct((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 yt(t){return t&&"undefined"!==typeof t.getElementsByTagName&&t}for(o in a=ut.support={},l=ut.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},g=ut.setDocument=function(t){var e,n,r=t?t.ownerDocument||t:C;return r!==y&&9===r.nodeType&&r.documentElement?(v=(y=r).documentElement,_=!l(y),(n=y.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",st,!1):n.attachEvent&&n.attachEvent("onunload",st)),a.attributes=dt((function(t){return t.className="i",!t.getAttribute("className")})),a.getElementsByTagName=dt((function(t){return t.appendChild(y.createComment("")),!t.getElementsByTagName("*").length})),a.getElementsByClassName=et.test(y.getElementsByClassName),a.getById=dt((function(t){return v.appendChild(t).id=E,!y.getElementsByName||!y.getElementsByName(E).length})),a.getById?(s.find.ID=function(t,e){if("undefined"!==typeof e.getElementById&&_){var n=e.getElementById(t);return n?[n]:[]}},s.filter.ID=function(t){var e=t.replace(ot,at);return function(t){return t.getAttribute("id")===e}}):(delete s.find.ID,s.filter.ID=function(t){var e=t.replace(ot,at);return function(t){var n="undefined"!==typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),s.find.TAG=a.getElementsByTagName?function(t,e){return"undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t):a.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},s.find.CLASS=a.getElementsByClassName&&function(t,e){if("undefined"!==typeof e.getElementsByClassName&&_)return e.getElementsByClassName(t)},w=[],b=[],(a.qsa=et.test(y.querySelectorAll))&&(dt((function(t){v.appendChild(t).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&b.push("[*^$]="+H+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||b.push("\\["+H+"*(?:value|"+Y+")"),t.querySelectorAll("[id~="+E+"-]").length||b.push("~="),t.querySelectorAll(":checked").length||b.push(":checked"),t.querySelectorAll("a#"+E+"+*").length||b.push(".#.+[+~]")})),dt((function(t){var e=y.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&b.push("name"+H+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||b.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),b.push(",.*:")}))),(a.matchesSelector=et.test(k=v.matches||v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector||v.msMatchesSelector))&&dt((function(t){a.disconnectedMatch=k.call(t,"div"),k.call(t,"[s!='']:x"),w.push("!=",V)})),b=b.length&&new RegExp(b.join("|")),w=w.length&&new RegExp(w.join("|")),e=et.test(v.compareDocumentPosition),S=e||et.test(v.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},L=e?function(t,e){if(t===e)return m=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!a.sortDetached&&e.compareDocumentPosition(t)===n?t===y||t.ownerDocument===C&&S(C,t)?-1:e===y||e.ownerDocument===C&&S(C,e)?1:p?B(p,t)-B(p,e):0:4&n?-1:1)}:function(t,e){if(t===e)return m=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===y?-1:e===y?1:i?-1:o?1:p?B(p,t)-B(p,e):0;if(i===o)return ft(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ft(a[r],s[r]):a[r]===C?-1:s[r]===C?1:0},y):y},ut.matches=function(t,e){return ut(t,null,null,e)},ut.matchesSelector=function(t,e){if((t.ownerDocument||t)!==y&&g(t),e=e.replace(K,"='$1']"),a.matchesSelector&&_&&!M[e+" "]&&(!w||!w.test(e))&&(!b||!b.test(e)))try{var n=k.call(t,e);if(n||a.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(Ct){}return ut(e,y,null,[t]).length>0},ut.contains=function(t,e){return(t.ownerDocument||t)!==y&&g(t),S(t,e)},ut.attr=function(t,e){(t.ownerDocument||t)!==y&&g(t);var n=s.attrHandle[e.toLowerCase()],r=n&&I.call(s.attrHandle,e.toLowerCase())?n(t,e,!_):void 0;return void 0!==r?r:a.attributes||!_?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},ut.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ut.uniqueSort=function(t){var e,n=[],r=0,i=0;if(m=!a.detectDuplicates,p=!a.sortStable&&t.slice(0),t.sort(L),m){for(;e=t[i++];)e===t[i]&&(r=n.push(i));for(;r--;)t.splice(n[r],1)}return p=null,t},u=ut.getText=function(t){var e,n="",r=0,i=t.nodeType;if(i){if(1===i||9===i||11===i){if("string"===typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=u(t)}else if(3===i||4===i)return t.nodeValue}else for(;e=t[r++];)n+=u(e);return n},s=ut.selectors={cacheLength:50,createPseudo:ct,match:J,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(ot,at),t[3]=(t[3]||t[4]||t[5]||"").replace(ot,at),"~="===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]||ut.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]&&ut.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return J.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&Z.test(n)&&(e=c(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(ot,at).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=A[t+" "];return e||(e=new RegExp("(^|"+H+")"+t+"("+H+"|$)"))&&A(t,(function(t){return e.test("string"===typeof t.className&&t.className||"undefined"!==typeof t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=ut.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(U," ")+" ").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,d,h,f,p,m=o!==a?"nextSibling":"previousSibling",g=e.parentNode,y=s&&e.nodeName.toLowerCase(),v=!u&&!s,_=!1;if(g){if(o){for(;m;){for(h=e;h=h[m];)if(s?h.nodeName.toLowerCase()===y:1===h.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&v){for(_=(f=(l=(c=(d=(h=g)[E]||(h[E]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&l[1])&&l[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(_=f=0)||p.pop();)if(1===h.nodeType&&++_&&h===e){c[t]=[x,f,_];break}}else if(v&&(_=f=(l=(c=(d=(h=e)[E]||(h[E]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&l[1]),!1===_)for(;(h=++f&&h&&h[m]||(_=f=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==y:1!==h.nodeType)||!++_||(v&&((c=(d=h[E]||(h[E]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[x,_]),h!==e)););return(_-=i)===r||_%r===0&&_/r>=0}}},PSEUDO:function(t,e){var n,r=s.pseudos[t]||s.setFilters[t.toLowerCase()]||ut.error("unsupported pseudo: "+t);return r[E]?r(e):r.length>1?(n=[t,t,"",e],s.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,n){for(var i,o=r(t,e),a=o.length;a--;)t[i=B(t,o[a])]=!(n[i]=o[a])})):function(t){return r(t,0,n)}):r}},pseudos:{not:ct((function(t){var e=[],n=[],r=d(t.replace(q,"$1"));return r[E]?ct((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:ct((function(t){return function(e){return ut(t,e).length>0}})),contains:ct((function(t){return t=t.replace(ot,at),function(e){return(e.textContent||e.innerText||u(e)).indexOf(t)>-1}})),lang:ct((function(t){return X.test(t||"")||ut.error("unsupported lang: "+t),t=t.replace(ot,at).toLowerCase(),function(e){var n;do{if(n=_?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=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===v},focus:function(t){return t===y.activeElement&&(!y.hasFocus||y.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!s.pseudos.empty(t)},header:function(t){return tt.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt((function(){return[0]})),last:gt((function(t,e){return[e-1]})),eq:gt((function(t,e,n){return[n<0?n+e:n]})),even:gt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:gt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:gt((function(t,e,n){for(var r=n<0?n+e:n;--r>=0;)t.push(r);return t})),gt:gt((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}},s.pseudos.nth=s.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})s.pseudos[o]=pt(o);for(o in{submit:!0,reset:!0})s.pseudos[o]=mt(o);function vt(){}function _t(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function bt(t,e,n){var r=e.dir,i=n&&"parentNode"===r,o=D++;return e.first?function(e,n,o){for(;e=e[r];)if(1===e.nodeType||i)return t(e,n,o)}:function(e,n,a){var s,u,l,c=[x,o];if(a){for(;e=e[r];)if((1===e.nodeType||i)&&t(e,n,a))return!0}else for(;e=e[r];)if(1===e.nodeType||i){if((s=(u=(l=e[E]||(e[E]={}))[e.uniqueID]||(l[e.uniqueID]={}))[r])&&s[0]===x&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=t(e,n,a))return!0}}}function wt(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function kt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function St(t,e,n,r,i,o){return r&&!r[E]&&(r=St(r)),i&&!i[E]&&(i=St(i,o)),ct((function(o,a,s,u){var l,c,d,h=[],f=[],p=a.length,m=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)ut(t,e[r],n);return n}(e||"*",s.nodeType?[s]:s,[]),g=!t||!o&&e?m:kt(m,h,t,s,u),y=n?i||(o?t:p||r)?[]:a:g;if(n&&n(g,y,s,u),r)for(l=kt(y,f),r(l,[],s,u),c=l.length;c--;)(d=l[c])&&(y[f[c]]=!(g[f[c]]=d));if(o){if(i||t){if(i){for(l=[],c=y.length;c--;)(d=y[c])&&l.push(g[c]=d);i(null,y=[],l,u)}for(c=y.length;c--;)(d=y[c])&&(l=i?B(o,d):h[c])>-1&&(o[l]=!(a[l]=d))}}else y=kt(y===a?y.splice(p,y.length):y),i?i(null,a,y,u):F.apply(a,y)}))}function Et(t){for(var e,n,r,i=t.length,o=s.relative[t[0].type],a=o||s.relative[" "],u=o?1:0,l=bt((function(t){return t===e}),a,!0),c=bt((function(t){return B(e,t)>-1}),a,!0),d=[function(t,n,r){var i=!o&&(r||n!==f)||((e=n).nodeType?l(t,n,r):c(t,n,r));return e=null,i}];u<i;u++)if(n=s.relative[t[u].type])d=[bt(wt(d),n)];else{if((n=s.filter[t[u].type].apply(null,t[u].matches))[E]){for(r=++u;r<i&&!s.relative[t[r].type];r++);return St(u>1&&wt(d),u>1&&_t(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(q,"$1"),n,u<r&&Et(t.slice(u,r)),r<i&&Et(t=t.slice(r)),r<i&&_t(t))}d.push(n)}return wt(d)}vt.prototype=s.filters=s.pseudos,s.setFilters=new vt,c=ut.tokenize=function(t,e){var n,r,i,o,a,u,l,c=T[t+" "];if(c)return e?0:c.slice(0);for(a=t,u=[],l=s.preFilter;a;){for(o in n&&!(r=G.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(i=[])),n=!1,(r=$.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(q," ")}),a=a.slice(n.length)),s.filter)!(r=J[o].exec(a))||l[o]&&!(r=l[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return e?a.length:a?ut.error(t):T(t,u).slice(0)},d=ut.compile=function(t,e){var n,r=[],i=[],o=M[t+" "];if(!o){for(e||(e=c(t)),n=e.length;n--;)(o=Et(e[n]))[E]?r.push(o):i.push(o);o=M(t,function(t,e){var n=e.length>0,r=t.length>0,i=function(i,o,a,u,l){var c,d,h,p=0,m="0",v=i&&[],b=[],w=f,k=i||r&&s.find.TAG("*",l),S=x+=null==w?1:Math.random()||.1,E=k.length;for(l&&(f=o===y||o||l);m!==E&&null!=(c=k[m]);m++){if(r&&c){for(d=0,o||c.ownerDocument===y||(g(c),a=!_);h=t[d++];)if(h(c,o||y,a)){u.push(c);break}l&&(x=S)}n&&((c=!h&&c)&&p--,i&&v.push(c))}if(p+=m,n&&m!==p){for(d=0;h=e[d++];)h(v,b,o,a);if(i){if(p>0)for(;m--;)v[m]||b[m]||(b[m]=R.call(u));b=kt(b)}F.apply(u,b),l&&!i&&b.length>0&&p+e.length>1&&ut.uniqueSort(u)}return l&&(x=S,f=w),v};return n?ct(i):i}(i,r)),o.selector=t}return o},h=ut.select=function(t,e,n,r){var i,o,u,l,h,f="function"===typeof t&&t,p=!r&&c(t=f.selector||t);if(n=n||[],1===p.length){if((o=p[0]=p[0].slice(0)).length>2&&"ID"===(u=o[0]).type&&a.getById&&9===e.nodeType&&_&&s.relative[o[1].type]){if(!(e=(s.find.ID(u.matches[0].replace(ot,at),e)||[])[0]))return n;f&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(i=J.needsContext.test(t)?0:o.length;i--&&(u=o[i],!s.relative[l=u.type]);)if((h=s.find[l])&&(r=h(u.matches[0].replace(ot,at),rt.test(o[0].type)&&yt(e.parentNode)||e))){if(o.splice(i,1),!(t=r.length&&_t(o)))return F.apply(n,r),n;break}}return(f||d(t,p))(r,e,!_,n,!e||rt.test(t)&&yt(e.parentNode)||e),n},a.sortStable=E.split("").sort(L).join("")===E,a.detectDuplicates=!!m,g(),a.sortDetached=dt((function(t){return 1&t.compareDocumentPosition(y.createElement("div"))})),dt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ht("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),a.attributes&&dt((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ht("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),dt((function(t){return null==t.getAttribute("disabled")}))||ht(Y,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),void 0===(r=function(){return ut}.call(e,n,e,t))||(t.exports=r)}(window)},function(t,e,n){var r,i;r=[n(13)],void 0===(i=function(t){return function(e,n,r){for(var i=[],o=void 0!==r;(e=e[n])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&t(e).is(r))break;i.push(e)}return i}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r;void 0===(r=function(){return function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[n(13),n(51),n(36),n(43),n(165)],void 0===(i=function(t,e,n){var r;for(r in t(e))break;return e.ownFirst="0"===r,e.inlineBlockNeedsLayout=!1,t((function(){var t,r,i,o;(i=n.getElementsByTagName("body")[0])&&i.style&&(r=n.createElement("div"),(o=n.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(o).appendChild(r),"undefined"!==typeof r.style.zoom&&(r.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",e.inlineBlockNeedsLayout=t=3===r.offsetWidth,t&&(i.style.zoom=1)),i.removeChild(o))})),e}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(36),n(51)],void 0===(i=function(t,e){return function(){var n=t.createElement("div");e.deleteExpando=!0;try{delete n.test}catch(r){e.deleteExpando=!1}n=null}(),e}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(167),n(168)],void 0===(i=function(t){return t.fn.delay=function(e,n){return e=t.fx&&t.fx.speeds[e]||e,n=n||"fx",this.queue(n,(function(t,n){var r=window.setTimeout(t,e);n.stop=function(){window.clearTimeout(r)}}))},t.fn.delay}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(51),n(36)],void 0===(i=function(t,e){var n;return t.shrinkWrapBlocks=function(){return null!=n?n:(n=!1,(r=e.getElementsByTagName("body")[0])&&r.style?(t=e.createElement("div"),(i=e.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",r.appendChild(i).appendChild(t),"undefined"!==typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(e.createElement("div")).style.width="5px",n=3!==t.offsetWidth),r.removeChild(i),n):void 0);var t,r,i},t}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(36),n(51)],void 0===(i=function(t,e){return function(){var n,r,i=t.createElement("div");for(n in{submit:!0,change:!0,focusin:!0})r="on"+n,(e[n]=r in window)||(i.setAttribute(r,"t"),e[n]=!1===i.attributes[r].expando);i=null}(),e}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(79)],void 0===(i=function(t){function e(t,n,r,i,o){return new e.prototype.init(t,n,r,i,o)}t.Tween=e,e.prototype={constructor:e,init:function(e,n,r,i,o,a){this.elem=e,this.prop=r,this.easing=o||t.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=i,this.unit=a||(t.cssNumber[r]?"":"px")},cur:function(){var t=e.propHooks[this.prop];return t&&t.get?t.get(this):e.propHooks._default.get(this)},run:function(n){var r,i=e.propHooks[this.prop];return this.options.duration?this.pos=r=t.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):this.pos=r=n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):e.propHooks._default.set(this),this}},e.prototype.init.prototype=e.prototype,e.propHooks={_default:{get:function(e){var n;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(n=t.css(e.elem,e.prop,""))&&"auto"!==n?n:0},set:function(e){t.fx.step[e.prop]?t.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[t.cssProps[e.prop]]&&!t.cssHooks[e.prop]?e.elem[e.prop]=e.now:t.style(e.elem,e.prop,e.now+e.unit)}}},e.propHooks.scrollTop=e.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=e.prototype.init,t.fx.step={}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r;void 0===(r=function(){return function(t,e,n,r){var i,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,r||[]),e)t.style[o]=a[o];return i}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[n(13),n(222),n(404),n(223),n(405)],void 0===(i=function(t){return t}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(78),n(175),n(77),n(222),n(39)],i=function(t,e,n,r){var i,o,a=t.expr.attrHandle,s=/^(?:checked|selected)$/i,u=n.getSetAttribute,l=n.input;t.fn.extend({attr:function(n,r){return e(this,t.attr,n,r,arguments.length>1)},removeAttr:function(e){return this.each((function(){t.removeAttr(this,e)}))}}),t.extend({attr:function(e,n,r){var a,s,u=e.nodeType;if(3!==u&&8!==u&&2!==u)return"undefined"===typeof e.getAttribute?t.prop(e,n,r):(1===u&&t.isXMLDoc(e)||(n=n.toLowerCase(),s=t.attrHooks[n]||(t.expr.match.bool.test(n)?o:i)),void 0!==r?null===r?void t.removeAttr(e,n):s&&"set"in s&&void 0!==(a=s.set(e,r,n))?a:(e.setAttribute(n,r+""),r):s&&"get"in s&&null!==(a=s.get(e,n))?a:null==(a=t.find.attr(e,n))?void 0:a)},attrHooks:{type:{set:function(e,r){if(!n.radioValue&&"radio"===r&&t.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",r),i&&(e.value=i),r}}}},removeAttr:function(e,n){var i,o,a=0,c=n&&n.match(r);if(c&&1===e.nodeType)for(;i=c[a++];)o=t.propFix[i]||i,t.expr.match.bool.test(i)?l&&u||!s.test(i)?e[o]=!1:e[t.camelCase("default-"+i)]=e[o]=!1:t.attr(e,i,""),e.removeAttribute(u?i:o)}}),o={set:function(e,n,r){return!1===n?t.removeAttr(e,r):l&&u||!s.test(r)?e.setAttribute(!u&&t.propFix[r]||r,r):e[t.camelCase("default-"+r)]=e[r]=!0,r}},t.each(t.expr.match.bool.source.match(/\w+/g),(function(e,n){var r=a[n]||t.find.attr;l&&u||!s.test(n)?a[n]=function(t,e,n){var i,o;return n||(o=a[e],a[e]=i,i=null!=r(t,e,n)?e.toLowerCase():null,a[e]=o),i}:a[n]=function(e,n,r){if(!r)return e[t.camelCase("default-"+n)]?n.toLowerCase():null}})),l&&u||(t.attrHooks.value={set:function(e,n,r){if(!t.nodeName(e,"input"))return i&&i.set(e,n,r);e.defaultValue=n}}),u||(i={set:function(t,e,n){var r=t.getAttributeNode(n);if(r||t.setAttributeNode(r=t.ownerDocument.createAttribute(n)),r.value=e+="","value"===n||e===t.getAttribute(n))return e}},a.id=a.name=a.coords=function(t,e,n){var r;if(!n)return(r=t.getAttributeNode(e))&&""!==r.value?r.value:null},t.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);if(n&&n.specified)return n.value},set:i.set},t.attrHooks.contenteditable={set:function(t,e,n){i.set(t,""!==e&&e,n)}},t.each(["width","height"],(function(e,n){t.attrHooks[n]={set:function(t,e){if(""===e)return t.setAttribute(n,"auto"),e}}}))),n.style||(t.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}})}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;function o(t){return o="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(t)}r=[n(13),n(77),n(43)],i=function(t,e){var n=/[\t\r\n\f]/g;function r(e){return t.attr(e,"class")||""}t.fn.extend({addClass:function(i){var o,a,s,u,l,c,d,h=0;if(t.isFunction(i))return this.each((function(e){t(this).addClass(i.call(this,e,r(this)))}));if("string"===typeof i&&i)for(o=i.match(e)||[];a=this[h++];)if(u=r(a),s=1===a.nodeType&&(" "+u+" ").replace(n," ")){for(c=0;l=o[c++];)s.indexOf(" "+l+" ")<0&&(s+=l+" ");u!==(d=t.trim(s))&&t.attr(a,"class",d)}return this},removeClass:function(i){var o,a,s,u,l,c,d,h=0;if(t.isFunction(i))return this.each((function(e){t(this).removeClass(i.call(this,e,r(this)))}));if(!arguments.length)return this.attr("class","");if("string"===typeof i&&i)for(o=i.match(e)||[];a=this[h++];)if(u=r(a),s=1===a.nodeType&&(" "+u+" ").replace(n," ")){for(c=0;l=o[c++];)for(;s.indexOf(" "+l+" ")>-1;)s=s.replace(" "+l+" "," ");u!==(d=t.trim(s))&&t.attr(a,"class",d)}return this},toggleClass:function(n,i){var a=o(n);return"boolean"===typeof i&&"string"===a?i?this.addClass(n):this.removeClass(n):t.isFunction(n)?this.each((function(e){t(this).toggleClass(n.call(this,e,r(this),i),i)})):this.each((function(){var i,o,s,u;if("string"===a)for(o=0,s=t(this),u=n.match(e)||[];i=u[o++];)s.hasClass(i)?s.removeClass(i):s.addClass(i);else void 0!==n&&"boolean"!==a||((i=r(this))&&t._data(this,"__className__",i),t.attr(this,"class",i||!1===n?"":t._data(this,"__className__")||""))}))},hasClass:function(t){var e,i,o=0;for(e=" "+t+" ";i=this[o++];)if(1===i.nodeType&&(" "+r(i)+" ").replace(n," ").indexOf(e)>-1)return!0;return!1}})}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(80)],void 0===(i=function(t){return t._evalUrl=function(e){return t.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},t._evalUrl}.apply(e,r))||(t.exports=i)},function(t,e,n){var r;void 0===(r=function(){return window.location}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){var r,i;r=[n(13)],void 0===(i=function(t){var e=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;return t.parseJSON=function(n){if(window.JSON&&window.JSON.parse)return window.JSON.parse(n+"");var r,i=null,o=t.trim(n+"");return o&&!t.trim(o.replace(e,(function(t,e,n,o){return r&&e&&(i=0),0===i?t:(r=n||e,i+=!o-!n,"")})))?Function("return "+o)():t.error("Invalid JSON: "+n)},t.parseJSON}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13)],void 0===(i=function(t){return t.parseXML=function(e){var n;if(!e||"string"!==typeof e)return null;try{window.DOMParser?n=(new window.DOMParser).parseFromString(e,"text/xml"):((n=new window.ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(e))}catch(r){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||t.error("Invalid XML: "+e),n},t.parseXML}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(43),n(121),n(66)],void 0===(i=function(t){return t.fn.extend({wrapAll:function(e){if(t.isFunction(e))return this.each((function(n){t(this).wrapAll(e.call(this,n))}));if(this[0]){var n=t(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&n.insertBefore(this[0]),n.map((function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t})).append(this)}return this},wrapInner:function(e){return t.isFunction(e)?this.each((function(n){t(this).wrapInner(e.call(this,n))})):this.each((function(){var n=t(this),r=n.contents();r.length?r.wrapAll(e):n.append(e)}))},wrap:function(e){var n=t.isFunction(e);return this.each((function(r){t(this).wrapAll(n?e.call(this,r):e)}))},unwrap:function(){return this.parent().each((function(){t.nodeName(this,"body")||t(this).replaceWith(this.childNodes)})).end()}}),t}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(36),n(123),n(39),n(79)],void 0===(i=function(t,e,n){function r(e){return e.style&&e.style.display||t.css(e,"display")}t.expr.filters.hidden=function(i){return n.reliableHiddenOffsets()?i.offsetWidth<=0&&i.offsetHeight<=0&&!i.getClientRects().length:function(n){if(!t.contains(n.ownerDocument||e,n))return!0;for(;n&&1===n.nodeType;){if("none"===r(n)||"hidden"===n.type)return!0;n=n.parentNode}return!1}(i)},t.expr.filters.visible=function(e){return!t.expr.filters.hidden(e)}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;function o(t){return o="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(t)}r=[n(13),n(171),n(43),n(66),n(223)],void 0===(i=function(t,e){var n=/%20/g,r=/\[\]$/,i=/\r?\n/g,a=/^(?:submit|button|image|reset|file)$/i,s=/^(?:input|select|textarea|keygen)/i;function u(e,n,i,a){var s;if(t.isArray(n))t.each(n,(function(t,n){i||r.test(e)?a(e,n):u(e+"["+("object"===o(n)&&null!=n?t:"")+"]",n,i,a)}));else if(i||"object"!==t.type(n))a(e,n);else for(s in n)u(e+"["+s+"]",n[s],i,a)}return t.param=function(e,r){var i,o=[],a=function(e,n){n=t.isFunction(n)?n():null==n?"":n,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(n)};if(void 0===r&&(r=t.ajaxSettings&&t.ajaxSettings.traditional),t.isArray(e)||e.jquery&&!t.isPlainObject(e))t.each(e,(function(){a(this.name,this.value)}));else for(i in e)u(i,e[i],r,a);return o.join("&").replace(n,"+")},t.fn.extend({serialize:function(){return t.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=t.prop(this,"elements");return e?t.makeArray(e):this})).filter((function(){var n=this.type;return this.name&&!t(this).is(":disabled")&&s.test(this.nodeName)&&!a.test(n)&&(this.checked||!e.test(n))})).map((function(e,n){var r=t(this).val();return null==r?null:t.isArray(r)?t.map(r,(function(t){return{name:n.name,value:t.replace(i,"\r\n")}})):{name:n.name,value:r.replace(i,"\r\n")}})).get()}}),t}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(36),n(51),n(80)],void 0===(i=function(t,e,n){t.ajaxSettings.xhr=void 0!==window.ActiveXObject?function(){return this.isLocal?s():e.documentMode>8?a():/^(get|post|head|put|delete|options)$/i.test(this.type)&&a()||s()}:a;var r=0,i={},o=t.ajaxSettings.xhr();function a(){try{return new window.XMLHttpRequest}catch(t){}}function s(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}window.attachEvent&&window.attachEvent("onunload",(function(){for(var t in i)i[t](void 0,!0)})),n.cors=!!o&&"withCredentials"in o,(o=n.ajax=!!o)&&t.ajaxTransport((function(e){var o;if(!e.crossDomain||n.cors)return{send:function(n,a){var s,u=e.xhr(),l=++r;if(u.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)u[s]=e.xhrFields[s];for(s in e.mimeType&&u.overrideMimeType&&u.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)void 0!==n[s]&&u.setRequestHeader(s,n[s]+"");u.send(e.hasContent&&e.data||null),o=function(n,r){var s,c,d;if(o&&(r||4===u.readyState))if(delete i[l],o=void 0,u.onreadystatechange=t.noop,r)4!==u.readyState&&u.abort();else{d={},s=u.status,"string"===typeof u.responseText&&(d.text=u.responseText);try{c=u.statusText}catch(h){c=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=d.text?200:404}d&&a(s,c,d,u.getAllResponseHeaders())},e.async?4===u.readyState?window.setTimeout(o):u.onreadystatechange=i[l]=o:o()},abort:function(){o&&o(void 0,!0)}}}))}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(36),n(80)],void 0===(i=function(t,e){t.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return t.globalEval(e),e}}}),t.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)})),t.ajaxTransport("script",(function(n){if(n.crossDomain){var r,i=e.head||t("head")[0]||e.documentElement;return{send:function(t,o){(r=e.createElement("script")).async=!0,n.scriptCharset&&(r.charset=n.scriptCharset),r.src=n.url,r.onload=r.onreadystatechange=function(t,e){(e||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),r=null,e||o(200,"success"))},i.insertBefore(r,i.firstChild)},abort:function(){r&&r.onload(void 0,!0)}}}}))}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(225),n(226),n(80)],i=function(t,e,n){var r=[],i=/(=)\?(?=&|$)|\?\?/;t.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=r.pop()||t.expando+"_"+e++;return this[n]=!0,n}}),t.ajaxPrefilter("json jsonp",(function(e,o,a){var s,u,l,c=!1!==e.jsonp&&(i.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&i.test(e.data)&&"data");if(c||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=t.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,c?e[c]=e[c].replace(i,"$1"+s):!1!==e.jsonp&&(e.url+=(n.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return l||t.error(s+" was not called"),l[0]},e.dataTypes[0]="json",u=window[s],window[s]=function(){l=arguments},a.always((function(){void 0===u?t(window).removeProp(s):window[s]=u,e[s]&&(e.jsonpCallback=o.jsonpCallback,r.push(s)),l&&t.isFunction(u)&&u(l[0]),l=u=void 0})),"script"}))}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;function o(t){return o="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(t)}r=[n(13),n(417),n(80),n(66),n(121),n(39),n(224)],i=function(t){var e=t.fn.load;t.fn.load=function(n,r,i){if("string"!==typeof n&&e)return e.apply(this,arguments);var a,s,u,l=this,c=n.indexOf(" ");return c>-1&&(a=t.trim(n.slice(c,n.length)),n=n.slice(0,c)),t.isFunction(r)?(i=r,r=void 0):r&&"object"===o(r)&&(s="POST"),l.length>0&&t.ajax({url:n,type:s||"GET",dataType:"html",data:r}).done((function(e){u=arguments,l.html(a?t("<div>").append(t.parseHTML(e)).find(a):e)})).always(i&&function(t,e){l.each((function(){i.apply(this,u||[t.responseText,e,t])}))}),this}}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(36),n(203),n(218)],void 0===(i=function(t,e,n,r){return t.parseHTML=function(i,o,a){if(!i||"string"!==typeof i)return null;"boolean"===typeof o&&(a=o,o=!1),o=o||e;var s=n.exec(i),u=!a&&[];return s?[o.createElement(s[1])]:(s=r([i],o,u),u&&u.length&&t(u).remove(),t.merge([],s.childNodes))},t.parseHTML}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(122)],void 0===(i=function(t){t.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,n){t.fn[n]=function(t){return this.on(n,t)}}))}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(39),n(168)],void 0===(i=function(t){t.expr.filters.animated=function(e){return t.grep(t.timers,(function(t){return e===t.elem})).length}}.apply(e,r))||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(78),n(36),n(174),n(173),n(220),n(221),n(123),n(43),n(79),n(39)],i=function(t,e,n,r,i,o,a,s){function u(e){return t.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}return o=o.curCSS,t.offset={setOffset:function(e,n,r){var i,o,a,s,u,l,c=t.css(e,"position"),d=t(e),h={};"static"===c&&(e.style.position="relative"),u=d.offset(),a=t.css(e,"top"),l=t.css(e,"left"),("absolute"===c||"fixed"===c)&&t.inArray("auto",[a,l])>-1?(s=(i=d.position()).top,o=i.left):(s=parseFloat(a)||0,o=parseFloat(l)||0),t.isFunction(n)&&(n=n.call(e,r,t.extend({},u))),null!=n.top&&(h.top=n.top-u.top+s),null!=n.left&&(h.left=n.left-u.left+o),"using"in n?n.using.call(e,h):d.css(h)}},t.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(n){t.offset.setOffset(this,e,n)}));var n,r,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;return a?(n=a.documentElement,t.contains(n,o)?("undefined"!==typeof o.getBoundingClientRect&&(i=o.getBoundingClientRect()),r=u(a),{top:i.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:i.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,n,r={top:0,left:0},i=this[0];return"fixed"===t.css(i,"position")?n=i.getBoundingClientRect():(e=this.offsetParent(),n=this.offset(),t.nodeName(e[0],"html")||(r=e.offset()),r.top+=t.css(e[0],"borderTopWidth",!0),r.left+=t.css(e[0],"borderLeftWidth",!0)),{top:n.top-r.top-t.css(i,"marginTop",!0),left:n.left-r.left-t.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&!t.nodeName(e,"html")&&"static"===t.css(e,"position");)e=e.offsetParent;return e||r}))}}),t.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(n,r){var i=/Y/.test(r);t.fn[n]=function(o){return e(this,(function(e,n,o){var a=u(e);if(void 0===o)return a?r in a?a[r]:a.document.documentElement[n]:e[n];a?a.scrollTo(i?t(a).scrollLeft():o,i?o:t(a).scrollTop()):e[n]=o}),n,o,arguments.length,null)}})),t.each(["top","left"],(function(e,n){t.cssHooks[n]=a(s.pixelPosition,(function(e,r){if(r)return r=o(e,n),i.test(r)?t(e).position()[n]+"px":r}))})),t}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(78),n(79)],i=function(t,e){return t.each({Height:"height",Width:"width"},(function(n,r){t.each({padding:"inner"+n,content:r,"":"outer"+n},(function(i,o){t.fn[o]=function(o,a){var s=arguments.length&&(i||"boolean"!==typeof o),u=i||(!0===o||!0===a?"margin":"border");return e(this,(function(e,r,i){var o;return t.isWindow(e)?e.document.documentElement["client"+n]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+n],o["scroll"+n],e.body["offset"+n],o["offset"+n],o["client"+n])):void 0===i?t.css(e,r,u):t.style(e,r,i,u)}),r,s?o:void 0,s,null)}}))})),t}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(13),n(66)],i=function(t){t.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),t.fn.size=function(){return this.length},t.fn.andSelf=t.fn.addBack}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i;r=[n(13)],void 0===(i=function(n){void 0===(i=function(){return n}.apply(e,r=[]))||(t.exports=i)}.apply(e,r))||(t.exports=i)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e=function(t){var e="transitionend";function n(e){var n=this,i=!1;return t(this).one(r.TRANSITION_END,(function(){i=!0})),setTimeout((function(){i||r.triggerTransitionEnd(n)}),e),this}var r={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");e&&"#"!==e||(e=t.getAttribute("href")||"");try{return document.querySelector(e)?e:null}catch(n){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var n=t(e).css("transition-duration");return parseFloat(n)?(n=n.split(",")[0],1e3*parseFloat(n)):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],a=e[i],s=a&&r.isElement(a)?"element":(u=a,{}.toString.call(u).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var u}};return t.fn.emulateTransitionEnd=n,t.event.special[r.TRANSITION_END]={bindType:e,delegateType:e,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},r}(t=t&&t.hasOwnProperty("default")?t.default:t);return e},"object"===s(e)&&"undefined"!==typeof t?t.exports=a(n(15)):(i=[n(15)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(t){return/^nm$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},r=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},i={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},o=function(t){return function(e,n,o,a){var s=r(e),u=i[t][r(e)];return 2===s&&(u=u[n?0:1]),u.replace(/%d/i,e)}},a=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];return t.defineLocale("ar",{months:a,monthsShort:a,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,n){return t<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(t){return n[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},r=function(t){return function(r,i,o,a){var s=e(r),u=n[t][e(r)];return 2===s&&(u=u[i?0:1]),u.replace(/%d/i,r)}},i=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];return t.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,n){return t<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},i=function(t){return function(e,i,o,a){var s=n(e),u=r[t][n(e)];return 2===s&&(u=u[i?0:1]),u.replace(/%d/i,e)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];return t.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,n){return t<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};return t.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(t){return"\u0645"===t},meridiem:function(t,e,n){return t<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(t){return n[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};return t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(t){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(t)},meridiem:function(t,e,n){return t<4?"gec\u0259":t<12?"s\u0259h\u0259r":t<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(t){if(0===t)return t+"-\u0131nc\u0131";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n){var r,i;return"m"===n?e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":t+" "+(r=+t,i={ss:e?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:e?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:e?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n].split("_"),r%10===1&&r%100!==11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}return t.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:e,mm:e,h:e,hh:e,d:"\u0434\u0437\u0435\u043d\u044c",dd:e,M:"\u043c\u0435\u0441\u044f\u0446",MM:e,y:"\u0433\u043e\u0434",yy:e},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(t)},meridiem:function(t,e,n){return t<4?"\u043d\u043e\u0447\u044b":t<12?"\u0440\u0430\u043d\u0456\u0446\u044b":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!==2&&t%10!==3||t%100===12||t%100===13?t+"-\u044b":t+"-\u0456";case"D":return t+"-\u0433\u0430";default:return t}},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-\u0435\u0432":0===n?t+"-\u0435\u043d":n>10&&n<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};return t.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e&&t>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===e&&t<5||"\u09ac\u09bf\u0995\u09be\u09b2"===e?t+12:t},meridiem:function(t,e,n){return t<4?"\u09b0\u09be\u09a4":t<10?"\u09b8\u0995\u09be\u09b2":t<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};return t.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(t){return t.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u09b0\u09be\u09a4"===e?t<4?t:t+12:"\u09ad\u09cb\u09b0"===e||"\u09b8\u0995\u09be\u09b2"===e?t:"\u09a6\u09c1\u09aa\u09c1\u09b0"===e?t>=3?t:t+12:"\u09ac\u09bf\u0995\u09be\u09b2"===e||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"\u09b0\u09be\u09a4":t<6?"\u09ad\u09cb\u09b0":t<12?"\u09b8\u0995\u09be\u09b2":t<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":t<18?"\u09ac\u09bf\u0995\u09be\u09b2":t<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};return t.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(t){return t.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===e&&t>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===e&&t<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===e?t+12:t},meridiem:function(t,e,n){return t<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":t<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":t<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":t<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],t)}function n(t){return t>9?n(t%10):t}var r=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],i=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,o=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];return t.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:o,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:o,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(n(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(t){return t+(1===t?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(t){return"g.m."===t},meridiem:function(t,e,n){return t<12?"a.m.":"g.m."}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n){var r=t+" ";switch(n){case"ss":return r+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return r+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return r+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return r+=1===t?"dan":"dana";case"MM":return r+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return r+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}return t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),r=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],i=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function o(t){return t>1&&t<5&&1!==~~(t/10)}function a(t,e,n,r){var i=t+" ";switch(n){case"s":return e||r?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return e||r?i+(o(t)?"sekundy":"sekund"):i+"sekundami";case"m":return e?"minuta":r?"minutu":"minutou";case"mm":return e||r?i+(o(t)?"minuty":"minut"):i+"minutami";case"h":return e?"hodina":r?"hodinu":"hodinou";case"hh":return e||r?i+(o(t)?"hodiny":"hodin"):i+"hodinami";case"d":return e||r?"den":"dnem";case"dd":return e||r?i+(o(t)?"dny":"dn\xed"):i+"dny";case"M":return e||r?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return e||r?i+(o(t)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):i+"m\u011bs\xedci";case"y":return e||r?"rok":"rokem";case"yy":return e||r?i+(o(t)?"roky":"let"):i+"lety"}}return t.defineLocale("cs",{months:e,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(t){return t+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(t)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(t)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}return t.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}return t.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?i[n][0]:i[n][1]}return t.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],n=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];return t.defineLocale("dv",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(t){return"\u0789\u078a"===t},meridiem:function(t,e,n){return t<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(t,e){return t?"string"===typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(t,e,n){return t>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(t){return"\u03bc"===(t+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(t,e){var n,r=this._calendarEl[t],i=e&&e.hours();return n=r,("undefined"!==typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(e)),r.replace("{}",i%12===1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,n){return t>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n,r){var i={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[t+" minuti",t+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[t+" tunni",t+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[t+" kuu",t+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[t+" aasta",t+" aastat"]};return e?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}return t.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d p\xe4eva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};return t.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(t){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(t)},meridiem:function(t,e,n){return t<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(t){return t.replace(/[\u06f0-\u06f9]/g,(function(t){return n[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",e[7],e[8],e[9]];function r(t,r,i,o){var a="";switch(i){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":a=o?"sekunnin":"sekuntia";break;case"m":return o?"minuutin":"minuutti";case"mm":a=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":a=o?"tunnin":"tuntia";break;case"d":return o?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":a=o?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return o?"kuukauden":"kuukausi";case"MM":a=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":a=o?"vuoden":"vuotta"}return a=function(t,r){return t<10?r?n[t]:e[t]:t}(t,o)+" "+a,a}return t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,n=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];return t.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:e,monthsShortRegex:e,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");return t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10===2?"na":"mh")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10===2?"na":"mh")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n,r){var i={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[t+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",t+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[t+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",t+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[t+" \u0935\u0930\u093e\u0902\u0928\u0940",t+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[t+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",t+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[t+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",t+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[t+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",t+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return r?i[n][0]:i[n][1]}return t.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(t,e){return"D"===e?t+"\u0935\u0947\u0930":t},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u0940"===e?t<4?t:t+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===e?t:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===e?t>12?t:t+12:"\u0938\u093e\u0902\u091c\u0947"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"\u0930\u093e\u0924\u0940":t<12?"\u0938\u0915\u093e\u0933\u0940\u0902":t<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":t<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n,r){var i={s:["thoddea sekondamni","thodde sekond"],ss:[t+" sekondamni",t+" sekond"],m:["eka mintan","ek minut"],mm:[t+" mintamni",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voramni",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disamni",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineamni",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsamni",t+" vorsam"]};return r?i[n][0]:i[n][1]}return t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){return"D"===e?t+"er":t},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokallim"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"rati":t<12?"sokallim":t<16?"donparam":t<20?"sanje":"rati"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};return t.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(t){return t.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0ab0\u0abe\u0aa4"===e?t<4?t:t+12:"\u0ab8\u0ab5\u0abe\u0ab0"===e?t:"\u0aac\u0aaa\u0acb\u0ab0"===e?t>=10?t:t+12:"\u0ab8\u0abe\u0a82\u0a9c"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"\u0ab0\u0abe\u0aa4":t<10?"\u0ab8\u0ab5\u0abe\u0ab0":t<17?"\u0aac\u0aaa\u0acb\u0ab0":t<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(t){return 2===t?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":t+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(t){return 2===t?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":t+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(t){return 2===t?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":t+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(t){return 2===t?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":t%10===0&&10!==t?t+" \u05e9\u05e0\u05d4":t+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(t){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(t)},meridiem:function(t,e,n){return t<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":t<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":t<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":t<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},r=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];return t.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:r,longMonthsParse:r,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924"===e?t<4?t:t+12:"\u0938\u0941\u092c\u0939"===e?t:"\u0926\u094b\u092a\u0939\u0930"===e?t>=10?t:t+12:"\u0936\u093e\u092e"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"\u0930\u093e\u0924":t<10?"\u0938\u0941\u092c\u0939":t<17?"\u0926\u094b\u092a\u0939\u0930":t<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n){var r=t+" ";switch(n){case"ss":return r+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return r+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return r+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return r+=1===t?"dan":"dana";case"MM":return r+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return r+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}return t.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(t,e,n,r){var i=t;switch(n){case"s":return r||e?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return i+(r||e)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(r||e?" perc":" perce");case"mm":return i+(r||e?" perc":" perce");case"h":return"egy"+(r||e?" \xf3ra":" \xf3r\xe1ja");case"hh":return i+(r||e?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(r||e?" nap":" napja");case"dd":return i+(r||e?" nap":" napja");case"M":return"egy"+(r||e?" h\xf3nap":" h\xf3napja");case"MM":return i+(r||e?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(r||e?" \xe9v":" \xe9ve");case"yy":return i+(r||e?" \xe9v":" \xe9ve")}return""}function r(t){return(t?"":"[m\xfalt] ")+"["+e[this.day()]+"] LT[-kor]"}return t.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,n){return t<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(t){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(t)},meridiem:function(t){return t<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":t<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":t<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-\u056b\u0576":t+"-\u0580\u0564";default:return t}},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t){return t%100===11||t%10!==1}function n(t,n,r,i){var o=t+" ";switch(r){case"s":return n||i?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return e(t)?o+(n||i?"sek\xfandur":"sek\xfandum"):o+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return e(t)?o+(n||i?"m\xedn\xfatur":"m\xedn\xfatum"):n?o+"m\xedn\xfata":o+"m\xedn\xfatu";case"hh":return e(t)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return e(t)?n?o+"dagar":o+(i?"daga":"d\xf6gum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":i?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return e(t)?n?o+"m\xe1nu\xf0ir":o+(i?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?o+"m\xe1nu\xf0ur":o+(i?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||i?"\xe1r":"\xe1ri";case"yy":return e(t)?o+(n||i?"\xe1r":"\xe1rum"):o+(n||i?"\xe1r":"\xe1ri")}}return t.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(t,e){return"\u5143"===e[1]?1:parseInt(e[1]||t,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(t){return"\u5348\u5f8c"===t},meridiem:function(t,e,n){return t<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(t){return t.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(t){return this.week()!==t.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(t,e){switch(e){case"y":return 1===t?"\u5143\u5e74":t+"\u5e74";case"d":case"D":case"DDD":return t+"\u65e5";default:return t}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"enjing":t<15?"siyang":t<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(t){return t.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,(function(t,e,n){return"\u10d8"===n?e+"\u10e8\u10d8":e+n+"\u10e8\u10d8"}))},past:function(t){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(t)?t.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(t)?t.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):t},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(t){return 0===t?t:1===t?t+"-\u10da\u10d8":t<20||t<=100&&t%20===0||t%100===0?"\u10db\u10d4-"+t:t+"-\u10d4"},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};return t.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};return t.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(t){return"\u179b\u17d2\u1784\u17b6\u1785"===t},meridiem:function(t,e,n){return t<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(t){return t.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};return t.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(t){return t.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===e?t<4?t:t+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===e?t:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===e?t>=10?t:t+12:"\u0cb8\u0c82\u0c9c\u0cc6"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":t<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":t<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":t<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(t){return t+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\uc77c";case"M":return t+"\uc6d4";case"w":case"W":return t+"\uc8fc";default:return t}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(t){return"\uc624\ud6c4"===t},meridiem:function(t,e,n){return t<12?"\uc624\uc804":"\uc624\ud6c4"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},r=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];return t.defineLocale("ku",{months:r,monthsShort:r,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(t){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(t)},meridiem:function(t,e,n){return t<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,(function(t){return n[t]})).replace(/\u060c/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};return t.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?i[n][0]:i[n][1]}function n(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return n(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return n(t)}return n(t/=1e3)}return t.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(t){return n(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return n(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d M\xe9int",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(t){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===t},meridiem:function(t,e,n){return t<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(t){return"\u0e97\u0eb5\u0ec8"+t}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function n(t,e,n,r){return e?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(t){return t%10===0||t>10&&t<20}function i(t){return e[t].split("_")}function o(t,e,o,a){var s=t+" ";return 1===t?s+n(0,e,o[0],a):e?s+(r(t)?i(o)[1]:i(o)[0]):a?s+i(o)[1]:s+(r(t)?i(o)[1]:i(o)[2])}return t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(t,e,n,r){return e?"kelios sekund\u0117s":r?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(t,e,n){return n?e%10===1&&e%100!==11?t[2]:t[3]:e%10===1&&e%100!==11?t[0]:t[1]}function r(t,r,i){return t+" "+n(e[i],t,r)}function i(t,r,i){return n(e[i],t,r)}return t.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(t,e){return e?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,r){var i=e.words[r];return 1===r.length?n?i[0]:i[1]:t+" "+e.correctGrammaticalCase(t,i)}};return t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-\u0435\u0432":0===n?t+"-\u0435\u043d":n>10&&n<20?t+"-\u0442\u0438":1===e?t+"-\u0432\u0438":2===e?t+"-\u0440\u0438":7===e||8===e?t+"-\u043c\u0438":t+"-\u0442\u0438"},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===e&&t>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===e||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===e?t+12:t},meridiem:function(t,e,n){return t<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":t<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":t<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":t<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n,r){switch(n){case"s":return e?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return t+(e?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return t+(e?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return t+(e?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return t+(e?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return t+(e?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return t+(e?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return t}}return t.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(t){return"\u04ae\u0425"===t},meridiem:function(t,e,n){return t<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" \u04e9\u0434\u04e9\u0440";default:return t}}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function r(t,e,n,r){var i="";if(e)switch(n){case"s":i="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":i="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":i="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":i="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":i="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":i="%d \u0924\u093e\u0938";break;case"d":i="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":i="%d \u0926\u093f\u0935\u0938";break;case"M":i="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":i="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":i="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":i="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":i="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":i="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":i="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":i="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":i="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":i="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":i="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":i="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":i="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":i="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":i="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":i="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return i.replace(/%d/i,t)}return t.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u092a\u0939\u093e\u091f\u0947"===e||"\u0938\u0915\u093e\u0933\u0940"===e?t:"\u0926\u0941\u092a\u093e\u0930\u0940"===e||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===e||"\u0930\u093e\u0924\u094d\u0930\u0940"===e?t>=12?t:t+12:void 0},meridiem:function(t,e,n){return t>=0&&t<6?"\u092a\u0939\u093e\u091f\u0947":t<12?"\u0938\u0915\u093e\u0933\u0940":t<17?"\u0926\u0941\u092a\u093e\u0930\u0940":t<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};return t.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(t){return t.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};return t.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(t){return t.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0930\u093e\u0924\u093f"===e?t<4?t:t+12:"\u092c\u093f\u0939\u093e\u0928"===e?t:"\u0926\u093f\u0909\u0901\u0938\u094b"===e?t>=10?t:t+12:"\u0938\u093e\u0901\u091d"===e?t+12:void 0},meridiem:function(t,e,n){return t<3?"\u0930\u093e\u0924\u093f":t<12?"\u092c\u093f\u0939\u093e\u0928":t<16?"\u0926\u093f\u0909\u0901\u0938\u094b":t<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,r){return t?/-MMM-/.test(r)?n[t.month()]:e[t.month()]:e},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"\xe8";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};return t.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(t){return t.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0a30\u0a3e\u0a24"===e?t<4?t:t+12:"\u0a38\u0a35\u0a47\u0a30"===e?t:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===e?t>=10?t:t+12:"\u0a38\u0a3c\u0a3e\u0a2e"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"\u0a30\u0a3e\u0a24":t<10?"\u0a38\u0a35\u0a47\u0a30":t<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":t<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function i(t){return t%10<5&&t%10>1&&~~(t/10)%10!==1}function o(t,e,n){var r=t+" ";switch(n){case"ss":return r+(i(t)?"sekundy":"sekund");case"m":return e?"minuta":"minut\u0119";case"mm":return r+(i(t)?"minuty":"minut");case"h":return e?"godzina":"godzin\u0119";case"hh":return r+(i(t)?"godziny":"godzin");case"ww":return r+(i(t)?"tygodnie":"tygodni");case"MM":return r+(i(t)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return r+(i(t)?"lata":"lat")}}return t.defineLocale("pl",{months:function(t,r){return t?/D MMMM/.test(r)?n[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:o,M:"miesi\u0105c",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n){var r=" ";return(t%100>=20||t>=100&&t%100===0)&&(r=" de "),t+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[n]}return t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:e,m:"un minut",mm:e,h:"o or\u0103",hh:e,d:"o zi",dd:e,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:e,M:"o lun\u0103",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n){var r,i;return"m"===n?e?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":t+" "+(r=+t,i={ss:e?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:e?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[n].split("_"),r%10===1&&r%100!==11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var n=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];return t.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:e,m:e,mm:e,h:"\u0447\u0430\u0441",hh:e,d:"\u0434\u0435\u043d\u044c",dd:e,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:e,M:"\u043c\u0435\u0441\u044f\u0446",MM:e,y:"\u0433\u043e\u0434",yy:e},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(t)},meridiem:function(t,e,n){return t<4?"\u043d\u043e\u0447\u0438":t<12?"\u0443\u0442\u0440\u0430":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-\u0439";case"D":return t+"-\u0433\u043e";case"w":case"W":return t+"-\u044f";default:return t}},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],n=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];return t.defineLocale("sd",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,n){return t<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(t){return t+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(t){return"\u0db4.\u0dc0."===t||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===t},meridiem:function(t,e,n){return t>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function r(t){return t>1&&t<5}function i(t,e,n,i){var o=t+" ";switch(n){case"s":return e||i?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return e||i?o+(r(t)?"sekundy":"sek\xfand"):o+"sekundami";case"m":return e?"min\xfata":i?"min\xfatu":"min\xfatou";case"mm":return e||i?o+(r(t)?"min\xfaty":"min\xfat"):o+"min\xfatami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?o+(r(t)?"hodiny":"hod\xedn"):o+"hodinami";case"d":return e||i?"de\u0148":"d\u0148om";case"dd":return e||i?o+(r(t)?"dni":"dn\xed"):o+"d\u0148ami";case"M":return e||i?"mesiac":"mesiacom";case"MM":return e||i?o+(r(t)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return e||i?"rok":"rokom";case"yy":return e||i?o+(r(t)?"roky":"rokov"):o+"rokmi"}}return t.defineLocale("sk",{months:e,monthsShort:n,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n,r){var i=t+" ";switch(n){case"s":return e||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===t?e?"sekundo":"sekundi":2===t?e||r?"sekundi":"sekundah":t<5?e||r?"sekunde":"sekundah":"sekund";case"m":return e?"ena minuta":"eno minuto";case"mm":return i+=1===t?e?"minuta":"minuto":2===t?e||r?"minuti":"minutama":t<5?e||r?"minute":"minutami":e||r?"minut":"minutami";case"h":return e?"ena ura":"eno uro";case"hh":return i+=1===t?e?"ura":"uro":2===t?e||r?"uri":"urama":t<5?e||r?"ure":"urami":e||r?"ur":"urami";case"d":return e||r?"en dan":"enim dnem";case"dd":return i+=1===t?e||r?"dan":"dnem":2===t?e||r?"dni":"dnevoma":e||r?"dni":"dnevi";case"M":return e||r?"en mesec":"enim mesecem";case"MM":return i+=1===t?e||r?"mesec":"mesecem":2===t?e||r?"meseca":"mesecema":t<5?e||r?"mesece":"meseci":e||r?"mesecev":"meseci";case"y":return e||r?"eno leto":"enim letom";case"yy":return i+=1===t?e||r?"leto":"letom":2===t?e||r?"leti":"letoma":t<5?e||r?"leta":"leti":e||r?"let":"leti"}}return t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,n){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10===1?e[0]:e[1]:e[2]},translate:function(t,n,r,i){var o,a=e.words[r];return 1===r.length?"y"===r&&n?"jedna godina":i||n?a[0]:a[1]:(o=e.correctGrammaticalCase(t,a),"yy"===r&&n&&"godinu"===o?t+" godina":t+" "+o)}};return t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10===1?e[0]:e[1]:e[2]},translate:function(t,n,r,i){var o,a=e.words[r];return 1===r.length?"y"===r&&n?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":i||n?a[0]:a[1]:(o=e.correctGrammaticalCase(t,a),"yy"===r&&n&&"\u0433\u043e\u0434\u0438\u043d\u0443"===o?t+" \u0433\u043e\u0434\u0438\u043d\u0430":t+" "+o)}};return t.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,n){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?":e":1===e||2===e?":a":":e")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};return t.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(t){return t+"\u0bb5\u0ba4\u0bc1"},preparse:function(t){return t.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(t,e,n){return t<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":t<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":t<10?" \u0b95\u0bbe\u0bb2\u0bc8":t<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":t<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":t<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(t,e){return 12===t&&(t=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===e?t<2?t:t+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===e||"\u0b95\u0bbe\u0bb2\u0bc8"===e||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===e?t<4?t:t+12:"\u0c09\u0c26\u0c2f\u0c02"===e?t:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===e?t>=10?t:t+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":t<10?"\u0c09\u0c26\u0c2f\u0c02":t<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":t<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};return t.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u0448\u0430\u0431"===e?t<4?t:t+12:"\u0441\u0443\u0431\u04b3"===e?t:"\u0440\u04ef\u0437"===e?t>=11?t:t+12:"\u0431\u0435\u0433\u043e\u04b3"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"\u0448\u0430\u0431":t<11?"\u0441\u0443\u0431\u04b3":t<16?"\u0440\u04ef\u0437":t<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(t){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===t},meridiem:function(t,e,n){return t<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};return t.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'unjy";var r=t%10;return t+(e[r]||e[t%100-r]||e[t>=100?100:null])}},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(t,n,r,i){var o=function(t){var n=Math.floor(t%1e3/100),r=Math.floor(t%100/10),i=t%10,o="";return n>0&&(o+=e[n]+"vatlh"),r>0&&(o+=(""!==o?" ":"")+e[r]+"maH"),i>0&&(o+=(""!==o?" ":"")+e[i]),""===o?"pagh":o}(t);switch(r){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}return t.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu\u2019":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};return t.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(t,e,n){return t<12?n?"\xf6\xf6":"\xd6\xd6":n?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(t){return"\xf6s"===t||"\xd6S"===t},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'\u0131nc\u0131";var r=t%10;return t+(e[r]||e[t%100-r]||e[t>=100?100:null])}},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[t+" m\xeduts",t+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[t+" \xfeoras",t+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return r||e?i[n][0]:i[n][1]}return t.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,n){return t>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===e||"\u0633\u06d5\u06be\u06d5\u0631"===e||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===e?t:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===e||"\u0643\u06d5\u0686"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var r=100*t+e;return r<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":r<900?"\u0633\u06d5\u06be\u06d5\u0631":r<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":r<1230?"\u0686\u06c8\u0634":r<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return t+"-\u06be\u06d5\u067e\u062a\u06d5";default:return t}},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t,e,n){var r,i;return"m"===n?e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?e?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":t+" "+(r=+t,i={ss:e?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:e?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:e?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[n].split("_"),r%10===1&&r%100!==11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}function n(t){return function(){return t+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}return t.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(t,e){var n={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===t?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):t?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(e)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:n.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:e,m:e,mm:e,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:e,d:"\u0434\u0435\u043d\u044c",dd:e,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:e,y:"\u0440\u0456\u043a",yy:e},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(t){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(t)},meridiem:function(t,e,n){return t<4?"\u043d\u043e\u0447\u0456":t<12?"\u0440\u0430\u043d\u043a\u0443":t<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-\u0439";case"D":return t+"-\u0433\u043e";default:return t}},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],n=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];return t.defineLocale("ur",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(t){return"\u0634\u0627\u0645"===t},meridiem:function(t,e,n){return t<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(t){return t.replace(/\u060c/g,",")},postformat:function(t){return t.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var r=100*t+e;return r<600?"\u51cc\u6668":r<900?"\u65e9\u4e0a":r<1130?"\u4e0a\u5348":r<1230?"\u4e2d\u5348":r<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(t){return t.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(t){return this.week()!==t.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u5468";default:return t}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;return r<600?"\u51cc\u6668":r<900?"\u65e9\u4e0a":r<1200?"\u4e0a\u5348":1200===r?"\u4e2d\u5348":r<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;return r<600?"\u51cc\u6668":r<900?"\u65e9\u4e0a":r<1130?"\u4e0a\u5348":r<1230?"\u4e2d\u5348":r<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";return t.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(t,e){return 12===t&&(t=0),"\u51cc\u6668"===e||"\u65e9\u4e0a"===e||"\u4e0a\u5348"===e?t:"\u4e2d\u5348"===e?t>=11?t:t+12:"\u4e0b\u5348"===e||"\u665a\u4e0a"===e?t+12:void 0},meridiem:function(t,e,n){var r=100*t+e;return r<600?"\u51cc\u6668":r<900?"\u65e9\u4e0a":r<1130?"\u4e0a\u5348":r<1230?"\u4e2d\u5348":r<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"\u65e5";case"M":return t+"\u6708";case"w":case"W":return t+"\u9031";default:return t}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})},"object"===s(e)&&"undefined"!==typeof t?a(n(0)):(i=[n(0)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e){function n(t){return n="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},n(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(o=i.key,a=void 0,a=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===n(a)?a:String(a)),i)}var o,a}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var a={exports:{}};!function(t,e){t.exports=function(t){var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(t,e){var n=t[0],r=t[1],i=t[2],o=t[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+e[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+e[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+e[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+e[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+e[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+e[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+e[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+e[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+e[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+e[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+e[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+e[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+e[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+e[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+e[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+e[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+e[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+e[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+e[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+e[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+e[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+e[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+e[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+e[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+e[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+e[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+e[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+e[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+e[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+e[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+e[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+e[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+e[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+e[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+e[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+e[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+e[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+e[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+e[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+e[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+e[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+e[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+e[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+e[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+e[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+e[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+e[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+e[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+e[9]-343485551|0)<<21|r>>>11)+i|0,t[0]=n+t[0]|0,t[1]=r+t[1]|0,t[2]=i+t[2]|0,t[3]=o+t[3]|0}function r(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function o(t){var e,i,o,a,s,u,l=t.length,c=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=l;e+=64)n(c,r(t.substring(e-64,e)));for(i=(t=t.substring(e-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<i;e+=1)o[e>>2]|=t.charCodeAt(e)<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(c,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*l).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(c,o),c}function a(t){var e,r,o,a,s,u,l=t.length,c=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=l;e+=64)n(c,i(t.subarray(e-64,e)));for(r=(t=e-64<l?t.subarray(e-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e<r;e+=1)o[e>>2]|=t[e]<<(e%4<<3);if(o[e>>2]|=128<<(e%4<<3),e>55)for(n(c,o),e=0;e<16;e+=1)o[e]=0;return a=(a=8*l).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(c,o),c}function s(t){var n,r="";for(n=0;n<4;n+=1)r+=e[t>>8*n+4&15]+e[t>>8*n&15];return r}function u(t){var e;for(e=0;e<t.length;e+=1)t[e]=s(t[e]);return t.join("")}function l(t){return/[\u0080-\uFFFF]/.test(t)&&(t=unescape(encodeURIComponent(t))),t}function c(t,e){var n,r=t.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=t.charCodeAt(n);return e?o:i}function d(t){return String.fromCharCode.apply(null,new Uint8Array(t))}function h(t,e,n){var r=new Uint8Array(t.byteLength+e.byteLength);return r.set(new Uint8Array(t)),r.set(new Uint8Array(e),t.byteLength),n?r:r.buffer}function f(t){var e,n=[],r=t.length;for(e=0;e<r-1;e+=2)n.push(parseInt(t.substr(e,2),16));return String.fromCharCode.apply(String,n)}function p(){this.reset()}return u(o("hello")),"undefined"===typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function e(t,e){return(t=0|t||0)<0?Math.max(t+e,0):Math.min(t,e)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,s,u=this.byteLength,l=e(n,u),c=u;return r!==t&&(c=e(r,u)),l>c?new ArrayBuffer(0):(i=c-l,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,l,i),a.set(s),o)}}(),p.prototype.append=function(t){return this.appendBinary(l(t)),this},p.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,i=this._buff.length;for(e=64;e<=i;e+=64)n(this._hash,r(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},p.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r.charCodeAt(e)<<(e%4<<3);return this._finish(o,i),n=u(this._hash),t&&(n=f(n)),this.reset(),n},p.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},p.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},p.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},p.prototype._finish=function(t,e){var r,i,o,a=e;if(t[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,t),a=0;a<16;a+=1)t[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,t[14]=i,t[15]=o,n(this._hash,t)},p.hash=function(t,e){return p.hashBinary(l(t),e)},p.hashBinary=function(t,e){var n=u(o(t));return e?f(n):n},p.ArrayBuffer=function(){this.reset()},p.ArrayBuffer.prototype.append=function(t){var e,r=h(this._buff.buffer,t,!0),o=r.length;for(this._length+=t.byteLength,e=64;e<=o;e+=64)n(this._hash,i(r.subarray(e-64,e)));return this._buff=e-64<o?new Uint8Array(r.buffer.slice(e-64)):new Uint8Array(0),this},p.ArrayBuffer.prototype.end=function(t){var e,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e<i;e+=1)o[e>>2]|=r[e]<<(e%4<<3);return this._finish(o,i),n=u(this._hash),t&&(n=f(n)),this.reset(),n},p.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},p.ArrayBuffer.prototype.getState=function(){var t=p.prototype.getState.call(this);return t.buff=d(t.buff),t},p.ArrayBuffer.prototype.setState=function(t){return t.buff=c(t.buff,!0),p.prototype.setState.call(this,t)},p.ArrayBuffer.prototype.destroy=p.prototype.destroy,p.ArrayBuffer.prototype._finish=p.prototype._finish,p.ArrayBuffer.hash=function(t,e){var n=u(a(new Uint8Array(t)));return e?f(n):n},p}()}(a);var s=a.exports,u=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,l=function(){function t(e){r(this,t),this.file=e,this.chunkSize=2097152,this.chunkCount=Math.ceil(this.file.size/this.chunkSize),this.chunkIndex=0}return o(t,[{key:"create",value:function(t){var e=this;this.callback=t,this.md5Buffer=new s.ArrayBuffer,this.fileReader=new FileReader,this.fileReader.addEventListener("load",(function(t){return e.fileReaderDidLoad(t)})),this.fileReader.addEventListener("error",(function(t){return e.fileReaderDidError(t)})),this.readNextChunk()}},{key:"fileReaderDidLoad",value:function(t){if(this.md5Buffer.append(t.target.result),!this.readNextChunk()){var e=this.md5Buffer.end(!0),n=btoa(e);this.callback(null,n)}}},{key:"fileReaderDidError",value:function(t){this.callback("Error reading ".concat(this.file.name))}},{key:"readNextChunk",value:function(){if(this.chunkIndex<this.chunkCount||0==this.chunkIndex&&0==this.chunkCount){var t=this.chunkIndex*this.chunkSize,e=Math.min(t+this.chunkSize,this.file.size),n=u.call(this.file,t,e);return this.fileReader.readAsArrayBuffer(n),this.chunkIndex++,!0}return!1}}],[{key:"create",value:function(e,n){new t(e).create(n)}}]),t}();function c(t,e){return"string"==typeof t&&(e=t,t=document),t.querySelector(e)}function d(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.disabled,i=n.bubbles,o=n.cancelable,a=n.detail,s=document.createEvent("Event");s.initEvent(e,i||!0,o||!0),s.detail=a||{};try{t.disabled=!1,t.dispatchEvent(s)}finally{t.disabled=r}return s}function h(t){return Array.isArray(t)?t:Array.from?Array.from(t):[].slice.call(t)}var f=function(){function t(e,n,i){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r(this,t),this.file=e,this.attributes={filename:e.name,content_type:e.type||"application/octet-stream",byte_size:e.size,checksum:n},this.xhr=new XMLHttpRequest,this.xhr.open("POST",i,!0),this.xhr.responseType="json",this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.setRequestHeader("Accept","application/json"),this.xhr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(a).forEach((function(t){o.xhr.setRequestHeader(t,a[t])}));var s=function(t){var e=c(document.head,'meta[name="'.concat(t,'"]'));if(e)return e.getAttribute("content")}("csrf-token");void 0!=s&&this.xhr.setRequestHeader("X-CSRF-Token",s),this.xhr.addEventListener("load",(function(t){return o.requestDidLoad(t)})),this.xhr.addEventListener("error",(function(t){return o.requestDidError(t)}))}return o(t,[{key:"status",get:function(){return this.xhr.status}},{key:"response",get:function(){var t=this.xhr,e=t.responseType,n=t.response;return"json"==e?n:JSON.parse(n)}},{key:"create",value:function(t){this.callback=t,this.xhr.send(JSON.stringify({blob:this.attributes}))}},{key:"requestDidLoad",value:function(t){if(this.status>=200&&this.status<300){var e=this.response,n=e.direct_upload;delete e.direct_upload,this.attributes=e,this.directUploadData=n,this.callback(null,this.toJSON())}else this.requestDidError(t)}},{key:"requestDidError",value:function(t){this.callback('Error creating Blob for "'.concat(this.file.name,'". Status: ').concat(this.status))}},{key:"toJSON",value:function(){var t={};for(var e in this.attributes)t[e]=this.attributes[e];return t}}]),t}(),p=function(){function t(e){var n=this;r(this,t),this.blob=e,this.file=e.file;var i=e.directUploadData,o=i.url,a=i.headers;for(var s in this.xhr=new XMLHttpRequest,this.xhr.open("PUT",o,!0),this.xhr.responseType="text",a)this.xhr.setRequestHeader(s,a[s]);this.xhr.addEventListener("load",(function(t){return n.requestDidLoad(t)})),this.xhr.addEventListener("error",(function(t){return n.requestDidError(t)}))}return o(t,[{key:"create",value:function(t){this.callback=t,this.xhr.send(this.file.slice())}},{key:"requestDidLoad",value:function(t){var e=this.xhr,n=e.status,r=e.response;n>=200&&n<300?this.callback(null,r):this.requestDidError(t)}},{key:"requestDidError",value:function(t){this.callback('Error storing "'.concat(this.file.name,'". Status: ').concat(this.xhr.status))}}]),t}(),m=0,g=function(){function t(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r(this,t),this.id=++m,this.file=e,this.url=n,this.delegate=i,this.customHeaders=o}return o(t,[{key:"create",value:function(t){var e=this;l.create(this.file,(function(n,r){if(n)t(n);else{var i=new f(e.file,r,e.url,e.customHeaders);y(e.delegate,"directUploadWillCreateBlobWithXHR",i.xhr),i.create((function(n){if(n)t(n);else{var r=new p(i);y(e.delegate,"directUploadWillStoreFileWithXHR",r.xhr),r.create((function(e){e?t(e):t(null,i.toJSON())}))}}))}}))}}]),t}();function y(t,e){if(t&&"function"==typeof t[e]){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return t[e].apply(t,r)}}var v=function(){function t(e,n){r(this,t),this.input=e,this.file=n,this.directUpload=new g(this.file,this.url,this),this.dispatch("initialize")}return o(t,[{key:"start",value:function(t){var e=this,n=document.createElement("input");n.type="hidden",n.name=this.input.name,this.input.insertAdjacentElement("beforebegin",n),this.dispatch("start"),this.directUpload.create((function(r,i){r?(n.parentNode.removeChild(n),e.dispatchError(r)):n.value=i.signed_id,e.dispatch("end"),t(r)}))}},{key:"uploadRequestDidProgress",value:function(t){var e=t.loaded/t.total*100;e&&this.dispatch("progress",{progress:e})}},{key:"url",get:function(){return this.input.getAttribute("data-direct-upload-url")}},{key:"dispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.file=this.file,e.id=this.directUpload.id,d(this.input,"direct-upload:".concat(t),{detail:e})}},{key:"dispatchError",value:function(t){this.dispatch("error",{error:t}).defaultPrevented||alert(t)}},{key:"directUploadWillCreateBlobWithXHR",value:function(t){this.dispatch("before-blob-request",{xhr:t})}},{key:"directUploadWillStoreFileWithXHR",value:function(t){var e=this;this.dispatch("before-storage-request",{xhr:t}),t.upload.addEventListener("progress",(function(t){return e.uploadRequestDidProgress(t)}))}}]),t}(),_=function(){function t(e){var n,i;r(this,t),this.form=e,this.inputs=(n=e,i="input[type=file][data-direct-upload-url]:not([disabled])","string"==typeof n&&(i=n,n=document),h(n.querySelectorAll(i))).filter((function(t){return t.files.length}))}return o(t,[{key:"start",value:function(t){var e=this,n=this.createDirectUploadControllers();this.dispatch("start"),function r(){var i=n.shift();i?i.start((function(n){n?(t(n),e.dispatch("end")):r()})):(t(),e.dispatch("end"))}()}},{key:"createDirectUploadControllers",value:function(){var t=[];return this.inputs.forEach((function(e){h(e.files).forEach((function(n){var r=new v(e,n);t.push(r)}))})),t}},{key:"dispatch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return d(this.form,"direct-uploads:".concat(t),{detail:e})}}]),t}(),b="data-direct-uploads-processing",w=new WeakMap,k=!1;function S(t){var e=t.target.closest("button, input");e&&"submit"===e.type&&e.form&&w.set(e.form,e)}function E(t){x(t)}function C(t){"FORM"==t.target.tagName&&x(t)}function x(t){var e=t.target;if(e.hasAttribute(b))t.preventDefault();else{var n=new _(e),r=n.inputs;r.length&&(t.preventDefault(),e.setAttribute(b,""),r.forEach(D),n.start((function(t){e.removeAttribute(b),t?r.forEach(A):function(t){var e=w.get(t)||c(t,"input[type=submit], button[type=submit]");if(e){var n=e.disabled;e.disabled=!1,e.focus(),e.click(),e.disabled=n}else(e=document.createElement("input")).type="submit",e.style.display="none",t.appendChild(e),e.click(),t.removeChild(e);w.delete(t)}(e)})))}}function D(t){t.disabled=!0}function A(t){t.disabled=!1}setTimeout((function(){window.ActiveStorage&&(k||(k=!0,document.addEventListener("click",S,!0),document.addEventListener("submit",E,!0),document.addEventListener("ajax:before",C)))}),1);var T=function(){function t(e,n){r(this,t),this.attachment=e,this.element=n,this.directUpload=new g(e.file,this.directUploadUrl,this)}return o(t,[{key:"start",value:function(){this.directUpload.create(this.directUploadDidComplete.bind(this))}},{key:"directUploadWillStoreFileWithXHR",value:function(t){var e=this;t.upload.addEventListener("progress",(function(t){var n=t.loaded/t.total*100;e.attachment.setUploadProgress(n)}))}},{key:"directUploadDidComplete",value:function(t,e){if(t)throw new Error("Direct upload failed: ".concat(t));this.attachment.setAttributes({sgid:e.attachable_sgid,url:this.createBlobUrl(e.signed_id,e.filename)})}},{key:"createBlobUrl",value:function(t,e){return this.blobUrlTemplate.replace(":signed_id",t).replace(":filename",encodeURIComponent(e))}},{key:"directUploadUrl",get:function(){return this.element.dataset.directUploadUrl}},{key:"blobUrlTemplate",get:function(){return this.element.dataset.blobUrlTemplate}}]),t}();addEventListener("trix-attachment-add",(function(t){var e=t.attachment,n=t.target;e.file&&new T(e,n).start()}))},function(t,e,n){},function(t,e,n){},function(t,e,n){t.exports=n.p+"media/images/Slope-Blk-Stacked-cdedc096.png"},function(t,e,n){t.exports=n.p+"media/images/Slope-Trademark-6b9d5759.png"},function(t,e,n){t.exports=n.p+"media/images/Slope-Wht-Horizontal-ac4d2bee.png"},function(t,e,n){t.exports=n.p+"media/images/Slope-Wht-Stacked-72a53e2e.png"},function(t,e,n){t.exports=n.p+"media/images/brandmark_red-ad83e99b.svg"},function(t,e,n){t.exports=n.p+"media/images/dynamicbg-ccd587c3.jpg"},function(t,e,n){t.exports=n.p+"media/images/lockup-h color black-23b14bf1.png"},function(t,e,n){t.exports=n.p+"media/images/slope-inverse-28c76f39.png"},function(t,e,n){t.exports=n.p+"media/images/slope-modern-377c545b.png"},function(t,e,n){t.exports=n.p+"media/images/sort_asc-4bba5919.png"},function(t,e,n){t.exports=n.p+"media/images/sort_asc_disabled-27ac5d1b.png"},function(t,e,n){t.exports=n.p+"media/images/sort_both-8b117faa.png"},function(t,e,n){t.exports=n.p+"media/images/sort_desc-c4196d32.png"},function(t,e,n){t.exports=n.p+"media/images/sort_desc_disabled-07c018ae.png"},function(t,e,n){"use strict";var r=n(11),i=n(3),o=n(41);function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(l,t);var e,n,r,i=u(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"connect",value:function(){this.element.replaceChildren();var t=this.startValue,e=this.endValue;o.h(this.element).transition().ease(o.d).duration(this.durationValue).tween("text",(function(){var n=this,r=o.f(t,e);return function(t){var e=l.numberFormatter.format(r(t));o.h(n).text(e)}}))}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),l}(i.b);function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}c.values={start:Number,end:Number,duration:Number},c.numberFormatter=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});var m,g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(o,t);var e,n,r,i=f(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){var t=this.element;if(!(t instanceof HTMLFormElement))throw new Error("Must be attached to form element");t.requestSubmit()}}])&&d(e.prototype,n),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b),y=n(242),v=n(243),_=n(46),b=n(16),w=n(10),k=(m=function(t,e){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},m(t,e)},function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}m(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),S=function(t){function e(n){var r=t.call(this,n.width,n.height)||this;return r.canvas=n,r.tempCanvasElement=null,r.buffer=e.makeBufferFromCanvasImageData(n),r}return k(e,t),e.makeBufferFromCanvasImageData=function(t){var n=t.getContext("2d");if(!n)throw new Error("Couldn't get canvas context.");var r=n.getImageData(0,0,t.width,t.height);return e.toGrayscaleBuffer(r.data,t.width,t.height)},e.toGrayscaleBuffer=function(t,e,n){for(var r=new Uint8ClampedArray(e*n),i=0,o=0,a=t.length;i<a;i+=4,o++){var s=void 0;if(0===t[i+3])s=255;else s=306*t[i]+601*t[i+1]+117*t[i+2]+512>>10;r[o]=s}return r},e.prototype.getRow=function(t,e){if(t<0||t>=this.getHeight())throw new w.IllegalArgumentException("Requested row is outside the image: "+t);var n=this.getWidth(),r=t*n;return null===e?e=this.buffer.slice(r,r+n):(e.length<n&&(e=new Uint8ClampedArray(n)),e.set(this.buffer.slice(r,r+n))),e},e.prototype.getMatrix=function(){return this.buffer},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(e,n,r,i){return t.prototype.crop.call(this,e,n,r,i),this},e.prototype.isRotateSupported=function(){return!0},e.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},e.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},e.prototype.invert=function(){return new w.InvertedLuminanceSource(this)},e.prototype.getTempCanvasElement=function(){if(null===this.tempCanvasElement){var t=this.canvas.ownerDocument.createElement("canvas");t.width=this.canvas.width,t.height=this.canvas.height,this.tempCanvasElement=t}return this.tempCanvasElement},e.prototype.rotate=function(t){var n=this.getTempCanvasElement();if(!n)throw new Error("Could not create a Canvas element.");var r=t*e.DEGREE_TO_RADIANS,i=this.canvas.width,o=this.canvas.height,a=Math.ceil(Math.abs(Math.cos(r))*i+Math.abs(Math.sin(r))*o),s=Math.ceil(Math.abs(Math.sin(r))*i+Math.abs(Math.cos(r))*o);n.width=a,n.height=s;var u=n.getContext("2d");if(!u)throw new Error("Could not create a Canvas Context element.");return u.translate(a/2,s/2),u.rotate(r),u.drawImage(this.canvas,i/-2,o/-2),this.buffer=e.makeBufferFromCanvasImageData(n),this},e.DEGREE_TO_RADIANS=Math.PI/180,e}(w.LuminanceSource);function E(){return"undefined"!==typeof navigator}function C(){return!!(E()&&navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices)}var x=function(){return x=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},x.apply(this,arguments)},D=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},A=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},T=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},M={delayBetweenScanAttempts:500,delayBetweenScanSuccess:500,tryPlayVideoTimeout:5e3},L=function(){function t(t,e,n){void 0===e&&(e=new Map),void 0===n&&(n={}),this.reader=t,this.hints=e,this.options=x(x({},M),n)}return Object.defineProperty(t.prototype,"possibleFormats",{set:function(t){this.hints.set(w.DecodeHintType.POSSIBLE_FORMATS,t)},enumerable:!1,configurable:!0}),t.addVideoSource=function(t,e){try{t.srcObject=e}catch(n){console.error("got interrupted by new loading request")}},t.mediaStreamSetTorch=function(t,e){return D(this,void 0,void 0,(function(){return A(this,(function(n){switch(n.label){case 0:return[4,t.applyConstraints({advanced:[{fillLightMode:e?"flash":"off",torch:!!e}]})];case 1:return n.sent(),[2]}}))}))},t.mediaStreamIsTorchCompatible=function(e){var n,r,i=e.getVideoTracks();try{for(var o=T(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(t.mediaStreamIsTorchCompatibleTrack(s))return!0}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1},t.mediaStreamIsTorchCompatibleTrack=function(t){try{return"torch"in t.getCapabilities()}catch(e){return console.error(e),console.warn("Your browser may be not fully compatible with WebRTC and/or ImageCapture specs. Torch will not be available."),!1}},t.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&t.readyState>2},t.getMediaElement=function(t,e){var n=document.getElementById(t);if(!n)throw new w.ArgumentException("element with id '".concat(t,"' not found"));if(n.nodeName.toLowerCase()!==e.toLowerCase())throw new w.ArgumentException("element with id '".concat(t,"' must be an ").concat(e," element"));return n},t.createVideoElement=function(e){if(e instanceof HTMLVideoElement)return e;if("string"===typeof e)return t.getMediaElement(e,"video");if(!e&&"undefined"!==typeof document){var n=document.createElement("video");return n.width=200,n.height=200,n}throw new Error("Couldn't get videoElement from videoSource!")},t.prepareImageElement=function(e){if(e instanceof HTMLImageElement)return e;if("string"===typeof e)return t.getMediaElement(e,"img");if("undefined"===typeof e){var n=document.createElement("img");return n.width=200,n.height=200,n}throw new Error("Couldn't get imageElement from imageSource!")},t.prepareVideoElement=function(e){var n=t.createVideoElement(e);return n.setAttribute("autoplay","true"),n.setAttribute("muted","true"),n.setAttribute("playsinline","true"),n},t.isImageLoaded=function(t){return!!t.complete&&0!==t.naturalWidth},t.createBinaryBitmapFromCanvas=function(t){var e=new S(t),n=new w.HybridBinarizer(e);return new w.BinaryBitmap(n)},t.drawImageOnCanvas=function(t,e){t.drawImage(e,0,0)},t.getMediaElementDimensions=function(t){if(t instanceof HTMLVideoElement)return{height:t.videoHeight,width:t.videoWidth};if(t instanceof HTMLImageElement)return{height:t.naturalHeight||t.height,width:t.naturalWidth||t.width};throw new Error("Couldn't find the Source's dimensions!")},t.createCaptureCanvas=function(e){if(!e)throw new w.ArgumentException("Cannot create a capture canvas without a media element.");if("undefined"===typeof document)throw new Error('The page "Document" is undefined, make sure you\'re running in a browser.');var n=document.createElement("canvas"),r=t.getMediaElementDimensions(e),i=r.width,o=r.height;return n.style.width=i+"px",n.style.height=o+"px",n.width=i,n.height=o,n},t.tryPlayVideo=function(e){return D(this,void 0,void 0,(function(){var n;return A(this,(function(r){switch(r.label){case 0:if(null===e||void 0===e?void 0:e.ended)return console.error("Trying to play video that has ended."),[2,!1];if(t.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2,!0];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.play()];case 2:return r.sent(),[2,!0];case 3:return n=r.sent(),console.warn("It was not possible to play the video.",n),[2,!1];case 4:return[2]}}))}))},t.createCanvasFromMediaElement=function(e){var n=t.createCaptureCanvas(e),r=n.getContext("2d");if(!r)throw new Error("Couldn't find Canvas 2D Context.");return t.drawImageOnCanvas(r,e),n},t.createBinaryBitmapFromMediaElem=function(e){var n=t.createCanvasFromMediaElement(e);return t.createBinaryBitmapFromCanvas(n)},t.destroyImageElement=function(t){t.src="",t.removeAttribute("src"),t=void 0},t.listVideoInputDevices=function(){return D(this,void 0,void 0,(function(){var t,e,n,r,i,o,a,s,u,l,c,d;return A(this,(function(h){switch(h.label){case 0:if(!E())throw new Error("Can't enumerate devices, navigator is not present.");if(!C())throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=h.sent(),e=[];try{for(n=T(t),r=n.next();!r.done;r=n.next())i=r.value,"videoinput"===(o="video"===i.kind?"videoinput":i.kind)&&(a=i.deviceId||i.id,s=i.label||"Video device ".concat(e.length+1),u=i.groupId,l={deviceId:a,label:s,kind:o,groupId:u},e.push(l))}catch(f){c={error:f}}finally{try{r&&!r.done&&(d=n.return)&&d.call(n)}finally{if(c)throw c.error}}return[2,e]}}))}))},t.findDeviceById=function(e){return D(this,void 0,void 0,(function(){var n;return A(this,(function(r){switch(r.label){case 0:return[4,t.listVideoInputDevices()];case 1:return(n=r.sent())?[2,n.find((function(t){return t.deviceId===e}))]:[2]}}))}))},t.cleanVideoSource=function(t){if(t){try{t.srcObject=null}catch(e){t.src=""}t&&t.removeAttribute("src")}},t.releaseAllStreams=function(){0!==t.streamTracker.length&&t.streamTracker.forEach((function(t){t.getTracks().forEach((function(t){return t.stop()}))})),t.streamTracker=[]},t.playVideoOnLoadAsync=function(e,n){return D(this,void 0,void 0,(function(){return A(this,(function(r){switch(r.label){case 0:return[4,t.tryPlayVideo(e)];case 1:return r.sent()?[2,!0]:[2,new Promise((function(r,i){var o=setTimeout((function(){t.isVideoPlaying(e)||(i(!1),e.removeEventListener("canplay",a))}),n),a=function n(){t.tryPlayVideo(e).then((function(t){clearTimeout(o),e.removeEventListener("canplay",n),r(t)}))};e.addEventListener("canplay",a)}))]}}))}))},t.attachStreamToVideo=function(e,n,r){return void 0===r&&(r=5e3),D(this,void 0,void 0,(function(){var i;return A(this,(function(o){switch(o.label){case 0:return i=t.prepareVideoElement(n),t.addVideoSource(i,e),[4,t.playVideoOnLoadAsync(i,r)];case 1:return o.sent(),[2,i]}}))}))},t._waitImageLoad=function(e){return new Promise((function(n,r){var i=setTimeout((function(){t.isImageLoaded(e)||(e.removeEventListener("load",o),r())}),1e4),o=function t(){clearTimeout(i),e.removeEventListener("load",t),n()};e.addEventListener("load",o)}))},t.checkCallbackFnOrThrow=function(t){if(!t)throw new w.ArgumentException("`callbackFn` is a required parameter, you cannot capture results without it.")},t.disposeMediaStream=function(t){t.getVideoTracks().forEach((function(t){return t.stop()})),t=void 0},t.prototype.decode=function(e){var n=t.createCanvasFromMediaElement(e);return this.decodeFromCanvas(n)},t.prototype.decodeBitmap=function(t){return this.reader.decode(t,this.hints)},t.prototype.decodeFromCanvas=function(e){var n=t.createBinaryBitmapFromCanvas(e);return this.decodeBitmap(n)},t.prototype.decodeFromImageElement=function(e){return D(this,void 0,void 0,(function(){var n;return A(this,(function(r){switch(r.label){case 0:if(!e)throw new w.ArgumentException("An image element must be provided.");return n=t.prepareImageElement(e),[4,this._decodeOnLoadImage(n)];case 1:return[2,r.sent()]}}))}))},t.prototype.decodeFromImageUrl=function(e){return D(this,void 0,void 0,(function(){var n;return A(this,(function(r){switch(r.label){case 0:if(!e)throw new w.ArgumentException("An URL must be provided.");(n=t.prepareImageElement()).src=e,r.label=1;case 1:return r.trys.push([1,,3,4]),[4,this.decodeFromImageElement(n)];case 2:return[2,r.sent()];case 3:return t.destroyImageElement(n),[7];case 4:return[2]}}))}))},t.prototype.decodeFromConstraints=function(e,n,r){return D(this,void 0,void 0,(function(){var i,o;return A(this,(function(a){switch(a.label){case 0:return t.checkCallbackFnOrThrow(r),[4,this.getUserMedia(e)];case 1:i=a.sent(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.decodeFromStream(i,n,r)];case 3:return[2,a.sent()];case 4:throw o=a.sent(),t.disposeMediaStream(i),o;case 5:return[2]}}))}))},t.prototype.decodeFromStream=function(e,n,r){return D(this,void 0,void 0,(function(){var i,o,a,s,u,l,c,d,h,f=this;return A(this,(function(p){switch(p.label){case 0:return t.checkCallbackFnOrThrow(r),i=this.options.tryPlayVideoTimeout,[4,t.attachStreamToVideo(e,n,i)];case 1:return o=p.sent(),a=function(){t.disposeMediaStream(e),t.cleanVideoSource(o)},s=this.scan(o,r,a),u=e.getVideoTracks(),l=x(x({},s),{stop:function(){s.stop()},streamVideoConstraintsApply:function(t,e){return D(this,void 0,void 0,(function(){var n,r,i,o,a,s;return A(this,(function(l){switch(l.label){case 0:n=e?u.filter(e):u,l.label=1;case 1:l.trys.push([1,6,7,8]),r=T(n),i=r.next(),l.label=2;case 2:return i.done?[3,5]:[4,i.value.applyConstraints(t)];case 3:l.sent(),l.label=4;case 4:return i=r.next(),[3,2];case 5:return[3,8];case 6:return o=l.sent(),a={error:o},[3,8];case 7:try{i&&!i.done&&(s=r.return)&&s.call(r)}finally{if(a)throw a.error}return[7];case 8:return[2]}}))}))},streamVideoConstraintsGet:function(t){return u.find(t).getConstraints()},streamVideoSettingsGet:function(t){return u.find(t).getSettings()},streamVideoCapabilitiesGet:function(t){return u.find(t).getCapabilities()}}),t.mediaStreamIsTorchCompatible(e)&&(c=null===u||void 0===u?void 0:u.find((function(e){return t.mediaStreamIsTorchCompatibleTrack(e)})),d=function(e){return D(f,void 0,void 0,(function(){return A(this,(function(n){switch(n.label){case 0:return[4,t.mediaStreamSetTorch(c,e)];case 1:return n.sent(),[2]}}))}))},l.switchTorch=d,h=function(){s.stop(),d(!1)},l.stop=h),[2,l]}}))}))},t.prototype.decodeFromVideoDevice=function(e,n,r){return D(this,void 0,void 0,(function(){var i;return A(this,(function(o){switch(o.label){case 0:return t.checkCallbackFnOrThrow(r),i={video:e?{deviceId:{exact:e}}:{facingMode:"environment"}},[4,this.decodeFromConstraints(i,n,r)];case 1:return[2,o.sent()]}}))}))},t.prototype.decodeFromVideoElement=function(e,n){return D(this,void 0,void 0,(function(){var r,i;return A(this,(function(o){switch(o.label){case 0:if(t.checkCallbackFnOrThrow(n),!e)throw new w.ArgumentException("A video element must be provided.");return r=t.prepareVideoElement(e),i=this.options.tryPlayVideoTimeout,[4,t.playVideoOnLoadAsync(r,i)];case 1:return o.sent(),[2,this.scan(r,n)]}}))}))},t.prototype.decodeFromVideoUrl=function(e,n){return D(this,void 0,void 0,(function(){var r,i,o;return A(this,(function(a){switch(a.label){case 0:if(t.checkCallbackFnOrThrow(n),!e)throw new w.ArgumentException("An URL must be provided.");return(r=t.prepareVideoElement()).src=e,i=function(){t.cleanVideoSource(r)},o=this.options.tryPlayVideoTimeout,[4,t.playVideoOnLoadAsync(r,o)];case 1:return a.sent(),[2,this.scan(r,n,i)]}}))}))},t.prototype.decodeOnceFromConstraints=function(t,e){return D(this,void 0,void 0,(function(){var n;return A(this,(function(r){switch(r.label){case 0:return[4,this.getUserMedia(t)];case 1:return n=r.sent(),[4,this.decodeOnceFromStream(n,e)];case 2:return[2,r.sent()]}}))}))},t.prototype.decodeOnceFromStream=function(e,n){return D(this,void 0,void 0,(function(){var r,i;return A(this,(function(o){switch(o.label){case 0:return r=Boolean(n),[4,t.attachStreamToVideo(e,n)];case 1:i=o.sent(),o.label=2;case 2:return o.trys.push([2,,4,5]),[4,this.scanOneResult(i)];case 3:return[2,o.sent()];case 4:return r||t.cleanVideoSource(i),[7];case 5:return[2]}}))}))},t.prototype.decodeOnceFromVideoDevice=function(t,e){return D(this,void 0,void 0,(function(){var n;return A(this,(function(r){switch(r.label){case 0:return n={video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},[4,this.decodeOnceFromConstraints(n,e)];case 1:return[2,r.sent()]}}))}))},t.prototype.decodeOnceFromVideoElement=function(e){return D(this,void 0,void 0,(function(){var n,r;return A(this,(function(i){switch(i.label){case 0:if(!e)throw new w.ArgumentException("A video element must be provided.");return n=t.prepareVideoElement(e),r=this.options.tryPlayVideoTimeout,[4,t.playVideoOnLoadAsync(n,r)];case 1:return i.sent(),[4,this.scanOneResult(n)];case 2:return[2,i.sent()]}}))}))},t.prototype.decodeOnceFromVideoUrl=function(e){return D(this,void 0,void 0,(function(){var n,r;return A(this,(function(i){switch(i.label){case 0:if(!e)throw new w.ArgumentException("An URL must be provided.");(n=t.prepareVideoElement()).src=e,r=this.decodeOnceFromVideoElement(n),i.label=1;case 1:return i.trys.push([1,,3,4]),[4,r];case 2:return[2,i.sent()];case 3:return t.cleanVideoSource(n),[7];case 4:return[2]}}))}))},t.prototype.scanOneResult=function(t,e,n,r){var i=this;return void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=!0),new Promise((function(o,a){i.scan(t,(function(t,i,s){if(t)return o(t),void s.stop();if(i){if(i instanceof w.NotFoundException&&e)return;if(i instanceof w.ChecksumException&&n)return;if(i instanceof w.FormatException&&r)return;s.stop(),a(i)}}))}))},t.prototype.scan=function(e,n,r){var i=this;t.checkCallbackFnOrThrow(n);var o=t.createCaptureCanvas(e),a=o.getContext("2d");if(!a)throw new Error("Couldn't create canvas for visual element scan.");var s,u=function(){a=void 0,o=void 0},l=!1,c={stop:function(){l=!0,clearTimeout(s),u(),r&&r()}};return function d(){if(!l)try{t.drawImageOnCanvas(a,e);var h=i.decodeFromCanvas(o);n(h,void 0,c),s=setTimeout(d,i.options.delayBetweenScanSuccess)}catch(g){n(void 0,g,c);var f=g instanceof w.ChecksumException,p=g instanceof w.FormatException,m=g instanceof w.NotFoundException;if(f||p||m)return void(s=setTimeout(d,i.options.delayBetweenScanAttempts));u(),r&&r(g)}}(),c},t.prototype._decodeOnLoadImage=function(e){return D(this,void 0,void 0,(function(){return A(this,(function(n){switch(n.label){case 0:return t.isImageLoaded(e)?[3,2]:[4,t._waitImageLoad(e)];case 1:n.sent(),n.label=2;case 2:return[2,this.decode(e)]}}))}))},t.prototype.getUserMedia=function(e){return D(this,void 0,void 0,(function(){var n;return A(this,(function(r){switch(r.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return n=r.sent(),t.streamTracker.push(n),[2,n]}}))}))},t.streamTracker=[],t}(),O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),I=(function(t){function e(e,n){return t.call(this,new w.AztecCodeReader,e,n)||this}O(e,t)}(L),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),P=(function(t){function e(e,n){return t.call(this,new w.MultiFormatOneDReader(e),e,n)||this}I(e,t)}(L),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),R=(function(t){function e(e,n){return t.call(this,new w.DataMatrixReader,e,n)||this}P(e,t)}(L),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),N=(function(t){function e(e,n){var r=this,i=new w.MultiFormatReader;return i.setHints(e),(r=t.call(this,i,e,n)||this).reader=i,r}R(e,t),Object.defineProperty(e.prototype,"possibleFormats",{set:function(t){this.hints.set(w.DecodeHintType.POSSIBLE_FORMATS,t),this.reader.setHints(this.hints)},enumerable:!1,configurable:!0}),e.prototype.decodeBitmap=function(t){return this.reader.decodeWithState(t)},e.prototype.setHints=function(t){this.hints=t,this.reader.setHints(this.hints)}}(L),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),F=(function(t){function e(e,n){return t.call(this,new w.PDF417Reader,e,n)||this}N(e,t)}(L),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),j=(function(t){function e(e,n){return t.call(this,new w.QRCodeReader,e,n)||this}F(e,t)}(L),"http://www.w3.org/2000/svg"),B=(function(){function t(t){if("string"===typeof t){var e=document.getElementById(t);if(!e)throw new Error("Could not find a Container element with '".concat(t,"'."));this.containerElement=e}else this.containerElement=t}t.prototype.write=function(e,n,r,i){if(0===e.length)throw new w.IllegalArgumentException("Found empty contents");if(n<0||r<0)throw new w.IllegalArgumentException("Requested dimensions are too small: "+n+"x"+r);var o=i&&void 0!==i.get(w.EncodeHintType.MARGIN)?Number.parseInt(i.get(w.EncodeHintType.MARGIN).toString(),10):t.QUIET_ZONE_SIZE,a=this.encode(i,e);return this.renderResult(a,n,r,o)},t.prototype.createSVGElement=function(e,n){var r=document.createElementNS(t.SVG_NS,"svg");return r.setAttributeNS(j,"width",n.toString()),r.setAttributeNS(j,"height",e.toString()),r},t.prototype.createSvgPathPlaceholderElement=function(e,n){var r=document.createElementNS(t.SVG_NS,"path");return r.setAttributeNS(j,"d","M0 0h".concat(e,"v").concat(n,"H0z")),r.setAttributeNS(j,"fill","none"),r},t.prototype.createSvgRectElement=function(e,n,r,i){var o=document.createElementNS(t.SVG_NS,"rect");return o.setAttributeNS(j,"x",e.toString()),o.setAttributeNS(j,"y",n.toString()),o.setAttributeNS(j,"height",r.toString()),o.setAttributeNS(j,"width",i.toString()),o.setAttributeNS(j,"fill","#000000"),o},t.prototype.encode=function(t,e){var n=w.QRCodeDecoderErrorCorrectionLevel.L;if(t&&void 0!==t.get(w.EncodeHintType.ERROR_CORRECTION)){var r=t.get(w.EncodeHintType.ERROR_CORRECTION).toString();n=w.QRCodeDecoderErrorCorrectionLevel.fromString(r)}return w.QRCodeEncoder.encode(e,n,t)},t.prototype.renderResult=function(t,e,n,r){var i=t.getMatrix();if(null===i)throw new w.IllegalStateException;var o=i.getWidth(),a=i.getHeight(),s=o+2*r,u=a+2*r,l=Math.max(e,s),c=Math.max(n,u),d=Math.min(Math.floor(l/s),Math.floor(c/u)),h=Math.floor((l-o*d)/2),f=Math.floor((c-a*d)/2),p=this.createSVGElement(l,c),m=this.createSvgPathPlaceholderElement(e,n);p.appendChild(m),this.containerElement.appendChild(p);for(var g=0,y=f;g<a;g++,y+=d)for(var v=0,_=h;v<o;v++,_+=d)if(1===i.get(v,g)){var b=this.createSvgRectElement(_,y,d,d);p.appendChild(b)}return p},t.QUIET_ZONE_SIZE=4,t.SVG_NS="http://www.w3.org/2000/svg"}(),"http://www.w3.org/2000/svg");!function(){function t(){}t.prototype.write=function(e,n,r,i){if(0===e.length)throw new w.IllegalArgumentException("Found empty contents");if(n<0||r<0)throw new w.IllegalArgumentException("Requested dimensions are too small: "+n+"x"+r);var o=w.QRCodeDecoderErrorCorrectionLevel.L,a=t.QUIET_ZONE_SIZE;if(i){if(void 0!==i.get(w.EncodeHintType.ERROR_CORRECTION)){var s=i.get(w.EncodeHintType.ERROR_CORRECTION).toString();o=w.QRCodeDecoderErrorCorrectionLevel.fromString(s)}void 0!==i.get(w.EncodeHintType.MARGIN)&&(a=Number.parseInt(i.get(w.EncodeHintType.MARGIN).toString(),10))}var u=w.QRCodeEncoder.encode(e,o,i);return this.renderResult(u,n,r,a)},t.prototype.writeToDom=function(t,e,n,r,i){if("string"===typeof t){var o=document.querySelector(t);if(!o)throw new Error("Could no find the target HTML element.");t=o}var a=this.write(e,n,r,i);t instanceof HTMLElement&&t.appendChild(a)},t.prototype.renderResult=function(t,e,n,r){var i=t.getMatrix();if(null===i)throw new w.IllegalStateException;for(var o=i.getWidth(),a=i.getHeight(),s=o+2*r,u=a+2*r,l=Math.max(e,s),c=Math.max(n,u),d=Math.min(Math.floor(l/s),Math.floor(c/u)),h=Math.floor((l-o*d)/2),f=Math.floor((c-a*d)/2),p=this.createSVGElement(l,c),m=0,g=f;m<a;m++,g+=d)for(var y=0,v=h;y<o;y++,v+=d)if(1===i.get(y,m)){var _=this.createSvgRectElement(v,g,d,d);p.appendChild(_)}return p},t.prototype.createSVGElement=function(t,e){var n=document.createElementNS(B,"svg"),r=t.toString(),i=e.toString();return n.setAttribute("height",i),n.setAttribute("width",r),n.setAttribute("viewBox","0 0 "+r+" "+i),n},t.prototype.createSvgRectElement=function(t,e,n,r){var i=document.createElementNS(B,"rect");return i.setAttribute("x",t.toString()),i.setAttribute("y",e.toString()),i.setAttribute("height",n.toString()),i.setAttribute("width",r.toString()),i.setAttribute("fill","#000000"),i},t.QUIET_ZONE_SIZE=4}();function Y(t){return function(t){if(Array.isArray(t))return H(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return H(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function z(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var W=0;function V(t){return"__private_"+W+++"_"+t}function U(){U=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(A){u=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new C(i||[]);return r(a,"_invoke",{value:w(t,n,s)}),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(A){return{type:"throw",arg:A}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(x([])));y&&y!==e&&n.call(y,o)&&(m=y);var v=p.prototype=h.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function i(r,o,a,s){var u=c(t[r],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,s)}))}s(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return D()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function k(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:D}}function D(){return{value:void 0,done:!0}}return f.prototype=p,r(v,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:f,configurable:!0}),f.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},t.awrap=function(t){return{__await:t}},_(b.prototype),u(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(v),u(v,s,"Generator"),u(v,o,(function(){return this})),u(v,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=x,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function q(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function G(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){q(o,r,i,a,s,"next",t)}function s(t){q(o,r,i,a,s,"throw",t)}a(void 0)}))}}function $(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Z(t,e,n){return e&&K(t.prototype,e),n&&K(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function X(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rt(t,e)}function J(t){var e=nt();return function(){var n,r=it(t);if(e){var i=it(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Q(t)}(this,n)}}function Q(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tt(t){var e="function"===typeof Map?new Map:void 0;return tt=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return et(t,arguments,it(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),rt(r,t)},tt(t)}function et(t,e,n){return et=nt()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&rt(i,n.prototype),i},et.apply(null,arguments)}function nt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function rt(t,e){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rt(t,e)}function it(t){return it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},it(t)}function ot(t){return new Promise((function(e){return setTimeout(e,t)}))}var at=function(t){X(r,t);var e,n=J(r);function r(t){var e;return $(this,r),(e=n.call(this)).reader=new w.BrowserMultiFormatReader,e.cancel=new AbortController,e.elem=t,e}return Z(r,[{key:"start",value:(e=G(U().mark((function t(){var e,n,r,i,o,a,s,u;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=100,this.cancel=new AbortController;case 2:if(!this.cancel.signal.aborted){t.next=5;break}return t.abrupt("break",12);case 5:n=void 0;try{r=new S(this.elem),i=new w.HybridBinarizer(r),o=new w.BinaryBitmap(i),n=this.reader.decodeBitmap(o)}catch(l){l instanceof w.NotFoundException||(console.error(l),alert(l))}return n&&(a=null,4===(s=n.getResultPoints()).length&&(a=s.map((function(t){return{x:t.getX(),y:t.getY()}}))),u={value:n.getText(),cornerPoints:a},this.dispatchEvent(new CustomEvent("scan",{detail:{results:[u]}}))),t.next=10,ot(e);case 10:t.next=2;break;case 12:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"stop",value:function(){this.reader.reset(),this.cancel.abort()}}]),r}(tt(EventTarget));at.supported=!0;var st=function(t){X(i,t);var e,n,r=J(i);function i(t){var e;return $(this,i),(e=r.call(this)).detector=new BarcodeDetector,e.cancel=new AbortController,e.elem=t,e}return Z(i,[{key:"start",value:(n=G(U().mark((function t(){var e,n,r;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=200,this.cancel=new AbortController;case 2:if(!this.cancel.signal.aborted){t.next=5;break}return t.abrupt("break",13);case 5:return t.next=7,this.detector.detect(this.elem);case 7:return(n=t.sent).length>0&&(r=n.map((function(t){return{value:t.rawValue,cornerPoints:t.cornerPoints}})),this.dispatchEvent(new CustomEvent("scan",{detail:{results:r}}))),t.next=11,ot(e);case 11:t.next=2;break;case 13:case"end":return t.stop()}}),t,this)}))),function(){return n.apply(this,arguments)})},{key:"stop",value:function(){this.cancel.abort()}}],[{key:"getSupportedFormats",value:(e=G(U().mark((function t(){return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,BarcodeDetector.getSupportedFormats();case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)}))),function(){return e.apply(this,arguments)})}]),i}(tt(EventTarget));st.supported="BarcodeDetector"in window;var ut=V("timeout"),lt=V("timeoutHandler"),ct=V("inputString"),dt=V("keyup"),ht=function(t){X(n,t);var e=J(n);function n(){var t;return $(this,n),t=e.call(this),Object.defineProperty(Q(t),dt,{value:ft}),Object.defineProperty(Q(t),lt,{writable:!0,value:0}),Object.defineProperty(Q(t),ct,{writable:!0,value:""}),document.addEventListener("keyup",(function(e){return z(Q(t),dt)[dt](e)})),z(Q(t),lt)[lt]&&clearTimeout(z(Q(t),lt)[lt]),z(Q(t),lt)[lt]=setTimeout((function(){z(Q(t),ct)[ct]=""}),z(n,ut)[ut]),t}return Z(n,[{key:"close",value:function(){document.removeEventListener("keyup",z(this,dt)[dt])}}]),n}(tt(EventTarget));function ft(t){var e,n=this;1===(null===(e=t.key)||void 0===e?void 0:e.length)&&(z(this,lt)[lt]&&(clearTimeout(z(this,lt)[lt]),z(this,ct)[ct]+=t.key),z(this,lt)[lt]=setTimeout((function(){z(n,ct)[ct].length>3&&n.dispatchEvent(new CustomEvent("scan",{detail:{results:[{value:z(n,ct)[ct],cornerPoints:[],hardware:!0}]}})),z(n,ct)[ct]=""}),z(ht,ut)[ut]))}Object.defineProperty(ht,ut,{writable:!0,value:20});var pt=function(t){X(s,t);var e,n,r,i,o,a=J(s);function s(){return $(this,s),a.apply(this,arguments)}return Z(s,[{key:"initialize",value:function(){var t;this.idValue||(this.idValue=null===(t=window.crypto)||void 0===t?void 0:t.randomUUID())}},{key:"connect",value:(o=G(U().mark((function t(){var e=this;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(st.supported&&!this.disableNativeValue?(console.debug("Using native BarcodeDetector API"),this.scanner=new st(this.previewTarget)):(console.debug("Using JS barcode library"),this.scanner=new at(this.previewTarget)),this.hardwareScanner=new ht,this.lastScannedCode="",this.clearScanTimeout=0,this.cleanup(),this.updateButton(),document.addEventListener("scanning-started",this.activeScanner.bind(this)),this.ctx=this.previewTarget.getContext("2d"),this.scanner.addEventListener("scan",(function(t){e.isFrozen||e.handleScan(t.detail.results)})),this.hardwareScanner.addEventListener("scan",(function(t){e.isScanning&&e.handleScan(t.detail.results)})),this.updateSettings(),this.modeSettingTarget.value=this.scannerSourcePreference(),this.audioSettingTarget.checked=this.audioFeedbackEnabled(),"hardware"===this.scannerSourcePreference()&&this.deviceSettingTarget.parentNode.classList.add("d-none"),!this.autostartValue){t.next=17;break}return t.next=17,this.start();case 17:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"disconnect",value:function(){this.cleanup(),document.removeEventListener("scanning-started",this.activeScanner.bind(this))}},{key:"cleanup",value:function(){var t,e,n,r,i,o;this.hasScannerBoxTarget&&this.scannerBoxTarget.classList.add("d-none"),null===(t=this.device)||void 0===t||null===(e=t.getTracks)||void 0===e||null===(n=(r=e.call(t)).forEach)||void 0===n||n.call(r,(function(t){return t.stop()})),this.isScanning=!1,this.isFrozen=!1,this.hasStartedResolve=null,this.device=null,this.deviceId=null,null===(i=this.scanner)||void 0===i||i.stop(),this.updateButton(),null===(o=this.hardwareScanner)||void 0===o||o.close(),this.hasHardwareBoxTarget&&this.hardwareBoxTarget.classList.add("d-none"),this.clearScanTimeout&&clearTimeout(this.clearScanTimeout)}},{key:"updateButton",value:function(){this.hasStartButtonTarget&&this.hasStopButtonTarget&&(this.startButtonTarget.classList.toggle("d-none",this.isScanning),this.stopButtonTarget.classList.toggle("d-none",!this.isScanning))}},{key:"getBestMediaDevice",value:(i=G(U().mark((function t(){var e,n,r,i,o,a,u,l,c,d,h;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=null===s.devices,this.deviceId=null,!e){t.next=13;break}return t.prev=3,t.next=6,navigator.permissions.query({name:"camera"});case 6:n=t.sent,e="granted"!==n.state,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),console.error("Could not check permissions",t.t0);case 13:if(!e){t.next=36;break}return t.prev=14,t.next=17,navigator.mediaDevices.getUserMedia({audio:!1,video:{facingMode:"environment"}});case 17:return i=t.sent,t.next=20,navigator.mediaDevices.enumerateDevices();case 20:if(o=t.sent,s.devices=o.filter((function(t){return"videoinput"===t.kind})),1!==s.devices.length){t.next=24;break}return t.abrupt("return",i);case 24:if(a=null===(r=s.devices.find((function(t){return"Back Ultra Wide Camera"===t.label})))||void 0===r?void 0:r.deviceId,this.videoDevicePreference()||a){t.next=28;break}return t.abrupt("return",i);case 28:i.getTracks().forEach((function(t){return t.stop()})),t.next=34;break;case 31:t.prev=31,t.t1=t.catch(14),console.error("Couldn't load devices for needs permission check",t.t1);case 34:t.next=41;break;case 36:if(s.devices){t.next=41;break}return t.next=39,navigator.mediaDevices.enumerateDevices();case 39:u=t.sent,s.devices=u.filter((function(t){return"videoinput"===t.kind}));case 41:if(s.devices){t.next=43;break}return t.abrupt("return",null);case 43:if(t.prev=43,1!==s.devices.length){t.next=48;break}return t.next=47,navigator.mediaDevices.getUserMedia({audio:!1,video:{facingMode:"environment"}});case 47:return t.abrupt("return",t.sent);case 48:t.next=53;break;case 50:return t.prev=50,t.t2=t.catch(43),t.abrupt("return",null);case 53:if(t.prev=53,c=null===(l=s.devices.find((function(t){return"Back Ultra Wide Camera"===t.label})))||void 0===l?void 0:l.deviceId,!(d=this.videoDevicePreference()||c)){t.next=62;break}return t.next=59,navigator.mediaDevices.getUserMedia({audio:!1,video:{deviceId:d}});case 59:return h=t.sent,this.deviceId=d,t.abrupt("return",h);case 62:t.next=67;break;case 64:t.prev=64,t.t3=t.catch(53),console.error("Could not load camera from preferences",t.t3);case 67:return t.prev=67,t.next=70,navigator.mediaDevices.getUserMedia({audio:!1,video:{facingMode:"environment"}});case 70:return t.abrupt("return",t.sent);case 73:return t.prev=73,t.t4=t.catch(67),t.abrupt("return",null);case 76:case"end":return t.stop()}}),t,this,[[3,10],[14,31],[43,50],[53,64],[67,73]])}))),function(){return i.apply(this,arguments)})},{key:"updateSettings",value:function(){var t,e,n=null===(t=s.devices)||void 0===t?void 0:t.map((function(t){var e=document.createElement("option");return e.value=t.deviceId,e.appendChild(document.createTextNode(t.label)),e}));n&&((e=this.deviceSettingTarget).replaceChildren.apply(e,Y(n)),this.deviceSettingTarget.disabled=!1);this.deviceId&&(this.deviceSettingTarget.value=this.deviceId)}},{key:"setScannerSourcePreference",value:(r=G(U().mark((function t(e){return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return localStorage.setItem("scanner-source",e),this.deviceSettingTarget.parentNode.classList.toggle("d-none","hardware"===e),this.cleanup(),t.next=5,this.start();case 5:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"scannerSourcePreference",value:function(){return localStorage.getItem("scanner-source")||"camera"}},{key:"videoDevicePreference",value:function(){return localStorage.getItem("scanner-camera-device-id")}},{key:"setVideoDevicePreference",value:(n=G(U().mark((function t(e){return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s.devices.find((function(t){return t.deviceId==e}))){t.next=3;break}throw new Error("Can't set device preference to unknown device: ".concat(e));case 3:return localStorage.setItem("scanner-camera-device-id",e),this.cleanup(),t.next=7,this.start();case 7:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"audioFeedbackEnabled",value:function(){return"true"===(localStorage.getItem("scanner-audio-feedback")||"true")}},{key:"setAudioFeedback",value:function(t){localStorage.setItem("scanner-audio-feedback",t?"true":"false")}},{key:"start",value:(e=G(U().mark((function t(){var e,n,r,i=this;return U().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.isScanning){t.next=3;break}return this.cleanup(),t.abrupt("return");case 3:if(e=this.scannerSourcePreference(),!(n="camera"===e)){t.next=11;break}return this.scannerBoxTarget.classList.remove("d-none"),t.next=9,this.getBestMediaDevice();case 9:this.device=t.sent,this.device||(n=!1);case 11:if(this.isScanning=!0,this.updateSettings(),!n){t.next=25;break}return this.isFrozen=!1,r=new Promise((function(t){i.hasStartedResolve=t})),this.videoTarget.srcObject=this.device,this.videoTarget.play(),t.next=20,r;case 20:this.copyToCanvas(),this.scanner.start(),this.modeSettingTarget.value="camera",t.next=26;break;case 25:this.hasHardwareBoxTarget&&(this.scannerBoxTarget.classList.add("d-none"),this.hardwareBoxTarget.classList.remove("d-none"),this.modeSettingTarget.value="hardware");case 26:document.dispatchEvent(new CustomEvent("scanning-started",{detail:{id:this.idValue}})),this.updateButton();case 28:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"copyToCanvas",value:function(){this.isScanning&&(this.isFrozen||this.ctx.drawImage(this.videoTarget,0,0,this.videoTarget.videoWidth,this.videoTarget.videoHeight),requestAnimationFrame(this.copyToCanvas.bind(this)))}},{key:"handleScan",value:function(t){var e=this;if(0!==t.length){var n=t[0];n.value!==this.lastScannedCode&&(this.clearScanTimeout&&clearTimeout(this.clearScanTimeout),this.clearScanTimeout=setTimeout((function(){return e.lastScannedCode=""}),3e3),this.lastScannedCode=n.value,this.dispatch("scan",{detail:{text:n.value}}),n.hardware||this.scanFeedback(),this.hasValueTarget&&(this.valueTarget.value=n.value),(!0===this.singleValue||this.hasRedirectValue||this.hasStreamValue)&&(this.isFrozen=!0,this.drawBoundingBox(n),setTimeout((function(){if(!0===e.singleValue&&e.cleanup(),e.hasRedirectValue){var t=new URL(e.redirectValue,window.location.origin);t.searchParams.append("value",n.value),_.a.visit(t)}e.hasStreamValue&&new b.a("post",e.streamValue,{body:{value:n.value},responseKind:"turbo-stream"}).perform().then((function(t){var n=t.response.headers.get("x-scanner-feedback");n&&e.scanFeedback(!0,!0,n),e.isFrozen=!1}))}),this.delayValue)))}}},{key:"scanFeedback",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"normal";if(this.audioFeedbackEnabled()){if(e&&"vibrate"in window.navigator){var r="normal"===n?150:400;window.navigator.vibrate(r)}if(t){var i=new AudioContext,o=i.createOscillator(),a=i.createGain();o.connect(a),a.connect(i.destination),"strong"===n?(a.gain.value=.15,o.frequency.value=654,o.type="sawtooth",o.start(0),o.stop(.35),a.gain.setValueAtTime(0,i.currentTime+.1),a.gain.setValueAtTime(.15,i.currentTime+.25)):(a.gain.value=.25,o.frequency.value=495,o.type="triangle",o.start(0),o.stop(.15))}}}},{key:"playing",value:function(t){t.target.scrollIntoView({block:"end"}),this.ctx.canvas.width=this.videoTarget.videoWidth;var e=this.previewTarget.parentNode;this.ctx.canvas.height=this.ctx.canvas.width*(e.clientHeight/e.clientWidth),this.hasStartedResolve&&this.hasStartedResolve()}},{key:"drawBoundingBox",value:function(t){var e=t.cornerPoints;if(4===(null===e||void 0===e?void 0:e.length)){this.ctx.strokeStyle="red",this.ctx.lineWidth=5,this.ctx.beginPath(),this.ctx.moveTo(1*e[0].x,1*e[0].y),this.ctx.lineTo(1*e[1].x,1*e[1].y),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(1*e[1].x,1*e[1].y),this.ctx.lineTo(1*e[2].x,1*e[2].y),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(1*e[2].x,1*e[2].y),this.ctx.lineTo(1*e[3].x,1*e[3].y),this.ctx.stroke(),this.ctx.beginPath(),this.ctx.moveTo(1*e[3].x,1*e[3].y),this.ctx.lineTo(1*e[0].x,1*e[0].y),this.ctx.stroke()}}},{key:"activeScanner",value:function(t){t.detail.id!==this.idValue&&this.cleanup()}},{key:"changeMode",value:function(t){var e=t.target.value;this.setScannerSourcePreference(e)}},{key:"changeDevice",value:function(t){var e=t.target.value;this.setVideoDevicePreference(e)}},{key:"changeAudio",value:function(t){var e=t.target.checked;this.setAudioFeedback(e)}},{key:"resetSettings",value:function(){localStorage.clear()}}]),s}(i.b);function mt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function gt(t,e){return gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gt(t,e)}function yt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vt(t);if(e){var i=vt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function vt(t){return vt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vt(t)}pt.targets=["scannerBox","preview","video","hardwareBox","value","startButton","stopButton","modeSetting","deviceSetting","audioSetting"],pt.values={id:String,single:Boolean,redirect:String,stream:String,delay:{type:Number,default:500},autostart:{type:Boolean,default:!1},disableNative:{type:Boolean,default:!1}},pt.devices=null;var _t=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gt(t,e)}(o,t);var e,n,r,i=yt(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,r=[{key:"targets",get:function(){return["input","count","max"]}}],(n=[{key:"initialize",value:function(){this.maxTarget.innerHTML=this.inputTarget.maxLength,this.countTarget.innerHTML=this.inputTarget.value.length||"0"}},{key:"keyup",value:function(t){this.countTarget.innerHTML=t.target.value.length}}])&&mt(e.prototype,n),r&&mt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b),bt=n(244);function wt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function kt(t,e){return kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kt(t,e)}function St(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Et(t);if(e){var i=Et(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Et(t){return Et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Et(t)}var Ct=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kt(t,e)}(o,t);var e,n,r,i=St(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"fetchSites",value:function(t){Object(b.b)("/configuration/".concat(this.configIdValue,"/fetch_copy_config_data?organization_id=").concat(t.target.value),{responseKind:"turbo-stream"})}},{key:"fetchWorkspaces",value:function(t){Object(b.b)("/configuration/".concat(this.configIdValue,"/fetch_copy_config_data?site_id=").concat(t.target.value),{responseKind:"turbo-stream"})}},{key:"fetchKits",value:function(t){Object(b.b)("/configuration/".concat(this.configIdValue,"/fetch_copy_config_data?workspace_id=").concat(t.target.value),{responseKind:"turbo-stream"})}}])&&wt(e.prototype,n),r&&wt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);Ct.values={configId:String};var xt=n(245),Dt=n(246);function At(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Tt(t,e){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Tt(t,e)}function Mt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Lt(t);if(e){var i=Lt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Lt(t){return Lt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lt(t)}var Ot=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tt(t,e)}(o,t);var e,n,r,i=Mt(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"initialize",value:function(){var t=this;this.observer=new MutationObserver((function(){return t.update()}))}},{key:"connect",value:function(){this.observer.observe(this.entriesTarget,{childList:!0}),this.update()}},{key:"disconnect",value:function(){this.observer.disconnect()}},{key:"update",value:function(){var t=this.entriesTarget.childElementCount>0;this.hasEmptyMessageTarget&&this.emptyMessageTarget.classList.toggle("d-none",t),(this.hasContentTarget?this.contentTarget:this.entriesTarget).classList.toggle("d-none",!t)}}])&&At(e.prototype,n),r&&At(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function It(t){return function(t){if(Array.isArray(t))return Nt(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Rt(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pt(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||Rt(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 Rt(t,e){if(t){if("string"===typeof t)return Nt(t,e);var n=Object.prototype.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)?Nt(t,e):void 0}}function Nt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function jt(t,e){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jt(t,e)}function Bt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Yt(t);if(e){var i=Yt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Yt(t){return Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yt(t)}function Ht(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}Ot.targets=["entries","content","emptyMessage"];var zt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&jt(t,e)}(o,t);var e,n,r,i=Bt(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,n=[{key:"initialize",value:function(){this.hasConnected=!1}},{key:"connect",value:function(){this.hasConnected=!0,document.addEventListener("animationend",this.finished.bind(this))}},{key:"disconnect",value:function(){document.removeEventListener("animationend",this.finished.bind(this))}},{key:"fadeTargetConnected",value:function(t){var e=this;if(this.hasConnected&&(this.afterAppearValue||Ht(t))){var n=t.dataset.fadeMode;if(this.afterAppearValue){if(Ht(t))return void this.addClasses(t,n);var r=new IntersectionObserver((function(i){Pt(i,1)[0].isIntersecting&&(e.addClasses(t,n),r.disconnect())}));r.observe(t)}else this.addClasses(t,n)}}},{key:"addClasses",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.style.setProperty("--content-height","".concat(t.offsetHeight,"px")),t.classList.add("controller-fade","fade-".concat(e||this.modeValue))}},{key:"finished",value:function(t){t.target.classList.remove("controller-fade")}}],n&&Ft(e.prototype,n),r&&Ft(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function Wt(t){return function(t){if(Array.isArray(t))return Vt(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return Vt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function qt(t,e){return qt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},qt(t,e)}function Gt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=$t(t);if(e){var i=$t(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function $t(t){return $t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$t(t)}zt.targets=["fade"],zt.values={mode:{type:String,default:"background"},afterAppear:{type:Boolean,default:!1}},document.addEventListener("turbo:before-cache",(function(){It(document.querySelectorAll(".controller-fade")).forEach((function(t){t.classList.remove("controller-fade")}))}));var Kt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&qt(t,e)}(o,t);var e,n,r,i=Gt(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.missingRevealTargets.forEach((function(t){return t.classList.add("d-none")})),this.lastValue=this.fieldTarget.value}},{key:"knownValues",value:function(){return Wt(this.datalistTarget.options).map((function(t){return t.value}))}},{key:"validate",value:function(){var t=this.fieldTarget.value;if(0===t.length)return this.fieldTarget.dispatchEvent(new CustomEvent("form--datalist:change",{detail:{value:t}})),this.fieldTarget.classList.remove("is-invalid"),this.fieldTarget.setCustomValidity(""),void this.missingRevealTargets.forEach((function(t){return t.classList.add("d-none")}));var e=this.knownValues().includes(t),n=!0;this.existingValue&&(this.fieldTarget.classList.toggle("is-invalid",!e),this.fieldTarget.setCustomValidity(e?"":this.messageValue),n&=e),n&&this.hasMissingRevealTarget&&this.missingRevealTargets.forEach((function(t){return t.classList.toggle("d-none",e)}));var r=Wt(this.datalistTarget.options).find((function(e){return e.value===t}));this.fieldTarget.dispatchEvent(new CustomEvent("form--datalist:change",{detail:{knownValue:e,isValid:!!n,value:t,option:r}}))}},{key:"check",value:function(t){var e=t.target,n=Math.abs(this.lastValue.length-e.value.length);(0===e.value.length||n>1)&&this.validate(),this.lastValue=e.value}},{key:"datalistTargetConnected",value:function(){this.fieldTarget.value=""}}])&&Ut(e.prototype,n),r&&Ut(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function Zt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Xt(t,e){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xt(t,e)}function Jt(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Qt(t);if(e){var i=Qt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Qt(t){return Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qt(t)}Kt.targets=["field","datalist","missingReveal"],Kt.values={message:{type:String,default:"Please pick an existing value."},existing:{type:Boolean,default:!0}};var te=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xt(t,e)}(o,t);var e,n,r,i=Jt(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.updateButtons()}},{key:"remove",value:function(t){var e,n=t.params;null===(e=document.getElementById(n.id))||void 0===e||e.remove(),this.updateButtons()}},{key:"updateButtons",value:function(){var t=this.fieldTargets.length<=this.minimumValue;this.buttonTargets.forEach((function(e){return e.classList.toggle("d-none",t)})),this.groupValue&&this.fieldTargets.forEach((function(e){e.classList.toggle("input-group",!t)}))}}])&&Zt(e.prototype,n),r&&Zt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function ee(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||ne(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 ne(t,e){if(t){if("string"===typeof t)return re(t,e);var n=Object.prototype.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)?re(t,e):void 0}}function re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ie(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function oe(t,e){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},oe(t,e)}function ae(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=se(t);if(e){var i=se(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function se(t){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},se(t)}te.targets=["field","button"],te.values={minimum:{type:Number,default:0},group:{type:Boolean,default:!1}};var ue=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oe(t,e)}(o,t);var e,n,r,i=ae(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.values=new Map,this.lastValue="",this.dependsTargets.forEach((function(t){return t.disabled=!0}))}},{key:"update",value:function(t){var e=this,n=t.target,r=t.params,i=t.detail;if(this.lastValue!==n.value){var o=r.name;if(this.values.set(o,n.value),this.lastValue=n.value,this.dependsTargets.forEach((function(t){t.dataset.dependsOn===o&&(t.value="",t.disabled=!0)})),!i||void 0===i.isValid||i.isValid){var a,s=new FormData,u=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=ne(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(this.values);try{for(u.s();!(a=u.n()).done;){var l=ee(a.value,2),c=l[0],d=l[1];s.set(c,d)}}catch(h){u.e(h)}finally{u.f()}new b.a("get",this.streamValue,{query:s,responseKind:"turbo-stream"}).perform().then((function(){e.dependsTargets.forEach((function(t){t.dataset.dependsOn===o&&(t.disabled=!1)}))}))}}}}])&&ie(e.prototype,n),r&&ie(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function ce(t,e){return ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ce(t,e)}function de(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=he(t);if(e){var i=he(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function he(t){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},he(t)}ue.targets=["depends"],ue.values={stream:String};var fe=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ce(t,e)}(o,t);var e,n,r,i=de(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"update",value:function(t){if(this.hasFieldTarget){var e=!t.target.checked;this.fieldTarget.disabled=e,this.clearValue&&e&&(this.fieldTarget.value="")}}}])&&le(e.prototype,n),r&&le(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function pe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function me(t,e){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},me(t,e)}function ge(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var i=ye(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function ye(t){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ye(t)}fe.targets=["field"],fe.values={clear:{type:Boolean,default:!1}};var ve=new Set(["30"]),_e=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&me(t,e)}(o,t);var e,n,r,i=ge(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.creatingStorageArea=!1,this.wasByo=null,this.typeChanged(),this.updateByo(),this.updateExpirationAlerts(),this.updateImageClear()}},{key:"typeChanged",value:function(){var t=this.inventoryTypeTarget,e=t.options[t.selectedIndex].value;this.typeFieldTargets.forEach((function(t){var n=t.dataset.onlyType===e;t.classList.toggle("d-none",!n)})),this.updateByo()}},{key:"byoChanged",value:function(){this.updateByo()}},{key:"updateByo",value:function(){if(this.hasByoTarget){var t=this.byoTarget.checked;this.wasByo!==t&&(this.wasByo=t,this.disabledByByoTargets.forEach((function(e){if(e.hasAttribute("data-byo-toggle"))e.checked=!t;else{var n="checkbox"===e.type;t?(n||(e.value=""),e.checked=!1):e.checked=e.dataset.default||!1,e.disabled=t}})),this.updateExpirationAlerts())}}},{key:"includeExpiration",value:function(){this.updateExpirationAlerts()}},{key:"updateExpirationAlerts",value:function(){var t=this.expirationTarget.checked;this.alertDayTargets.forEach((function(e){e.disabled=!t,t||(e.checked=!1)})),t&&this.alertDayTargets.filter((function(t){return ve.has(t.value)})).forEach((function(t){t.disabled=!0,t.checked=!0}))}},{key:"toggleNewStorageArea",value:function(t){this.creatingStorageArea=!this.creatingStorageArea;var e=this.creatingStorageArea?"Hide Form":"Add a New Storage Area";t.target.replaceChildren(document.createTextNode(e)),this.storageAreaTarget.disabled=this.creatingStorageArea,this.creatingStorageArea&&(this.storageAreaTarget.value=""),this.newStorageAreaTarget.classList.toggle("d-none",!this.creatingStorageArea)}},{key:"updateImageClear",value:function(){var t=0===this.imageTarget.files.length;this.removeImageTarget.disabled=t}},{key:"removeImage",value:function(){this.imageTarget.value="",this.updateImageClear()}}])&&pe(e.prototype,n),r&&pe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function be(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function we(t,e){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},we(t,e)}function ke(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Se(t);if(e){var i=Se(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Se(t){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Se(t)}_e.targets=["inventoryType","typeField","byo","disabledByByo","expiration","alertDay","storageArea","newStorageArea","image","removeImage"];var Ee=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&we(t,e)}(o,t);var e,n,r,i=ke(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,r=[{key:"targets",get:function(){return["formControl","dropdownOptions","resuspensionOptions","resuspensionPeriodInput","dropdownOptionsInput","preset","hidden","defaultValue","required"]}}],(n=[{key:"toggleControlOptions",value:function(t){"dropdown"==this.formControlTarget.value?(this.dropdownOptionsTarget.classList.remove("d-none"),this.dropdownOptionsInputTarget.setAttribute("required",!0),this.resuspensionOptionsTarget.classList.add("d-none"),this.resuspensionPeriodInputTarget.removeAttribute("required"),this.presetTarget.removeAttribute("disabled"),this.hiddenTarget.removeAttribute("disabled"),this.defaultValueTarget.removeAttribute("disabled"),this.requiredTarget.removeAttribute("disabled")):"resuspension"==this.formControlTarget.value?(this.dropdownOptionsTarget.classList.add("d-none"),this.resuspensionOptionsTarget.classList.remove("d-none"),this.dropdownOptionsInputTarget.removeAttribute("required"),this.resuspensionPeriodInputTarget.setAttribute("required",!0),this.presetTarget.setAttribute("disabled",!0),this.hiddenTarget.setAttribute("disabled",!0),this.defaultValueTarget.setAttribute("disabled",!0),this.requiredTarget.setAttribute("disabled",!0)):"text"==this.formControlTarget.value&&(this.dropdownOptionsTarget.classList.add("d-none"),this.resuspensionOptionsTarget.classList.add("d-none"),this.dropdownOptionsInputTarget.removeAttribute("required"),this.resuspensionPeriodInputTarget.removeAttribute("required"),this.presetTarget.removeAttribute("disabled"),this.hiddenTarget.removeAttribute("disabled"),this.defaultValueTarget.removeAttribute("disabled"),this.requiredTarget.removeAttribute("disabled"))}}])&&be(e.prototype,n),r&&be(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function Ce(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function xe(t,e){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xe(t,e)}function De(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ae(t);if(e){var i=Ae(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Ae(t){return Ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ae(t)}var Te=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xe(t,e)}(o,t);var e,n,r,i=De(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.active=this.element.querySelector(".active"),this.scroll()}},{key:"scroll",value:function(){this.active&&this.active.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})}}])&&Ce(e.prototype,n),r&&Ce(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function Me(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Le(t,e){return Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Le(t,e)}function Oe(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Ie(t);if(e){var i=Ie(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Ie(t){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ie(t)}function Pe(t){console.debug("Setting mobile cookie",t),document.cookie="nls_mobile=".concat(t,"; expires=Fri, 31 Dec 9999 23:59:59 GMT; SameSite=Lax; Path=/")}window.setMobileCookie=Pe;var Re=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Le(t,e)}(o,t);var e,n,r,i=Oe(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){var t,e,n,r;("iPad"===(r=(null===(t=navigator)||void 0===t||null===(e=t.userAgentData)||void 0===e?void 0:e.platform)||(null===(n=navigator)||void 0===n?void 0:n.platform)||"unknown")||"MacIntel"===r&&navigator.maxTouchPoints>0)&&(console.debug("Device appears to be iPad"),Pe(!0))}}])&&Me(e.prototype,n),r&&Me(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function Ne(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Fe(t,e){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fe(t,e)}function je(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Be(t);if(e){var i=Be(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Be(t){return Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Be(t)}var Ye=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fe(t,e)}(o,t);var e,n,r,i=je(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"changed",value:function(t){var e=t.target,n=e.name,r=e.options[e.selectedIndex].value,i=new URL(window.location.href);i.searchParams.delete("page"),""===r?i.searchParams.delete(n):i.searchParams.set(n,r),_.a.visit(i)}}])&&Ne(e.prototype,n),r&&Ne(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function He(t){return function(t){if(Array.isArray(t))return ze(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return ze(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ze(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function We(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Ve(t,e){return Ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ve(t,e)}function Ue(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=qe(t);if(e){var i=qe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function qe(t){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qe(t)}var Ge="frontdoor-latest",$e=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ve(t,e)}(o,t);var e,n,r,i=Ue(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,n=[{key:"connect",value:function(){var t=this,e=window.localStorage.getItem(Ge);if(e){var n;try{n=JSON.parse(e)}catch(i){return}n.length=this.savedRecentsValue;var r=this.hasRecentlySelectedClass?this.recentlySelectedClasses:[];n.reverse().forEach((function(e){var n,i=document.getElementById(e);i&&((n=i.classList).add.apply(n,He(r)),t.listTarget.prepend(i))}))}}},{key:"save",value:function(t){var e,n=null===(e=t.target)||void 0===e?void 0:e.id;if(n){var r;try{r=JSON.parse(window.localStorage.getItem(Ge)).filter((function(t){return t!==n}))}catch(o){r=[]}r.unshift(n),r.length>this.savedRecentsValue&&(r.length=this.savedRecentsValue);var i=JSON.stringify(r);window.localStorage.setItem(Ge,i)}}}],n&&We(e.prototype,n),r&&We(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function Ke(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||Xe(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 Ze(t){return function(t){if(Array.isArray(t))return Je(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Xe(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(t,e){if(t){if("string"===typeof t)return Je(t,e);var n=Object.prototype.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)?Je(t,e):void 0}}function Je(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function tn(t,e){return tn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tn(t,e)}function en(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nn(t);if(e){var i=nn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function nn(t){return nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nn(t)}$e.targets=["list"],$e.values={savedRecents:{type:Number,default:3}},$e.classes=["recentlySelected"];var rn=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tn(t,e)}(o,t);var e,n,r,i=en(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,n=[{key:"connect",value:function(){this.selectedItems=new Map,this.updateText(),this.recentlyScrolledElems=[],this.recentlyScrolledTimeout=0,this.actionLinkTargets.forEach((function(t){t.dataset.url=t.href}))}},{key:"selected",value:function(t){var e=t.params.id,n=t.params.events;t.target.checked?this.selectedItems.set(e,n):this.selectedItems.delete(e),this.updateText(),this.updateActions()}},{key:"itemRowTargetConnected",value:function(t){var e=this;t.hasAttribute("data-scroll")&&(this.recentlyScrolledElems.push(t),t.classList.add("m-scroll"),this.recentlyScrolledTimeout&&clearTimeout(this.recentlyScrolledTimeout),this.recentlyScrolledTimeout=setTimeout((function(){e.recentlyScrolledElems.reduce((function(t,e){return t.y>e.y?t:e})).scrollIntoView({behavior:"smooth"}),e.recentlyScrolledElems=[]}),10),t.removeAttribute("data-scroll"))}},{key:"itemRowTargetDisconnected",value:function(t){var e=parseInt(t.dataset.id,10);this.deselectItems([e])}},{key:"action",value:function(t){var e=this,n=t.params.action,r=Ze(this.selectedItems.keys()),i=new FormData;i.set("context",this.contextValue),i.set("transition_action",n),r.forEach((function(t){i.append("item_ids[]",t)})),new b.a("get",this.actionPathValue,{query:i,responseKind:"turbo-stream"}).perform().then((function(){e.deselectItems(r)}))}},{key:"deselectItems",value:function(t){var e=this;t.forEach((function(t){return e.selectedItems.delete(t)})),this.updateText(),this.updateActions()}},{key:"updateText",value:function(){var t=this.selectedItems.size,e=t>0;this.noSelectionTextTarget.classList.toggle("d-none",e),this.selectionTextTarget.classList.toggle("d-none",!e),this.buttonTarget.disabled=!e;var n=document.createTextNode(t);this.selectionCountTarget.replaceChildren(n)}},{key:"enabledActions",value:function(){var t=this.selectedItems.size,e=new Map;this.selectedItems.forEach((function(t){t.forEach((function(t){var n=e.get(t)||0;e.set(t,n+1)}))}));var n=Ze(e).filter((function(e){var n=Ke(e,2);return n[0],n[1]===t})).map((function(t){var e=Ke(t,2),n=e[0];return e[1],n}));return new Set(n)}},{key:"updateActions",value:function(){var t=this,e=this.enabledActions(),n=!1;this.actionItemTargets.forEach((function(t){var r=t.dataset.actionItem,i=e.has(r);t.classList.toggle("d-none",!i),n|=i})),this.noActionsTarget.classList.toggle("d-none",n),this.actionLinkTargets.forEach((function(e){var n=new URL(e.dataset.url,window.location.origin);Ze(t.selectedItems.keys()).forEach((function(t){n.searchParams.append("scan_ids[]",t)})),e.href=n}))}}],n&&Qe(e.prototype,n),r&&Qe(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function on(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function an(t,e){return an=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},an(t,e)}function sn(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=un(t);if(e){var i=un(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function un(t){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},un(t)}rn.targets=["noSelectionText","selectionText","selectionCount","button","actionItem","actionLink","noActions","itemRow"],rn.values={actionPath:String,context:String},document.addEventListener("turbo:before-cache",(function(){Ze(document.querySelectorAll(".reset-checkbox")).forEach((function(t){t.checked=!1})),Ze(document.querySelectorAll("[data-scroll]")).forEach((function(t){t.removeAttribute("data-scroll")}))}));var ln="nested-donut-tooltip";var cn=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&an(t,e)}(a,t);var e,n,r,i=sn(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,n=[{key:"initialize",value:function(){this.numberFormatter=new Intl.NumberFormat(void 0,{style:"decimal"}),this.percentFormatter=new Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:1})}},{key:"connect",value:function(){this.tooltip=function(){var t=document.getElementById(ln);if(t)return o.h(t);var e=o.b("div").attr("id",ln).style("opacity",0).attr("class","tooltip").style("background-color","white").style("border","solid").style("border-width","2px").style("border-radius","5px").style("padding","5px");return document.body.appendChild(e.node()),e}();var t=this.sizeValue,e=this.sizeValue,n=t/2,r=o.b("svg").attr("width",e).attr("height",t).attr("viewBox",[-e/2,-t/2,e,t]).attr("style","max-width: 100%; height: auto;");this.addDataSeries(r,n,this.dataValue),this.element.replaceChildren(r.node())}},{key:"addDataSeries",value:function(t,e,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2*Math.PI,s=this.ringThicknessValue,u=this.ringShellGapValue,l=o.a().innerRadius(e-s).outerRadius(e-u),c=o.g().padAngle(2*u/e).value((function(t){return t.value})).sort((function(t,e){return o.c(t.value,e.value)})).startAngle(i).endAngle(a),d=c(n);t.append("g").selectAll().data(c(n)).join("path").attr("fill",(function(t){return t.data.color})).on("mouseover",(function(t,e){var n=r.numberFormatter.format(e.data.value),i=r.percentFormatter.format(e.data.value/r.totalValue);r.tooltip.html("".concat(e.data.name," \u2014 ").concat(n," (").concat(i,")")).style("opacity",1)})).on("click",(function(t,e){e.data.path&&Turbo.visit(new URL(e.data.path,window.location.origin))})).on("mousemove",(function(t){r.tooltip.style("left",t.clientX+10+"px").style("top",t.clientY+"px")})).on("mouseleave",(function(){r.tooltip.style("opacity",0)})).transition().ease(o.d).duration(750).attrTween("d",(function(t){var e=o.e({startAngle:0,endAngle:0},t);return function(t){return l(e(t))}})),d.filter((function(t){return Object.hasOwn(t.data,"children")})).forEach((function(n){r.addDataSeries(t,e-s-u,n.data.children,n.startAngle,n.endAngle)}))}}],n&&on(e.prototype,n),r&&on(e,r),Object.defineProperty(e,"prototype",{writable:!1}),a}(i.b);cn.values={size:Number,data:Array,total:Number,ringThickness:{type:Number,default:20},ringShellGap:{type:Number,default:2}};var dn=n(247);function hn(t){return hn="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},hn(t)}function fn(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||pn(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 pn(t,e){if(t){if("string"===typeof t)return mn(t,e);var n=Object.prototype.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)?mn(t,e):void 0}}function mn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gn(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yn(t,e)}function yn(t,e){return yn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yn(t,e)}function vn(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=wn(t);if(e){var i=wn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _n(this,n)}}function _n(t,e){if(e&&("object"===hn(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bn(t)}function bn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function wn(t){return wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wn(t)}function kn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,o=function(t,e){if("object"!==hn(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==hn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===hn(o)?o:String(o)),r)}var i,o}function Sn(t,e,n){return e&&kn(t.prototype,e),n&&kn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function En(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Cn=function(t,e){var n=t[e];return"function"==typeof n?n:function(){}},xn=function(t,e,n){var r=t;return!0===n?r="".concat(e.identifier,":").concat(t):"string"===typeof n&&(r="".concat(n,":").concat(t)),r},Dn=function(t,e,n){var r=e||{bubbles:!0,cancelable:!0,composed:!0},i=r.bubbles,o=r.cancelable,a=r.composed;return e&&Object.assign(n,{originalEvent:e}),new CustomEvent(t,{bubbles:i,cancelable:o,composed:a,detail:n})};var An={debug:!1,logger:console,dispatchEvent:!0,eventPrefix:!0},Tn=Sn((function t(e){var n,r,i,o=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};En(this,t),this.log=function(t,e){o.debug&&(o.logger.groupCollapsed("%c".concat(o.controller.identifier," %c#").concat(t),"color: #3B82F6","color: unset"),o.logger.log(Object.assign({controllerId:o.controllerId},e)),o.logger.groupEnd())},this.warn=function(t){o.logger.warn("%c".concat(o.controller.identifier," %c").concat(t),"color: #3B82F6; font-weight: bold","color: unset")},this.dispatch=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(o.dispatchEvent){var n=e.event,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(e,["event"]),i=o.extendedEvent(t,n||null,r);o.targetElement.dispatchEvent(i),o.log("dispatchEvent",Object.assign({eventName:i.type},r))}},this.call=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=o.controller[t];if("function"==typeof n)return n.call(o.controller,e)},this.extendedEvent=function(t,e,n){var r=e||{bubbles:!0,cancelable:!0,composed:!0},i=r.bubbles,a=r.cancelable,s=r.composed;return e&&Object.assign(n,{originalEvent:e}),new CustomEvent(o.composeEventName(t),{bubbles:i,cancelable:a,composed:s,detail:n})},this.composeEventName=function(t){var e=t;return!0===o.eventPrefix?e="".concat(o.controller.identifier,":").concat(t):"string"===typeof o.eventPrefix&&(e="".concat(o.eventPrefix,":").concat(t)),e},this.debug=null!==(r=null!==(n=null===a||void 0===a?void 0:a.debug)&&void 0!==n?n:e.application.stimulusUseDebug)&&void 0!==r?r:An.debug,this.logger=null!==(i=null===a||void 0===a?void 0:a.logger)&&void 0!==i?i:An.logger,this.controller=e,this.controllerId=e.element.id||e.element.dataset.id,this.targetElement=(null===a||void 0===a?void 0:a.element)||e.element;var s=Object.assign({},An,a),u=s.dispatchEvent,l=s.eventPrefix;Object.assign(this,{dispatchEvent:u,eventPrefix:l}),this.controllerInitialize=e.initialize.bind(e),this.controllerConnect=e.connect.bind(e),this.controllerDisconnect=e.disconnect.bind(e)})),Mn=!0,Ln=!0,On=!0,In=function(t){gn(n,t);var e=vn(n);function n(t){var r,i,o,a,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return En(this,n),(r=e.call(this,t,u)).dispatch=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=bn(r),i=n.controller,o=n.targetElement,a=n.eventPrefix,s=n.bubbles,u=n.cancelable,l=n.log,c=n.warn;Object.assign(e,{controller:i});var d=xn(t,r.controller,a),h=new CustomEvent(d,{detail:e,bubbles:s,cancelable:u});return o.dispatchEvent(h),c("`useDispatch()` is deprecated. Please use the built-in `this.dispatch()` function from Stimulus. You can find more information on how to upgrade at: https://stimulus-use.github.io/stimulus-use/#/use-dispatch"),l("dispatch",{eventName:d,detail:e,bubbles:s,cancelable:u}),h},r.targetElement=null!==(i=u.element)&&void 0!==i?i:t.element,r.eventPrefix=null!==(o=u.eventPrefix)&&void 0!==o?o:Mn,r.bubbles=null!==(a=u.bubbles)&&void 0!==a?a:Ln,r.cancelable=null!==(s=u.cancelable)&&void 0!==s?s:On,r.enhanceController(),r}return Sn(n,[{key:"enhanceController",value:function(){Object.assign(this.controller,{dispatch:this.dispatch})}}]),n}(Tn),Pn={overwriteDispatch:!0},Rn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},Pn,e).overwriteDispatch;Object.defineProperty(t,"isPreview",{get:function(){return document.documentElement.hasAttribute("data-turbolinks-preview")||document.documentElement.hasAttribute("data-turbo-preview")}}),Object.defineProperty(t,"isConnected",{get:function(){var t=this;return!!Array.from(this.context.module.connectedContexts).find((function(e){return e===t.context}))}}),Object.defineProperty(t,"csrfToken",{get:function(){return this.metaValue("csrf-token")}}),n&&function(t){new In(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}(t,e),Object.assign(t,{metaValue:function(t){var e=document.head.querySelector('meta[name="'.concat(t,'"]'));return e&&e.getAttribute("content")}})},Nn=(i.b,i.b,function(t){gn(n,t);var e=vn(n);function n(){return En(this,n),e.apply(this,arguments)}return Sn(n)}(i.b));Nn.debounces=[];i.b,i.b;var Fn={dispatchEvent:!0,eventPrefix:!0,visibleAttribute:"isVisible"},jn=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t,r=Object.assign({},Fn,e),i=r.dispatchEvent,o=r.eventPrefix,a=r.visibleAttribute,s=(null===e||void 0===e?void 0:e.element)||n.element;n.intersectionElements||(n.intersectionElements=[]),n.intersectionElements.push(s);var u=function(t){if(s.setAttribute(a,"true"),Cn(n,"appear").call(n,t),i){var e=xn("appear",n,o),r=Dn(e,null,{controller:n,entry:t});s.dispatchEvent(r)}},l=function(t){if(s.removeAttribute(a),Cn(n,"disappear").call(n,t),i){var e=xn("disappear",n,o),r=Dn(e,null,{controller:n,entry:t});s.dispatchEvent(r)}},c=n.disconnect.bind(n),d=new IntersectionObserver((function(t){var e=fn(t,1)[0];e.isIntersecting?u(e):s.hasAttribute(a)&&l(e)}),e),h=function(){d.observe(s)},f=function(){d.unobserve(s)},p=function(){return n.intersectionElements.every((function(t){return t.hasAttribute(a)}))},m=p;return Object.assign(n,{isVisible:m,noneVisible:function(){return 0===n.intersectionElements.filter((function(t){return t.hasAttribute(a)})).length},oneVisible:function(){return 1===n.intersectionElements.filter((function(t){return t.hasAttribute(a)})).length},atLeastOneVisible:function(){return n.intersectionElements.some((function(t){return t.hasAttribute(a)}))},allVisible:p,disconnect:function(){f(),c()}}),h(),[h,f]};i.b,i.b;i.b,i.b,i.b;var Bn=function(t){gn(n,t);var e=vn(n);function n(){return En(this,n),e.apply(this,arguments)}return Sn(n)}(i.b);Bn.throttles=[];i.b,i.b,i.b,i.b;function Yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Hn(t,e){return Hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hn(t,e)}function zn(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wn(t);if(e){var i=Wn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Wn(t){return Wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wn(t)}var Vn=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hn(t,e)}(o,t);var e,n,r,i=zn(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).options={threshold:0},t}return e=o,(n=[{key:"connect",value:function(){jn(this,this.options)}},{key:"startedLoading",value:function(){var t=document.createElement("button");t.disabled=!0,t.classList.add("btn","btn-secondary");var e=document.createElement("span");e.classList.add("spinner-border","spinner-border-sm","me-2");var n=document.createTextNode("Loading next page");t.replaceChildren(e,n),this.loadMoreTarget.replaceWith(t)}},{key:"appear",value:function(){this.hasLoadMoreTarget&&this.loadMoreTarget.click()}}])&&Yn(e.prototype,n),r&&Yn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);Vn.targets=["loadMore"];var Un=n(248),qn=n(249),Gn=n(250),$n=n(251),Kn=n(252),Zn=n(253);function Xn(t){return function(t){if(Array.isArray(t))return Jn(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return Jn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Qn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function tr(t,e){return tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tr(t,e)}function er(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=nr(t);if(e){var i=nr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function nr(t){return nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nr(t)}var rr=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tr(t,e)}(o,t);var e,n,r,i=er(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.row=null}},{key:"dragstart",value:function(t){this.row=t.target}},{key:"dragover",value:function(t){t.preventDefault();var e=Xn(t.target.parentNode.parentNode.children);e.indexOf(t.target.parentNode)>e.indexOf(this.row)?t.target.parentNode.after(this.row):t.target.parentNode.before(this.row)}},{key:"dragend",value:function(t){var e=this;this.row=null;var n=Xn(t.target.parentNode.children).indexOf(t.target),r=new FormData;r.set("id",t.params.id),r.set("position",n),this.element.ariaBusy=!0,new b.a("patch",this.urlValue,{responseKind:"turbo-stream",body:r}).perform().then((function(){e.element.ariaBusy=!1})).catch((function(t){console.error(t),alert("Could not save position"),window.location.reload()}))}}])&&Qn(e.prototype,n),r&&Qn(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function ir(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function or(t,e){return or=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},or(t,e)}function ar(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=sr(t);if(e){var i=sr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function sr(t){return sr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sr(t)}rr.values={url:String},rr.targets=["body"];var ur=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&or(t,e)}(o,t);var e,n,r,i=ar(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.toggleCustomTimeZoneField()}},{key:"toggleCustomTimeZoneField",value:function(){this.customTimeZoneSelectorTarget.classList.toggle("d-none",!this.customTimeZoneRadioButtonTarget.checked)}}])&&ir(e.prototype,n),r&&ir(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function lr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function cr(t,e){return cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cr(t,e)}function dr(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=hr(t);if(e){var i=hr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function hr(t){return hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hr(t)}ur.targets=["customTimeZoneSelector","customTimeZoneRadioButton"];var fr=[".trix-button--icon-quote",".trix-button--icon-code"],pr=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cr(t,e)}(o,t);var e,n,r,i=dr(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,r=[{key:"targets",get:function(){return["trixWrapper"]}}],(n=[{key:"connect",value:function(){this.initialize()}},{key:"initialize",value:function(){var t=this;fr.forEach((function(e){t.trixWrapperTarget.querySelectorAll(e).forEach((function(t){return t.remove()}))})),this.trixWrapperTarget.querySelector("trix-editor").querySelectorAll("a").forEach((function(t){t.host!==window.location.host&&(t.target="_blank")}))}}])&&lr(e.prototype,n),r&&lr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function mr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function gr(t,e){return gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gr(t,e)}function yr(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vr(t);if(e){var i=vr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function vr(t){return vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vr(t)}var _r=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&gr(t,e)}(o,t);var e,n,r,i=yr(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.element.querySelectorAll("a").forEach((function(t){t.host!==window.location.host&&(t.target="_blank")}))}}])&&mr(e.prototype,n),r&&mr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b),br=n(153),wr=n(254),kr=n(255);function Sr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Er(t,e){return Er=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Er(t,e)}function Cr(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=xr(t);if(e){var i=xr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function xr(t){return xr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xr(t)}var Dr=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Er(t,e)}(o,t);var e,n,r,i=Cr(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"change",value:function(t){var e=t.detail;if(!e.option)return this.inventoryFieldTargets.forEach((function(t){return t.classList.remove("d-none")})),void(this.hasInventorySerialMismatchTarget&&this.inventorySerialMismatchTarget.classList.add("d-none"));var n=e.option.dataset;this.inventoryFieldTargets.forEach((function(t){var e="true"===n[t.dataset.name];t.classList.toggle("d-none",!e),e||(t.value="")})),this.hasInventorySerialMismatchTarget&&this.inventorySerialMismatchTarget.classList.toggle("d-none","true"===n.serialNumber)}}])&&Sr(e.prototype,n),r&&Sr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);Dr.targets=["inventoryField","inventorySerialMismatch"];var Ar=n(256),Tr=n(257),Mr=n(258),Lr=n(259);function Or(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return Ir(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ir(t,e)}(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 Ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Rr(t,e){return Rr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Rr(t,e)}function Nr(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fr(t);if(e){var i=Fr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Fr(t){return Fr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fr(t)}var jr=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rr(t,e)}(o,t);var e,n,r,i=Nr(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.domainWithout=new Set(this.domainWithoutValue),this.domainWith=new Set(this.domainWithValue),this.emailFieldName=this.emailTarget.name,this.wasSSO=!1}},{key:"keyup",value:function(t){var e=t.target.value,n=this.looksLikeSSO(e);this.setMode(n)}},{key:"looksLikeSSO",value:function(t){var e=t.split("@");if(2!==e.length)return!1;var n=Or(e,2),r=n[0],i=n[1];return!!this.domainWithout.has(i)||!(r.includes("+")||!this.domainWith.has(i))}},{key:"setMode",value:function(t){t!==this.wasSSO&&(t?(this.submitTarget.setAttribute("formaction",this.ssoActionValue),this.submitTarget.setAttribute("formmethod","GET"),this.submitTarget.value="Log in with SSO",this.emailTarget.name="email"):(this.submitTarget.setAttribute("formaction",this.passwordActionValue),this.submitTarget.setAttribute("formmethod","POST"),this.submitTarget.value="Log in",this.emailTarget.name=this.emailFieldName),this.ssoHiddenTargets.forEach((function(e){e.classList.toggle("d-none",t)})),this.wasSSO=t)}}])&&Pr(e.prototype,n),r&&Pr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function Br(t){return function(t){if(Array.isArray(t))return Yr(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return Yr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yr(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Hr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function zr(t,e){return zr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zr(t,e)}function Wr(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Vr(t);if(e){var i=Vr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Vr(t){return Vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Vr(t)}jr.values={passwordAction:String,ssoAction:String,domainWithout:Array,domainWith:Array},jr.targets=["submit","email","ssoHidden"];var Ur=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zr(t,e)}(o,t);var e,n,r,i=Wr(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,r=[{key:"targets",get:function(){return["markAllDisposedButton","itemCount"]}}],(n=[{key:"initialize",value:function(){this.checkedIds=new Set}},{key:"checkedRows",value:function(t){this.checkedIds=t.detail.ids,this.itemCountTarget.innerHTML=Br(this.element.querySelectorAll("tbody tr")).filter((function(t){return t.querySelector("[data-turbotable-id-param]:checked")})).map((function(t){return parseInt(t.querySelector("td.item-quantity").textContent)})).reduce((function(t,e){return t+e}),0),this.markAllDisposedButtonTarget.classList.toggle("d-none",0===this.checkedIds.size)}},{key:"markAllExpiredDisposedModal",value:function(t){t.preventDefault();var e=Array.from(this.checkedIds),n=this.siteIdValue;e.length&&(document.getElementById("turbo-modal").src="/sites/".concat(n,"/mark_expired_items_disposed_modal/?alert_ids=").concat(e))}}])&&Hr(e.prototype,n),r&&Hr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function qr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Gr(t,e){return Gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gr(t,e)}function $r(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Kr(t);if(e){var i=Kr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Kr(t){return Kr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Kr(t)}Ur.values={siteId:String};var Zr=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gr(t,e)}(o,t);var e,n,r,i=$r(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.colSpan=this.calculateColSpan();for(var t=!1,e=null,n=1,r=this.rowTargets,i=0;i<r.length;i+=1){var o=r[i],a="true"===o.dataset.empty;if(n+=1,a&&t){if(o.classList.add("d-none","row-collapsed"),!e){var s=r[i-1];s.classList.add("d-none","row-collapsed"),(e=document.createElement("tr")).dataset.action="click->table-collapse#expand",e.classList.add("row-collapse-marker"),s.insertAdjacentElement("beforebegin",e)}e.replaceChildren(this.buildMarkerContents(n))}else e=null,n=1;t=a}}},{key:"calculateColSpan",value:function(){return Array.from(this.rowTargets[0].querySelectorAll("td, th")).reduce((function(t,e){return t+(parseInt(e.getAttribute("colspan"),10)||1)}),0)}},{key:"buildMarkerContents",value:function(t){var e=document.createElement("td");e.classList.add("cursor-pointer"),e.colSpan=this.colSpan;var n=document.createElement("span"),r=document.createTextNode("Expand ".concat(t," empty rows"));n.appendChild(r),e.appendChild(n);var i=document.createElement("i");return i.classList.add("fa-solid","fa-chevron-down","pl-2"),e.appendChild(i),e}},{key:"expand",value:function(t){var e=t.target;if(e){for(var n="TR"===e.tagName?e:e.closest("tr"),r=n;;){var i,o,a=null===(i=r)||void 0===i?void 0:i.nextElementSibling;if(null===a||void 0===a||null===(o=a.classList)||void 0===o||!o.contains("row-collapsed"))break;a.classList.remove("row-collapsed","d-none"),r=a}n.remove()}}}])&&qr(e.prototype,n),r&&qr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);function Xr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function Jr(t,e){return Jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Jr(t,e)}function Qr(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ti(t);if(e){var i=ti(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function ti(t){return ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ti(t)}Zr.targets=["row"];var ei=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Jr(t,e)}(o,t);var e,n,r,i=Qr(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"connect",value:function(){this.element.style.overflow="hidden",this.element.classList.contains("start-collapsed")||this.grow()}},{key:"grow",value:function(){this.element.style.height="auto",this.element.style.height="".concat(this.element.scrollHeight,"px")}}])&&Xr(e.prototype,n),r&&Xr(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b),ni=n(260),ri=n(261),ii=n(262);function oi(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(c){l=!0,i=c}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||si(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 ai(t){return function(t){if(Array.isArray(t))return ui(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||si(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function si(t,e){if(t){if("string"===typeof t)return ui(t,e);var n=Object.prototype.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)?ui(t,e):void 0}}function ui(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function li(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,"symbol"===typeof(o=function(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"))?o:String(o)),r)}var i,o}function ci(t,e){return ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ci(t,e)}function di(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=hi(t);if(e){var i=hi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===typeof e||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function hi(t){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hi(t)}var fi=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ci(t,e)}(o,t);var e,n,r,i=di(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,r=[{key:"targets",get:function(){return["fileInput","fileDrop","uploadingList","doneButton"]}}],(n=[{key:"connect",value:function(){this.uploadingFiles=new Map}},{key:"fileClick",value:function(){this.fileInputTarget.click()}},{key:"filesChanged",value:function(t){var e=this;ai(t.target.files).forEach((function(t){return e.uploadFile(t)})),t.target.value=""}},{key:"filesDragged",value:function(t){t.preventDefault(),this.fileDropTarget.classList.add("dragging")}},{key:"filesLeft",value:function(){this.fileDropTarget.classList.remove("dragging")}},{key:"filesDropped",value:function(t){var e=this;t.preventDefault(),this.fileDropTarget.classList.remove("dragging"),t.dataTransfer.items?ai(t.dataTransfer.items).forEach((function(t){if("file"===t.kind){var n=t.getAsFile();e.uploadFile(n)}})):ai(t.dataTransfer.files).forEach((function(t){e.uploadFile(t)}))}},{key:"uploadFile",value:function(t){var e=this,n=t.name;console.debug("Starting upload for ".concat(n)),"application/pdf"===t.type?(this.uploadingFiles.set(t.name,0),this.updateUploadingList(),function(t,e,n,r,i){var o=document.querySelector('meta[name="csrf-token"]').content,a=new FormData;a.append("file",t);var s=new XMLHttpRequest;s.upload.onprogress=function(t){n(t.loaded/t.total)},s.onload=function(){200!==s.status?i(s.status):r(s.responseText)},s.onerror=function(t){i(t)},s.open("POST",e),s.setRequestHeader("x-csrf-token",o),s.send(a)}(t,this.urlValue,(function(t){e.uploadProgressed(n,t)}),(function(t){e.uploadFinished(n),Turbo.renderStreamMessage(t)}),(function(t){console.error(t),alert("Could not upload file: ".concat(t))}))):alert("Could not upload ".concat(n,", only PDF files are supported"))}},{key:"uploadProgressed",value:function(t,e){this.uploadingFiles.set(t,e),this.updateUploadingList()}},{key:"uploadFinished",value:function(t){this.uploadingFiles.delete(t),this.updateUploadingList()}},{key:"updateUploadingList",value:function(){var t;this.doneButtonTarget.disabled=this.uploadingFiles.size>0;var e,n=[],r=function(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=si(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(this.uploadingFiles);try{for(r.s();!(e=r.n()).done;){var i=oi(e.value,2),o=i[0],a=i[1];if(!0!==a){var s=document.createElement("li");s.appendChild(document.createTextNode(o)),s.appendChild(this.progressBar(a)),n.push(s)}}}catch(u){r.e(u)}finally{r.f()}(t=this.uploadingListTarget).replaceChildren.apply(t,n)}},{key:"progressBar",value:function(t){var e="".concat(Math.round(100*t),"%"),n=document.createElement("div");n.classList.add("progress");var r=document.createElement("div");return r.classList.add("progress-bar"),r.role="progressbar",r.style.width=e,r.appendChild(document.createTextNode(e)),n.appendChild(r),n}}])&&li(e.prototype,n),r&&li(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(i.b);fi.values={url:String};var pi=n(263),mi=n(264),gi=n(265),yi=n(266),vi=n(267),_i=n(268),bi=n(269);r.a.register("animated-counter",c),r.a.register("auto-submit",g),r.a.register("autocomplete",y.a),r.a.register("batch-work-orders",v.a),r.a.register("camera-barcode",pt),r.a.register("character-counter",_t),r.a.register("configurator--configure-kit-page",bt.a),r.a.register("configurator--copy-configuration",Ct),r.a.register("confirm-reorder",xt.a),r.a.register("copy-timepoint-steps",Dt.a),r.a.register("empty-page",Ot),r.a.register("fade",zt),r.a.register("form--datalist",Kt),r.a.register("form--remove-field",te),r.a.register("form--step-autofill",ue),r.a.register("form--switched-field",fe),r.a.register("inventory--form",_e),r.a.register("meta-field-template",Ee),r.a.register("mobile--breadcrumbs",Te),r.a.register("mobile--detect",Re),r.a.register("mobile--filter",Ye),r.a.register("mobile--frontdoor",$e),r.a.register("mobile--item-select",rn),r.a.register("nested-donut",cn),r.a.register("number-field",dn.a),r.a.register("pager",Vn),r.a.register("procedure-step-input",Un.a),r.a.register("protocols--enrollment-target",qn.a),r.a.register("protocols--identifier-plan-part-input",Gn.a),r.a.register("protocols--subject-identifier-plan",$n.a),r.a.register("protocols--report-delivery-form",Kn.a),r.a.register("refresh-elements",Zn.a),r.a.register("reorder-table",rr),r.a.register("report-wizard-form",ur),r.a.register("rich-text",pr),r.a.register("rich-text-display",_r),r.a.register("row-check",br.a),r.a.register("sample-kicker",wr.a),r.a.register("shipment-prep-step-input",kr.a),r.a.register("scanner--create-item",Dr),r.a.register("search",Ar.a),r.a.register("searchable-dropdown",Tr.a),r.a.register("shipment-preparation",Mr.a),r.a.register("shipped-sample-change-modal",Lr.a),r.a.register("sign-in",jr),r.a.register("site-alerts",Ur),r.a.register("table-collapse",Zr),r.a.register("textarea-autogrow",ei),r.a.register("timepoint-step-input",ni.a),r.a.register("turbo-modal",ri.a),r.a.register("turbotable",ii.a),r.a.register("upload",fi),r.a.register("visit-calendar",pi.a),r.a.register("visits--aliquot-step",mi.a),r.a.register("visits--build-visit",gi.a),r.a.register("visits--procedure-step",yi.a),r.a.register("visits--visit-page",vi.a),r.a.register("workspace-samples",_i.a),r.a.register("workspaces--enroll-subject",bi.a)},function(t,e,n){(function(t,r){var 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)}(function(){(function(){(function(){this.Rails={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:{selector:"button[data-remote]:not([form]), button[data-confirm]:not([form])",exclude:"form button"},inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form:not([data-turbo=true])",formInputClickSelector:"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",formDisableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",formEnableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]"}}).call(this)}).call(this);var s=this.Rails;(function(){(function(){var t;t=null,s.loadCSPNonce=function(){var e;return t=null!=(e=document.querySelector("meta[name=csp-nonce]"))?e.content:void 0},s.cspNonce=function(){return null!=t?t:s.loadCSPNonce()}}).call(this),function(){var t,e;e=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector,s.matches=function(t,n){return null!=n.exclude?e.call(t,n.selector)&&!e.call(t,n.exclude):e.call(t,n)},t="_ujsData",s.getData=function(e,n){var r;return null!=(r=e[t])?r[n]:void 0},s.setData=function(e,n,r){return null==e[t]&&(e[t]={}),e[t][n]=r},s.$=function(t){return Array.prototype.slice.call(document.querySelectorAll(t))}}.call(this),function(){var t,e,n;t=s.$,n=s.csrfToken=function(){var t;return(t=document.querySelector("meta[name=csrf-token]"))&&t.content},e=s.csrfParam=function(){var t;return(t=document.querySelector("meta[name=csrf-param]"))&&t.content},s.CSRFProtection=function(t){var e;if(null!=(e=n()))return t.setRequestHeader("X-CSRF-Token",e)},s.refreshCSRFTokens=function(){var r,i;if(i=n(),r=e(),null!=i&&null!=r)return t('form input[name="'+r+'"]').forEach((function(t){return t.value=i}))}}.call(this),function(){var t,e,n,r;n=s.matches,"function"!==typeof(t=window.CustomEvent)&&((t=function(t,e){var n;return(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}).prototype=window.Event.prototype,r=t.prototype.preventDefault,t.prototype.preventDefault=function(){var t;return t=r.call(this),this.cancelable&&!this.defaultPrevented&&Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),t}),e=s.fire=function(e,n,r){var i;return i=new t(n,{bubbles:!0,cancelable:!0,detail:r}),e.dispatchEvent(i),!i.defaultPrevented},s.stopEverything=function(t){return e(t.target,"ujs:everythingStopped"),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()},s.delegate=function(t,e,r,i){return t.addEventListener(r,(function(t){var r;for(r=t.target;r instanceof Element&&!n(r,e);)r=r.parentNode;if(r instanceof Element&&!1===i.call(r,t))return t.preventDefault(),t.stopPropagation()}))}}.call(this),function(){var t,e,n,r,i,o;r=s.cspNonce,e=s.CSRFProtection,s.fire,t={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},s.ajax=function(t){var e;return t=i(t),e=n(t,(function(){var n,r;return r=o(null!=(n=e.response)?n:e.responseText,e.getResponseHeader("Content-Type")),2===Math.floor(e.status/100)?"function"===typeof t.success&&t.success(r,e.statusText,e):"function"===typeof t.error&&t.error(r,e.statusText,e),"function"===typeof t.complete?t.complete(e,e.statusText):void 0})),!(null!=t.beforeSend&&!t.beforeSend(e,t))&&(e.readyState===XMLHttpRequest.OPENED?e.send(t.data):void 0)},i=function(e){return e.url=e.url||location.href,e.type=e.type.toUpperCase(),"GET"===e.type&&e.data&&(e.url.indexOf("?")<0?e.url+="?"+e.data:e.url+="&"+e.data),null==t[e.dataType]&&(e.dataType="*"),e.accept=t[e.dataType],"*"!==e.dataType&&(e.accept+=", */*; q=0.01"),e},n=function(t,n){var r;return(r=new XMLHttpRequest).open(t.type,t.url,!0),r.setRequestHeader("Accept",t.accept),"string"===typeof t.data&&r.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),t.crossDomain||(r.setRequestHeader("X-Requested-With","XMLHttpRequest"),e(r)),r.withCredentials=!!t.withCredentials,r.onreadystatechange=function(){if(r.readyState===XMLHttpRequest.DONE)return n(r)},r},o=function(t,e){var n,i;if("string"===typeof t&&"string"===typeof e)if(e.match(/\bjson\b/))try{t=JSON.parse(t)}catch(o){}else if(e.match(/\b(?:java|ecma)script\b/))(i=document.createElement("script")).setAttribute("nonce",r()),i.text=t,document.head.appendChild(i).parentNode.removeChild(i);else if(e.match(/\b(xml|html|svg)\b/)){n=new DOMParser,e=e.replace(/;.+/,"");try{t=n.parseFromString(t,e)}catch(o){}}return t},s.href=function(t){return t.href},s.isCrossDomain=function(t){var e,n;(e=document.createElement("a")).href=location.href,n=document.createElement("a");try{return n.href=t,!((!n.protocol||":"===n.protocol)&&!n.host||e.protocol+"//"+e.host===n.protocol+"//"+n.host)}catch(r){return r,!0}}}.call(this),function(){var t,e;t=s.matches,e=function(t){return Array.prototype.slice.call(t)},s.serializeElement=function(n,r){var i,o;return i=[n],t(n,"form")&&(i=e(n.elements)),o=[],i.forEach((function(n){if(n.name&&!n.disabled&&!t(n,"fieldset[disabled] *"))return t(n,"select")?e(n.options).forEach((function(t){if(t.selected)return o.push({name:n.name,value:t.value})})):n.checked||-1===["radio","checkbox","submit"].indexOf(n.type)?o.push({name:n.name,value:n.value}):void 0})),r&&o.push(r),o.map((function(t){return null!=t.name?encodeURIComponent(t.name)+"="+encodeURIComponent(t.value):t})).join("&")},s.formElements=function(n,r){return t(n,"form")?e(n.elements).filter((function(e){return t(e,r)})):e(n.querySelectorAll(r))}}.call(this),function(){var t,e,n;e=s.fire,n=s.stopEverything,s.handleConfirm=function(e){if(!t(this))return n(e)},s.confirm=function(t,e){return confirm(t)},t=function(t){var n,r,i;if(!(i=t.getAttribute("data-confirm")))return!0;if(n=!1,e(t,"confirm")){try{n=s.confirm(i,t)}catch(o){}r=e(t,"confirm:complete",[n])}return n&&r}}.call(this),function(){var t,e,n,r,i,o,a,u,l,c,d,h;c=s.matches,u=s.getData,d=s.setData,h=s.stopEverything,a=s.formElements,s.handleDisabledElement=function(t){if(this,this.disabled)return h(t)},s.enableElement=function(t){var e;if(t instanceof Event){if(l(t))return;e=t.target}else e=t;return c(e,s.linkDisableSelector)?o(e):c(e,s.buttonDisableSelector)||c(e,s.formEnableSelector)?r(e):c(e,s.formSubmitSelector)?i(e):void 0},s.disableElement=function(r){var i;return i=r instanceof Event?r.target:r,c(i,s.linkDisableSelector)?n(i):c(i,s.buttonDisableSelector)||c(i,s.formDisableSelector)?t(i):c(i,s.formSubmitSelector)?e(i):void 0},n=function(t){var e;if(!u(t,"ujs:disabled"))return null!=(e=t.getAttribute("data-disable-with"))&&(d(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e),t.addEventListener("click",h),d(t,"ujs:disabled",!0)},o=function(t){var e;return null!=(e=u(t,"ujs:enable-with"))&&(t.innerHTML=e,d(t,"ujs:enable-with",null)),t.removeEventListener("click",h),d(t,"ujs:disabled",null)},e=function(e){return a(e,s.formDisableSelector).forEach(t)},t=function(t){var e;if(!u(t,"ujs:disabled"))return null!=(e=t.getAttribute("data-disable-with"))&&(c(t,"button")?(d(t,"ujs:enable-with",t.innerHTML),t.innerHTML=e):(d(t,"ujs:enable-with",t.value),t.value=e)),t.disabled=!0,d(t,"ujs:disabled",!0)},i=function(t){return a(t,s.formEnableSelector).forEach(r)},r=function(t){var e;return null!=(e=u(t,"ujs:enable-with"))&&(c(t,"button")?t.innerHTML=e:t.value=e,d(t,"ujs:enable-with",null)),t.disabled=!1,d(t,"ujs:disabled",null)},l=function(t){var e,n;return null!=(null!=(n=null!=(e=t.detail)?e[0]:void 0)?n.getResponseHeader("X-Xhr-Redirect"):void 0)}}.call(this),function(){var t;t=s.stopEverything,s.handleMethod=function(e){var n,r,i,o,a,u,l;if(l=(u=this).getAttribute("data-method"))return a=s.href(u),r=s.csrfToken(),n=s.csrfParam(),i=document.createElement("form"),o="<input name='_method' value='"+l+"' type='hidden' />",null==n||null==r||s.isCrossDomain(a)||(o+="<input name='"+n+"' value='"+r+"' type='hidden' />"),o+='<input type="submit" />',i.method="post",i.action=a,i.target=u.target,i.innerHTML=o,i.style.display="none",document.body.appendChild(i),i.querySelector('[type="submit"]').click(),t(e)}}.call(this),function(){var t,e,n,r,i,o,a,u,l,c=[].slice;o=s.matches,n=s.getData,u=s.setData,e=s.fire,l=s.stopEverything,t=s.ajax,r=s.isCrossDomain,a=s.serializeElement,i=function(t){var e;return null!=(e=t.getAttribute("data-remote"))&&"false"!==e},s.handleRemote=function(d){var h,f,p,m,g,y,v;return!i(m=this)||(e(m,"ajax:before")?(v=m.getAttribute("data-with-credentials"),p=m.getAttribute("data-type")||"script",o(m,s.formSubmitSelector)?(h=n(m,"ujs:submit-button"),g=n(m,"ujs:submit-button-formmethod")||m.method,y=n(m,"ujs:submit-button-formaction")||m.getAttribute("action")||location.href,"GET"===g.toUpperCase()&&(y=y.replace(/\?.*$/,"")),"multipart/form-data"===m.enctype?(f=new FormData(m),null!=h&&f.append(h.name,h.value)):f=a(m,h),u(m,"ujs:submit-button",null),u(m,"ujs:submit-button-formmethod",null),u(m,"ujs:submit-button-formaction",null)):o(m,s.buttonClickSelector)||o(m,s.inputChangeSelector)?(g=m.getAttribute("data-method"),y=m.getAttribute("data-url"),f=a(m,m.getAttribute("data-params"))):(g=m.getAttribute("data-method"),y=s.href(m),f=m.getAttribute("data-params")),t({type:g||"GET",url:y,data:f,dataType:p,beforeSend:function(t,n){return e(m,"ajax:beforeSend",[t,n])?e(m,"ajax:send",[t]):(e(m,"ajax:stopped"),!1)},success:function(){var t;return t=1<=arguments.length?c.call(arguments,0):[],e(m,"ajax:success",t)},error:function(){var t;return t=1<=arguments.length?c.call(arguments,0):[],e(m,"ajax:error",t)},complete:function(){var t;return t=1<=arguments.length?c.call(arguments,0):[],e(m,"ajax:complete",t)},crossDomain:r(y),withCredentials:null!=v&&"false"!==v}),l(d)):(e(m,"ajax:stopped"),!1))},s.formSubmitButtonClick=function(t){var e,n;if(n=(e=this).form)return e.name&&u(n,"ujs:submit-button",{name:e.name,value:e.value}),u(n,"ujs:formnovalidate-button",e.formNoValidate),u(n,"ujs:submit-button-formaction",e.getAttribute("formaction")),u(n,"ujs:submit-button-formmethod",e.getAttribute("formmethod"))},s.preventInsignificantClick=function(t){var e,n,r;if(this,r=(this.getAttribute("data-method")||"GET").toUpperCase(),e=this.getAttribute("data-params"),n=(t.metaKey||t.ctrlKey)&&"GET"===r&&!e,null!=t.button&&0!==t.button||n)return t.stopImmediatePropagation()}}.call(this),function(){var e,n,r,i,o,a,u,l,c,d,h,f,p,m,g;if(a=s.fire,r=s.delegate,l=s.getData,e=s.$,g=s.refreshCSRFTokens,n=s.CSRFProtection,p=s.loadCSPNonce,o=s.enableElement,i=s.disableElement,d=s.handleDisabledElement,c=s.handleConfirm,m=s.preventInsignificantClick,f=s.handleRemote,u=s.formSubmitButtonClick,h=s.handleMethod,"undefined"!==typeof t&&null!==t&&null!=t.ajax){if(t.rails)throw new Error("If you load both jquery_ujs and rails-ujs, use rails-ujs only.");t.rails=s,t.ajaxPrefilter((function(t,e,r){if(!t.crossDomain)return n(r)}))}s.start=function(){if(window._rails_loaded)throw new Error("rails-ujs has already been loaded!");return window.addEventListener("pageshow",(function(){return e(s.formEnableSelector).forEach((function(t){if(l(t,"ujs:disabled"))return o(t)})),e(s.linkDisableSelector).forEach((function(t){if(l(t,"ujs:disabled"))return o(t)}))})),r(document,s.linkDisableSelector,"ajax:complete",o),r(document,s.linkDisableSelector,"ajax:stopped",o),r(document,s.buttonDisableSelector,"ajax:complete",o),r(document,s.buttonDisableSelector,"ajax:stopped",o),r(document,s.linkClickSelector,"click",m),r(document,s.linkClickSelector,"click",d),r(document,s.linkClickSelector,"click",c),r(document,s.linkClickSelector,"click",i),r(document,s.linkClickSelector,"click",f),r(document,s.linkClickSelector,"click",h),r(document,s.buttonClickSelector,"click",m),r(document,s.buttonClickSelector,"click",d),r(document,s.buttonClickSelector,"click",c),r(document,s.buttonClickSelector,"click",i),r(document,s.buttonClickSelector,"click",f),r(document,s.inputChangeSelector,"change",d),r(document,s.inputChangeSelector,"change",c),r(document,s.inputChangeSelector,"change",f),r(document,s.formSubmitSelector,"submit",d),r(document,s.formSubmitSelector,"submit",c),r(document,s.formSubmitSelector,"submit",f),r(document,s.formSubmitSelector,"submit",(function(t){return setTimeout((function(){return i(t)}),13)})),r(document,s.formSubmitSelector,"ajax:send",i),r(document,s.formSubmitSelector,"ajax:complete",o),r(document,s.formInputClickSelector,"click",m),r(document,s.formInputClickSelector,"click",d),r(document,s.formInputClickSelector,"click",c),r(document,s.formInputClickSelector,"click",u),document.addEventListener("DOMContentLoaded",g),document.addEventListener("DOMContentLoaded",p),window._rails_loaded=!0},window.Rails===s&&a(document,"rails:attachBindings")&&s.start()}.call(this)}).call(this),"object"===a(r)&&r.exports?r.exports=s:void 0===(o="function"===typeof(i=s)?i.call(e,n,e,r):i)||(r.exports=o)}).call(this)}).call(this,n(15),n(424)(t))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);e.isObject=function(t){return"[object Object]"===Object.prototype.toString.call(t)};function i(t,e){void 0===e&&(e=!0);var n=function(){var t=r.useRef(!1);return r.useEffect((function(){return t.current=!0,function(){t.current=!1}}),[]),t}(),i=r.useState(t),o=i[0],a=i[1],s=r.useRef(o),u=r.useCallback((function(t){!n.current&&e||(s.current="function"===typeof t?t(s.current):t,a(s.current))}),[]);return[s,u]}e.useRefState=i,e.default=i},function(t,e,n){"use strict";function r(t){return r="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},r(t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===r(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=/(?:[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2F\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uA7BA\uA7BC\uA7BE\uA7C0\uA7C2\uA7C4-\uA7C7\uA7C9\uA7D0\uA7D6\uA7D8\uA7F5\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27\uDCB0-\uDCD3\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95]|\uD803[\uDC80-\uDCB2]|\uD806[\uDCA0-\uDCBF]|\uD81B[\uDE40-\uDE5F]|\uD835[\uDC00-\uDC19\uDC34-\uDC4D\uDC68-\uDC81\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB5\uDCD0-\uDCE9\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD38\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD6C-\uDD85\uDDA0-\uDDB9\uDDD4-\uDDED\uDE08-\uDE21\uDE3C-\uDE55\uDE70-\uDE89\uDEA8-\uDEC0\uDEE2-\uDEFA\uDF1C-\uDF34\uDF56-\uDF6E\uDF90-\uDFA8\uDFCA]|\uD83A[\uDD00-\uDD21])/,s=/(?:[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0560-\u0588\u10D0-\u10FA\u10FD-\u10FF\u13F8-\u13FD\u1C80-\u1C88\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6\u1FC7\u1FD0-\u1FD3\u1FD6\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5F\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7BB\uA7BD\uA7BF\uA7C1\uA7C3\uA7C8\uA7CA\uA7D1\uA7D3\uA7D5\uA7D7\uA7D9\uA7F6\uA7FA\uAB30-\uAB5A\uAB60-\uAB68\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]|\uD801[\uDC28-\uDC4F\uDCD8-\uDCFB\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC]|\uD803[\uDCC0-\uDCF2]|\uD806[\uDCC0-\uDCDF]|\uD81B[\uDE60-\uDE7F]|\uD835[\uDC1A-\uDC33\uDC4E-\uDC54\uDC56-\uDC67\uDC82-\uDC9B\uDCB6-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDCEA-\uDD03\uDD1E-\uDD37\uDD52-\uDD6B\uDD86-\uDD9F\uDDBA-\uDDD3\uDDEE-\uDE07\uDE22-\uDE3B\uDE56-\uDE6F\uDE8A-\uDEA5\uDEC2-\uDEDA\uDEDC-\uDEE1\uDEFC-\uDF14\uDF16-\uDF1B\uDF36-\uDF4E\uDF50-\uDF55\uDF70-\uDF88\uDF8A-\uDF8F\uDFAA-\uDFC2\uDFC4-\uDFC9\uDFCB]|\uD837[\uDF00-\uDF09\uDF0B-\uDF1E\uDF25-\uDF2A]|\uD83A[\uDD22-\uDD43])/,u=/^(?:[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2F\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uA7BA\uA7BC\uA7BE\uA7C0\uA7C2\uA7C4-\uA7C7\uA7C9\uA7D0\uA7D6\uA7D8\uA7F5\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27\uDCB0-\uDCD3\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95]|\uD803[\uDC80-\uDCB2]|\uD806[\uDCA0-\uDCBF]|\uD81B[\uDE40-\uDE5F]|\uD835[\uDC00-\uDC19\uDC34-\uDC4D\uDC68-\uDC81\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB5\uDCD0-\uDCE9\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD38\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD6C-\uDD85\uDDA0-\uDDB9\uDDD4-\uDDED\uDE08-\uDE21\uDE3C-\uDE55\uDE70-\uDE89\uDEA8-\uDEC0\uDEE2-\uDEFA\uDF1C-\uDF34\uDF56-\uDF6E\uDF90-\uDFA8\uDFCA]|\uD83A[\uDD00-\uDD21])(?!(?:[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2F\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uA7BA\uA7BC\uA7BE\uA7C0\uA7C2\uA7C4-\uA7C7\uA7C9\uA7D0\uA7D6\uA7D8\uA7F5\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27\uDCB0-\uDCD3\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95]|\uD803[\uDC80-\uDCB2]|\uD806[\uDCA0-\uDCBF]|\uD81B[\uDE40-\uDE5F]|\uD835[\uDC00-\uDC19\uDC34-\uDC4D\uDC68-\uDC81\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB5\uDCD0-\uDCE9\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD38\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD6C-\uDD85\uDDA0-\uDDB9\uDDD4-\uDDED\uDE08-\uDE21\uDE3C-\uDE55\uDE70-\uDE89\uDEA8-\uDEC0\uDEE2-\uDEFA\uDF1C-\uDF34\uDF56-\uDF6E\uDF90-\uDFA8\uDFCA]|\uD83A[\uDD00-\uDD21]))/g,l=/((?:[0-9A-Z_a-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0345\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05B0-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0657\u0659-\u0669\u066E-\u06D3\u06D5-\u06DC\u06E1-\u06E8\u06ED-\u06FC\u06FF\u0710-\u073F\u074D-\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0817\u081A-\u082C\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u08D4-\u08DF\u08E3-\u08E9\u08F0-\u093B\u093D-\u094C\u094E-\u0950\u0955-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C4\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A42\u0A47\u0A48\u0A4B\u0A4C\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC5\u0AC7-\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFC\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D-\u0B44\u0B47\u0B48\u0B4B\u0B4C\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71-\u0B77\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD0\u0BD7\u0BE6-\u0BF2\u0C00-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4C\u0C55\u0C56\u0C58-\u0C5A\u0C5D\u0C60-\u0C63\u0C66-\u0C6F\u0C78-\u0C7E\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCC\u0CD5\u0CD6\u0CDD\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1-\u0CF3\u0D00-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4C\u0D4E\u0D54-\u0D63\u0D66-\u0D78\u0D7A-\u0D7F\u0D81-\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E46\u0E4D\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F71-\u0F83\u0F88-\u0F97\u0F99-\u0FBC\u1000-\u1036\u1038\u103B-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1713\u171F-\u1733\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17B3\u17B6-\u17C8\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A61-\u1A74\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1ABF\u1AC0\u1ACC-\u1ACE\u1B00-\u1B33\u1B35-\u1B43\u1B45-\u1B4C\u1B50-\u1B59\u1B80-\u1BA9\u1BAC-\u1BE5\u1BE7-\u1BF1\u1C00-\u1C36\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1DE7-\u1DF4\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2189\u2150-\u2182\u2460-\u249B\u24B6-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA674-\uA67B\uA67F-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA805\uA807-\uA827\uA830-\uA835\uA840-\uA873\uA880-\uA8C3\uA8C5\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD-\uA92A\uA930-\uA952\uA960-\uA97C\uA980-\uA9B2\uA9B4-\uA9BF\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAABE\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF5\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABEA\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD27\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEAB\uDEAC\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC00-\uDC45\uDC52-\uDC6F\uDC71-\uDC75\uDC80-\uDCB8\uDCC2\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD32\uDD36-\uDD3F\uDD44-\uDD47\uDD50-\uDD72\uDD76\uDD80-\uDDBF\uDDC1-\uDDC4\uDDCE-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE34\uDE37\uDE3E-\uDE41\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEE8\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D-\uDF44\uDF47\uDF48\uDF4B\uDF4C\uDF50\uDF57\uDF5D-\uDF63]|\uD805[\uDC00-\uDC41\uDC43-\uDC45\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCC1\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDBE\uDDD8-\uDDDD\uDE00-\uDE3E\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB5\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC38\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B\uDD3C\uDD3F-\uDD42\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDDF\uDDE1\uDDE3\uDDE4\uDE00-\uDE32\uDE35-\uDE3E\uDE50-\uDE97\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC3E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD41\uDD43\uDD46\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD96\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDF00-\uDF10\uDF12-\uDF3A\uDF3E-\uDF40\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF4F-\uDF87\uDF8F-\uDF9F\uDFE0\uDFE1\uDFE3\uDFF0\uDFF1]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9E]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDC30-\uDC6D\uDC8F\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD47\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C\uDD30-\uDD49\uDD50-\uDD69\uDD70-\uDD89]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])|$)/,c=/[_.\- ]+/,d=new RegExp("^"+c.source),h=new RegExp(c.source+l.source,"gu"),f=new RegExp("\\d+"+l.source,"gu"),p=function(t,e){if("string"!==typeof t&&!Array.isArray(t))throw new TypeError("Expected the input to be `string | string[]`");if(e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({pascalCase:!1,preserveConsecutiveUppercase:!1},e),0===(t=Array.isArray(t)?t.map((function(t){return t.trim()})).filter((function(t){return t.length})).join("-"):t.trim()).length)return"";var n=!1===e.locale?function(t){return t.toLowerCase()}:function(t){return t.toLocaleLowerCase(e.locale)},r=!1===e.locale?function(t){return t.toUpperCase()}:function(t){return t.toLocaleUpperCase(e.locale)};return 1===t.length?e.pascalCase?r(t):n(t):(t!==n(t)&&(t=function(t,e,n){for(var r=!1,i=!1,o=!1,u=0;u<t.length;u++){var l=t[u];r&&a.test(l)?(t=t.slice(0,u)+"-"+t.slice(u),r=!1,o=i,i=!0,u++):i&&o&&s.test(l)?(t=t.slice(0,u-1)+"-"+t.slice(u-1),o=i,i=!1,r=!0):(r=e(l)===l&&n(l)!==l,o=i,i=n(l)===l&&e(l)!==l)}return t}(t,n,r)),t=t.replace(d,""),t=e.preserveConsecutiveUppercase?function(t,e){return u.lastIndex=0,t.replace(u,(function(t){return e(t)}))}(t,n):n(t),e.pascalCase&&(t=r(t.charAt(0))+t.slice(1)),function(t,e){return h.lastIndex=0,f.lastIndex=0,t.replace(h,(function(t,n){return e(n)})).replace(f,(function(t){return e(t)}))}(t,r))};t.exports=p,t.exports.default=p},function(t,e,n){"use strict";function r(t){return r="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},r(t)}t.exports=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==r(e)&&"object"==r(n)){if(e.constructor!==n.constructor)return!1;var i,o,a;if(Array.isArray(e)){if((i=e.length)!=n.length)return!1;for(o=i;0!==o--;)if(!t(e[o],n[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((i=(a=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(o=i;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=i;0!==o--;){var s=a[o];if(("_owner"!==s||!e.$$typeof)&&!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(","),r=t.name||"",i=(t.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?r.toLowerCase().endsWith(e):e.endsWith("/*")?o===e.replace(/\/.*$/,""):i===e}))}return!0}},function(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(15)],r=function(t){t.ui=t.ui||{},t.ui.version="1.12.1";var e,n,r=0,i=Array.prototype.slice;function o(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"hidden"!==e}t.cleanData=(e=t.cleanData,function(n){var r,i,o;for(o=0;null!=(i=n[o]);o++)try{(r=t._data(i,"events"))&&r.remove&&t(i).triggerHandler("remove")}catch(a){}e(n)}),t.widget=function(e,n,r){var i,o,a,s={},u=e.split(".")[0],l=u+"-"+(e=e.split(".")[1]);return r||(r=n,n=t.Widget),t.isArray(r)&&(r=t.extend.apply(null,[{}].concat(r))),t.expr.pseudos[l.toLowerCase()]=function(e){return!!t.data(e,l)},t[u]=t[u]||{},i=t[u][e],o=t[u][e]=function(t,e){if(!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,i,{version:r.version,_proto:t.extend({},r),_childConstructors:[]}),(a=new n).options=t.widget.extend({},a.options),t.each(r,(function(e,r){t.isFunction(r)?s[e]=function(){function t(){return n.prototype[e].apply(this,arguments)}function i(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=t,this._superApply=i,e=r.apply(this,arguments),this._super=n,this._superApply=o,e}}():s[e]=r})),o.prototype=t.widget.extend(a,{widgetEventPrefix:i&&a.widgetEventPrefix||e},s,{constructor:o,namespace:u,widgetName:e,widgetFullName:l}),i?(t.each(i._childConstructors,(function(e,n){var r=n.prototype;t.widget(r.namespace+"."+r.widgetName,o,n._proto)})),delete i._childConstructors):n._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var n,r,o=i.call(arguments,1),a=0,s=o.length;a<s;a++)for(n in o[a])r=o[a][n],o[a].hasOwnProperty(n)&&void 0!==r&&(t.isPlainObject(r)?e[n]=t.isPlainObject(e[n])?t.widget.extend({},e[n],r):t.widget.extend({},r):e[n]=r);return e},t.widget.bridge=function(e,n){var r=n.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"===typeof o,s=i.call(arguments,1),u=this;return a?this.length||"instance"!==o?this.each((function(){var n,i=t.data(this,r);return"instance"===o?(u=i,!1):i?t.isFunction(i[o])&&"_"!==o.charAt(0)?(n=i[o].apply(i,s))!==i&&void 0!==n?(u=n&&n.jquery?u.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):u=void 0:(s.length&&(o=t.widget.extend.apply(null,[o].concat(s))),this.each((function(){var e=t.data(this,r);e?(e.option(o||{}),e._init&&e._init()):t.data(this,r,new n(o,this))}))),u}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,n){e._removeClass(n,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,n){var r,i,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"===typeof e)if(a={},r=e.split("."),e=r.shift(),r.length){for(i=a[e]=t.widget.extend({},this.options[e]),o=0;o<r.length-1;o++)i[r[o]]=i[r[o]]||{},i=i[r[o]];if(e=r.pop(),1===arguments.length)return void 0===i[e]?null:i[e];i[e]=n}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var n,r,i;for(n in e)i=this.classesElementLookup[n],e[n]!==this.options.classes[n]&&i&&i.length&&(r=t(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var n=[],r=this;function i(i,o){var a,s;for(s=0;s<i.length;s++)a=r.classesElementLookup[i[s]]||t(),a=e.add?t(t.uniqueSort(a.get().concat(e.element.get()))):t(a.not(e.element).get()),r.classesElementLookup[i[s]]=a,n.push(i[s]),o&&e.classes[i[s]]&&n.push(e.classes[i[s]])}return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var n=this;t.each(n.classesElementLookup,(function(r,i){-1!==t.inArray(e.target,i)&&(n.classesElementLookup[r]=t(i.not(e.target).get()))}))},_removeClass:function(t,e,n){return this._toggleClass(t,e,n,!1)},_addClass:function(t,e,n){return this._toggleClass(t,e,n,!0)},_toggleClass:function(t,e,n,r){r="boolean"===typeof r?r:n;var i="string"===typeof t||null===t,o={extra:i?e:n,keys:i?t:e,element:i?this.element:t,add:r};return o.element.toggleClass(this._classes(o),r),this},_on:function(e,n,r){var i,o=this;"boolean"!==typeof e&&(r=n,n=e,e=!1),r?(n=i=t(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),t.each(r,(function(r,a){function s(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"===typeof a?o[a]:a).apply(o,arguments)}"string"!==typeof a&&(s.guid=a.guid=a.guid||s.guid||t.guid++);var u=r.match(/^([\w:-]*)\s*(.*)$/),l=u[1]+o.eventNamespace,c=u[2];c?i.on(l,c,s):n.on(l,s)}))},_off:function(e,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(n).off(n),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function n(){return("string"===typeof t?r[t]:t).apply(r,arguments)}var r=this;return setTimeout(n,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,n,r){var i,o,a=this.options[e];if(r=r||{},(n=t.Event(n)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(i in o)i in n||(n[i]=o[i]);return this.element.trigger(n,r),!(t.isFunction(a)&&!1===a.apply(this.element[0],[n].concat(r))||n.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,n){t.Widget.prototype["_"+e]=function(r,i,o){var a;"string"===typeof i&&(i={effect:i});var s=i?!0===i||"number"===typeof i?n:i.effect||n:e;"number"===typeof(i=i||{})&&(i={duration:i}),a=!t.isEmptyObject(i),i.complete=o,i.delay&&r.delay(i.delay),a&&t.effects&&t.effects.effect[s]?r[e](i):s!==e&&r[s]?r[s](i.duration,i.easing,o):r.queue((function(n){t(this)[e](),o&&o.call(r[0]),n()}))}})),t.widget,function(){var e,n=Math.max,r=Math.abs,i=/left|center|right/,o=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,u=/%$/,l=t.fn.position;function c(t,e,n){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?n/100:1)]}function d(e,n){return parseInt(t.css(e,n),10)||0}function h(e){var n=e[0];return 9===n.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(n)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}t.position={scrollbarWidth:function(){if(void 0!==e)return e;var n,r,i=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=i.children()[0];return t("body").append(i),n=o.offsetWidth,i.css("overflow","scroll"),n===(r=o.offsetWidth)&&(r=i[0].clientWidth),i.remove(),e=n-r},getScrollInfo:function(e){var n=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),r=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),i="scroll"===n||"auto"===n&&e.width<e.element[0].scrollWidth;return{width:"scroll"===r||"auto"===r&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:i?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var n=t(e||window),r=t.isWindow(n[0]),i=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:r,isDocument:i,offset:r||i?{left:0,top:0}:t(e).offset(),scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return l.apply(this,arguments);e=t.extend({},e);var u,f,p,m,g,y,v=t(e.of),_=t.position.getWithinInfo(e.within),b=t.position.getScrollInfo(_),w=(e.collision||"flip").split(" "),k={};return y=h(v),v[0].preventDefault&&(e.at="left top"),f=y.width,p=y.height,m=y.offset,g=t.extend({},m),t.each(["my","at"],(function(){var t,n,r=(e[this]||"").split(" ");1===r.length&&(r=i.test(r[0])?r.concat(["center"]):o.test(r[0])?["center"].concat(r):["center","center"]),r[0]=i.test(r[0])?r[0]:"center",r[1]=o.test(r[1])?r[1]:"center",t=a.exec(r[0]),n=a.exec(r[1]),k[this]=[t?t[0]:0,n?n[0]:0],e[this]=[s.exec(r[0])[0],s.exec(r[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===e.at[0]?g.left+=f:"center"===e.at[0]&&(g.left+=f/2),"bottom"===e.at[1]?g.top+=p:"center"===e.at[1]&&(g.top+=p/2),u=c(k.at,f,p),g.left+=u[0],g.top+=u[1],this.each((function(){var i,o,a=t(this),s=a.outerWidth(),l=a.outerHeight(),h=d(this,"marginLeft"),y=d(this,"marginTop"),S=s+h+d(this,"marginRight")+b.width,E=l+y+d(this,"marginBottom")+b.height,C=t.extend({},g),x=c(k.my,a.outerWidth(),a.outerHeight());"right"===e.my[0]?C.left-=s:"center"===e.my[0]&&(C.left-=s/2),"bottom"===e.my[1]?C.top-=l:"center"===e.my[1]&&(C.top-=l/2),C.left+=x[0],C.top+=x[1],i={marginLeft:h,marginTop:y},t.each(["left","top"],(function(n,r){t.ui.position[w[n]]&&t.ui.position[w[n]][r](C,{targetWidth:f,targetHeight:p,elemWidth:s,elemHeight:l,collisionPosition:i,collisionWidth:S,collisionHeight:E,offset:[u[0]+x[0],u[1]+x[1]],my:e.my,at:e.at,within:_,elem:a})})),e.using&&(o=function(t){var i=m.left-C.left,o=i+f-s,u=m.top-C.top,c=u+p-l,d={target:{element:v,left:m.left,top:m.top,width:f,height:p},element:{element:a,left:C.left,top:C.top,width:s,height:l},horizontal:o<0?"left":i>0?"right":"center",vertical:c<0?"top":u>0?"bottom":"middle"};f<s&&r(i+o)<f&&(d.horizontal="center"),p<l&&r(u+c)<p&&(d.vertical="middle"),n(r(i),r(o))>n(r(u),r(c))?d.important="horizontal":d.important="vertical",e.using.call(this,t,d)}),a.offset(t.extend(C,{using:o}))}))},t.ui.position={fit:{left:function(t,e){var r,i=e.within,o=i.isWindow?i.scrollLeft:i.offset.left,a=i.width,s=t.left-e.collisionPosition.marginLeft,u=o-s,l=s+e.collisionWidth-a-o;e.collisionWidth>a?u>0&&l<=0?(r=t.left+u+e.collisionWidth-a-o,t.left+=u-r):t.left=l>0&&u<=0?o:u>l?o+a-e.collisionWidth:o:u>0?t.left+=u:l>0?t.left-=l:t.left=n(t.left-s,t.left)},top:function(t,e){var r,i=e.within,o=i.isWindow?i.scrollTop:i.offset.top,a=e.within.height,s=t.top-e.collisionPosition.marginTop,u=o-s,l=s+e.collisionHeight-a-o;e.collisionHeight>a?u>0&&l<=0?(r=t.top+u+e.collisionHeight-a-o,t.top+=u-r):t.top=l>0&&u<=0?o:u>l?o+a-e.collisionHeight:o:u>0?t.top+=u:l>0?t.top-=l:t.top=n(t.top-s,t.top)}},flip:{left:function(t,e){var n,i,o=e.within,a=o.offset.left+o.scrollLeft,s=o.width,u=o.isWindow?o.scrollLeft:o.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-u,d=l+e.collisionWidth-s-u,h="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,f="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,p=-2*e.offset[0];c<0?((n=t.left+h+f+p+e.collisionWidth-s-a)<0||n<r(c))&&(t.left+=h+f+p):d>0&&((i=t.left-e.collisionPosition.marginLeft+h+f+p-u)>0||r(i)<d)&&(t.left+=h+f+p)},top:function(t,e){var n,i,o=e.within,a=o.offset.top+o.scrollTop,s=o.height,u=o.isWindow?o.scrollTop:o.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-u,d=l+e.collisionHeight-s-u,h="top"===e.my[1],f=h?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,m=-2*e.offset[1];c<0?((i=t.top+f+p+m+e.collisionHeight-s-a)<0||i<r(c))&&(t.top+=f+p+m):d>0&&((n=t.top-e.collisionPosition.marginTop+f+p+m-u)>0||r(n)<d)&&(t.top+=f+p+m)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr.pseudos,{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(n){return!!t.data(n,e)}})):function(e,n,r){return!!t.data(e,r[3])}}),t.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",(function(t){t.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.focusable=function(e,n){var r,i,a,s,u,l=e.nodeName.toLowerCase();return"area"===l?(i=(r=e.parentNode).name,!(!e.href||!i||"map"!==r.nodeName.toLowerCase())&&(a=t("img[usemap='#"+i+"']")).length>0&&a.is(":visible")):(/^(input|select|textarea|button|object)$/.test(l)?(s=!e.disabled)&&(u=t(e).closest("fieldset")[0])&&(s=!u.disabled):s="a"===l&&e.href||n,s&&t(e).is(":visible")&&o(t(e)))},t.extend(t.expr.pseudos,{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"===typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout((function(){var n=e.data("ui-form-reset-instances");t.each(n,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],(function(e,n){var r="Width"===n?["Left","Right"]:["Top","Bottom"],i=n.toLowerCase(),o={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};function a(e,n,i,o){return t.each(r,(function(){n-=parseFloat(t.css(e,"padding"+this))||0,i&&(n-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(n-=parseFloat(t.css(e,"margin"+this))||0)})),n}t.fn["inner"+n]=function(e){return void 0===e?o["inner"+n].call(this):this.each((function(){t(this).css(i,a(this,e)+"px")}))},t.fn["outer"+n]=function(e,r){return"number"!==typeof e?o["outer"+n].call(this,e):this.each((function(){t(this).css(i,a(this,e,!0,r)+"px")}))}})),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=(u=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(u,"\\$1")}),t.fn.labels=function(){var e,n,r,i,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(r=this.attr("id"))&&(o=(e=this.eq(0).parents().last()).add(e.length?e.siblings():this.siblings()),n="label[for='"+t.ui.escapeSelector(r)+"']",i=i.add(o.find(n).addBack(n))),this.pushStack(i))},t.fn.scrollParent=function(e){var n=this.css("position"),r="absolute"===n,i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var e=t(this);return(!r||"static"!==e.css("position"))&&i.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==n&&o.length?o:t(this[0].ownerDocument||document)},t.extend(t.expr.pseudos,{tabbable:function(e){var n=t.attr(e,"tabindex"),r=null!=n;return(!r||n>=0)&&t.ui.focusable(e,r)}}),t.fn.extend({uniqueId:(s=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++s)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var s,u,l=!1;t(document).on("mouseup",(function(){l=!1})),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(n){if(!0===t.data(n.target,e.widgetName+".preventClickEvent"))return t.removeData(n.target,e.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!l){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var n=this,r=1===e.which,i=!("string"!==typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(r&&!i&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),l=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,l=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,n,r){var i,o=t.ui[e].prototype;for(i in r)o.plugins[i]=o.plugins[i]||[],o.plugins[i].push([n,r[i]])},call:function(t,e,n,r){var i,o=t.plugins[e];if(o&&(r||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(i=0;i<o.length;i++)t.options[o[i][0]]&&o[i][1].apply(t.element,n)}},t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(n){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var n=this.options;return!(this.helper||n.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var n=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(n).length||t.ui.safeBlur(n)},_mouseStart:function(e){var n=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var r=this._uiHash();if(!1===this._trigger("drag",e,r))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=r.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var n=this,r=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(r=t.ui.ddmanager.drop(this,e)),this.dropped&&(r=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!r||"valid"===this.options.revert&&r||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,r)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==n._trigger("stop",e)&&n._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var n=this.options,r=t.isFunction(n.helper),i=r?t(n.helper.apply(this.element[0],[e])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return i.parents("body").length||i.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),r&&i[0]===this.element[0]&&this._setPositionRelative(),i[0]===this.element[0]||/(fixed|absolute)/.test(i.css("position"))||i.css("position","absolute"),i},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"===typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,r,i=this.options,o=this.document[0];this.relativeContainer=null,i.containment?"window"!==i.containment?"document"!==i.containment?i.containment.constructor!==Array?("parent"===i.containment&&(i.containment=this.helper[0].parentNode),(r=(n=t(i.containment))[0])&&(e=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(e?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=i.containment:this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var n="absolute"===t?1:-1,r=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top)*n,left:e.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)*n}},_generatePosition:function(t,e){var n,r,i,o,a=this.options,s=this._isRootNode(this.scrollParent[0]),u=t.pageX,l=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(r=this.relativeContainer.offset(),n=[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]):n=this.containment,t.pageX-this.offset.click.left<n[0]&&(u=n[0]+this.offset.click.left),t.pageY-this.offset.click.top<n[1]&&(l=n[1]+this.offset.click.top),t.pageX-this.offset.click.left>n[2]&&(u=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(l=n[3]+this.offset.click.top)),a.grid&&(i=a.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,l=n?i-this.offset.click.top>=n[1]||i-this.offset.click.top>n[3]?i:i-this.offset.click.top>=n[1]?i-a.grid[1]:i+a.grid[1]:i,o=a.grid[0]?this.originalPageX+Math.round((u-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,u=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(u=this.originalPageX),"x"===a.axis&&(l=this.originalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:u-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,n,r){return r=r||this._uiHash(),t.ui.plugin.call(this,e,[n,r,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),r.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,n,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,n,r){var i=t.extend({},n,{item:r.element});r.sortables=[],t(r.options.connectToSortable).each((function(){var n=t(this).sortable("instance");n&&!n.options.disabled&&(r.sortables.push(n),n.refreshPositions(),n._trigger("activate",e,i))}))},stop:function(e,n,r){var i=t.extend({},n,{item:r.element});r.cancelHelperRemoval=!1,t.each(r.sortables,(function(){var t=this;t.isOver?(t.isOver=0,r.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,i))}))},drag:function(e,n,r){t.each(r.sortables,(function(){var i=!1,o=this;o.positionAbs=r.positionAbs,o.helperProportions=r.helperProportions,o.offset.click=r.offset.click,o._intersectsWith(o.containerCache)&&(i=!0,t.each(r.sortables,(function(){return this.positionAbs=r.positionAbs,this.helperProportions=r.helperProportions,this.offset.click=r.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(i=!1),i}))),i?(o.isOver||(o.isOver=1,r._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=r.offset.click.top,o.offset.click.left=r.offset.click.left,o.offset.parent.left-=r.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=r.offset.parent.top-o.offset.parent.top,r._trigger("toSortable",e),r.dropped=o.element,t.each(r.sortables,(function(){this.refreshPositions()})),r.currentItem=r.element,o.fromOutside=r),o.currentItem&&(o._mouseDrag(e),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(r._parent),r._refreshOffsets(e),n.position=r._generatePosition(e,!0),r._trigger("fromSortable",e),r.dropped=!1,t.each(r.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,n,r){var i=t("body"),o=r.options;i.css("cursor")&&(o._cursor=i.css("cursor")),i.css("cursor",o.cursor)},stop:function(e,n,r){var i=r.options;i._cursor&&t("body").css("cursor",i._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,n,r){var i=t(n.helper),o=r.options;i.css("opacity")&&(o._opacity=i.css("opacity")),i.css("opacity",o.opacity)},stop:function(e,n,r){var i=r.options;i._opacity&&t(n.helper).css("opacity",i._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(e,n,r){var i=r.options,o=!1,a=r.scrollParentNotHidden[0],s=r.document[0];a!==s&&"HTML"!==a.tagName?(i.axis&&"x"===i.axis||(r.overflowOffset.top+a.offsetHeight-e.pageY<i.scrollSensitivity?a.scrollTop=o=a.scrollTop+i.scrollSpeed:e.pageY-r.overflowOffset.top<i.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-i.scrollSpeed)),i.axis&&"y"===i.axis||(r.overflowOffset.left+a.offsetWidth-e.pageX<i.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+i.scrollSpeed:e.pageX-r.overflowOffset.left<i.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-i.scrollSpeed))):(i.axis&&"x"===i.axis||(e.pageY-t(s).scrollTop()<i.scrollSensitivity?o=t(s).scrollTop(t(s).scrollTop()-i.scrollSpeed):t(window).height()-(e.pageY-t(s).scrollTop())<i.scrollSensitivity&&(o=t(s).scrollTop(t(s).scrollTop()+i.scrollSpeed))),i.axis&&"y"===i.axis||(e.pageX-t(s).scrollLeft()<i.scrollSensitivity?o=t(s).scrollLeft(t(s).scrollLeft()-i.scrollSpeed):t(window).width()-(e.pageX-t(s).scrollLeft())<i.scrollSensitivity&&(o=t(s).scrollLeft(t(s).scrollLeft()+i.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(r,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,n,r){var i=r.options;r.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each((function(){var e=t(this),n=e.offset();this!==r.element[0]&&r.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:n.top,left:n.left})}))},drag:function(e,n,r){var i,o,a,s,u,l,c,d,h,f,p=r.options,m=p.snapTolerance,g=n.offset.left,y=g+r.helperProportions.width,v=n.offset.top,_=v+r.helperProportions.height;for(h=r.snapElements.length-1;h>=0;h--)l=(u=r.snapElements[h].left-r.margins.left)+r.snapElements[h].width,d=(c=r.snapElements[h].top-r.margins.top)+r.snapElements[h].height,y<u-m||g>l+m||_<c-m||v>d+m||!t.contains(r.snapElements[h].item.ownerDocument,r.snapElements[h].item)?(r.snapElements[h].snapping&&r.options.snap.release&&r.options.snap.release.call(r.element,e,t.extend(r._uiHash(),{snapItem:r.snapElements[h].item})),r.snapElements[h].snapping=!1):("inner"!==p.snapMode&&(i=Math.abs(c-_)<=m,o=Math.abs(d-v)<=m,a=Math.abs(u-y)<=m,s=Math.abs(l-g)<=m,i&&(n.position.top=r._convertPositionTo("relative",{top:c-r.helperProportions.height,left:0}).top),o&&(n.position.top=r._convertPositionTo("relative",{top:d,left:0}).top),a&&(n.position.left=r._convertPositionTo("relative",{top:0,left:u-r.helperProportions.width}).left),s&&(n.position.left=r._convertPositionTo("relative",{top:0,left:l}).left)),f=i||o||a||s,"outer"!==p.snapMode&&(i=Math.abs(c-v)<=m,o=Math.abs(d-_)<=m,a=Math.abs(u-g)<=m,s=Math.abs(l-y)<=m,i&&(n.position.top=r._convertPositionTo("relative",{top:c,left:0}).top),o&&(n.position.top=r._convertPositionTo("relative",{top:d-r.helperProportions.height,left:0}).top),a&&(n.position.left=r._convertPositionTo("relative",{top:0,left:u}).left),s&&(n.position.left=r._convertPositionTo("relative",{top:0,left:l-r.helperProportions.width}).left)),!r.snapElements[h].snapping&&(i||o||a||s||f)&&r.options.snap.snap&&r.options.snap.snap.call(r.element,e,t.extend(r._uiHash(),{snapItem:r.snapElements[h].item})),r.snapElements[h].snapping=i||o||a||s||f)}}),t.ui.plugin.add("draggable","stack",{start:function(e,n,r){var i,o=r.options,a=t.makeArray(t(o.stack)).sort((function(e,n){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(n).css("zIndex"),10)||0)}));a.length&&(i=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each((function(e){t(this).css("zIndex",i+e)})),this.css("zIndex",i+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,n,r){var i=t(n.helper),o=r.options;i.css("zIndex")&&(o._zIndex=i.css("zIndex")),i.css("zIndex",o.zIndex)},stop:function(e,n,r){var i=r.options;i._zIndex&&t(n.helper).css("zIndex",i._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,n=this.options,r=n.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(r)?r:function(t){return t.is(r)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,n){if("accept"===e)this.accept=t.isFunction(n)?n:function(t){return t.is(n)};else if("scope"===e){var r=t.ui.ddmanager.droppables[this.options.scope];this._splice(r),this._addToManager(n)}this._super(e,n)},_activate:function(e){var n=t.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",e,this.ui(n))},_deactivate:function(e){var n=t.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",e,this.ui(n))},_over:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(n)))},_out:function(e){var n=t.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(n)))},_drop:function(e,n){var r=n||t.ui.ddmanager.current,i=!1;return!(!r||(r.currentItem||r.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var n=t(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===r.options.scope&&n.accept.call(n.element[0],r.currentItem||r.element)&&c(r,t.extend(n,{offset:n.element.offset()}),n.options.tolerance,e))return i=!0,!1})),!i&&!!this.accept.call(this.element[0],r.currentItem||r.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(r)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var c=t.ui.intersect=function(){function t(t,e,n){return t>=e&&t<e+n}return function(e,n,r,i){if(!n.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,s=o+e.helperProportions.width,u=a+e.helperProportions.height,l=n.offset.left,c=n.offset.top,d=l+n.proportions().width,h=c+n.proportions().height;switch(r){case"fit":return l<=o&&s<=d&&c<=a&&u<=h;case"intersect":return l<o+e.helperProportions.width/2&&s-e.helperProportions.width/2<d&&c<a+e.helperProportions.height/2&&u-e.helperProportions.height/2<h;case"pointer":return t(i.pageY,c,n.proportions().height)&&t(i.pageX,l,n.proportions().width);case"touch":return(a>=c&&a<=h||u>=c&&u<=h||a<c&&u>h)&&(o>=l&&o<=d||s>=l&&s<=d||o<l&&s>d);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,n){var r,i,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=n?n.type:null,s=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(r=0;r<o.length;r++)if(!(o[r].options.disabled||e&&!o[r].accept.call(o[r].element[0],e.currentItem||e.element))){for(i=0;i<s.length;i++)if(s[i]===o[r].element[0]){o[r].proportions().height=0;continue t}o[r].visible="none"!==o[r].element.css("display"),o[r].visible&&("mousedown"===a&&o[r]._activate.call(o[r],n),o[r].offset=o[r].element.offset(),o[r].proportions({width:o[r].element[0].offsetWidth,height:o[r].element[0].offsetHeight}))}},drop:function(e,n){var r=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&c(e,this,this.options.tolerance,n)&&(r=this._drop.call(this,n)||r),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))})),r},dragStart:function(e,n){e.element.parentsUntil("body").on("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}))},drag:function(e,n){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,n),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var r,i,o,a=c(e,this,this.options.tolerance,n),s=!a&&this.isover?"isout":a&&!this.isover?"isover":null;s&&(this.options.greedy&&(i=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===i}))).length&&((r=t(o[0]).droppable("instance")).greedyChild="isover"===s)),r&&"isover"===s&&(r.isover=!1,r.isout=!0,r._out.call(r,n)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,n),r&&"isout"===s&&(r.isout=!1,r.isover=!0,r._over.call(r,n)))}}))},dragStop:function(e,n){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,n)}},!1!==t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,n){if("hidden"===t(e).css("overflow"))return!1;var r=n&&"left"===n?"scrollLeft":"scrollTop",i=!1;return e[r]>0||(e[r]=1,i=e[r]>0,e[r]=0,i)},_create:function(){var e,n=this.options,r=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),n.autoHide&&t(this.element).on("mouseenter",(function(){n.disabled||(r._removeClass("ui-resizable-autohide"),r._handles.show())})).on("mouseleave",(function(){n.disabled||r.resizing||(r._addClass("ui-resizable-autohide"),r._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,n=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(t,e){this._super(t,e),"handles"===t&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var e,n,r,i,o,a=this.options,s=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),r=this.handles.split(","),this.handles={},n=0;n<r.length;n++)i="ui-resizable-"+(e=t.trim(r[n])),o=t("<div>"),this._addClass(o,"ui-resizable-handle "+i),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var n,r,i,o;for(n in e=e||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=t(this.handles[n]),this._on(this.handles[n],{mousedown:s._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(r=t(this.handles[n],this.element),o=/sw|ne|nw|se|n|s/.test(n)?r.outerHeight():r.outerWidth(),i=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),e.css(i,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){s.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=o&&o[1]?o[1]:"se")})),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var n,r,i=!1;for(n in this.handles)((r=t(this.handles[n])[0])===e.target||t.contains(r,e.target))&&(i=!0);return!this.options.disabled&&i},_mouseStart:function(e){var n,r,i,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),r=this._num(this.helper.css("top")),o.containment&&(n+=t(o.containment).scrollLeft()||0,r+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:r},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:n,top:r},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"===typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,i=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===i?this.axis+"-resize":i),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var n,r,i=this.originalMousePosition,o=this.axis,a=e.pageX-i.left||0,s=e.pageY-i.top||0,u=this._change[o];return this._updatePrevProperties(),!!u&&(n=u.apply(this,[e,a,s]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(n=this._updateRatio(n,e)),n=this._respectSize(n,e),this._updateCache(n),this._propagate("resize",e),r=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(r)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var n,r,i,o,a,s,u,l=this.options,c=this;return this._helper&&(i=(r=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:c.sizeDiff.height,o=r?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-i},s=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,u=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(t.extend(a,{top:u,left:s})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,n,r,i,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,r=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,i=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),r>o.minHeight&&(o.minHeight=r),n<o.maxWidth&&(o.maxWidth=n),i<o.maxHeight&&(o.maxHeight=i)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,r=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===r&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===r&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,r=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,i=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,s=this.originalPosition.left+this.originalSize.width,u=this.originalPosition.top+this.originalSize.height,l=/sw|nw|w/.test(n),c=/nw|ne|n/.test(n);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),r&&(t.width=e.maxWidth),i&&(t.height=e.maxHeight),o&&l&&(t.left=s-e.minWidth),r&&l&&(t.left=s-e.maxWidth),a&&c&&(t.top=u-e.minHeight),i&&c&&(t.top=u-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,n=[],r=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],i=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)n[e]=parseFloat(r[e])||0,n[e]+=parseFloat(i[e])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,n=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,n=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var n=this.originalSize;return{left:this.originalPosition.left+e,width:n.width-e}},n:function(t,e,n){var r=this.originalSize;return{top:this.originalPosition.top+n,height:r.height-n}},s:function(t,e,n){return{height:this.originalSize.height+n}},se:function(e,n,r){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,n,r]))},sw:function(e,n,r){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,n,r]))},ne:function(e,n,r){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,n,r]))},nw:function(e,n,r){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,n,r]))}},_propagate:function(e,n){t.ui.plugin.call(this,e,[n,this.ui()]),"resize"!==e&&this._trigger(e,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var n=t(this).resizable("instance"),r=n.options,i=n._proportionallyResizeElements,o=i.length&&/textarea/i.test(i[0].nodeName),a=o&&n._hasScroll(i[0],"left")?0:n.sizeDiff.height,s=o?0:n.sizeDiff.width,u={width:n.size.width-s,height:n.size.height-a},l=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,c=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(t.extend(u,c&&l?{top:c,left:l}:{}),{duration:r.animateDuration,easing:r.animateEasing,step:function(){var r={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};i&&i.length&&t(i[0]).css({width:r.width,height:r.height}),n._updateCache(r),n._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,n,r,i,o,a,s,u=t(this).resizable("instance"),l=u.options,c=u.element,d=l.containment,h=d instanceof t?d.get(0):/parent/.test(d)?c.parent().get(0):d;h&&(u.containerElement=t(h),/document/.test(d)||d===document?(u.containerOffset={left:0,top:0},u.containerPosition={left:0,top:0},u.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(h),n=[],t(["Top","Right","Left","Bottom"]).each((function(t,r){n[t]=u._num(e.css("padding"+r))})),u.containerOffset=e.offset(),u.containerPosition=e.position(),u.containerSize={height:e.innerHeight()-n[3],width:e.innerWidth()-n[1]},r=u.containerOffset,i=u.containerSize.height,o=u.containerSize.width,a=u._hasScroll(h,"left")?h.scrollWidth:o,s=u._hasScroll(h)?h.scrollHeight:i,u.parentData={element:h,left:r.left,top:r.top,width:a,height:s}))},resize:function(e){var n,r,i,o,a=t(this).resizable("instance"),s=a.options,u=a.containerOffset,l=a.position,c=a._aspectRatio||e.shiftKey,d={top:0,left:0},h=a.containerElement,f=!0;h[0]!==document&&/static/.test(h.css("position"))&&(d=u),l.left<(a._helper?u.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-u.left:a.position.left-d.left),c&&(a.size.height=a.size.width/a.aspectRatio,f=!1),a.position.left=s.helper?u.left:0),l.top<(a._helper?u.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-u.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,f=!1),a.position.top=a._helper?u.top:0),i=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),i&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),n=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-d.left:a.offset.left-u.left)),r=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-d.top:a.offset.top-u.top)),n+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-n,c&&(a.size.height=a.size.width/a.aspectRatio,f=!1)),r+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-r,c&&(a.size.width=a.size.height*a.aspectRatio,f=!1)),f||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),n=e.options,r=e.containerOffset,i=e.containerPosition,o=e.containerElement,a=t(e.helper),s=a.offset(),u=a.outerWidth()-e.sizeDiff.width,l=a.outerHeight()-e.sizeDiff.height;e._helper&&!n.animate&&/relative/.test(o.css("position"))&&t(this).css({left:s.left-i.left-r.left,width:u,height:l}),e._helper&&!n.animate&&/static/.test(o.css("position"))&&t(this).css({left:s.left-i.left-r.left,width:u,height:l})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})}))},resize:function(e,n){var r=t(this).resizable("instance"),i=r.options,o=r.originalSize,a=r.originalPosition,s={height:r.size.height-o.height||0,width:r.size.width-o.width||0,top:r.position.top-a.top||0,left:r.position.left-a.left||0};t(i.alsoResize).each((function(){var e=t(this),r=t(this).data("ui-resizable-alsoresize"),i={},o=e.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,(function(t,e){var n=(r[e]||0)+(s[e]||0);n&&n>=0&&(i[e]=n||null)})),e.css(i)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"===typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,n=t(this).resizable("instance"),r=n.options,i=n.size,o=n.originalSize,a=n.originalPosition,s=n.axis,u="number"===typeof r.grid?[r.grid,r.grid]:r.grid,l=u[0]||1,c=u[1]||1,d=Math.round((i.width-o.width)/l)*l,h=Math.round((i.height-o.height)/c)*c,f=o.width+d,p=o.height+h,m=r.maxWidth&&r.maxWidth<f,g=r.maxHeight&&r.maxHeight<p,y=r.minWidth&&r.minWidth>f,v=r.minHeight&&r.minHeight>p;r.grid=u,y&&(f+=l),v&&(p+=c),m&&(f-=l),g&&(p-=c),/^(se|s|e)$/.test(s)?(n.size.width=f,n.size.height=p):/^(ne)$/.test(s)?(n.size.width=f,n.size.height=p,n.position.top=a.top-h):/^(sw)$/.test(s)?(n.size.width=f,n.size.height=p,n.position.left=a.left-d):((p-c<=0||f-l<=0)&&(e=n._getPaddingPlusBorderDimensions(this)),p-c>0?(n.size.height=p,n.position.top=a.top-h):(p=c-e.height,n.size.height=p,n.position.top=a.top+o.height-p),f-l>0?(n.size.width=f,n.position.left=a.left-d):(f=l-e.width,n.size.width=f,n.position.left=a.left+o.width-f))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each((function(){var n=t(this),r=n.offset(),i={left:r.left-e.elementPos.left,top:r.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:n,left:i.left,top:i.top,right:i.left+n.outerWidth(),bottom:i.top+n.outerHeight(),startselected:!1,selected:n.hasClass("ui-selected"),selecting:n.hasClass("ui-selecting"),unselecting:n.hasClass("ui-unselecting")})}))},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var n=this,r=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(r.filter,this.element[0]),this._trigger("start",e),t(r.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var r=t.data(this,"selectable-item");r.startselected=!0,e.metaKey||e.ctrlKey||(n._removeClass(r.$element,"ui-selected"),r.selected=!1,n._addClass(r.$element,"ui-unselecting"),r.unselecting=!0,n._trigger("unselecting",e,{unselecting:r.element}))})),t(e.target).parents().addBack().each((function(){var r,i=t.data(this,"selectable-item");if(i)return r=!e.metaKey&&!e.ctrlKey||!i.$element.hasClass("ui-selected"),n._removeClass(i.$element,r?"ui-unselecting":"ui-selected")._addClass(i.$element,r?"ui-selecting":"ui-unselecting"),i.unselecting=!r,i.selecting=r,i.selected=r,r?n._trigger("selecting",e,{selecting:i.element}):n._trigger("unselecting",e,{unselecting:i.element}),!1})))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var n,r=this,i=this.options,o=this.opos[0],a=this.opos[1],s=e.pageX,u=e.pageY;return o>s&&(n=s,s=o,o=n),a>u&&(n=u,u=a,a=n),this.helper.css({left:o,top:a,width:s-o,height:u-a}),this.selectees.each((function(){var n=t.data(this,"selectable-item"),l=!1,c={};n&&n.element!==r.element[0]&&(c.left=n.left+r.elementPos.left,c.right=n.right+r.elementPos.left,c.top=n.top+r.elementPos.top,c.bottom=n.bottom+r.elementPos.top,"touch"===i.tolerance?l=!(c.left>s||c.right<o||c.top>u||c.bottom<a):"fit"===i.tolerance&&(l=c.left>o&&c.right<s&&c.top>a&&c.bottom<u),l?(n.selected&&(r._removeClass(n.$element,"ui-selected"),n.selected=!1),n.unselecting&&(r._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1),n.selecting||(r._addClass(n.$element,"ui-selecting"),n.selecting=!0,r._trigger("selecting",e,{selecting:n.element}))):(n.selecting&&((e.metaKey||e.ctrlKey)&&n.startselected?(r._removeClass(n.$element,"ui-selecting"),n.selecting=!1,r._addClass(n.$element,"ui-selected"),n.selected=!0):(r._removeClass(n.$element,"ui-selecting"),n.selecting=!1,n.startselected&&(r._addClass(n.$element,"ui-unselecting"),n.unselecting=!0),r._trigger("unselecting",e,{unselecting:n.element}))),n.selected&&(e.metaKey||e.ctrlKey||n.startselected||(r._removeClass(n.$element,"ui-selected"),n.selected=!1,r._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,r._trigger("unselecting",e,{unselecting:n.element})))))})),!1}},_mouseStop:function(e){var n=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each((function(){var r=t.data(this,"selectable-item");n._removeClass(r.$element,"ui-unselecting"),r.unselecting=!1,r.startselected=!1,n._trigger("unselected",e,{unselected:r.element})})),t(".ui-selecting",this.element[0]).each((function(){var r=t.data(this,"selectable-item");n._removeClass(r.$element,"ui-selecting")._addClass(r.$element,"ui-selected"),r.selecting=!1,r.selected=!0,r.startselected=!0,n._trigger("selected",e,{selected:r.element})})),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,n){return t>=e&&t<e+n},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,n){var r=null,i=!1,o=this;return!this.reverting&&!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,o.widgetName+"-item")===o)return r=t(this),!1})),t.data(e.target,o.widgetName+"-item")===o&&(r=t(e.target)),!!r&&!(this.options.handle&&!n&&(t(this.options.handle,r).find("*").addBack().each((function(){this===e.target&&(i=!0)})),!i))&&(this.currentItem=r,this._removeCurrentsFromItems(),!0))},_mouseStart:function(e,n,r){var i,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!r)for(i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var n,r,i,o,a=this.options,s=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=s=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=s=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?s=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(s=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?s=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(s=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),!1!==s&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(i=(r=this.items[n]).item[0],(o=this._intersectsWithPointer(r))&&r.instance===this.currentContainer&&i!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==i&&!t.contains(this.placeholder[0],i)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],i))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(r))break;this._rearrange(e,r),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,n){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var r=this,i=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){r._clear(e)}))}else this._clear(e,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var n=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},t(n).each((function(){var n=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);n&&r.push((e.key||n[1]+"[]")+"="+(e.key&&e.expression?n[1]:n[2]))})),!r.length&&e.key&&r.push(e.key+"="),r.join("&")},toArray:function(e){var n=this._getItemsAsjQuery(e&&e.connected),r=[];return e=e||{},n.each((function(){r.push(t(e.item||this).attr(e.attribute||"id")||"")})),r},_intersectsWith:function(t){var e=this.positionAbs.left,n=e+this.helperProportions.width,r=this.positionAbs.top,i=r+this.helperProportions.height,o=t.left,a=o+t.width,s=t.top,u=s+t.height,l=this.offset.click.top,c=this.offset.click.left,d="x"===this.options.axis||r+l>s&&r+l<u,h="y"===this.options.axis||e+c>o&&e+c<a,f=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?f:o<e+this.helperProportions.width/2&&n-this.helperProportions.width/2<a&&s<r+this.helperProportions.height/2&&i-this.helperProportions.height/2<u},_intersectsWithPointer:function(t){var e,n,r="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!r||!i)&&(e=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection(),this.floating?"right"===n||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),r=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection();return this.floating&&i?"right"===i&&n||"left"===i&&!n:r&&("down"===r&&e||"up"===r&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var n,r,i,o,a=[],s=[],u=this._connectWith();if(u&&e)for(n=u.length-1;n>=0;n--)for(r=(i=t(u[n],this.document[0])).length-1;r>=0;r--)(o=t.data(i[r],this.widgetFullName))&&o!==this&&!o.options.disabled&&s.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function l(){a.push(this)}for(s.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=s.length-1;n>=0;n--)s[n][0].each(l);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var n=0;n<e.length;n++)if(e[n]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var n,r,i,o,a,s,u,l,c=this.items,d=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(n=h.length-1;n>=0;n--)for(r=(i=t(h[n],this.document[0])).length-1;r>=0;r--)(o=t.data(i[r],this.widgetFullName))&&o!==this&&!o.options.disabled&&(d.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(n=d.length-1;n>=0;n--)for(a=d[n][1],r=0,l=(s=d[n][0]).length;r<l;r++)(u=t(s[r])).data(this.widgetName+"-item",a),c.push({item:u,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var n,r,i,o;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),n=this.items.length-1;n>=0;n--)(r=this.items[n]).instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?t(this.options.toleranceElement,r.item):r.item,e||(r.width=i.outerWidth(),r.height=i.outerHeight()),o=i.offset(),r.left=o.left,r.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)o=this.containers[n].element.offset(),this.containers[n].containerCache.left=o.left,this.containers[n].containerCache.top=o.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(e){var n,r=(e=e||this).options;r.placeholder&&r.placeholder.constructor!==String||(n=r.placeholder,r.placeholder={element:function(){var r=e.currentItem[0].nodeName.toLowerCase(),i=t("<"+r+">",e.document[0]);return e._addClass(i,"ui-sortable-placeholder",n||e.currentItem[0].className)._removeClass(i,"ui-sortable-helper"),"tbody"===r?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(i)):"tr"===r?e._createTrPlaceholder(e.currentItem,i):"img"===r&&i.attr("src",e.currentItem.attr("src")),n||i.css("visibility","hidden"),i},update:function(t,i){n&&!r.forcePlaceholderSize||(i.height()||i.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),i.width()||i.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,n){var r=this;e.children().each((function(){t("<td>&#160;</td>",r.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(n)}))},_contactContainers:function(e){var n,r,i,o,a,s,u,l,c,d,h=null,f=null;for(n=this.containers.length-1;n>=0;n--)if(!t.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(h&&t.contains(this.containers[n].element[0],h.element[0]))continue;h=this.containers[n],f=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",e,this._uiHash(this)),this.containers[n].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(i=1e4,o=null,a=(c=h.floating||this._isFloating(this.currentItem))?"left":"top",s=c?"width":"height",d=c?"pageX":"pageY",r=this.items.length-1;r>=0;r--)t.contains(this.containers[f].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(u=this.items[r].item.offset()[a],l=!1,e[d]-u>this.items[r][s]/2&&(l=!0),Math.abs(e[d]-u)<i&&(i=Math.abs(e[d]-u),o=this.items[r],this.direction=l?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f])return void(this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[f].element,!0),this._trigger("change",e,this._uiHash()),this.containers[f]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[f]._trigger("over",e,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(e){var n=this.options,r=t.isFunction(n.helper)?t(n.helper.apply(this.element[0],[e,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return r.parents("body").length||t("parent"!==n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(r[0]),r[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),r[0].style.width&&!n.forceHelperSize||r.width(this.currentItem.width()),r[0].style.height&&!n.forceHelperSize||r.height(this.currentItem.height()),r},_adjustOffsetFromHelper:function(e){"string"===typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,n,r,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(e=t(i.containment)[0],n=t(i.containment).offset(),r="hidden"!==t(e).css("overflow"),this.containment=[n.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,n.left+(r?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(r?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,n){n||(n=this.position);var r="absolute"===e?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(i[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:i.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:i.scrollLeft())*r}},_generatePosition:function(e){var n,r,i=this.options,o=e.pageX,a=e.pageY,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,u=/(html|body)/i.test(s[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),i.grid&&(n=this.originalPageY+Math.round((a-this.originalPageY)/i.grid[1])*i.grid[1],a=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-i.grid[1]:n+i.grid[1]:n,r=this.originalPageX+Math.round((o-this.originalPageX)/i.grid[0])*i.grid[0],o=this.containment?r-this.offset.click.left>=this.containment[0]&&r-this.offset.click.left<=this.containment[2]?r:r-this.offset.click.left>=this.containment[0]?r-i.grid[0]:r+i.grid[0]:r)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():u?0:s.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():u?0:s.scrollLeft())}},_rearrange:function(t,e,n,r){n?n[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var i=this.counter;this._delay((function(){i===this.counter&&this.refreshPositions(!r)}))},_clear:function(t,e){this.reverting=!1;var n,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function i(t,e,n){return function(r){n._trigger(t,r,e._uiHash(e))}}for(this.fromOutside&&!e&&r.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||r.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(r.push((function(t){this._trigger("remove",t,this._uiHash())})),r.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||r.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(r.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;n<r.length;n++)r[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var n=e||this;return{helper:n.helper,placeholder:n.placeholder||t([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:e?e.element:null}}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,n,r=this.options.icons;r&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+r.header),e.prependTo(this.headers),n=this.active.children(".ui-accordion-header-icon"),this._removeClass(n,r.header)._addClass(n,null,r.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons())):this._activate(e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var n=t.ui.keyCode,r=this.headers.length,i=this.headers.index(e.target),o=!1;switch(e.keyCode){case n.RIGHT:case n.DOWN:o=this.headers[(i+1)%r];break;case n.LEFT:case n.UP:o=this.headers[(i-1+r)%r];break;case n.SPACE:case n.ENTER:this._eventHandler(e);break;case n.HOME:o=this.headers[0];break;case n.END:o=this.headers[r-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),t(o).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,n=this.options,r=n.heightStyle,i=this.element.parent();this.active=this._findActive(n.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each((function(){var e=t(this),n=e.uniqueId().attr("id"),r=e.next(),i=r.uniqueId().attr("id");e.attr("aria-controls",i),r.attr("aria-labelledby",n)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===r?(e=i.height(),this.element.siblings(":visible").each((function(){var n=t(this),r=n.css("position");"absolute"!==r&&"fixed"!==r&&(e-=n.outerHeight(!0))})),this.headers.each((function(){e-=t(this).outerHeight(!0)})),this.headers.next().each((function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===r&&(e=0,this.headers.next().each((function(){var n=t(this).is(":visible");n||t(this).show(),e=Math.max(e,t(this).css("height","").height()),n||t(this).hide()})).height(e))},_activate:function(e){var n=this._findActive(e)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return"number"===typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var n={keydown:"_keydown"};e&&t.each(e.split(" "),(function(t,e){n[e]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var n,r,i=this.options,o=this.active,a=t(e.currentTarget),s=a[0]===o[0],u=s&&i.collapsible,l=u?t():a.next(),c=o.next(),d={oldHeader:o,oldPanel:c,newHeader:u?t():a,newPanel:l};e.preventDefault(),s&&!i.collapsible||!1===this._trigger("beforeActivate",e,d)||(i.active=!u&&this.headers.index(a),this.active=s?t():a,this._toggle(d),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),i.icons&&(n=o.children(".ui-accordion-header-icon"),this._removeClass(n,null,i.icons.activeHeader)._addClass(n,null,i.icons.header)),s||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),i.icons&&(r=a.children(".ui-accordion-header-icon"),this._removeClass(r,null,i.icons.header)._addClass(r,null,i.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_toggle:function(e){var n=e.newPanel,r=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=r,this.options.animate?this._animate(n,r,e):(r.hide(),n.show(),this._toggleComplete(e)),r.attr({"aria-hidden":"true"}),r.prev().attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&r.length?r.prev().attr({tabIndex:-1,"aria-expanded":"false"}):n.length&&this.headers.filter((function(){return 0===parseInt(t(this).attr("tabIndex"),10)})).attr("tabIndex",-1),n.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,n){var r,i,o,a=this,s=0,u=t.css("box-sizing"),l=t.length&&(!e.length||t.index()<e.index()),c=this.options.animate||{},d=l&&c.down||c,h=function(){a._toggleComplete(n)};return"number"===typeof d&&(o=d),"string"===typeof d&&(i=d),i=i||d.easing||c.easing,o=o||d.duration||c.duration,e.length?t.length?(r=t.show().outerHeight(),e.animate(this.hideProps,{duration:o,easing:i,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:o,easing:i,complete:h,step:function(t,n){n.now=Math.round(t),"height"!==n.prop?"content-box"===u&&(s+=n.now):"content"!==a.options.heightStyle&&(n.now=Math.round(r-e.outerHeight()-s),s=0)}})):e.animate(this.hideProps,o,i,h):t.animate(this.showProps,o,i,h)},_toggleComplete:function(t){var e=t.oldPanel,n=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(n,"ui-accordion-header-active")._addClass(n,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var n=t(e.target),r=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var n=t(e.target).closest(".ui-menu-item"),r=t(e.currentTarget);n[0]===r[0]&&(this._removeClass(r.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,r))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var n=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,n)},blur:function(e){this._delay((function(){!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))&&this.collapseAll(e)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each((function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()}))},_keydown:function(e){var n,r,i,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,r=this.previousFilter||"",o=!1,i=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),i===r?o=!0:i=r+i,n=this._filterMenuItems(i),(n=o&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(i=String.fromCharCode(e.keyCode),n=this._filterMenuItems(i)),n.length?(this.focus(e,n),this.previousFilter=i,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,n,r,i,o=this,a=this.options.icons.submenu,s=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=s.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),n=e.prev(),r=t("<span>").data("ui-menu-submenu-caret",!0);o._addClass(r,"ui-menu-icon","ui-icon "+a),n.attr("aria-haspopup","true").prepend(r),e.attr("aria-labelledby",n.attr("id"))})),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),(e=s.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var e=t(this);o._isDivider(e)&&o._addClass(e,"ui-menu-divider","ui-widget-content")})),i=(r=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(r,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var n,r,i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),r=this.active.children(".ui-menu-item-wrapper"),this._addClass(r,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(n=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(n),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var n,r,i,o,a,s;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,i=e.offset().top-this.activeMenu.offset().top-n-r,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),s=e.outerHeight(),i<0?this.activeMenu.scrollTop(o+i):i+s>a&&this.activeMenu.scrollTop(o+i-a+s))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(t)}),this.delay))},_open:function(e){var n=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(e,n){clearTimeout(this.timer),this.timer=this._delay((function(){var r=n?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(e),this._removeClass(r.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=r}),this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay((function(){this.focus(t,e)})))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,n){var r;this.active&&(r="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),r&&r.length&&this.active||(r=this.activeMenu.find(this.options.items)[e]()),this.focus(n,r)},nextPage:function(e){var n,r,i;this.active?this.isLastItem()||(this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.nextAll(".ui-menu-item").each((function(){return(n=t(this)).offset().top-r-i<0})),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var n,r,i;this.active?this.isFirstItem()||(this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.prevAll(".ui-menu-item").each((function(){return(n=t(this)).offset().top-r+i>0})),this.focus(e,n)):this.focus(e,this.activeMenu.find(this.options.items).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,n)},_filterMenuItems:function(e){var n=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return r.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))}))}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,n,r,i=this.element[0].nodeName.toLowerCase(),o="textarea"===i,a="input"===i;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(i){if(this.element.prop("readOnly"))return e=!0,r=!0,void(n=!0);e=!1,r=!1,n=!1;var o=t.ui.keyCode;switch(i.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",i);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",i);break;case o.UP:e=!0,this._keyEvent("previous",i);break;case o.DOWN:e=!0,this._keyEvent("next",i);break;case o.ENTER:this.menu.active&&(e=!0,i.preventDefault(),this.menu.select(i));break;case o.TAB:this.menu.active&&this.menu.select(i);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(i),i.preventDefault());break;default:n=!0,this._searchTimeout(i)}},keypress:function(r){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||r.preventDefault());if(!n){var i=t.ui.keyCode;switch(r.keyCode){case i.PAGE_UP:this._move("previousPage",r);break;case i.PAGE_DOWN:this._move("nextPage",r);break;case i.UP:this._keyEvent("previous",r);break;case i.DOWN:this._keyEvent("next",r)}}},input:function(t){if(r)return r=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")}))},menufocus:function(e,n){var r,i;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){t(e.target).trigger(e.originalEvent)}));i=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:i})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(i.value),(r=n.item.attr("aria-label")||i.value)&&t.trim(r).length&&(this.liveRegion.children().hide(),t("<div>").text(r).appendTo(this.liveRegion))},menuselect:function(e,n){var r=n.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=i,this._delay((function(){this.previous=i,this.selectedItem=r}))),!1!==this._trigger("select",e,{item:r})&&this._value(r.value),this.term=this._value(),this.close(e),this.selectedItem=r}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var n=this.menu.element[0];return e.target===this.element[0]||e.target===n||t.contains(n,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,n,r=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(n,r){r(t.ui.autocomplete.filter(e,n.term))}):"string"===typeof this.options.source?(n=this.options.source,this.source=function(e,i){r.xhr&&r.xhr.abort(),r.xhr=t.ajax({url:n,data:e,dataType:"json",success:function(t){i(t)},error:function(){i([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay((function(){var e=this.term===this._value(),n=this.menu.element.is(":visible"),r=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||n||r)||(this.selectedItem=null,this.search(null,t))}),this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy((function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}),this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,(function(e){return"string"===typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})}))},_suggest:function(e){var n=this.menu.element.empty();this._renderMenu(n,e),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,n){var r=this;t.each(n,(function(t,n){r._renderItemData(e,n)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,n){return t("<li>").append(t("<div>").text(n.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,n){var r=new RegExp(t.ui.autocomplete.escapeRegex(n),"i");return t.grep(e,(function(t){return r.test(t.label||t.value||t)}))}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))}}),t.ui.autocomplete;var d,h,f=/ui-corner-([a-z]){2,6}/g;function p(t){for(var e,n;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(n=parseInt(t.css("zIndex"),10),!isNaN(n)&&0!==n))return n;t=t.parent()}return 0}function m(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=g(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function g(e){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",n,(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",n,y)}function y(){t.datepicker._isDisabledDatepicker(d.inline?d.dpDiv.parent()[0]:d.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function v(e,n){for(var r in t.extend(e,n),n)null==n[r]&&(e[r]=n[r]);return e}function _(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,n=[];t.each(this.options.items,(function(r,i){var o,a={};if(i)return"controlgroupLabel"===r?((o=e.element.find(i)).each((function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),e._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(n=n.concat(o.get()))):void(t.fn[r]&&(a=e["_"+r+"Options"]?e["_"+r+"Options"]("middle"):{classes:{}},e.element.find(i).each((function(){var i=t(this),o=i[r]("instance"),s=t.widget.extend({},a);if("button"!==r||!i.parent(".ui-spinner").length){o||(o=i[r]()[r]("instance")),o&&(s.classes=e._resolveClassesValues(s.classes,o)),i[r](s);var u=i[r]("widget");t.data(u[0],"ui-controlgroup-data",o||i[r]("instance")),n.push(u[0])}}))))})),this.childWidgets=t(t.uniqueSort(n)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each((function(){var n=t(this).data("ui-controlgroup-data");n&&n[e]&&n[e]()}))},_updateCornerClass:function(t,e){var n="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",r=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,n),this._addClass(t,null,r)},_buildSimpleOptions:function(t,e){var n="vertical"===this.options.direction,r={classes:{}};return r.classes[e]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[t],r},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,n){var r={};return t.each(e,(function(i){var o=n.options.classes[i]||"";o=t.trim(o.replace(f,"")),r[i]=(o+" "+e[i]).replace(/\s+/g," ")})),r},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var e,n=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],(function(t,r){var i=e[r]().data("ui-controlgroup-data");if(i&&n["_"+i.widgetName+"Options"]){var o=n["_"+i.widgetName+"Options"](1===e.length?"only":r);o.classes=n._resolveClassesValues(o.classes,i),i.element[i.widgetName](o)}else n._updateCornerClass(e[r](),r)})),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,n,r=this,i=this._super()||{};return this._readType(),n=this.element.labels(),this.label=t(n[n.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each((function(){r.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML})),this.originalLabel&&(i.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(i.disabled=e),i},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,n="input[name='"+t.ui.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(n):t(n).filter((function(){return 0===t(this).form().length}))).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each((function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e){if(this._super(t,e),"disabled"===t)return this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e);this.refresh()}},_updateIcon:function(e){var n="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(n+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):n+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",n),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,n){var r="iconPosition"!==e,i=r?this.options.iconPosition:n,o="top"===i||"bottom"===i;this.icon?r&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),r&&this._addClass(this.icon,null,n),this._attachIcon(i),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(i))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,n=void 0===t.icon?this.options.icon:t.icon;e||n||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"!==t?("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",e)}}),t.fn.button=function(e){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?e.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(t.fn.button),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"===a(arguments[0])&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.12.1"}}),t.extend(m.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return v(this._defaults,t||{}),this},_attachDatepicker:function(e,n){var r,i,o;i="div"===(r=e.nodeName.toLowerCase())||"span"===r,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(o=this._newInst(t(e),i)).settings=t.extend({},n||{}),"input"===r?this._connectDatepicker(e,o):i&&this._inlineDatepicker(e,o)},_newInst:function(e,n){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?g(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,n){var r=t(e);n.append=t([]),n.trigger=t([]),r.hasClass(this.markerClassName)||(this._attachments(r,n),r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),t.data(e,"datepicker",n),n.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,n){var r,i,o,a=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),a&&(n.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[s?"before":"after"](n.append)),e.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(r=this._get(n,"showOn"))&&"both"!==r||e.on("focus",this._showDatepicker),"button"!==r&&"both"!==r||(i=this._get(n,"buttonText"),o=this._get(n,"buttonImage"),n.trigger=t(this._get(n,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:i,title:i}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:i,title:i}):i)),e[s?"before":"after"](n.trigger),n.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1})))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,n,r,i,o=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(n=0,r=0,i=0;i<t.length;i++)t[i].length>n&&(n=t[i].length,r=i);return r},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,n){var r=t(e);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(n.dpDiv),t.data(e,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(e),n.dpDiv.css("display","block"))},_dialogDatepicker:function(e,n,r,i,o){var a,s,u,l,c,d=this._dialogInst;return d||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+a+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(d=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",d)),v(d.settings,i||{}),n=n&&n.constructor===Date?this._formatDate(d,n):n,this._dialogInput.val(n),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(s=document.documentElement.clientWidth,u=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[s/2-100+l,u/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var n,r=t(e),i=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&(n=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===n?(i.append.remove(),i.trigger.remove(),r.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||r.removeClass(this.markerClassName).empty(),d===i&&(d=null))},_enableDatepicker:function(e){var n,r,i=t(e),o=t.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(n=e.nodeName.toLowerCase())?(e.disabled=!1,o.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((r=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var n,r,i=t(e),o=t.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(n=e.nodeName.toLowerCase())?(e.disabled=!0,o.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((r=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(n){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,n,r){var i,o,a,s,u=this._getInst(e);if(2===arguments.length&&"string"===typeof n)return"defaults"===n?t.extend({},t.datepicker._defaults):u?"all"===n?t.extend({},u.settings):this._get(u,n):null;i=n||{},"string"===typeof n&&((i={})[n]=r),u&&(this._curInst===u&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),a=this._getMinMaxDate(u,"min"),s=this._getMinMaxDate(u,"max"),v(u.settings,i),null!==a&&void 0!==i.dateFormat&&void 0===i.minDate&&(u.settings.minDate=this._formatDate(u,a)),null!==s&&void 0!==i.dateFormat&&void 0===i.maxDate&&(u.settings.maxDate=this._formatDate(u,s)),"disabled"in i&&(i.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),u),this._autoSize(u),this._setDate(u,o),this._updateAlternate(u),this._updateDatepicker(u))},_changeDatepicker:function(t,e,n){this._optionDatepicker(t,e,n)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var n=this._getInst(t);n&&(this._setDate(n,e),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(t,e){var n=this._getInst(t);return n&&!n.inline&&this._setDateFromField(n,e),n?this._getDate(n):null},_doKeyDown:function(e){var n,r,i,o=t.datepicker._getInst(e.target),a=!0,s=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return(i=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv))[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,i[0]),(n=t.datepicker._get(o,"onSelect"))?(r=t.datepicker._formatDate(o),n.apply(o.input?o.input[0]:null,[r,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,s?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var n,r,i=t.datepicker._getInst(e.target);if(t.datepicker._get(i,"constrainInput"))return n=t.datepicker._possibleChars(t.datepicker._get(i,"dateFormat")),r=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||r<" "||!n||n.indexOf(r)>-1},_doKeyUp:function(e){var n=t.datepicker._getInst(e.target);if(n.input.val()!==n.lastVal)try{t.datepicker.parseDate(t.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,t.datepicker._getFormatConfig(n))&&(t.datepicker._setDateFromField(n),t.datepicker._updateAlternate(n),t.datepicker._updateDatepicker(n))}catch(r){}return!0},_showDatepicker:function(e){var n,r,i,o,a,s,u;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e||(n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(i=(r=t.datepicker._get(n,"beforeShow"))?r.apply(e,[e,n]):{})&&(v(n.settings,i),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each((function(){return!(o|="fixed"===t(this).css("position"))})),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),a=t.datepicker._checkOffset(n,a,o),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),n.inline||(s=t.datepicker._get(n,"showAnim"),u=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",p(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[s]?n.dpDiv.show(s,t.datepicker._get(n,"showOptions"),u):n.dpDiv[s||"show"](s?u:null),t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),t.datepicker._curInst=n)))},_updateDatepicker:function(e){this.maxRows=4,d=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var n,r=this._getNumberOfMonths(e),i=r[1],o=17,a=e.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&y.apply(a.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),i>1&&e.dpDiv.addClass("ui-datepicker-multi-"+i).css("width",o*i+"em"),e.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(n=e.yearshtml,setTimeout((function(){n===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),n=e.yearshtml=null}),0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,n,r){var i=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,s=e.input?e.input.outerHeight():0,u=document.documentElement.clientWidth+(r?0:t(document).scrollLeft()),l=document.documentElement.clientHeight+(r?0:t(document).scrollTop());return n.left-=this._get(e,"isRTL")?i-a:0,n.left-=r&&n.left===e.input.offset().left?t(document).scrollLeft():0,n.top-=r&&n.top===e.input.offset().top+s?t(document).scrollTop():0,n.left-=Math.min(n.left,n.left+i>u&&u>i?Math.abs(n.left+i-u):0),n.top-=Math.min(n.top,n.top+o>l&&l>o?Math.abs(o+s):0),n},_findPos:function(e){for(var n,r=this._getInst(e),i=this._get(r,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.pseudos.hidden(e));)e=e[i?"previousSibling":"nextSibling"];return[(n=t(e).offset()).left,n.top]},_hideDatepicker:function(e){var n,r,i,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(n=this._get(a,"showAnim"),r=this._get(a,"duration"),i=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[n]||t.effects[n])?a.dpDiv.hide(n,t.datepicker._get(a,"showOptions"),r,i):a.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?r:null,i),n||i(),this._datepickerShowing=!1,(o=this._get(a,"onClose"))&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var n=t(e.target),r=t.datepicker._getInst(n[0]);(n[0].id===t.datepicker._mainDivId||0!==n.parents("#"+t.datepicker._mainDivId).length||n.hasClass(t.datepicker.markerClassName)||n.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!n.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===r)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,n,r){var i=t(e),o=this._getInst(i[0]);this._isDisabledDatepicker(i[0])||(this._adjustInstDate(o,n+("M"===r?this._get(o,"showCurrentAtPos"):0),r),this._updateDatepicker(o))},_gotoToday:function(e){var n,r=t(e),i=this._getInst(r[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(n=new Date,i.selectedDay=n.getDate(),i.drawMonth=i.selectedMonth=n.getMonth(),i.drawYear=i.selectedYear=n.getFullYear()),this._notifyChange(i),this._adjustDate(r)},_selectMonthYear:function(e,n,r){var i=t(e),o=this._getInst(i[0]);o["selected"+("M"===r?"Month":"Year")]=o["draw"+("M"===r?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(i)},_selectDay:function(e,n,r,i){var o,a=t(e);t(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((o=this._getInst(a[0])).selectedDay=o.currentDay=t("a",i).html(),o.selectedMonth=o.currentMonth=n,o.selectedYear=o.currentYear=r,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var n=t(e);this._selectDate(n,"")},_selectDate:function(e,n){var r,i=t(e),o=this._getInst(i[0]);n=null!=n?n:this._formatDate(o),o.input&&o.input.val(n),this._updateAlternate(o),(r=this._get(o,"onSelect"))?r.apply(o.input?o.input[0]:null,[n,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!==a(o.input[0])&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var n,r,i,o=this._get(e,"altField");o&&(n=this._get(e,"altFormat")||this._get(e,"dateFormat"),r=this._getDate(e),i=this.formatDate(n,r,this._getFormatConfig(e)),t(o).val(i))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,n=new Date(t.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),e=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((e-n)/864e5)/7)+1},parseDate:function(e,n,r){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"===a(n)?n.toString():n+""))return null;var i,o,s,u,l=0,c=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,d="string"!==typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),h=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,f=(r?r.dayNames:null)||this._defaults.dayNames,p=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,m=(r?r.monthNames:null)||this._defaults.monthNames,g=-1,y=-1,v=-1,_=-1,b=!1,w=function(t){var n=i+1<e.length&&e.charAt(i+1)===t;return n&&i++,n},k=function(t){var e=w(t),r="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,i=new RegExp("^\\d{"+("y"===t?r:1)+","+r+"}"),o=n.substring(l).match(i);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},S=function(e,r,i){var o=-1,a=t.map(w(e)?i:r,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(a,(function(t,e){var r=e[1];if(n.substr(l,r.length).toLowerCase()===r.toLowerCase())return o=e[0],l+=r.length,!1})),-1!==o)return o+1;throw"Unknown name at position "+l},E=function(){if(n.charAt(l)!==e.charAt(i))throw"Unexpected literal at position "+l;l++};for(i=0;i<e.length;i++)if(b)"'"!==e.charAt(i)||w("'")?E():b=!1;else switch(e.charAt(i)){case"d":v=k("d");break;case"D":S("D",h,f);break;case"o":_=k("o");break;case"m":y=k("m");break;case"M":y=S("M",p,m);break;case"y":g=k("y");break;case"@":g=(u=new Date(k("@"))).getFullYear(),y=u.getMonth()+1,v=u.getDate();break;case"!":g=(u=new Date((k("!")-this._ticksTo1970)/1e4)).getFullYear(),y=u.getMonth()+1,v=u.getDate();break;case"'":w("'")?E():b=!0;break;default:E()}if(l<n.length&&(s=n.substr(l),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=d?0:-100)),_>-1)for(y=1,v=_;!(v<=(o=this._getDaysInMonth(g,y-1)));)y++,v-=o;if((u=this._daylightSavingAdjust(new Date(g,y-1,v))).getFullYear()!==g||u.getMonth()+1!==y||u.getDate()!==v)throw"Invalid date";return u},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,n){if(!e)return"";var r,i=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,o=(n?n.dayNames:null)||this._defaults.dayNames,a=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,u=function(e){var n=r+1<t.length&&t.charAt(r+1)===e;return n&&r++,n},l=function(t,e,n){var r=""+e;if(u(t))for(;r.length<n;)r="0"+r;return r},c=function(t,e,n,r){return u(t)?r[e]:n[e]},d="",h=!1;if(e)for(r=0;r<t.length;r++)if(h)"'"!==t.charAt(r)||u("'")?d+=t.charAt(r):h=!1;else switch(t.charAt(r)){case"d":d+=l("d",e.getDate(),2);break;case"D":d+=c("D",e.getDay(),i,o);break;case"o":d+=l("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=l("m",e.getMonth()+1,2);break;case"M":d+=c("M",e.getMonth(),a,s);break;case"y":d+=u("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":u("'")?d+="'":h=!0;break;default:d+=t.charAt(r)}return d},_possibleChars:function(t){var e,n="",r=!1,i=function(n){var r=e+1<t.length&&t.charAt(e+1)===n;return r&&e++,r};for(e=0;e<t.length;e++)if(r)"'"!==t.charAt(e)||i("'")?n+=t.charAt(e):r=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":i("'")?n+="'":r=!0;break;default:n+=t.charAt(e)}return n},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var n=this._get(t,"dateFormat"),r=t.lastVal=t.input?t.input.val():null,i=this._getDefaultDate(t),o=i,a=this._getFormatConfig(t);try{o=this.parseDate(n,r,a)||i}catch(s){r=e?"":r}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=r?o.getDate():0,t.currentMonth=r?o.getMonth():0,t.currentYear=r?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,n,r){var i=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},o=function(n){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),n,t.datepicker._getFormatConfig(e))}catch(l){}for(var r=(n.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,i=r.getFullYear(),o=r.getMonth(),a=r.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=s.exec(n);u;){switch(u[2]||"d"){case"d":case"D":a+=parseInt(u[1],10);break;case"w":case"W":a+=7*parseInt(u[1],10);break;case"m":case"M":o+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(i,o));break;case"y":case"Y":i+=parseInt(u[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(i,o))}u=s.exec(n)}return new Date(i,o,a)},a=null==n||""===n?r:"string"===typeof n?o(n):"number"===typeof n?isNaN(n)?r:i(n):new Date(n.getTime());return(a=a&&"Invalid Date"===a.toString()?r:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,n){var r=!e,i=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),i===t.selectedMonth&&o===t.selectedYear||n||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(r?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var n=this._get(e,"stepMonths"),r="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(r,-n,"M")},next:function(){t.datepicker._adjustDate(r,+n,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(r)},selectDay:function(){return t.datepicker._selectDay(r,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(r,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(r,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var e,n,r,i,o,a,s,u,l,c,d,h,f,p,m,g,y,v,_,b,w,k,S,E,C,x,D,A,T,M,L,O,I,P,R,N,F,j,B,Y=new Date,H=this._daylightSavingAdjust(new Date(Y.getFullYear(),Y.getMonth(),Y.getDate())),z=this._get(t,"isRTL"),W=this._get(t,"showButtonPanel"),V=this._get(t,"hideIfNoPrevNext"),U=this._get(t,"navigationAsDateFormat"),q=this._getNumberOfMonths(t),G=this._get(t,"showCurrentAtPos"),$=this._get(t,"stepMonths"),K=1!==q[0]||1!==q[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),Q=t.drawMonth-G,tt=t.drawYear;if(Q<0&&(Q+=12,tt--),J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-q[0]*q[1]+1,J.getDate())),e=X&&e<X?X:e;this._daylightSavingAdjust(new Date(tt,Q,1))>e;)--Q<0&&(Q=11,tt--);for(t.drawMonth=Q,t.drawYear=tt,n=this._get(t,"prevText"),n=U?this.formatDate(n,this._daylightSavingAdjust(new Date(tt,Q-$,1)),this._getFormatConfig(t)):n,r=this._canAdjustMonth(t,-1,tt,Q)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"e":"w")+"'>"+n+"</span></a>":V?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"e":"w")+"'>"+n+"</span></a>",i=this._get(t,"nextText"),i=U?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,Q+$,1)),this._getFormatConfig(t)):i,o=this._canAdjustMonth(t,1,tt,Q)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"w":"e")+"'>"+i+"</span></a>":V?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"w":"e")+"'>"+i+"</span></a>",a=this._get(t,"currentText"),s=this._get(t,"gotoCurrent")&&t.currentDay?Z:H,a=U?this.formatDate(a,s,this._getFormatConfig(t)):a,u=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",l=W?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(z?u:"")+(this._isInRange(t,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(z?"":u)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,d=this._get(t,"showWeek"),h=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),p=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),y=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),b="",k=0;k<q[0];k++){for(S="",this.maxRows=4,E=0;E<q[1];E++){if(C=this._daylightSavingAdjust(new Date(tt,Q,t.selectedDay)),x=" ui-corner-all",D="",K){if(D+="<div class='ui-datepicker-group",q[1]>1)switch(E){case 0:D+=" ui-datepicker-group-first",x=" ui-corner-"+(z?"right":"left");break;case q[1]-1:D+=" ui-datepicker-group-last",x=" ui-corner-"+(z?"left":"right");break;default:D+=" ui-datepicker-group-middle",x=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+x+"'>"+(/all|left/.test(x)&&0===k?z?o:r:"")+(/all|right/.test(x)&&0===k?z?r:o:"")+this._generateMonthYearHeader(t,Q,tt,X,J,k>0||E>0,p,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",A=d?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;w<7;w++)A+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[T=(w+c)%7]+"'>"+f[T]+"</span></th>";for(D+=A+"</tr></thead><tbody>",M=this._getDaysInMonth(tt,Q),tt===t.selectedYear&&Q===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,M)),L=(this._getFirstDayOfMonth(tt,Q)-c+7)%7,O=Math.ceil((L+M)/7),I=K&&this.maxRows>O?this.maxRows:O,this.maxRows=I,P=this._daylightSavingAdjust(new Date(tt,Q,1-L)),R=0;R<I;R++){for(D+="<tr>",N=d?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(P)+"</td>":"",w=0;w<7;w++)F=g?g.apply(t.input?t.input[0]:null,[P]):[!0,""],B=(j=P.getMonth()!==Q)&&!v||!F[0]||X&&P<X||J&&P>J,N+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(j?" ui-datepicker-other-month":"")+(P.getTime()===C.getTime()&&Q===t.selectedMonth&&t._keyEvent||_.getTime()===P.getTime()&&_.getTime()===C.getTime()?" "+this._dayOverClass:"")+(B?" "+this._unselectableClass+" ui-state-disabled":"")+(j&&!y?"":" "+F[1]+(P.getTime()===Z.getTime()?" "+this._currentClass:"")+(P.getTime()===H.getTime()?" ui-datepicker-today":""))+"'"+(j&&!y||!F[2]?"":" title='"+F[2].replace(/'/g,"&#39;")+"'")+(B?"":" data-handler='selectDay' data-event='click' data-month='"+P.getMonth()+"' data-year='"+P.getFullYear()+"'")+">"+(j&&!y?"&#xa0;":B?"<span class='ui-state-default'>"+P.getDate()+"</span>":"<a class='ui-state-default"+(P.getTime()===H.getTime()?" ui-state-highlight":"")+(P.getTime()===Z.getTime()?" ui-state-active":"")+(j?" ui-priority-secondary":"")+"' href='#'>"+P.getDate()+"</a>")+"</td>",P.setDate(P.getDate()+1),P=this._daylightSavingAdjust(P);D+=N+"</tr>"}++Q>11&&(Q=0,tt++),S+=D+="</tbody></table>"+(K?"</div>"+(q[0]>0&&E===q[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}b+=S}return b+=l,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,n,r,i,o,a,s){var u,l,c,d,h,f,p,m,g=this._get(t,"changeMonth"),y=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),_="<div class='ui-datepicker-title'>",b="";if(o||!g)b+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(u=r&&r.getFullYear()===n,l=i&&i.getFullYear()===n,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!u||c>=r.getMonth())&&(!l||c<=i.getMonth())&&(b+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+s[c]+"</option>");b+="</select>"}if(v||(_+=b+(!o&&g&&y?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!y)_+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(d=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),f=function(t){var e=t.match(/c[+\-].*/)?n+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(e)?h:e},p=f(d[0]),m=Math.max(p,f(d[1]||"")),p=r?Math.max(p,r.getFullYear()):p,m=i?Math.min(m,i.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";p<=m;p++)t.yearshtml+="<option value='"+p+"'"+(p===n?" selected='selected'":"")+">"+p+"</option>";t.yearshtml+="</select>",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),v&&(_+=(!o&&g&&y?"":"&#xa0;")+b),_+="</div>"},_adjustInstDate:function(t,e,n){var r=t.selectedYear+("Y"===n?e:0),i=t.selectedMonth+("M"===n?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(r,i))+("D"===n?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(r,i,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(t)},_restrictMinMax:function(t,e){var n=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),i=n&&e<n?n:e;return r&&i>r?r:i},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"===typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,n,r){var i=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(n,r+(e<0?e:i[0]*i[1]),1));return e<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var n,r,i=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,s=null,u=this._get(t,"yearRange");return u&&(n=u.split(":"),r=(new Date).getFullYear(),a=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(a+=r),n[1].match(/[+\-].*/)&&(s+=r)),(!i||e.getTime()>=i.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!s||e.getFullYear()<=s)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!==typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,n,r){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var i=e?"object"===a(e)?e:this._daylightSavingAdjust(new Date(r,n,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),i,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!==typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"===typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n)):this.each((function(){"string"===typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(n)):t.datepicker._attachDatepicker(this,e)})):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(n))},t.datepicker=new m,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker,t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var n=t(this).css(e).offset().top;n<0&&t(this).css("top",e.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var n=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){n._trigger("close",e)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,n){var r=!1,i=this.uiDialog.siblings(".ui-front:visible").map((function(){return+t(this).css("z-index")})).get(),o=Math.max.apply(null,i);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),r=!0),r&&!n&&this._trigger("focus",e),r},open:function(){var e=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){e._focusTabbable(),e._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function n(){var e=t.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),n.call(this),this._delay(n)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var n=this.uiDialog.find(":tabbable"),r=n.filter(":first"),i=n.filter(":last");e.target!==i[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==r[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay((function(){i.trigger("focus")})),e.preventDefault()):(this._delay((function(){r.trigger("focus")})),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,n=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(n)||t.isArray(n)&&!n.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(t.each(n,(function(n,r){var i,o;r=t.isFunction(r)?{click:r,text:n}:r,r=t.extend({type:"button"},r),i=r.click,o={icon:r.icon,iconPosition:r.iconPosition,showLabel:r.showLabel,icons:r.icons,text:r.text},delete r.click,delete r.icon,delete r.iconPosition,delete r.showLabel,delete r.icons,"boolean"===typeof r.text&&delete r.text,t("<button></button>",r).button(o).appendTo(e.uiButtonSet).on("click",(function(){i.apply(e.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var e=this,n=this.options;function r(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,i){e._addClass(t(this),"ui-dialog-dragging"),e._blockFrames(),e._trigger("dragStart",n,r(i))},drag:function(t,n){e._trigger("drag",t,r(n))},stop:function(i,o){var a=o.offset.left-e.document.scrollLeft(),s=o.offset.top-e.document.scrollTop();n.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(s>=0?"+":"")+s,of:e.window},e._removeClass(t(this),"ui-dialog-dragging"),e._unblockFrames(),e._trigger("dragStop",i,r(o))}})},_makeResizable:function(){var e=this,n=this.options,r=n.resizable,i=this.uiDialog.css("position"),o="string"===typeof r?r:"n,e,s,w,se,sw,ne,nw";function a(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:o,start:function(n,r){e._addClass(t(this),"ui-dialog-resizing"),e._blockFrames(),e._trigger("resizeStart",n,a(r))},resize:function(t,n){e._trigger("resize",t,a(n))},stop:function(r,i){var o=e.uiDialog.offset(),s=o.left-e.document.scrollLeft(),u=o.top-e.document.scrollTop();n.height=e.uiDialog.height(),n.width=e.uiDialog.width(),n.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(u>=0?"+":"")+u,of:e.window},e._removeClass(t(this),"ui-dialog-resizing"),e._unblockFrames(),e._trigger("resizeStop",r,a(i))}}).css("position",i)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),n=t.inArray(this,e);-1!==n&&e.splice(n,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var n=this,r=!1,i={};t.each(e,(function(t,e){n._setOption(t,e),t in n.sizeRelatedOptions&&(r=!0),t in n.resizableRelatedOptions&&(i[t]=e)})),r&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",i)},_setOption:function(e,n){var r,i,o=this.uiDialog;"disabled"!==e&&(this._super(e,n),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((r=o.is(":data(ui-draggable)"))&&!n&&o.draggable("destroy"),!r&&n&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((i=o.is(":data(ui-resizable)"))&&!n&&o.resizable("destroy"),i&&"string"===typeof n&&o.resizable("option","handles",n),i||!1===n||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,n,r=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),r.minWidth>r.width&&(r.width=r.minWidth),t=this.uiDialog.css({height:"auto",width:r.width}).outerHeight(),e=Math.max(0,r.minHeight-t),n="number"===typeof r.maxHeight?Math.max(0,r.maxHeight-t):"none","auto"===r.height?this.element.css({minHeight:e,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,r.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay((function(){e=!1})),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dialog,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!==typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(n.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,n=this,r=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(r).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",(function(){n._rendered||n._refreshMenu()}))},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,n){t.preventDefault(),e._setSelection(),e._select(n.item.data("ui-selectmenu-item"),t)},focus:function(t,n){var r=n.item.data("ui-selectmenu-item");null!=e.focusIndex&&r.index!==e.focusIndex&&(e._trigger("focus",t,{item:r}),e.isOpen||e._select(r,t)),e.focusIndex=r.index,e.button.attr("aria-activedescendant",e.menuItems.eq(r.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var n=t("<span>");return this._setText(n,e.label),this._addClass(n,"ui-selectmenu-text"),n},_renderMenu:function(e,n){var r=this,i="";t.each(n,(function(n,o){var a;o.optgroup!==i&&(a=t("<li>",{text:o.optgroup}),r._addClass(a,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),a.appendTo(e),i=o.optgroup),r._renderItemData(e,o)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,n){var r=t("<li>"),i=t("<div>",{title:n.element.attr("title")});return n.disabled&&this._addClass(r,null,"ui-state-disabled"),this._setText(i,n.label),r.append(i).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var n,r,i=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex).parent("li"):(n=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),i+=":not(.ui-state-disabled)"),(r="first"===t||"last"===t?n["first"===t?"prevAll":"nextAll"](i).eq(-1):n[t+"All"](i).eq(0)).length&&this.menuInstance.focus(e,r)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var n=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),n=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),n=!1}n&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==n&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var n=this.button.find("span.ui-icon");this._removeClass(n,null,this.options.icons.button)._addClass(n,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1!==t?(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var n=this,r=[];e.each((function(e,i){r.push(n._parseOption(t(i),e))})),this.items=r},_parseOption:function(t,e){var n=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,n,r=this.options,i=this.element.find(".ui-slider-handle"),o="<span tabindex='0'></span>",a=[];for(n=r.values&&r.values.length||1,i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),e=i.length;e<n;e++)a.push(o);this.handles=i.add(t(a.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)}))},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var n,r,i,o,a,s,u,l=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:e.pageX,y:e.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var n=Math.abs(r-l.values(e));(i>n||i===n&&(e===l._lastChangedValue||l.values(e)===c.min))&&(i=n,o=t(this),a=e)})),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),s=o.offset(),u=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=u?{left:0,top:0}:{left:e.pageX-s.left-o.width()/2,top:e.pageY-s.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,n),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,n,r,i,o;return"horizontal"===this.orientation?(e=this.elementSize.width,n=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,n=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(r=n/e)>1&&(r=1),r<0&&(r=0),"vertical"===this.orientation&&(r=1-r),i=this._valueMax()-this._valueMin(),o=this._valueMin()+r*i,this._trimAlignValue(o)},_uiHash:function(t,e,n){var r={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(r.value=void 0!==e?e:this.values(t),r.values=n||this.values()),r},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,n){var r,i=this.value(),o=this.values();this._hasMultipleValues()&&(r=this.values(e?0:1),i=this.values(e),2===this.options.values.length&&!0===this.options.range&&(n=0===e?Math.min(r,n):Math.max(r,n)),o[e]=n),n!==i&&!1!==this._trigger("slide",t,this._uiHash(e,n,o))&&(this._hasMultipleValues()?this.values(e,n):this.value(n))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,n){var r,i,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(r=this.options.values,i=arguments[0],o=0;o<r.length;o+=1)r[o]=this._trimAlignValue(i[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,n){var r,i=0;switch("range"===e&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(i=this.options.values.length),this._super(e,n),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),r=i-1;r>=0;r--)this._change(null,r);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,n,r;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(n=this.options.values.slice(),r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(n[r]);return n}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,n=(t-this._valueMin())%e,r=t-n;return 2*Math.abs(n)>=e&&(r+=n>0?e:-e),parseFloat(r.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),n=this.options.step;(t=Math.round((t-e)/n)*n+e)>this.options.max&&(t-=n),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,n,r,i,o,a=this.options.range,s=this.options,u=this,l=!this._animateOff&&s.animate,c={};this._hasMultipleValues()?this.handles.each((function(r){n=(u.values(r)-u._valueMin())/(u._valueMax()-u._valueMin())*100,c["horizontal"===u.orientation?"left":"bottom"]=n+"%",t(this).stop(1,1)[l?"animate":"css"](c,s.animate),!0===u.options.range&&("horizontal"===u.orientation?(0===r&&u.range.stop(1,1)[l?"animate":"css"]({left:n+"%"},s.animate),1===r&&u.range[l?"animate":"css"]({width:n-e+"%"},{queue:!1,duration:s.animate})):(0===r&&u.range.stop(1,1)[l?"animate":"css"]({bottom:n+"%"},s.animate),1===r&&u.range[l?"animate":"css"]({height:n-e+"%"},{queue:!1,duration:s.animate}))),e=n})):(r=this.value(),i=this._valueMin(),o=this._valueMax(),n=o!==i?(r-i)/(o-i)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[l?"animate":"css"](c,s.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:n+"%"},s.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-n+"%"},s.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:n+"%"},s.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-n+"%"},s.animate))},_handleEvents:{keydown:function(e){var n,r,i,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,o)))return}switch(i=this.options.step,n=r=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:r=this._valueMin();break;case t.ui.keyCode.END:r=this._valueMax();break;case t.ui.keyCode.PAGE_UP:r=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;r=this._trimAlignValue(n+i);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;r=this._trimAlignValue(n-i)}this._slide(e,o,r)},keyup:function(e){var n=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,n),this._change(e,n),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),n=this.element;return t.each(["min","max","step"],(function(t,r){var i=n.attr(r);null!=i&&i.length&&(e[r]=i)})),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(t)}),100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){var n;function r(){this.element[0]===t.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=n,this._delay((function(){this.previous=n})))}n=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),r.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,r.call(this)})),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var n=this.options,r=t.ui.keyCode;switch(e.keyCode){case r.UP:return this._repeat(null,1,e),!0;case r.DOWN:return this._repeat(null,-1,e),!0;case r.PAGE_UP:return this._repeat(null,n.page,e),!0;case r.PAGE_DOWN:return this._repeat(null,-n.page,e),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,n){t=t||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,e,n)}),t),this._spin(e*this.options.step,n)},_spin:function(t,e){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:n})||(this._value(n),this.counter++)},_increment:function(e){var n=this.options.incremental;return n?t.isFunction(n)?n(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=t.toString(),n=e.indexOf(".");return-1===n?0:e.length-n-1},_adjustValue:function(t){var e,n,r=this.options;return n=t-(e=null!==r.min?r.min:0),t=e+(n=Math.round(n/r.step)*r.step),t=parseFloat(t.toFixed(this._precision())),null!==r.max&&t>r.max?r.max:null!==r.min&&t<r.min?r.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var n,r,i;if("culture"===t||"numberFormat"===t)return n=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(n));"max"!==t&&"min"!==t&&"step"!==t||"string"===typeof e&&(e=this._parse(e)),"icons"===t&&(r=this.buttons.first().find(".ui-icon"),this._removeClass(r,null,this.options.icons.up),this._addClass(r,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:_((function(t){this._super(t)})),_parse:function(t){return"string"===typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var n;""!==t&&null!==(n=this._parse(t))&&(e||(n=this._adjustValue(n)),t=this._format(n)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:_((function(t){this._stepUp(t)})),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:_((function(t){this._stepDown(t)})),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:_((function(t){this._stepUp((t||1)*this.options.page)})),pageDown:_((function(t){this._stepDown((t||1)*this.options.page)})),value:function(t){if(!arguments.length)return this._parse(this.element.val());_(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==t.uiBackCompat&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(h=/#.*$/,function(t){var e,n;e=t.href.replace(h,""),n=location.href.replace(h,"");try{e=decodeURIComponent(e)}catch(r){}try{n=decodeURIComponent(n)}catch(r){}return t.hash.length>1&&e===n}),_create:function(){var e=this,n=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,n.collapsible),this._processTabs(),n.active=this._initialActive(),t.isArray(n.disabled)&&(n.disabled=t.unique(n.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),(function(t){return e.tabs.index(t)})))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(n.active):this.active=t(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var e=this.options.active,n=this.options.collapsible,r=location.hash.substring(1);return null===e&&(r&&this.tabs.each((function(n,i){if(t(i).attr("aria-controls")===r)return e=n,!1})),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==e&&-1!==e||(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!n&&0),!n&&!1===e&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var n=t(t.ui.safeActiveElement(this.document[0])).closest("li"),r=this.tabs.index(n),i=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:r++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:i=!1,r--;break;case t.ui.keyCode.END:r=this.anchors.length-1;break;case t.ui.keyCode.HOME:r=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(r);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(r!==this.options.active&&r);default:return}e.preventDefault(),clearTimeout(this.activating),r=this._focusNextTab(r,i),e.ctrlKey||e.metaKey||(n.attr("aria-selected","false"),this.tabs.eq(r).attr("aria-selected","true"),this.activating=this._delay((function(){this.option("active",r)}),this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,n){var r=this.tabs.length-1;function i(){return e>r&&(e=0),e<0&&(e=r),e}for(;-1!==t.inArray(i(),this.options.disabled);)e=n?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"!==t?(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._activate(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,n=this.tablist.children(":has(a[href])");e.disabled=t.map(n.filter(".ui-state-disabled"),(function(t){return n.index(t)})),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,n=this.tabs,r=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",(function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()})).on("focus"+this.eventNamespace,".ui-tabs-anchor",(function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()})),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map((function(){return t("a",this)[0]})).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each((function(n,r){var i,o,a,s=t(r).uniqueId().attr("id"),u=t(r).closest("li"),l=u.attr("aria-controls");e._isLocal(r)?(a=(i=r.hash).substring(1),o=e.element.find(e._sanitizeSelector(i))):(i="#"+(a=u.attr("aria-controls")||t({}).uniqueId()[0].id),(o=e.element.find(i)).length||(o=e._createPanel(a)).insertAfter(e.panels[n-1]||e.tablist),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),l&&u.data("ui-tabs-aria-controls",l),u.attr({"aria-controls":a,"aria-labelledby":s}),o.attr("aria-labelledby",s)})),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),n&&(this._off(n.not(this.tabs)),this._off(r.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var n,r,i;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),i=0;r=this.tabs[i];i++)n=t(r),!0===e||-1!==t.inArray(i,e)?(n.attr("aria-disabled","true"),this._addClass(n,null,"ui-state-disabled")):(n.removeAttr("aria-disabled"),this._removeClass(n,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var n={};e&&t.each(e.split(" "),(function(t,e){n[e]="_eventHandler"})),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var n,r=this.element.parent();"fill"===e?(n=r.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var e=t(this),r=e.css("position");"absolute"!==r&&"fixed"!==r&&(n-=e.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){n-=t(this).outerHeight(!0)})),this.panels.each((function(){t(this).height(Math.max(0,n-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===e&&(n=0,this.panels.each((function(){n=Math.max(n,t(this).height("").height())})).height(n))},_eventHandler:function(e){var n=this.options,r=this.active,i=t(e.currentTarget).closest("li"),o=i[0]===r[0],a=o&&n.collapsible,s=a?t():this._getPanelForTab(i),u=r.length?this._getPanelForTab(r):t(),l={oldTab:r,oldPanel:u,newTab:a?t():i,newPanel:s};e.preventDefault(),i.hasClass("ui-state-disabled")||i.hasClass("ui-tabs-loading")||this.running||o&&!n.collapsible||!1===this._trigger("beforeActivate",e,l)||(n.active=!a&&this.tabs.index(i),this.active=o?t():i,this.xhr&&this.xhr.abort(),u.length||s.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),s.length&&this.load(this.tabs.index(i),e),this._toggle(e,l))},_toggle:function(e,n){var r=this,i=n.newPanel,o=n.oldPanel;function a(){r.running=!1,r._trigger("activate",e,n)}function s(){r._addClass(n.newTab.closest("li"),"ui-tabs-active","ui-state-active"),i.length&&r.options.show?r._show(i,r.options.show,a):(i.show(),a())}this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,(function(){r._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()})):(this._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o.hide(),s()),o.attr("aria-hidden","true"),n.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&o.length?n.oldTab.attr("tabIndex",-1):i.length&&this.tabs.filter((function(){return 0===t(this).attr("tabIndex")})).attr("tabIndex",-1),i.attr("aria-hidden","false"),n.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var n,r=this._findActive(e);r[0]!==this.active[0]&&(r.length||(r=this.active),n=r.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(e){return"string"===typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each((function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")})),this.tabs.each((function(){var e=t(this),n=e.data("ui-tabs-aria-controls");n?e.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var n=this.options.disabled;!1!==n&&(void 0===e?n=!1:(e=this._getIndex(e),n=t.isArray(n)?t.map(n,(function(t){return t!==e?t:null})):t.map(this.tabs,(function(t,n){return n!==e?n:null}))),this._setOptionDisabled(n))},disable:function(e){var n=this.options.disabled;if(!0!==n){if(void 0===e)n=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,n))return;n=t.isArray(n)?t.merge([e],n).sort():[e]}this._setOptionDisabled(n)}},load:function(e,n){e=this._getIndex(e);var r=this,i=this.tabs.eq(e),o=i.find(".ui-tabs-anchor"),a=this._getPanelForTab(i),s={tab:i,panel:a},u=function(t,e){"abort"===e&&r.panels.stop(!1,!0),r._removeClass(i,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===r.xhr&&delete r.xhr};this._isLocal(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,n,s)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done((function(t,e,i){setTimeout((function(){a.html(t),r._trigger("load",n,s),u(i,e)}),1)})).fail((function(t,e){setTimeout((function(){u(t,e)}),1)}))))},_ajaxSettings:function(e,n,r){var i=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,o){return i._trigger("beforeLoad",n,t.extend({jqXHR:e,ajaxSettings:o},r))}}},_getPanelForTab:function(e){var n=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),!1!==t.uiBackCompat&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,n){var r=(e.attr("aria-describedby")||"").split(/\s+/);r.push(n),e.data("ui-tooltip-id",n).attr("aria-describedby",t.trim(r.join(" ")))},_removeDescribedBy:function(e){var n=e.data("ui-tooltip-id"),r=(e.attr("aria-describedby")||"").split(/\s+/),i=t.inArray(n,r);-1!==i&&r.splice(i,1),e.removeData("ui-tooltip-id"),(r=t.trim(r.join(" ")))?e.attr("aria-describedby",r):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,n){var r=this;this._super(e,n),"content"===e&&t.each(this.tooltips,(function(t,e){r._updateContent(e.element)}))},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,(function(n,r){var i=t.Event("blur");i.target=i.currentTarget=r.element[0],e.close(i,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var e=t(this);if(e.is("[title]"))return e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")})))},_enable:function(){this.disabledTitles.each((function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})),this.disabledTitles=t([])},open:function(e){var n=this,r=t(e?e.target:this.element).closest(this.options.items);r.length&&!r.data("ui-tooltip-id")&&(r.attr("title")&&r.data("ui-tooltip-title",r.attr("title")),r.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&r.parents().each((function(){var e,r=t(this);r.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,n.close(e,!0)),r.attr("title")&&(r.uniqueId(),n.parents[this.id]={element:this,title:r.attr("title")},r.attr("title",""))})),this._registerCloseHandlers(e,r),this._updateContent(r,e))},_updateContent:function(t,e){var n,r=this.options.content,i=this,o=e?e.type:null;if("string"===typeof r||r.nodeType||r.jquery)return this._open(e,t,r);(n=r.call(t[0],(function(n){i._delay((function(){t.data("ui-tooltip-open")&&(e&&(e.type=o),this._open(e,t,n))}))})))&&this._open(e,t,n)},_open:function(e,n,r){var i,o,a,s,u=t.extend({},this.options.position);function l(t){u.of=t,o.is(":hidden")||o.position(u)}r&&((i=this._find(n))?i.tooltip.find(".ui-tooltip-content").html(r):(n.is("[title]")&&(e&&"mouseover"===e.type?n.attr("title",""):n.removeAttr("title")),i=this._tooltip(n),o=i.tooltip,this._addDescribedBy(n,o.attr("id")),o.find(".ui-tooltip-content").html(r),this.liveRegion.children().hide(),(s=t("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),s.removeAttr("id").find("[id]").removeAttr("id"),s.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:l}),l(e)):o.position(t.extend({of:n},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(a=this.delayedShow=setInterval((function(){o.is(":visible")&&(l(u.of),clearInterval(a))}),t.fx.interval)),this._trigger("open",e,{tooltip:o})))},_registerCloseHandlers:function(e,n){var r={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var r=t.Event(e);r.currentTarget=n[0],this.close(r,!0)}}};n[0]!==this.element[0]&&(r.remove=function(){this._removeTooltip(this._find(n).tooltip)}),e&&"mouseover"!==e.type||(r.mouseleave="close"),e&&"focusin"!==e.type||(r.focusout="close"),this._on(!0,n,r)},close:function(e){var n,r=this,i=t(e?e.currentTarget:this.element),o=this._find(i);o?(n=o.tooltip,o.closing||(clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),o.hiding=!0,n.stop(!0),this._hide(n,this.options.hide,(function(){r._removeTooltip(t(this))})),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,(function(e,n){t(n.element).attr("title",n.title),delete r.parents[e]})),o.closing=!0,this._trigger("close",e,{tooltip:n}),o.hiding||(o.closing=!1))):i.removeData("ui-tooltip-open")},_tooltip:function(e){var n=t("<div>").attr("role","tooltip"),r=t("<div>").appendTo(n),i=n.uniqueId().attr("id");return this._addClass(r,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(e)),this.tooltips[i]={element:e,tooltip:n}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,(function(n,r){var i=t.Event("blur"),o=r.element;i.target=i.currentTarget=o[0],e.close(i,!0),t("#"+n).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}}),!1!==t.uiBackCompat&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip;var b,w="ui-effects-",k="ui-effects-style",S="ui-effects-animated",E=t;t.effects={effect:{}},function(t,e){var n,r="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",i=/^([\-+])=\s*(\d+\.?\d*)/,o=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],a=t.Color=function(e,n,r,i){return new t.Color.fn.parse(e,n,r,i)},s={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},l=a.support={},c=t("<p>")[0],d=t.each;function h(t,e,n){var r=u[e.type]||{};return null==t?n||!e.def?null:e.def:(t=r.floor?~~t:parseFloat(t),isNaN(t)?e.def:r.mod?(t+r.mod)%r.mod:0>t?0:r.max<t?r.max:t)}function f(e){var r=a(),i=r._rgba=[];return e=e.toLowerCase(),d(o,(function(t,n){var o,a=n.re.exec(e),u=a&&n.parse(a),l=n.space||"rgba";if(u)return o=r[l](u),r[s[l].cache]=o[s[l].cache],i=r._rgba=o._rgba,!1})),i.length?("0,0,0,0"===i.join()&&t.extend(i,n.transparent),r):n[e]}function p(t,e,n){return 6*(n=(n+1)%1)<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}c.style.cssText="background-color:rgba(1,1,1,.5)",l.rgba=c.style.backgroundColor.indexOf("rgba")>-1,d(s,(function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}})),a.fn=t.extend(a.prototype,{parse:function(r,i,o,u){if(r===e)return this._rgba=[null,null,null,null],this;(r.jquery||r.nodeType)&&(r=t(r).css(i),i=e);var l=this,c=t.type(r),p=this._rgba=[];return i!==e&&(r=[r,i,o,u],c="array"),"string"===c?this.parse(f(r)||n._default):"array"===c?(d(s.rgba.props,(function(t,e){p[e.idx]=h(r[e.idx],e)})),this):"object"===c?(d(s,r instanceof a?function(t,e){r[e.cache]&&(l[e.cache]=r[e.cache].slice())}:function(e,n){var i=n.cache;d(n.props,(function(t,e){if(!l[i]&&n.to){if("alpha"===t||null==r[t])return;l[i]=n.to(l._rgba)}l[i][e.idx]=h(r[t],e,!0)})),l[i]&&t.inArray(null,l[i].slice(0,3))<0&&(l[i][3]=1,n.from&&(l._rgba=n.from(l[i])))}),this):void 0},is:function(t){var e=a(t),n=!0,r=this;return d(s,(function(t,i){var o,a=e[i.cache];return a&&(o=r[i.cache]||i.to&&i.to(r._rgba)||[],d(i.props,(function(t,e){if(null!=a[e.idx])return n=a[e.idx]===o[e.idx]}))),n})),n},_space:function(){var t=[],e=this;return d(s,(function(n,r){e[r.cache]&&t.push(n)})),t.pop()},transition:function(t,e){var n=a(t),r=n._space(),i=s[r],o=0===this.alpha()?a("transparent"):this,l=o[i.cache]||i.to(o._rgba),c=l.slice();return n=n[i.cache],d(i.props,(function(t,r){var i=r.idx,o=l[i],a=n[i],s=u[r.type]||{};null!==a&&(null===o?c[i]=a:(s.mod&&(a-o>s.mod/2?o+=s.mod:o-a>s.mod/2&&(o-=s.mod)),c[i]=h((a-o)*e+o,r)))})),this[r](c)},blend:function(e){if(1===this._rgba[3])return this;var n=this._rgba.slice(),r=n.pop(),i=a(e)._rgba;return a(t.map(n,(function(t,e){return(1-r)*i[e]+r*t})))},toRgbaString:function(){var e="rgba(",n=t.map(this._rgba,(function(t,e){return null==t?e>2?1:0:t}));return 1===n[3]&&(n.pop(),e="rgb("),e+n.join()+")"},toHslaString:function(){var e="hsla(",n=t.map(this.hsla(),(function(t,e){return null==t&&(t=e>2?1:0),e&&e<3&&(t=Math.round(100*t)+"%"),t}));return 1===n[3]&&(n.pop(),e="hsl("),e+n.join()+")"},toHexString:function(e){var n=this._rgba.slice(),r=n.pop();return e&&n.push(~~(255*r)),"#"+t.map(n,(function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),a.fn.parse.prototype=a.fn,s.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=t[3],s=Math.max(r,i,o),u=Math.min(r,i,o),l=s-u,c=s+u,d=.5*c;return e=u===s?0:r===s?60*(i-o)/l+360:i===s?60*(o-r)/l+120:60*(r-i)/l+240,n=0===l?0:d<=.5?l/c:l/(2-c),[Math.round(e)%360,n,d,null==a?1:a]},s.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,n=t[1],r=t[2],i=t[3],o=r<=.5?r*(1+n):r+n-r*n,a=2*r-o;return[Math.round(255*p(a,o,e+1/3)),Math.round(255*p(a,o,e)),Math.round(255*p(a,o,e-1/3)),i]},d(s,(function(n,r){var o=r.props,s=r.cache,u=r.to,l=r.from;a.fn[n]=function(n){if(u&&!this[s]&&(this[s]=u(this._rgba)),n===e)return this[s].slice();var r,i=t.type(n),c="array"===i||"object"===i?n:arguments,f=this[s].slice();return d(o,(function(t,e){var n=c["object"===i?t:e.idx];null==n&&(n=f[e.idx]),f[e.idx]=h(n,e)})),l?((r=a(l(f)))[s]=f,r):a(f)},d(o,(function(e,r){a.fn[e]||(a.fn[e]=function(o){var a,s=t.type(o),u="alpha"===e?this._hsla?"hsla":"rgba":n,l=this[u](),c=l[r.idx];return"undefined"===s?c:("function"===s&&(o=o.call(this,c),s=t.type(o)),null==o&&r.empty?this:("string"===s&&(a=i.exec(o))&&(o=c+parseFloat(a[2])*("+"===a[1]?1:-1)),l[r.idx]=o,this[u](l)))})}))})),a.hook=function(e){var n=e.split(" ");d(n,(function(e,n){t.cssHooks[n]={set:function(e,r){var i,o,s="";if("transparent"!==r&&("string"!==t.type(r)||(i=f(r)))){if(r=a(i||r),!l.rgba&&1!==r._rgba[3]){for(o="backgroundColor"===n?e.parentNode:e;(""===s||"transparent"===s)&&o&&o.style;)try{s=t.css(o,"backgroundColor"),o=o.parentNode}catch(u){}r=r.blend(s&&"transparent"!==s?s:"_default")}r=r.toRgbaString()}try{e.style[n]=r}catch(u){}}},t.fx.step[n]=function(e){e.colorInit||(e.start=a(e.elem,n),e.end=a(e.end),e.colorInit=!0),t.cssHooks[n].set(e.elem,e.start.transition(e.end,e.pos))}}))},a.hook(r),t.cssHooks.borderColor={expand:function(t){var e={};return d(["Top","Right","Bottom","Left"],(function(n,r){e["border"+r+"Color"]=t})),e}},n=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(E),function(){var e=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function r(e){var n,r,i=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(r=i.length;r--;)"string"===typeof i[n=i[r]]&&(o[t.camelCase(n)]=i[n]);else for(n in i)"string"===typeof i[n]&&(o[n]=i[n]);return o}function i(e,r){var i,o,a={};for(i in r)o=r[i],e[i]!==o&&(n[i]||!t.fx.step[i]&&isNaN(parseFloat(o))||(a[i]=o));return a}t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(e,n){t.fx.step[n]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(E.style(t.elem,n,t.end),t.setAttr=!0)}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(n,o,a,s){var u=t.speed(o,a,s);return this.queue((function(){var o,a=t(this),s=a.attr("class")||"",l=u.children?a.find("*").addBack():a;l=l.map((function(){return{el:t(this),start:r(this)}})),(o=function(){t.each(e,(function(t,e){n[e]&&a[e+"Class"](n[e])}))})(),l=l.map((function(){return this.end=r(this.el[0]),this.diff=i(this.start,this.end),this})),a.attr("class",s),l=l.map((function(){var e=this,n=t.Deferred(),r=t.extend({},u,{queue:!1,complete:function(){n.resolve(e)}});return this.el.animate(this.diff,r),n.promise()})),t.when.apply(t,l.get()).done((function(){o(),t.each(arguments,(function(){var e=this.el;t.each(this.diff,(function(t){e.css(t,"")}))})),u.complete.call(a[0])}))}))},t.fn.extend({addClass:function(e){return function(n,r,i,o){return r?t.effects.animateClass.call(this,{add:n},r,i,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(n,r,i,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:n},r,i,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(n,r,i,o,a){return"boolean"===typeof r||void 0===r?i?t.effects.animateClass.call(this,r?{add:n}:{remove:n},i,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},r,i,o)}}(t.fn.toggleClass),switchClass:function(e,n,r,i,o){return t.effects.animateClass.call(this,{add:n,remove:e},r,i,o)}})}(),function(){function e(e,n,r,i){return t.isPlainObject(e)&&(n=e,e=e.effect),e={effect:e},null==n&&(n={}),t.isFunction(n)&&(i=n,r=null,n={}),("number"===typeof n||t.fx.speeds[n])&&(i=r,r=n,n={}),t.isFunction(r)&&(i=r,r=null),n&&t.extend(e,n),r=r||n.duration,e.duration=t.fx.off?0:"number"===typeof r?r:r in t.fx.speeds?t.fx.speeds[r]:t.fx.speeds._default,e.complete=i||n.complete,e}function n(e){return!(e&&"number"!==typeof e&&!t.fx.speeds[e])||"string"===typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"===a(e)&&!e.effect}function r(t,e){var n=e.outerWidth(),r=e.outerHeight(),i=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,r,0];return{top:parseFloat(i[1])||0,right:"auto"===i[2]?n:parseFloat(i[2]),bottom:"auto"===i[3]?r:parseFloat(i[3]),left:parseFloat(i[4])||0}}t.expr&&t.expr.pseudos&&t.expr.pseudos.animated&&(t.expr.pseudos.animated=function(e){return function(n){return!!t(n).data(S)||e(n)}}(t.expr.pseudos.animated)),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var n=0,r=e.length;n<r;n++)null!==e[n]&&t.data(w+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,r=0,i=e.length;r<i;r++)null!==e[r]&&(n=t.data(w+e[r]),t.css(e[r],n))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var n={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},r=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(r),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),r=e.parent(),"static"===e.css("position")?(r.css({position:"relative"}),e.css({position:"relative"})):(t.extend(n,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],(function(t,r){n[r]=e.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")})),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(i),r.css(n).show()},removeWrapper:function(e){var n=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===n||t.contains(e[0],n))&&t(n).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,n,r){return r||(r=n,n="effect"),t.effects.effect[e]=r,t.effects.effect[e].mode=n,r},scaledDimensions:function(t,e,n){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var r="horizontal"!==n?(e||100)/100:1,i="vertical"!==n?(e||100)/100:1;return{height:t.height()*i,width:t.width()*r,outerHeight:t.outerHeight()*i,outerWidth:t.outerWidth()*r}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var r=t.queue();e>1&&r.splice.apply(r,[1,0].concat(r.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(k,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(k)||"",t.removeData(k)},mode:function(t,e){var n=t.is(":hidden");return"toggle"===e&&(e=n?"show":"hide"),(n?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var n,r;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":r=0;break;case"center":r=.5;break;case"right":r=1;break;default:r=t[1]/e.width}return{x:r,y:n}},createPlaceholder:function(e){var n,r=e.css("position"),i=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(r)&&(r="absolute",n=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(w+"placeholder",n)),e.css({position:r,left:i.left,top:i.top}),n},removePlaceholder:function(t){var e=w+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,n,r,i){return i=i||{},t.each(n,(function(t,n){var o=e.cssUnit(n);o[0]>0&&(i[n]=o[0]*r+o[1])})),i}}),t.fn.extend({effect:function(){var n=e.apply(this,arguments),r=t.effects.effect[n.effect],i=r.mode,o=n.queue,a=o||"fx",s=n.complete,u=n.mode,l=[],c=function(e){var n=t(this),r=t.effects.mode(n,u)||i;n.data(S,!0),l.push(r),i&&("show"===r||r===i&&"hide"===r)&&n.show(),i&&"none"===r||t.effects.saveStyle(n),t.isFunction(e)&&e()};if(t.fx.off||!r)return u?this[u](n.duration,s):this.each((function(){s&&s.call(this)}));function d(e){var o=t(this);function a(){o.removeData(S),t.effects.cleanUp(o),"hide"===n.mode&&o.hide(),c()}function c(){t.isFunction(s)&&s.call(o[0]),t.isFunction(e)&&e()}n.mode=l.shift(),!1===t.uiBackCompat||i?"none"===n.mode?(o[u](),c()):r.call(o[0],n,a):(o.is(":hidden")?"hide"===u:"show"===u)?(o[u](),c()):r.call(o[0],n,c)}return!1===o?this.each(c).each(d):this.queue(a,c).queue(a,d)},show:function(t){return function(r){if(n(r))return t.apply(this,arguments);var i=e.apply(this,arguments);return i.mode="show",this.effect.call(this,i)}}(t.fn.show),hide:function(t){return function(r){if(n(r))return t.apply(this,arguments);var i=e.apply(this,arguments);return i.mode="hide",this.effect.call(this,i)}}(t.fn.hide),toggle:function(t){return function(r){if(n(r)||"boolean"===typeof r)return t.apply(this,arguments);var i=e.apply(this,arguments);return i.mode="toggle",this.effect.call(this,i)}}(t.fn.toggle),cssUnit:function(e){var n=this.css(e),r=[];return t.each(["em","px","%","pt"],(function(t,e){n.indexOf(e)>0&&(r=[parseFloat(n),e])})),r},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):r(this.css("clip"),this)},transfer:function(e,n){var r=t(this),i=t(e.to),o="fixed"===i.css("position"),a=t("body"),s=o?a.scrollTop():0,u=o?a.scrollLeft():0,l=i.offset(),c={top:l.top-s,left:l.left-u,height:i.innerHeight(),width:i.innerWidth()},d=r.offset(),h=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:d.top-s,left:d.left-u,height:r.innerHeight(),width:r.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,(function(){h.remove(),t.isFunction(n)&&n()}))}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"===typeof e.end&&(e.end=r(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),b={},t.each(["Quad","Cubic","Quart","Quint","Expo"],(function(t,e){b[e]=function(e){return Math.pow(e,t+2)}})),t.extend(b,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(b,(function(e,n){t.easing["easeIn"+e]=n,t.easing["easeOut"+e]=function(t){return 1-n(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?n(2*t)/2:1-n(-2*t+2)/2}})),t.effects,t.effects.define("blind","hide",(function(e,n){var r={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},i=t(this),o=e.direction||"up",a=i.cssClip(),s={clip:t.extend({},a)},u=t.effects.createPlaceholder(i);s.clip[r[o][0]]=s.clip[r[o][1]],"show"===e.mode&&(i.cssClip(s.clip),u&&u.css(t.effects.clipToBox(s)),s.clip=a),u&&u.animate(t.effects.clipToBox(s),e.duration,e.easing),i.animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})),t.effects.define("bounce",(function(e,n){var r,i,o,a=t(this),s=e.mode,u="hide"===s,l="show"===s,c=e.direction||"up",d=e.distance,h=e.times||5,f=2*h+(l||u?1:0),p=e.duration/f,m=e.easing,g="up"===c||"down"===c?"top":"left",y="up"===c||"left"===c,v=0,_=a.queue().length;for(t.effects.createPlaceholder(a),o=a.css(g),d||(d=a["top"===g?"outerHeight":"outerWidth"]()/3),l&&((i={opacity:1})[g]=o,a.css("opacity",0).css(g,y?2*-d:2*d).animate(i,p,m)),u&&(d/=Math.pow(2,h-1)),(i={})[g]=o;v<h;v++)(r={})[g]=(y?"-=":"+=")+d,a.animate(r,p,m).animate(i,p,m),d=u?2*d:d/2;u&&((r={opacity:0})[g]=(y?"-=":"+=")+d,a.animate(r,p,m)),a.queue(n),t.effects.unshift(a,_,f+1)})),t.effects.define("clip","hide",(function(e,n){var r,i={},o=t(this),a=e.direction||"vertical",s="both"===a,u=s||"horizontal"===a,l=s||"vertical"===a;r=o.cssClip(),i.clip={top:l?(r.bottom-r.top)/2:r.top,right:u?(r.right-r.left)/2:r.right,bottom:l?(r.bottom-r.top)/2:r.bottom,left:u?(r.right-r.left)/2:r.left},t.effects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(i.clip),i.clip=r),o.animate(i,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})),t.effects.define("drop","hide",(function(e,n){var r,i=t(this),o="show"===e.mode,a=e.direction||"left",s="up"===a||"down"===a?"top":"left",u="up"===a||"left"===a?"-=":"+=",l="+="===u?"-=":"+=",c={opacity:0};t.effects.createPlaceholder(i),r=e.distance||i["top"===s?"outerHeight":"outerWidth"](!0)/2,c[s]=u+r,o&&(i.css(c),c[s]=l+r,c.opacity=1),i.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})),t.effects.define("explode","hide",(function(e,n){var r,i,o,a,s,u,l=e.pieces?Math.round(Math.sqrt(e.pieces)):3,c=l,d=t(this),h="show"===e.mode,f=d.show().css("visibility","hidden").offset(),p=Math.ceil(d.outerWidth()/c),m=Math.ceil(d.outerHeight()/l),g=[];function y(){g.push(this),g.length===l*c&&v()}for(r=0;r<l;r++)for(a=f.top+r*m,u=r-(l-1)/2,i=0;i<c;i++)o=f.left+i*p,s=i-(c-1)/2,d.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-i*p,top:-r*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:p,height:m,left:o+(h?s*p:0),top:a+(h?u*m:0),opacity:h?0:1}).animate({left:o+(h?0:s*p),top:a+(h?0:u*m),opacity:h?1:0},e.duration||500,e.easing,y);function v(){d.css({visibility:"visible"}),t(g).remove(),n()}})),t.effects.define("fade","toggle",(function(e,n){var r="show"===e.mode;t(this).css("opacity",r?0:1).animate({opacity:r?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:n})})),t.effects.define("fold","hide",(function(e,n){var r=t(this),i=e.mode,o="show"===i,a="hide"===i,s=e.size||15,u=/([0-9]+)%/.exec(s),l=e.horizFirst?["right","bottom"]:["bottom","right"],c=e.duration/2,d=t.effects.createPlaceholder(r),h=r.cssClip(),f={clip:t.extend({},h)},p={clip:t.extend({},h)},m=[h[l[0]],h[l[1]]],g=r.queue().length;u&&(s=parseInt(u[1],10)/100*m[a?0:1]),f.clip[l[0]]=s,p.clip[l[0]]=s,p.clip[l[1]]=0,o&&(r.cssClip(p.clip),d&&d.css(t.effects.clipToBox(p)),p.clip=h),r.queue((function(n){d&&d.animate(t.effects.clipToBox(f),c,e.easing).animate(t.effects.clipToBox(p),c,e.easing),n()})).animate(f,c,e.easing).animate(p,c,e.easing).queue(n),t.effects.unshift(r,g,4)})),t.effects.define("highlight","show",(function(e,n){var r=t(this),i={backgroundColor:r.css("backgroundColor")};"hide"===e.mode&&(i.opacity=0),t.effects.saveStyle(r),r.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(i,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})),t.effects.define("size",(function(e,n){var r,i,o,a=t(this),s=["fontSize"],u=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=e.mode,d="effect"!==c,h=e.scale||"both",f=e.origin||["middle","center"],p=a.css("position"),m=a.position(),g=t.effects.scaledDimensions(a),y=e.from||g,v=e.to||t.effects.scaledDimensions(a,0);t.effects.createPlaceholder(a),"show"===c&&(o=y,y=v,v=o),i={from:{y:y.height/g.height,x:y.width/g.width},to:{y:v.height/g.height,x:v.width/g.width}},"box"!==h&&"both"!==h||(i.from.y!==i.to.y&&(y=t.effects.setTransition(a,u,i.from.y,y),v=t.effects.setTransition(a,u,i.to.y,v)),i.from.x!==i.to.x&&(y=t.effects.setTransition(a,l,i.from.x,y),v=t.effects.setTransition(a,l,i.to.x,v))),"content"!==h&&"both"!==h||i.from.y!==i.to.y&&(y=t.effects.setTransition(a,s,i.from.y,y),v=t.effects.setTransition(a,s,i.to.y,v)),f&&(r=t.effects.getBaseline(f,g),y.top=(g.outerHeight-y.outerHeight)*r.y+m.top,y.left=(g.outerWidth-y.outerWidth)*r.x+m.left,v.top=(g.outerHeight-v.outerHeight)*r.y+m.top,v.left=(g.outerWidth-v.outerWidth)*r.x+m.left),a.css(y),"content"!==h&&"both"!==h||(u=u.concat(["marginTop","marginBottom"]).concat(s),l=l.concat(["marginLeft","marginRight"]),a.find("*[width]").each((function(){var n=t(this),r=t.effects.scaledDimensions(n),o={height:r.height*i.from.y,width:r.width*i.from.x,outerHeight:r.outerHeight*i.from.y,outerWidth:r.outerWidth*i.from.x},a={height:r.height*i.to.y,width:r.width*i.to.x,outerHeight:r.height*i.to.y,outerWidth:r.width*i.to.x};i.from.y!==i.to.y&&(o=t.effects.setTransition(n,u,i.from.y,o),a=t.effects.setTransition(n,u,i.to.y,a)),i.from.x!==i.to.x&&(o=t.effects.setTransition(n,l,i.from.x,o),a=t.effects.setTransition(n,l,i.to.x,a)),d&&t.effects.saveStyle(n),n.css(o),n.animate(a,e.duration,e.easing,(function(){d&&t.effects.restoreStyle(n)}))}))),a.animate(v,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=a.offset();0===v.opacity&&a.css("opacity",y.opacity),d||(a.css("position","static"===p?"relative":p).offset(e),t.effects.saveStyle(a)),n()}})})),t.effects.define("scale",(function(e,n){var r=t(this),i=e.mode,o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==i?0:100),a=t.extend(!0,{from:t.effects.scaledDimensions(r),to:t.effects.scaledDimensions(r,o,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(a.from.opacity=1,a.to.opacity=0),t.effects.effect.size.call(this,a,n)})),t.effects.define("puff","hide",(function(e,n){var r=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,r,n)})),t.effects.define("pulsate","show",(function(e,n){var r=t(this),i=e.mode,o="show"===i,a=o||"hide"===i,s=2*(e.times||5)+(a?1:0),u=e.duration/s,l=0,c=1,d=r.queue().length;for(!o&&r.is(":visible")||(r.css("opacity",0).show(),l=1);c<s;c++)r.animate({opacity:l},u,e.easing),l=1-l;r.animate({opacity:l},u,e.easing),r.queue(n),t.effects.unshift(r,d,s+1)})),t.effects.define("shake",(function(e,n){var r=1,i=t(this),o=e.direction||"left",a=e.distance||20,s=e.times||3,u=2*s+1,l=Math.round(e.duration/u),c="up"===o||"down"===o?"top":"left",d="up"===o||"left"===o,h={},f={},p={},m=i.queue().length;for(t.effects.createPlaceholder(i),h[c]=(d?"-=":"+=")+a,f[c]=(d?"+=":"-=")+2*a,p[c]=(d?"-=":"+=")+2*a,i.animate(h,l,e.easing);r<s;r++)i.animate(f,l,e.easing).animate(p,l,e.easing);i.animate(f,l,e.easing).animate(h,l/2,e.easing).queue(n),t.effects.unshift(i,m,u+1)})),t.effects.define("slide","show",(function(e,n){var r,i,o=t(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=e.mode,u=e.direction||"left",l="up"===u||"down"===u?"top":"left",c="up"===u||"left"===u,d=e.distance||o["top"===l?"outerHeight":"outerWidth"](!0),h={};t.effects.createPlaceholder(o),r=o.cssClip(),i=o.position()[l],h[l]=(c?-1:1)*d+i,h.clip=o.cssClip(),h.clip[a[u][1]]=h.clip[a[u][0]],"show"===s&&(o.cssClip(h.clip),o.css(l,h[l]),h.clip=r,h[l]=i),o.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:n})})),!1!==t.uiBackCompat&&t.effects.define("transfer",(function(e,n){t(this).transfer(e,n)}))},void 0===(o="function"===typeof r?r.apply(e,i):r)||(t.exports=o)},function(t,e,n){(function(t){function e(t){return e="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},e(t)}!function(t,n,r){"use strict";var i=function(e,n){this.widget="",this.$element=t(e),this.defaultTime=n.defaultTime,this.disableFocus=n.disableFocus,this.disableMousewheel=n.disableMousewheel,this.isOpen=n.isOpen,this.minuteStep=n.minuteStep,this.modalBackdrop=n.modalBackdrop,this.orientation=n.orientation,this.secondStep=n.secondStep,this.snapToStep=n.snapToStep,this.showInputs=n.showInputs,this.showMeridian=n.showMeridian,this.showSeconds=n.showSeconds,this.template=n.template,this.appendWidgetTo=n.appendWidgetTo,this.showWidgetOnAddonClick=n.showWidgetOnAddonClick,this.icons=n.icons,this.maxHours=n.maxHours,this.explicitMode=n.explicitMode,this.handleDocumentClick=function(t){var e=t.data.scope;e.$element.parent().find(t.target).length||e.$widget.is(t.target)||e.$widget.find(t.target).length||e.hideWidget()},this._init()};i.prototype={constructor:i,_init:function(){var e=this;this.showWidgetOnAddonClick&&this.$element.parent().hasClass("input-group")&&this.$element.parent().hasClass("bootstrap-timepicker")?(this.$element.parent(".input-group.bootstrap-timepicker").find(".input-group-addon").on({"click.timepicker":t.proxy(this.showWidget,this)}),this.$element.on({"focus.timepicker":t.proxy(this.highlightUnit,this),"click.timepicker":t.proxy(this.highlightUnit,this),"keydown.timepicker":t.proxy(this.elementKeydown,this),"blur.timepicker":t.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":t.proxy(this.mousewheel,this)})):this.template?this.$element.on({"focus.timepicker":t.proxy(this.showWidget,this),"click.timepicker":t.proxy(this.showWidget,this),"blur.timepicker":t.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":t.proxy(this.mousewheel,this)}):this.$element.on({"focus.timepicker":t.proxy(this.highlightUnit,this),"click.timepicker":t.proxy(this.highlightUnit,this),"keydown.timepicker":t.proxy(this.elementKeydown,this),"blur.timepicker":t.proxy(this.blurElement,this),"mousewheel.timepicker DOMMouseScroll.timepicker":t.proxy(this.mousewheel,this)}),!1!==this.template?this.$widget=t(this.getTemplate()).on("click",t.proxy(this.widgetClick,this)):this.$widget=!1,this.showInputs&&!1!==this.$widget&&this.$widget.find("input").each((function(){t(this).on({"click.timepicker":function(){t(this).select()},"keydown.timepicker":t.proxy(e.widgetKeydown,e),"keyup.timepicker":t.proxy(e.widgetKeyup,e)})})),this.setDefaultTime(this.defaultTime)},blurElement:function(){this.highlightedUnit=null,this.updateFromElementVal()},clear:function(){this.hour="",this.minute="",this.second="",this.meridian="",this.$element.val("")},decrementHour:function(){if(this.showMeridian)if(1===this.hour)this.hour=12;else{if(12===this.hour)return this.hour--,this.toggleMeridian();if(0===this.hour)return this.hour=11,this.toggleMeridian();this.hour--}else this.hour<=0?this.hour=this.maxHours-1:this.hour--},decrementMinute:function(t){var e;(e=t?this.minute-t:this.minute-this.minuteStep)<0?(this.decrementHour(),this.minute=e+60):this.minute=e},decrementSecond:function(){var t=this.second-this.secondStep;t<0?(this.decrementMinute(!0),this.second=t+60):this.second=t},elementKeydown:function(t){switch(t.which){case 9:if(t.shiftKey){if("hour"===this.highlightedUnit){this.hideWidget();break}this.highlightPrevUnit()}else{if(this.showMeridian&&"meridian"===this.highlightedUnit||this.showSeconds&&"second"===this.highlightedUnit||!this.showMeridian&&!this.showSeconds&&"minute"===this.highlightedUnit){this.hideWidget();break}this.highlightNextUnit()}t.preventDefault(),this.updateFromElementVal();break;case 27:this.updateFromElementVal();break;case 37:t.preventDefault(),this.highlightPrevUnit(),this.updateFromElementVal();break;case 38:switch(t.preventDefault(),this.highlightedUnit){case"hour":this.incrementHour(),this.highlightHour();break;case"minute":this.incrementMinute(),this.highlightMinute();break;case"second":this.incrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian()}this.update();break;case 39:t.preventDefault(),this.highlightNextUnit(),this.updateFromElementVal();break;case 40:switch(t.preventDefault(),this.highlightedUnit){case"hour":this.decrementHour(),this.highlightHour();break;case"minute":this.decrementMinute(),this.highlightMinute();break;case"second":this.decrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian()}this.update()}},getCursorPosition:function(){var t=this.$element.get(0);if("selectionStart"in t)return t.selectionStart;if(r.selection){t.focus();var e=r.selection.createRange(),n=r.selection.createRange().text.length;return e.moveStart("character",-t.value.length),e.text.length-n}},getTemplate:function(){var t,e,n,r,i,o;switch(this.showInputs?(e='<input type="text" class="bootstrap-timepicker-hour" maxlength="2"/>',n='<input type="text" class="bootstrap-timepicker-minute" maxlength="2"/>',r='<input type="text" class="bootstrap-timepicker-second" maxlength="2"/>',i='<input type="text" class="bootstrap-timepicker-meridian" maxlength="2"/>'):(e='<span class="bootstrap-timepicker-hour"></span>',n='<span class="bootstrap-timepicker-minute"></span>',r='<span class="bootstrap-timepicker-second"></span>',i='<span class="bootstrap-timepicker-meridian"></span>'),o='<table><tr><td><a href="#" data-action="incrementHour"><span class="'+this.icons.up+'"></span></a></td><td class="separator">&nbsp;</td><td><a href="#" data-action="incrementMinute"><span class="'+this.icons.up+'"></span></a></td>'+(this.showSeconds?'<td class="separator">&nbsp;</td><td><a href="#" data-action="incrementSecond"><span class="'+this.icons.up+'"></span></a></td>':"")+(this.showMeridian?'<td class="separator">&nbsp;</td><td class="meridian-column"><a href="#" data-action="toggleMeridian"><span class="'+this.icons.up+'"></span></a></td>':"")+"</tr><tr><td>"+e+'</td> <td class="separator">:</td><td>'+n+"</td> "+(this.showSeconds?'<td class="separator">:</td><td>'+r+"</td>":"")+(this.showMeridian?'<td class="separator">&nbsp;</td><td>'+i+"</td>":"")+'</tr><tr><td><a href="#" data-action="decrementHour"><span class="'+this.icons.down+'"></span></a></td><td class="separator"></td><td><a href="#" data-action="decrementMinute"><span class="'+this.icons.down+'"></span></a></td>'+(this.showSeconds?'<td class="separator">&nbsp;</td><td><a href="#" data-action="decrementSecond"><span class="'+this.icons.down+'"></span></a></td>':"")+(this.showMeridian?'<td class="separator">&nbsp;</td><td><a href="#" data-action="toggleMeridian"><span class="'+this.icons.down+'"></span></a></td>':"")+"</tr></table>",this.template){case"modal":t='<div class="bootstrap-timepicker-widget modal hide fade in" data-backdrop="'+(this.modalBackdrop?"true":"false")+'"><div class="modal-header"><a href="#" class="close" data-dismiss="modal">&times;</a><h3>Pick a Time</h3></div><div class="modal-content">'+o+'</div><div class="modal-footer"><a href="#" class="btn btn-primary" data-dismiss="modal">OK</a></div></div>';break;case"dropdown":t='<div class="bootstrap-timepicker-widget dropdown-menu">'+o+"</div>"}return t},getTime:function(){return""===this.hour?"":this.hour+":"+(1===this.minute.toString().length?"0"+this.minute:this.minute)+(this.showSeconds?":"+(1===this.second.toString().length?"0"+this.second:this.second):"")+(this.showMeridian?" "+this.meridian:"")},hideWidget:function(){!1!==this.isOpen&&(this.$element.trigger({type:"hide.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),"modal"===this.template&&this.$widget.modal?this.$widget.modal("hide"):this.$widget.removeClass("open"),t(r).off("mousedown.timepicker, touchend.timepicker",this.handleDocumentClick),this.isOpen=!1,this.$widget.detach())},highlightUnit:function(){this.position=this.getCursorPosition(),this.position>=0&&this.position<=2?this.highlightHour():this.position>=3&&this.position<=5?this.highlightMinute():this.position>=6&&this.position<=8?this.showSeconds?this.highlightSecond():this.highlightMeridian():this.position>=9&&this.position<=11&&this.highlightMeridian()},highlightNextUnit:function(){switch(this.highlightedUnit){case"hour":this.highlightMinute();break;case"minute":this.showSeconds?this.highlightSecond():this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"second":this.showMeridian?this.highlightMeridian():this.highlightHour();break;case"meridian":this.highlightHour()}},highlightPrevUnit:function(){switch(this.highlightedUnit){case"hour":this.showMeridian?this.highlightMeridian():this.showSeconds?this.highlightSecond():this.highlightMinute();break;case"minute":this.highlightHour();break;case"second":this.highlightMinute();break;case"meridian":this.showSeconds?this.highlightSecond():this.highlightMinute()}},highlightHour:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="hour",t.setSelectionRange&&setTimeout((function(){e.hour<10?t.setSelectionRange(0,1):t.setSelectionRange(0,2)}),0)},highlightMinute:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="minute",t.setSelectionRange&&setTimeout((function(){e.hour<10?t.setSelectionRange(2,4):t.setSelectionRange(3,5)}),0)},highlightSecond:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="second",t.setSelectionRange&&setTimeout((function(){e.hour<10?t.setSelectionRange(5,7):t.setSelectionRange(6,8)}),0)},highlightMeridian:function(){var t=this.$element.get(0),e=this;this.highlightedUnit="meridian",t.setSelectionRange&&(this.showSeconds?setTimeout((function(){e.hour<10?t.setSelectionRange(8,10):t.setSelectionRange(9,11)}),0):setTimeout((function(){e.hour<10?t.setSelectionRange(5,7):t.setSelectionRange(6,8)}),0))},incrementHour:function(){if(this.showMeridian){if(11===this.hour)return this.hour++,this.toggleMeridian();12===this.hour&&(this.hour=0)}this.hour!==this.maxHours-1?this.hour++:this.hour=0},incrementMinute:function(t){var e;(e=t?this.minute+t:this.minute+this.minuteStep-this.minute%this.minuteStep)>59?(this.incrementHour(),this.minute=e-60):this.minute=e},incrementSecond:function(){var t=this.second+this.secondStep-this.second%this.secondStep;t>59?(this.incrementMinute(!0),this.second=t-60):this.second=t},mousewheel:function(e){if(!this.disableMousewheel){e.preventDefault(),e.stopPropagation();var n=e.originalEvent.wheelDelta||-e.originalEvent.detail,r=null;switch("mousewheel"===e.type?r=-1*e.originalEvent.wheelDelta:"DOMMouseScroll"===e.type&&(r=40*e.originalEvent.detail),r&&(e.preventDefault(),t(this).scrollTop(r+t(this).scrollTop())),this.highlightedUnit){case"minute":n>0?this.incrementMinute():this.decrementMinute(),this.highlightMinute();break;case"second":n>0?this.incrementSecond():this.decrementSecond(),this.highlightSecond();break;case"meridian":this.toggleMeridian(),this.highlightMeridian();break;default:n>0?this.incrementHour():this.decrementHour(),this.highlightHour()}return!1}},changeToNearestStep:function(t,e){return t%e===0?t:Math.round(t%e/e)?(t+(e-t%e))%60:t-t%e},place:function(){if(!this.isInline){var e=this.$widget.outerWidth(),r=this.$widget.outerHeight(),i=t(n).width(),o=t(n).height(),a=t(n).scrollTop(),s=parseInt(this.$element.parents().filter((function(){return"auto"!==t(this).css("z-index")})).first().css("z-index"),10)+10,u=this.component?this.component.parent().offset():this.$element.offset(),l=this.component?this.component.outerHeight(!0):this.$element.outerHeight(!1),c=this.component?this.component.outerWidth(!0):this.$element.outerWidth(!1),d=u.left,h=u.top;this.$widget.removeClass("timepicker-orient-top timepicker-orient-bottom timepicker-orient-right timepicker-orient-left"),"auto"!==this.orientation.x?(this.$widget.addClass("timepicker-orient-"+this.orientation.x),"right"===this.orientation.x&&(d-=e-c)):(this.$widget.addClass("timepicker-orient-left"),u.left<0?d-=u.left-10:u.left+e>i&&(d=i-e-10));var f,p,m=this.orientation.y;"auto"===m&&(f=-a+u.top-r,p=a+o-(u.top+l+r),m=Math.max(f,p)===p?"top":"bottom"),this.$widget.addClass("timepicker-orient-"+m),"top"===m?h+=l:h-=r+parseInt(this.$widget.css("padding-top"),10),this.$widget.css({top:h,left:d,zIndex:s})}},remove:function(){t("document").off(".timepicker"),this.$widget&&this.$widget.remove(),delete this.$element.data().timepicker},setDefaultTime:function(t){if(this.$element.val())this.updateFromElementVal();else if("current"===t){var e=new Date,n=e.getHours(),r=e.getMinutes(),i=e.getSeconds(),o="AM";0!==i&&60===(i=Math.ceil(e.getSeconds()/this.secondStep)*this.secondStep)&&(r+=1,i=0),0!==r&&60===(r=Math.ceil(e.getMinutes()/this.minuteStep)*this.minuteStep)&&(n+=1,r=0),this.showMeridian&&(0===n?n=12:n>=12?(n>12&&(n-=12),o="PM"):o="AM"),this.hour=n,this.minute=r,this.second=i,this.meridian=o,this.update()}else!1===t?(this.hour=0,this.minute=0,this.second=0,this.meridian="AM"):this.setTime(t)},setTime:function(t,n){if(t){var r,i,o,a,s,u;if("object"===e(t)&&t.getMonth)o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),this.showMeridian&&(u="AM",o>12&&(u="PM",o%=12),12===o&&(u="PM"));else{if((r=(/a/i.test(t)?1:0)+(/p/i.test(t)?2:0))>2)return void this.clear();if(o=(i=t.replace(/[^0-9\:]/g,"").split(":"))[0]?i[0].toString():i.toString(),this.explicitMode&&o.length>2&&o.length%2!==0)return void this.clear();a=i[1]?i[1].toString():"",s=i[2]?i[2].toString():"",o.length>4&&(s=o.slice(-2),o=o.slice(0,-2)),o.length>2&&(a=o.slice(-2),o=o.slice(0,-2)),a.length>2&&(s=a.slice(-2),a=a.slice(0,-2)),o=parseInt(o,10),a=parseInt(a,10),s=parseInt(s,10),isNaN(o)&&(o=0),isNaN(a)&&(a=0),isNaN(s)&&(s=0),s>59&&(s=59),a>59&&(a=59),o>=this.maxHours&&(o=this.maxHours-1),this.showMeridian?(o>12&&(r=2,o-=12),r||(r=1),0===o&&(o=12),u=1===r?"AM":"PM"):o<12&&2===r?o+=12:o>=this.maxHours?o=this.maxHours-1:(o<0||12===o&&1===r)&&(o=0)}this.hour=o,this.snapToStep?(this.minute=this.changeToNearestStep(a,this.minuteStep),this.second=this.changeToNearestStep(s,this.secondStep)):(this.minute=a,this.second=s),this.meridian=u,this.update(n)}else this.clear()},showWidget:function(){this.isOpen||this.$element.is(":disabled")||(this.$widget.appendTo(this.appendWidgetTo),t(r).on("mousedown.timepicker, touchend.timepicker",{scope:this},this.handleDocumentClick),this.$element.trigger({type:"show.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}}),this.place(),this.disableFocus&&this.$element.blur(),""===this.hour&&(this.defaultTime?this.setDefaultTime(this.defaultTime):this.setTime("0:0:0")),"modal"===this.template&&this.$widget.modal?this.$widget.modal("show").on("hidden",t.proxy(this.hideWidget,this)):!1===this.isOpen&&this.$widget.addClass("open"),this.isOpen=!0)},toggleMeridian:function(){this.meridian="AM"===this.meridian?"PM":"AM"},update:function(t){this.updateElement(),t||this.updateWidget(),this.$element.trigger({type:"changeTime.timepicker",time:{value:this.getTime(),hours:this.hour,minutes:this.minute,seconds:this.second,meridian:this.meridian}})},updateElement:function(){this.$element.val(this.getTime()).change()},updateFromElementVal:function(){this.setTime(this.$element.val())},updateWidget:function(){if(!1!==this.$widget){var t=this.hour,e=1===this.minute.toString().length?"0"+this.minute:this.minute,n=1===this.second.toString().length?"0"+this.second:this.second;this.showInputs?(this.$widget.find("input.bootstrap-timepicker-hour").val(t),this.$widget.find("input.bootstrap-timepicker-minute").val(e),this.showSeconds&&this.$widget.find("input.bootstrap-timepicker-second").val(n),this.showMeridian&&this.$widget.find("input.bootstrap-timepicker-meridian").val(this.meridian)):(this.$widget.find("span.bootstrap-timepicker-hour").text(t),this.$widget.find("span.bootstrap-timepicker-minute").text(e),this.showSeconds&&this.$widget.find("span.bootstrap-timepicker-second").text(n),this.showMeridian&&this.$widget.find("span.bootstrap-timepicker-meridian").text(this.meridian))}},updateFromWidgetInputs:function(){if(!1!==this.$widget){var t=this.$widget.find("input.bootstrap-timepicker-hour").val()+":"+this.$widget.find("input.bootstrap-timepicker-minute").val()+(this.showSeconds?":"+this.$widget.find("input.bootstrap-timepicker-second").val():"")+(this.showMeridian?this.$widget.find("input.bootstrap-timepicker-meridian").val():"");this.setTime(t,!0)}},widgetClick:function(e){e.stopPropagation(),e.preventDefault();var n=t(e.target),r=n.closest("a").data("action");r&&this[r](),this.update(),n.is("input")&&n.get(0).setSelectionRange(0,2)},widgetKeydown:function(e){var n=t(e.target),r=n.attr("class").replace("bootstrap-timepicker-","");switch(e.which){case 9:if(e.shiftKey){if("hour"===r)return this.hideWidget()}else if(this.showMeridian&&"meridian"===r||this.showSeconds&&"second"===r||!this.showMeridian&&!this.showSeconds&&"minute"===r)return this.hideWidget();break;case 27:this.hideWidget();break;case 38:switch(e.preventDefault(),r){case"hour":this.incrementHour();break;case"minute":this.incrementMinute();break;case"second":this.incrementSecond();break;case"meridian":this.toggleMeridian()}this.setTime(this.getTime()),n.get(0).setSelectionRange(0,2);break;case 40:switch(e.preventDefault(),r){case"hour":this.decrementHour();break;case"minute":this.decrementMinute();break;case"second":this.decrementSecond();break;case"meridian":this.toggleMeridian()}this.setTime(this.getTime()),n.get(0).setSelectionRange(0,2)}},widgetKeyup:function(t){(65===t.which||77===t.which||80===t.which||46===t.which||8===t.which||t.which>=48&&t.which<=57||t.which>=96&&t.which<=105)&&this.updateFromWidgetInputs()}},t.fn.timepicker=function(n){var r=Array.apply(null,arguments);return r.shift(),this.each((function(){var o=t(this),a=o.data("timepicker"),s="object"===e(n)&&n;a||o.data("timepicker",a=new i(this,t.extend({},t.fn.timepicker.defaults,s,t(this).data()))),"string"===typeof n&&a[n].apply(a,r)}))},t.fn.timepicker.defaults={defaultTime:"current",disableFocus:!1,disableMousewheel:!1,isOpen:!1,minuteStep:15,modalBackdrop:!1,orientation:{x:"auto",y:"auto"},secondStep:15,snapToStep:!1,showSeconds:!1,showInputs:!0,showMeridian:!0,template:"dropdown",appendWidgetTo:"body",showWidgetOnAddonClick:!0,icons:{up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},maxHours:24,explicitMode:!1},t.fn.timepicker.Constructor=i,t(r).on("focus.timepicker.data-api click.timepicker.data-api",'[data-provide="timepicker"]',(function(e){var n=t(this);n.data("timepicker")||(e.preventDefault(),n.timepicker())}))}(t,window,document)}).call(this,n(15))},function(t,e,n){var r,i;function o(t){return o="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(t)}void 0===this&&void 0!==window&&window,r=[n(15)],i=function(t){!function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],r={"*":["class","dir","id","lang","role","tabindex","style",/^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","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},i=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,a=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function s(e,r){var o=e.nodeName.toLowerCase();if(-1!==t.inArray(o,r))return-1===t.inArray(o,n)||Boolean(e.nodeValue.match(i)||e.nodeValue.match(a));for(var s=t(r).filter((function(t,e){return e instanceof RegExp})),u=0,l=s.length;u<l;u++)if(o.match(s[u]))return!0;return!1}function u(t,e,n){if(n&&"function"===typeof n)return n(t);for(var r=Object.keys(e),i=0,o=t.length;i<o;i++)for(var a=t[i].querySelectorAll("*"),u=0,l=a.length;u<l;u++){var c=a[u],d=c.nodeName.toLowerCase();if(-1!==r.indexOf(d))for(var h=[].slice.call(c.attributes),f=[].concat(e["*"]||[],e[d]||[]),p=0,m=h.length;p<m;p++){var g=h[p];s(g,f)||c.removeAttribute(g.nodeName)}else c.parentNode.removeChild(c)}}"classList"in document.createElement("_")||function(e){if("Element"in e){var n="classList",r="prototype",i=e.Element[r],o=Object,a=function(){var e=t(this);return{add:function(t){return t=Array.prototype.slice.call(arguments).join(" "),e.addClass(t)},remove:function(t){return t=Array.prototype.slice.call(arguments).join(" "),e.removeClass(t)},toggle:function(t,n){return e.toggleClass(t,n)},contains:function(t){return e.hasClass(t)}}};if(o.defineProperty){var s={get:a,enumerable:!0,configurable:!0};try{o.defineProperty(i,n,s)}catch(u){void 0!==u.number&&-2146823252!==u.number||(s.enumerable=!1,o.defineProperty(i,n,s))}}else o[r].__defineGetter__&&i.__defineGetter__(n,a)}}(window);var l,c,d,h=document.createElement("_");if(h.classList.add("c1","c2"),!h.classList.contains("c2")){var f=DOMTokenList.prototype.add,p=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,f.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,p.bind(this))}}if(h.classList.toggle("c3",!1),h.classList.contains("c3")){var m=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)===!e?e:m.call(this,t)}}function g(t,e){return t.length===e.length&&t.every((function(t,n){return t===e[n]}))}function y(t,e){var n,r=t.selectedOptions,i=[];if(e){for(var o=0,a=r.length;o<a;o++)(n=r[o]).disabled||"OPTGROUP"===n.parentNode.tagName&&n.parentNode.disabled||i.push(n);return i}return r}function v(t,e){for(var n,r=[],i=e||t.selectedOptions,o=0,a=i.length;o<a;o++)(n=i[o]).disabled||"OPTGROUP"===n.parentNode.tagName&&n.parentNode.disabled||r.push(n.value);return t.multiple?r:r.length?r[0]:null}h=null,String.prototype.startsWith||(l=function(){try{var t={},e=Object.defineProperty,n=e(t,t,t)&&e}catch(r){}return n}(),c={}.toString,d=function(t){if(null==this)throw new TypeError;var e=String(this);if(t&&"[object RegExp]"==c.call(t))throw new TypeError;var n=e.length,r=String(t),i=r.length,o=arguments.length>1?arguments[1]:void 0,a=o?Number(o):0;a!=a&&(a=0);var s=Math.min(Math.max(a,0),n);if(i+s>n)return!1;for(var u=-1;++u<i;)if(e.charCodeAt(s+u)!=r.charCodeAt(u))return!1;return!0},l?l(String.prototype,"startsWith",{value:d,configurable:!0,writable:!0}):String.prototype.startsWith=d),Object.keys||(Object.keys=function(t,e,n){for(e in n=[],t)n.hasOwnProperty.call(t,e)&&n.push(e);return n}),HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});var _={useDefault:!1,_set:t.valHooks.select.set};t.valHooks.select.set=function(e,n){return n&&!_.useDefault&&t(e).data("selected",!0),_._set.apply(this,arguments)};var b=null,w=function(){try{return new Event("change"),!0}catch(t){return!1}}();function k(t,e,n,r){for(var i=["display","subtext","tokens"],o=!1,a=0;a<i.length;a++){var s=i[a],u=t[s];if(u&&(u=u.toString(),"display"===s&&(u=u.replace(/<[^>]+>/g,"")),r&&(u=A(u)),u=u.toUpperCase(),o="contains"===n?u.indexOf(e)>=0:u.startsWith(e)))break}return o}function S(t){return parseInt(t,10)||0}t.fn.triggerNative=function(t){var e,n=this[0];n.dispatchEvent?(w?e=new Event(t,{bubbles:!0}):(e=document.createEvent("Event")).initEvent(t,!0,!1),n.dispatchEvent(e)):n.fireEvent?((e=document.createEventObject()).eventType=t,n.fireEvent("on"+t,e)):this.trigger(t)};var E={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"},C=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,x=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function D(t){return E[t]}function A(t){return(t=t.toString())&&t.replace(C,D).replace(x,"")}var T,M,L,O,I,P=(T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},M=function(t){return T[t]},L="(?:"+Object.keys(T).join("|")+")",O=RegExp(L),I=RegExp(L,"g"),function(t){return t=null==t?"":""+t,O.test(t)?t.replace(I,M):t}),R={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},N={ESCAPE:27,ENTER:13,SPACE:32,TAB:9,ARROW_UP:38,ARROW_DOWN:40},F={success:!1,major:"3"};try{F.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),F.major=F.full[0],F.success=!0}catch(X){}var j=0,B=".bs.select",Y={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},H={MENU:"."+Y.MENU},z={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode("\xa0"),fragment:document.createDocumentFragment()};z.noResults=z.li.cloneNode(!1),z.noResults.className="no-results",z.a.setAttribute("role","option"),z.a.className="dropdown-item",z.subtext.className="text-muted",z.text=z.span.cloneNode(!1),z.text.className="text",z.checkMark=z.span.cloneNode(!1);var W=new RegExp(N.ARROW_UP+"|"+N.ARROW_DOWN),V=new RegExp("^"+N.TAB+"$|"+N.ESCAPE),U={li:function(t,e,n){var r=z.li.cloneNode(!1);return t&&(1===t.nodeType||11===t.nodeType?r.appendChild(t):r.innerHTML=t),"undefined"!==typeof e&&""!==e&&(r.className=e),"undefined"!==typeof n&&null!==n&&r.classList.add("optgroup-"+n),r},a:function(t,e,n){var r=z.a.cloneNode(!0);return t&&(11===t.nodeType?r.appendChild(t):r.insertAdjacentHTML("beforeend",t)),"undefined"!==typeof e&&""!==e&&r.classList.add.apply(r.classList,e.split(/\s+/)),n&&r.setAttribute("style",n),r},text:function(t,e){var n,r,i=z.text.cloneNode(!1);if(t.content)i.innerHTML=t.content;else{if(i.textContent=t.text,t.icon){var o=z.whitespace.cloneNode(!1);(r=(!0===e?z.i:z.span).cloneNode(!1)).className=this.options.iconBase+" "+t.icon,z.fragment.appendChild(r),z.fragment.appendChild(o)}t.subtext&&((n=z.subtext.cloneNode(!1)).textContent=t.subtext,i.appendChild(n))}if(!0===e)for(;i.childNodes.length>0;)z.fragment.appendChild(i.childNodes[0]);else z.fragment.appendChild(i);return z.fragment},label:function(t){var e,n,r=z.text.cloneNode(!1);if(r.innerHTML=t.display,t.icon){var i=z.whitespace.cloneNode(!1);(n=z.span.cloneNode(!1)).className=this.options.iconBase+" "+t.icon,z.fragment.appendChild(n),z.fragment.appendChild(i)}return t.subtext&&((e=z.subtext.cloneNode(!1)).textContent=t.subtext,r.appendChild(e)),z.fragment.appendChild(r),z.fragment}};function q(t,e){t.length||(z.noResults.innerHTML=this.options.noneResultsText.replace("{0}",'"'+P(e)+'"'),this.$menuInner[0].firstChild.appendChild(z.noResults))}var G=function e(n,r){var i=this;_.useDefault||(t.valHooks.select.set=_._set,_.useDefault=!0),this.$element=t(n),this.$newElement=null,this.$button=null,this.$menu=null,this.options=r,this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout((function(){i.selectpicker.keydown.keyHistory=""}),800)}}}},this.sizeInfo={},null===this.options.title&&(this.options.title=this.$element.attr("title"));var o=this.options.windowPadding;"number"===typeof o&&(this.options.windowPadding=[o,o,o,o]),this.val=e.prototype.val,this.render=e.prototype.render,this.refresh=e.prototype.refresh,this.setStyle=e.prototype.setStyle,this.selectAll=e.prototype.selectAll,this.deselectAll=e.prototype.deselectAll,this.destroy=e.prototype.destroy,this.remove=e.prototype.remove,this.show=e.prototype.show,this.hide=e.prototype.hide,this.init()};function $(n){var r,i=arguments,a=n;if([].shift.apply(i),!F.success){try{F.full=(t.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(X){G.BootstrapVersion?F.full=G.BootstrapVersion.split(" ")[0].split("."):(F.full=[F.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",X))}F.major=F.full[0],F.success=!0}if("4"===F.major){var s=[];G.DEFAULTS.style===Y.BUTTONCLASS&&s.push({name:"style",className:"BUTTONCLASS"}),G.DEFAULTS.iconBase===Y.ICONBASE&&s.push({name:"iconBase",className:"ICONBASE"}),G.DEFAULTS.tickIcon===Y.TICKICON&&s.push({name:"tickIcon",className:"TICKICON"}),Y.DIVIDER="dropdown-divider",Y.SHOW="show",Y.BUTTONCLASS="btn-light",Y.POPOVERHEADER="popover-header",Y.ICONBASE="",Y.TICKICON="bs-ok-default";for(var u=0;u<s.length;u++)n=s[u],G.DEFAULTS[n.name]=Y[n.className]}var l=this.each((function(){var n=t(this);if(n.is("select")){var s=n.data("selectpicker"),u="object"==o(a)&&a;if(s){if(u)for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&(s.options[l]=u[l])}else{var c=n.data();for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&-1!==t.inArray(d,e)&&delete c[d];var h=t.extend({},G.DEFAULTS,t.fn.selectpicker.defaults||{},c,u);h.template=t.extend({},G.DEFAULTS.template,t.fn.selectpicker.defaults?t.fn.selectpicker.defaults.template:{},c.template,u.template),n.data("selectpicker",s=new G(this,h))}"string"==typeof a&&(r=s[a]instanceof Function?s[a].apply(s,i):s.options[a])}}));return"undefined"!==typeof r?r:l}G.VERSION="1.13.18",G.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:Y.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:Y.ICONBASE,tickIcon:Y.TICKICON,showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:r},G.prototype={constructor:G,init:function(){var t=this,e=this.$element.attr("id"),n=this.$element[0],r=n.form;j++,this.selectId="bs-select-"+j,n.classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),n.classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),r&&null===n.form&&(r.id||(r.id="form-"+this.selectId),n.setAttribute("form",r.id)),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(H.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),n.classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(Y.MENURIGHT),"undefined"!==typeof e&&this.$button.attr("data-id",e),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+B,(function(){if(t.isVirtual()){var e=t.$menuInner[0],n=e.firstChild.cloneNode(!1);e.replaceChild(n,e.firstChild),e.scrollTop=0}})),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(e){t.$element.trigger("hide"+B,e)},"hidden.bs.dropdown":function(e){t.$element.trigger("hidden"+B,e)},"show.bs.dropdown":function(e){t.$element.trigger("show"+B,e)},"shown.bs.dropdown":function(e){t.$element.trigger("shown"+B,e)}}),n.hasAttribute("required")&&this.$element.on("invalid"+B,(function(){t.$button[0].classList.add("bs-invalid"),t.$element.on("shown"+B+".invalid",(function(){t.$element.val(t.$element.val()).off("shown"+B+".invalid")})).on("rendered"+B,(function(){this.validity.valid&&t.$button[0].classList.remove("bs-invalid"),t.$element.off("rendered"+B)})),t.$button.on("blur"+B,(function(){t.$element.trigger("focus").trigger("blur"),t.$button.off("blur"+B)}))})),setTimeout((function(){t.buildList(),t.$element.trigger("loaded"+B)}))},createDropdown:function(){var e=this.multiple||this.options.showTick?" show-tick":"",n=this.multiple?' aria-multiselectable="true"':"",r="",i=this.autofocus?" autofocus":"";F.major<4&&this.$element.parent().hasClass("input-group")&&(r=" input-group-btn");var o,a="",s="",u="",l="";return this.options.header&&(a='<div class="'+Y.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>"),this.options.liveSearch&&(s='<div class="bs-searchbox"><input type="search" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+P(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"></div>'),this.multiple&&this.options.actionsBox&&(u='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+Y.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+Y.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>"),this.multiple&&this.options.doneButton&&(l='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+Y.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>"),o='<div class="dropdown bootstrap-select'+e+r+'"><button type="button" tabindex="-1" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+i+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===F.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+Y.MENU+" "+("4"===F.major?"":Y.SHOW)+'">'+a+s+u+'<div class="inner '+Y.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+n+'><ul class="'+Y.MENU+" inner "+("4"===F.major?Y.SHOW:"")+'" role="presentation"></ul></div>'+l+"</div></div>",t(o)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;for(var t=0;t<this.selectpicker.current.data.length;t++){var e=this.selectpicker.current.data[t],n=!0;"divider"===e.type?(n=!1,e.height=this.sizeInfo.dividerHeight):"optgroup-label"===e.type?(n=!1,e.height=this.sizeInfo.dropdownHeaderHeight):e.height=this.sizeInfo.liHeight,e.disabled&&(n=!1),this.selectpicker.view.canHighlight.push(n),n&&(this.selectpicker.view.size++,e.posinset=this.selectpicker.view.size,!1===this.selectpicker.view.firstHighlightIndex&&(this.selectpicker.view.firstHighlightIndex=t)),e.position=(0===t?0:this.selectpicker.current.data[t-1].position)+e.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(e,n,r){var i,o,a=this,s=0,l=[];if(this.selectpicker.isSearching=e,this.selectpicker.current=e?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),n)if(r)s=this.$menuInner[0].scrollTop;else if(!a.multiple){var c=a.$element[0],d=(c.options[c.selectedIndex]||{}).liIndex;if("number"===typeof d&&!1!==a.options.size){var h=a.selectpicker.main.data[d],f=h&&h.position;f&&(s=f-(a.sizeInfo.menuInnerHeight+a.sizeInfo.liHeight)/2)}}function p(t,n){var r,s,c,d,h,f,p,m,y=a.selectpicker.current.elements.length,v=[],_=!0,b=a.isVirtual();a.selectpicker.view.scrollTop=t,r=Math.ceil(a.sizeInfo.menuInnerHeight/a.sizeInfo.liHeight*1.5),s=Math.round(y/r)||1;for(var w=0;w<s;w++){var k=(w+1)*r;if(w===s-1&&(k=y),v[w]=[w*r+(w?1:0),k],!y)break;void 0===h&&t-1<=a.selectpicker.current.data[k-1].position-a.sizeInfo.menuInnerHeight&&(h=w)}if(void 0===h&&(h=0),f=[a.selectpicker.view.position0,a.selectpicker.view.position1],c=Math.max(0,h-1),d=Math.min(s-1,h+1),a.selectpicker.view.position0=!1===b?0:Math.max(0,v[c][0])||0,a.selectpicker.view.position1=!1===b?y:Math.min(y,v[d][1])||0,p=f[0]!==a.selectpicker.view.position0||f[1]!==a.selectpicker.view.position1,void 0!==a.activeIndex&&(o=a.selectpicker.main.elements[a.prevActiveIndex],l=a.selectpicker.main.elements[a.activeIndex],i=a.selectpicker.main.elements[a.selectedIndex],n&&(a.activeIndex!==a.selectedIndex&&a.defocusItem(l),a.activeIndex=void 0),a.activeIndex&&a.activeIndex!==a.selectedIndex&&a.defocusItem(i)),void 0!==a.prevActiveIndex&&a.prevActiveIndex!==a.activeIndex&&a.prevActiveIndex!==a.selectedIndex&&a.defocusItem(o),(n||p)&&(m=a.selectpicker.view.visibleElements?a.selectpicker.view.visibleElements.slice():[],a.selectpicker.view.visibleElements=!1===b?a.selectpicker.current.elements:a.selectpicker.current.elements.slice(a.selectpicker.view.position0,a.selectpicker.view.position1),a.setOptionStatus(),(e||!1===b&&n)&&(_=!g(m,a.selectpicker.view.visibleElements)),(n||!0===b)&&_)){var S,E,C=a.$menuInner[0],x=document.createDocumentFragment(),D=C.firstChild.cloneNode(!1),A=a.selectpicker.view.visibleElements,T=[];C.replaceChild(D,C.firstChild),w=0;for(var M=A.length;w<M;w++){var L,O,I=A[w];a.options.sanitize&&(L=I.lastChild)&&(O=a.selectpicker.current.data[w+a.selectpicker.view.position0])&&O.content&&!O.sanitized&&(T.push(L),O.sanitized=!0),x.appendChild(I)}if(a.options.sanitize&&T.length&&u(T,a.options.whiteList,a.options.sanitizeFn),!0===b?(S=0===a.selectpicker.view.position0?0:a.selectpicker.current.data[a.selectpicker.view.position0-1].position,E=a.selectpicker.view.position1>y-1?0:a.selectpicker.current.data[y-1].position-a.selectpicker.current.data[a.selectpicker.view.position1-1].position,C.firstChild.style.marginTop=S+"px",C.firstChild.style.marginBottom=E+"px"):(C.firstChild.style.marginTop=0,C.firstChild.style.marginBottom=0),C.firstChild.appendChild(x),!0===b&&a.sizeInfo.hasScrollBar){var P=C.firstChild.offsetWidth;if(n&&P<a.sizeInfo.menuInnerInnerWidth&&a.sizeInfo.totalMenuWidth>a.sizeInfo.selectWidth)C.firstChild.style.minWidth=a.sizeInfo.menuInnerInnerWidth+"px";else if(P>a.sizeInfo.menuInnerInnerWidth){a.$menu[0].style.minWidth=0;var R=C.firstChild.offsetWidth;R>a.sizeInfo.menuInnerInnerWidth&&(a.sizeInfo.menuInnerInnerWidth=R,C.firstChild.style.minWidth=a.sizeInfo.menuInnerInnerWidth+"px"),a.$menu[0].style.minWidth=""}}}if(a.prevActiveIndex=a.activeIndex,a.options.liveSearch){if(e&&n){var N,F=0;a.selectpicker.view.canHighlight[F]||(F=1+a.selectpicker.view.canHighlight.slice(1).indexOf(!0)),N=a.selectpicker.view.visibleElements[F],a.defocusItem(a.selectpicker.view.currentActive),a.activeIndex=(a.selectpicker.current.data[F]||{}).index,a.focusItem(N)}}else a.$menuInner.trigger("focus")}p(s,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",(function(t,e){a.noScroll||p(this.scrollTop,e),a.noScroll=!1})),t(window).off("resize"+B+"."+this.selectId+".createView").on("resize"+B+"."+this.selectId+".createView",(function(){a.$newElement.hasClass(Y.SHOW)&&p(a.$menuInner[0].scrollTop)}))},focusItem:function(t,e,n){if(t){e=e||this.selectpicker.main.data[this.activeIndex];var r=t.firstChild;r&&(r.setAttribute("aria-setsize",this.selectpicker.view.size),r.setAttribute("aria-posinset",e.posinset),!0!==n&&(this.focusedParent.setAttribute("aria-activedescendant",r.id),t.classList.add("active"),r.classList.add("active")))}},defocusItem:function(t){t&&(t.classList.remove("active"),t.firstChild&&t.firstChild.classList.remove("active"))},setPlaceholder:function(){var t=this,e=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),e=!0;var n=this.$element[0],r=!1,i=!this.selectpicker.view.titleOption.parentNode,o=n.selectedIndex,a=n.options[o],s=window.performance&&window.performance.getEntriesByType("navigation"),u=s&&s.length?"back_forward"!==s[0].type:2!==window.performance.navigation.type;i&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",r=!a||0===o&&!1===a.defaultSelected&&void 0===this.$element.data("selected")),(i||0!==this.selectpicker.view.titleOption.index)&&n.insertBefore(this.selectpicker.view.titleOption,n.firstChild),r&&u?n.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",(function(){t.selectpicker.view.displayedValue!==n.value&&t.render()}))}return e},buildData:function(){var t=':not([hidden]):not([data-hidden="true"])',e=[],n=0,r=this.setPlaceholder()?1:0;this.options.hideDisabled&&(t+=":not(:disabled)");var i=this.$element[0].querySelectorAll("select > *"+t);function o(t){var n=e[e.length-1];n&&"divider"===n.type&&(n.optID||t.optID)||((t=t||{}).type="divider",e.push(t))}function a(t,n){if((n=n||{}).divider="true"===t.getAttribute("data-divider"),n.divider)o({optID:n.optID});else{var r=e.length,i=t.style.cssText,a=i?P(i):"",s=(t.className||"")+(n.optgroupClass||"");n.optID&&(s="opt "+s),n.optionClass=s.trim(),n.inlineStyle=a,n.text=t.textContent,n.content=t.getAttribute("data-content"),n.tokens=t.getAttribute("data-tokens"),n.subtext=t.getAttribute("data-subtext"),n.icon=t.getAttribute("data-icon"),t.liIndex=r,n.display=n.content||n.text,n.type="option",n.index=r,n.option=t,n.selected=!!t.selected,n.disabled=n.disabled||!!t.disabled,e.push(n)}}function s(i,s){var u=s[i],l=!(i-1<r)&&s[i-1],c=s[i+1],d=u.querySelectorAll("option"+t);if(d.length){var h,f,p={display:P(u.label),subtext:u.getAttribute("data-subtext"),icon:u.getAttribute("data-icon"),type:"optgroup-label",optgroupClass:" "+(u.className||"")};n++,l&&o({optID:n}),p.optID=n,e.push(p);for(var m=0,g=d.length;m<g;m++){var y=d[m];0===m&&(f=(h=e.length-1)+g),a(y,{headerIndex:h,lastIndex:f,optID:p.optID,optgroupClass:p.optgroupClass,disabled:u.disabled})}c&&o({optID:n})}}for(var u=i.length,l=r;l<u;l++){var c=i[l];"OPTGROUP"!==c.tagName?a(c,{}):s(l,i)}this.selectpicker.main.data=this.selectpicker.current.data=e},buildList:function(){var t=this,e=this.selectpicker.main.data,n=[],r=0;function i(e){var i,o=0;switch(e.type){case"divider":i=U.li(!1,Y.DIVIDER,e.optID?e.optID+"div":void 0);break;case"option":(i=U.li(U.a(U.text.call(t,e),e.optionClass,e.inlineStyle),"",e.optID)).firstChild&&(i.firstChild.id=t.selectId+"-"+e.index);break;case"optgroup-label":i=U.li(U.label.call(t,e),"dropdown-header"+e.optgroupClass,e.optID)}e.element=i,n.push(i),e.display&&(o+=e.display.length),e.subtext&&(o+=e.subtext.length),e.icon&&(o+=1),o>r&&(r=o,t.selectpicker.view.widestOption=n[n.length-1])}!t.options.showTick&&!t.multiple||z.checkMark.parentNode||(z.checkMark.className=this.options.iconBase+" "+t.options.tickIcon+" check-mark",z.a.appendChild(z.checkMark));for(var o=e.length,a=0;a<o;a++)i(e[a]);this.selectpicker.main.elements=this.selectpicker.current.elements=n},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var t,e,n=this,r=this.$element[0],i=this.setPlaceholder()&&0===r.selectedIndex,o=y(r,this.options.hideDisabled),a=o.length,s=this.$button[0],l=s.querySelector(".filter-option-inner-inner"),c=document.createTextNode(this.options.multipleSeparator),d=z.fragment.cloneNode(!1),h=!1;if(s.classList.toggle("bs-placeholder",n.multiple?!a:!v(r,o)),n.multiple||1!==o.length||(n.selectpicker.view.displayedValue=v(r,o)),"static"===this.options.selectedTextFormat)d=U.text.call(this,{text:this.options.title},!0);else if((t=this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&a>1)&&(t=(e=this.options.selectedTextFormat.split(">")).length>1&&a>e[1]||1===e.length&&a>=2),!1===t){if(!i){for(var f=0;f<a&&f<50;f++){var p=o[f],m=this.selectpicker.main.data[p.liIndex],g={};this.multiple&&f>0&&d.appendChild(c.cloneNode(!1)),p.title?g.text=p.title:m&&(m.content&&n.options.showContent?(g.content=m.content.toString(),h=!0):(n.options.showIcon&&(g.icon=m.icon),n.options.showSubtext&&!n.multiple&&m.subtext&&(g.subtext=" "+m.subtext),g.text=p.textContent.trim())),d.appendChild(U.text.call(this,g,!0))}a>49&&d.appendChild(document.createTextNode("..."))}}else{var _=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&(_+=":not(:disabled)");var b=this.$element[0].querySelectorAll("select > option"+_+", optgroup"+_+" option"+_).length,w="function"===typeof this.options.countSelectedText?this.options.countSelectedText(a,b):this.options.countSelectedText;d=U.text.call(this,{text:w.replace("{0}",a.toString()).replace("{1}",b.toString())},!0)}if(void 0==this.options.title&&(this.options.title=this.$element.attr("title")),d.childNodes.length||(d=U.text.call(this,{text:"undefined"!==typeof this.options.title?this.options.title:this.options.noneSelectedText},!0)),s.title=d.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&h&&u([d],n.options.whiteList,n.options.sanitizeFn),l.innerHTML="",l.appendChild(d),F.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var k=s.querySelector(".filter-expand"),S=l.cloneNode(!0);S.className="filter-expand",k?s.replaceChild(S,k):s.appendChild(S)}this.$element.trigger("rendered"+B)},setStyle:function(t,e){var n,r=this.$button[0],i=this.$newElement[0],o=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),F.major<4&&(i.classList.add("bs3"),i.parentNode.classList&&i.parentNode.classList.contains("input-group")&&(i.previousElementSibling||i.nextElementSibling)&&(i.previousElementSibling||i.nextElementSibling).classList.contains("input-group-addon")&&i.classList.add("bs3-has-addon")),n=t?t.trim():o,"add"==e?n&&r.classList.add.apply(r.classList,n.split(" ")):"remove"==e?n&&r.classList.remove.apply(r.classList,n.split(" ")):(o&&r.classList.remove.apply(r.classList,o.split(" ")),n&&r.classList.add.apply(r.classList,n.split(" ")))},liHeight:function(e){if(e||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var n,r=z.div.cloneNode(!1),i=z.div.cloneNode(!1),o=z.div.cloneNode(!1),a=document.createElement("ul"),s=z.li.cloneNode(!1),u=z.li.cloneNode(!1),l=z.a.cloneNode(!1),c=z.span.cloneNode(!1),d=this.options.header&&this.$menu.find("."+Y.POPOVERHEADER).length>0?this.$menu.find("."+Y.POPOVERHEADER)[0].cloneNode(!0):null,h=this.options.liveSearch?z.div.cloneNode(!1):null,f=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,p=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,m=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,c.className="text",l.className="dropdown-item "+(m?m.className:""),r.className=this.$menu[0].parentNode.className+" "+Y.SHOW,r.style.width=0,"auto"===this.options.width&&(i.style.minWidth=0),i.className=Y.MENU+" "+Y.SHOW,o.className="inner "+Y.SHOW,a.className=Y.MENU+" inner "+("4"===F.major?Y.SHOW:""),s.className=Y.DIVIDER,u.className="dropdown-header",c.appendChild(document.createTextNode("\u200b")),this.selectpicker.current.data.length)for(var g=0;g<this.selectpicker.current.data.length;g++){var y=this.selectpicker.current.data[g];if("option"===y.type){n=y.element;break}}else n=z.li.cloneNode(!1),l.appendChild(c),n.appendChild(l);if(u.appendChild(c.cloneNode(!0)),this.selectpicker.view.widestOption&&a.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),a.appendChild(n),a.appendChild(s),a.appendChild(u),d&&i.appendChild(d),h){var v=document.createElement("input");h.className="bs-searchbox",v.className="form-control",h.appendChild(v),i.appendChild(h)}f&&i.appendChild(f),o.appendChild(a),i.appendChild(o),p&&i.appendChild(p),r.appendChild(i),document.body.appendChild(r);var _,b=n.offsetHeight,w=u?u.offsetHeight:0,k=d?d.offsetHeight:0,E=h?h.offsetHeight:0,C=f?f.offsetHeight:0,x=p?p.offsetHeight:0,D=t(s).outerHeight(!0),A=!!window.getComputedStyle&&window.getComputedStyle(i),T=i.offsetWidth,M=A?null:t(i),L={vert:S(A?A.paddingTop:M.css("paddingTop"))+S(A?A.paddingBottom:M.css("paddingBottom"))+S(A?A.borderTopWidth:M.css("borderTopWidth"))+S(A?A.borderBottomWidth:M.css("borderBottomWidth")),horiz:S(A?A.paddingLeft:M.css("paddingLeft"))+S(A?A.paddingRight:M.css("paddingRight"))+S(A?A.borderLeftWidth:M.css("borderLeftWidth"))+S(A?A.borderRightWidth:M.css("borderRightWidth"))},O={vert:L.vert+S(A?A.marginTop:M.css("marginTop"))+S(A?A.marginBottom:M.css("marginBottom"))+2,horiz:L.horiz+S(A?A.marginLeft:M.css("marginLeft"))+S(A?A.marginRight:M.css("marginRight"))+2};o.style.overflowY="scroll",_=i.offsetWidth-T,document.body.removeChild(r),this.sizeInfo.liHeight=b,this.sizeInfo.dropdownHeaderHeight=w,this.sizeInfo.headerHeight=k,this.sizeInfo.searchHeight=E,this.sizeInfo.actionsHeight=C,this.sizeInfo.doneButtonHeight=x,this.sizeInfo.dividerHeight=D,this.sizeInfo.menuPadding=L,this.sizeInfo.menuExtras=O,this.sizeInfo.menuWidth=T,this.sizeInfo.menuInnerInnerWidth=T-L.horiz,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=_,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var e,n=this,r=t(window),i=n.$newElement.offset(),o=t(n.options.container);n.options.container&&o.length&&!o.is("body")?((e=o.offset()).top+=parseInt(o.css("borderTopWidth")),e.left+=parseInt(o.css("borderLeftWidth"))):e={top:0,left:0};var a=n.options.windowPadding;this.sizeInfo.selectOffsetTop=i.top-e.top-r.scrollTop(),this.sizeInfo.selectOffsetBot=r.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-e.top-a[2],this.sizeInfo.selectOffsetLeft=i.left-e.left-r.scrollLeft(),this.sizeInfo.selectOffsetRight=r.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-e.left-a[1],this.sizeInfo.selectOffsetTop-=a[0],this.sizeInfo.selectOffsetLeft-=a[3]},setMenuSize:function(t){this.getSelectPosition();var e,n,r,i,o,a,s,u,l=this.sizeInfo.selectWidth,c=this.sizeInfo.liHeight,d=this.sizeInfo.headerHeight,h=this.sizeInfo.searchHeight,f=this.sizeInfo.actionsHeight,p=this.sizeInfo.doneButtonHeight,m=this.sizeInfo.dividerHeight,g=this.sizeInfo.menuPadding,y=0;if(this.options.dropupAuto&&(s=c*this.selectpicker.current.elements.length+g.vert,u=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&s+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(u=this.selectpicker.dropup),this.$newElement.toggleClass(Y.DROPUP,u),this.selectpicker.dropup=u),"auto"===this.options.size)i=this.selectpicker.current.elements.length>3?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,r=i+d+h+f+p,a=Math.max(i-g.vert,0),this.$newElement.hasClass(Y.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),o=n,e=n-d-h-f-p-g.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var v=0;v<this.options.size;v++)"divider"===this.selectpicker.current.data[v].type&&y++;e=(n=c*this.options.size+y*m+g.vert)-g.vert,o=n+d+h+f+p,r=a=""}this.$menu.css({"max-height":o+"px",overflow:"hidden","min-height":r+"px"}),this.$menuInner.css({"max-height":e+"px","overflow-y":"auto","min-height":a+"px"}),this.sizeInfo.menuInnerHeight=Math.max(e,1),this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(Y.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-l),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(e){if(this.liHeight(e),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var n=this,r=t(window);this.setMenuSize(),this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",(function(){return n.setMenuSize()})),"auto"===this.options.size?r.off("resize"+B+"."+this.selectId+".setMenuSize scroll"+B+"."+this.selectId+".setMenuSize").on("resize"+B+"."+this.selectId+".setMenuSize scroll"+B+"."+this.selectId+".setMenuSize",(function(){return n.setMenuSize()})):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&r.off("resize"+B+"."+this.selectId+".setMenuSize scroll"+B+"."+this.selectId+".setMenuSize")}this.createView(!1,!0,e)},setWidth:function(){var t=this;"auto"===this.options.width?requestAnimationFrame((function(){t.$menu.css("min-width","0"),t.$element.on("loaded"+B,(function(){t.liHeight(),t.setMenuSize();var e=t.$newElement.clone().appendTo("body"),n=e.css("width","auto").children("button").outerWidth();e.remove(),t.sizeInfo.selectWidth=Math.max(t.sizeInfo.totalMenuWidth,n),t.$newElement.css("width",t.sizeInfo.selectWidth+"px")}))})):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){this.$bsContainer=t('<div class="bs-container" />');var e,n,r,i=this,o=t(this.options.container),a=function(a){var s={},u=i.options.display||!!t.fn.dropdown.Constructor.Default&&t.fn.dropdown.Constructor.Default.display;i.$bsContainer.addClass(a.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(Y.DROPUP,a.hasClass(Y.DROPUP)),e=a.offset(),o.is("body")?n={top:0,left:0}:((n=o.offset()).top+=parseInt(o.css("borderTopWidth"))-o.scrollTop(),n.left+=parseInt(o.css("borderLeftWidth"))-o.scrollLeft()),r=a.hasClass(Y.DROPUP)?0:a[0].offsetHeight,(F.major<4||"static"===u)&&(s.top=e.top-n.top+r,s.left=e.left-n.left),s.width=a[0].offsetWidth,i.$bsContainer.css(s)};this.$button.on("click.bs.dropdown.data-api",(function(){i.isDisabled()||(a(i.$newElement),i.$bsContainer.appendTo(i.options.container).toggleClass(Y.SHOW,!i.$button.hasClass(Y.SHOW)).append(i.$menu))})),t(window).off("resize"+B+"."+this.selectId+" scroll"+B+"."+this.selectId).on("resize"+B+"."+this.selectId+" scroll"+B+"."+this.selectId,(function(){i.$newElement.hasClass(Y.SHOW)&&a(i.$newElement)})),this.$element.on("hide"+B,(function(){i.$menu.data("height",i.$menu.height()),i.$bsContainer.detach()}))},setOptionStatus:function(t){var e=this;if(e.noScroll=!1,e.selectpicker.view.visibleElements&&e.selectpicker.view.visibleElements.length)for(var n=0;n<e.selectpicker.view.visibleElements.length;n++){var r=e.selectpicker.current.data[n+e.selectpicker.view.position0],i=r.option;i&&(!0!==t&&e.setDisabled(r.index,r.disabled),e.setSelected(r.index,i.selected))}},setSelected:function(t,e){var n,r,i=this.selectpicker.main.elements[t],o=this.selectpicker.main.data[t],a=void 0!==this.activeIndex,s=this.activeIndex===t||e&&!this.multiple&&!a;o.selected=e,r=i.firstChild,e&&(this.selectedIndex=t),i.classList.toggle("selected",e),s?(this.focusItem(i,o),this.selectpicker.view.currentActive=i,this.activeIndex=t):this.defocusItem(i),r&&(r.classList.toggle("selected",e),e?r.setAttribute("aria-selected",!0):this.multiple?r.setAttribute("aria-selected",!1):r.removeAttribute("aria-selected")),s||a||!e||void 0===this.prevActiveIndex||(n=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(n))},setDisabled:function(t,e){var n,r=this.selectpicker.main.elements[t];this.selectpicker.main.data[t].disabled=e,n=r.firstChild,r.classList.toggle(Y.DISABLED,e),n&&("4"===F.major&&n.classList.toggle(Y.DISABLED,e),e?(n.setAttribute("aria-disabled",e),n.setAttribute("tabindex",-1)):(n.removeAttribute("aria-disabled"),n.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.$newElement[0].classList.add(Y.DISABLED),this.$button.addClass(Y.DISABLED).attr("aria-disabled",!0)):this.$button[0].classList.contains(Y.DISABLED)&&(this.$newElement[0].classList.remove(Y.DISABLED),this.$button.removeClass(Y.DISABLED).attr("aria-disabled",!1))},clickListener:function(){var e=this,n=t(document);function r(){e.options.liveSearch?e.$searchbox.trigger("focus"):e.$menuInner.trigger("focus")}function i(){e.dropdown&&e.dropdown._popper&&e.dropdown._popper.state.isCreated?r():requestAnimationFrame(i)}n.data("spaceSelect",!1),this.$button.on("keyup",(function(t){/(32)/.test(t.keyCode.toString(10))&&n.data("spaceSelect")&&(t.preventDefault(),n.data("spaceSelect",!1))})),this.$newElement.on("show.bs.dropdown",(function(){F.major>3&&!e.dropdown&&(e.dropdown=e.$button.data("bs.dropdown"),e.dropdown._menu=e.$menu[0])})),this.$button.on("click.bs.dropdown.data-api",(function(){e.$newElement.hasClass(Y.SHOW)||e.setSize()})),this.$element.on("shown"+B,(function(){e.$menuInner[0].scrollTop!==e.selectpicker.view.scrollTop&&(e.$menuInner[0].scrollTop=e.selectpicker.view.scrollTop),F.major>3?requestAnimationFrame(i):r()})),this.$menuInner.on("mouseenter","li a",(function(t){var n=this.parentElement,r=e.isVirtual()?e.selectpicker.view.position0:0,i=Array.prototype.indexOf.call(n.parentElement.children,n),o=e.selectpicker.current.data[i+r];e.focusItem(n,o,!0)})),this.$menuInner.on("click","li a",(function(n,r){var i=t(this),o=e.$element[0],a=e.isVirtual()?e.selectpicker.view.position0:0,s=e.selectpicker.current.data[i.parent().index()+a],u=s.index,l=v(o),c=o.selectedIndex,d=o.options[c],h=!0;if(e.multiple&&1!==e.options.maxOptions&&n.stopPropagation(),n.preventDefault(),!e.isDisabled()&&!i.parent().hasClass(Y.DISABLED)){var f=s.option,p=t(f),m=f.selected,g=p.parent("optgroup"),_=g.find("option"),w=e.options.maxOptions,k=g.data("maxOptions")||!1;if(u===e.activeIndex&&(r=!0),r||(e.prevActiveIndex=e.activeIndex,e.activeIndex=void 0),e.multiple){if(f.selected=!m,e.setSelected(u,!m),e.focusedParent.focus(),!1!==w||!1!==k){var S=w<y(o).length,E=k<g.find("option:selected").length;if(w&&S||k&&E)if(w&&1==w)o.selectedIndex=-1,f.selected=!0,e.setOptionStatus(!0);else if(k&&1==k){for(var C=0;C<_.length;C++){var x=_[C];x.selected=!1,e.setSelected(x.liIndex,!1)}f.selected=!0,e.setSelected(u,!0)}else{var D="string"===typeof e.options.maxOptionsText?[e.options.maxOptionsText,e.options.maxOptionsText]:e.options.maxOptionsText,A="function"===typeof D?D(w,k):D,T=A[0].replace("{n}",w),M=A[1].replace("{n}",k),L=t('<div class="notify"></div>');A[2]&&(T=T.replace("{var}",A[2][w>1?0:1]),M=M.replace("{var}",A[2][k>1?0:1])),f.selected=!1,e.$menu.append(L),w&&S&&(L.append(t("<div>"+T+"</div>")),h=!1,e.$element.trigger("maxReached"+B)),k&&E&&(L.append(t("<div>"+M+"</div>")),h=!1,e.$element.trigger("maxReachedGrp"+B)),setTimeout((function(){e.setSelected(u,!1)}),10),L[0].classList.add("fadeOut"),setTimeout((function(){L.remove()}),1050)}}}else d&&(d.selected=!1),f.selected=!0,e.setSelected(u,!0);!e.multiple||e.multiple&&1===e.options.maxOptions?e.$button.trigger("focus"):e.options.liveSearch&&e.$searchbox.trigger("focus"),h&&(e.multiple||c!==o.selectedIndex)&&(b=[f.index,p.prop("selected"),l],e.$element.triggerNative("change"))}})),this.$menu.on("click","li."+Y.DISABLED+" a, ."+Y.POPOVERHEADER+", ."+Y.POPOVERHEADER+" :not(.close)",(function(n){n.currentTarget==this&&(n.preventDefault(),n.stopPropagation(),e.options.liveSearch&&!t(n.target).hasClass("close")?e.$searchbox.trigger("focus"):e.$button.trigger("focus"))})),this.$menuInner.on("click",".divider, .dropdown-header",(function(t){t.preventDefault(),t.stopPropagation(),e.options.liveSearch?e.$searchbox.trigger("focus"):e.$button.trigger("focus")})),this.$menu.on("click","."+Y.POPOVERHEADER+" .close",(function(){e.$button.trigger("click")})),this.$searchbox.on("click",(function(t){t.stopPropagation()})),this.$menu.on("click",".actions-btn",(function(n){e.options.liveSearch?e.$searchbox.trigger("focus"):e.$button.trigger("focus"),n.preventDefault(),n.stopPropagation(),t(this).hasClass("bs-select-all")?e.selectAll():e.deselectAll()})),this.$button.on("focus"+B,(function(t){var n=e.$element[0].getAttribute("tabindex");void 0!==n&&t.originalEvent&&t.originalEvent.isTrusted&&(this.setAttribute("tabindex",n),e.$element[0].setAttribute("tabindex",-1),e.selectpicker.view.tabindex=n)})).on("blur"+B,(function(t){void 0!==e.selectpicker.view.tabindex&&t.originalEvent&&t.originalEvent.isTrusted&&(e.$element[0].setAttribute("tabindex",e.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),e.selectpicker.view.tabindex=void 0)})),this.$element.on("change"+B,(function(){e.render(),e.$element.trigger("changed"+B,b),b=null})).on("focus"+B,(function(){e.options.mobile||e.$button[0].focus()}))},liveSearchListener:function(){var t=this;this.$button.on("click.bs.dropdown.data-api",(function(){t.$searchbox.val()&&(t.$searchbox.val(""),t.selectpicker.search.previousValue=void 0)})),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",(function(t){t.stopPropagation()})),this.$searchbox.on("input propertychange",(function(){var e=t.$searchbox[0].value;if(t.selectpicker.search.elements=[],t.selectpicker.search.data=[],e){var n=[],r=e.toUpperCase(),i={},o=[],a=t._searchStyle(),s=t.options.liveSearchNormalize;s&&(r=A(r));for(var u=0;u<t.selectpicker.main.data.length;u++){var l=t.selectpicker.main.data[u];i[u]||(i[u]=k(l,r,a,s)),i[u]&&void 0!==l.headerIndex&&-1===o.indexOf(l.headerIndex)&&(l.headerIndex>0&&(i[l.headerIndex-1]=!0,o.push(l.headerIndex-1)),i[l.headerIndex]=!0,o.push(l.headerIndex),i[l.lastIndex+1]=!0),i[u]&&"optgroup-label"!==l.type&&o.push(u)}u=0;for(var c=o.length;u<c;u++){var d=o[u],h=o[u-1],f=(l=t.selectpicker.main.data[d],t.selectpicker.main.data[h]);("divider"!==l.type||"divider"===l.type&&f&&"divider"!==f.type&&c-1!==u)&&(t.selectpicker.search.data.push(l),n.push(t.selectpicker.main.elements[d]))}t.activeIndex=void 0,t.noScroll=!0,t.$menuInner.scrollTop(0),t.selectpicker.search.elements=n,t.createView(!0),q.call(t,n,e)}else t.selectpicker.search.previousValue&&(t.$menuInner.scrollTop(0),t.createView(!1));t.selectpicker.search.previousValue=e}))},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(t){var e=this.$element[0];if("undefined"!==typeof t){var n=v(e);if(b=[null,null,n],this.$element.val(t).trigger("changed"+B,b),this.$newElement.hasClass(Y.SHOW))if(this.multiple)this.setOptionStatus(!0);else{var r=(e.options[e.selectedIndex]||{}).liIndex;"number"===typeof r&&(this.setSelected(this.selectedIndex,!1),this.setSelected(r,!0))}return this.render(),b=null,this.$element}return this.$element.val()},changeAll:function(t){if(this.multiple){"undefined"===typeof t&&(t=!0);var e=this.$element[0],n=0,r=0,i=v(e);e.classList.add("bs-select-hidden");for(var o=0,a=this.selectpicker.current.data,s=a.length;o<s;o++){var u=a[o],l=u.option;l&&!u.disabled&&"divider"!==u.type&&(u.selected&&n++,l.selected=t,!0===t&&r++)}e.classList.remove("bs-select-hidden"),n!==r&&(this.setOptionStatus(),b=[null,null,i],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(t){(t=t||window.event)&&t.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(e){var n,r,i,o,a,s=t(this),u=s.hasClass("dropdown-toggle"),l=(u?s.closest(".dropdown"):s.closest(H.MENU)).data("this"),c=l.findLis(),d=!1,h=e.which===N.TAB&&!u&&!l.options.selectOnTab,f=W.test(e.which)||h,p=l.$menuInner[0].scrollTop,m=!0===l.isVirtual()?l.selectpicker.view.position0:0;if(!(e.which>=112&&e.which<=123))if(!(r=l.$newElement.hasClass(Y.SHOW))&&(f||e.which>=48&&e.which<=57||e.which>=96&&e.which<=105||e.which>=65&&e.which<=90)&&(l.$button.trigger("click.bs.dropdown.data-api"),l.options.liveSearch))l.$searchbox.trigger("focus");else{if(e.which===N.ESCAPE&&r&&(e.preventDefault(),l.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),f){if(!c.length)return;-1!==(n=(i=l.selectpicker.main.elements[l.activeIndex])?Array.prototype.indexOf.call(i.parentElement.children,i):-1)&&l.defocusItem(i),e.which===N.ARROW_UP?(-1!==n&&n--,n+m<0&&(n+=c.length),l.selectpicker.view.canHighlight[n+m]||-1===(n=l.selectpicker.view.canHighlight.slice(0,n+m).lastIndexOf(!0)-m)&&(n=c.length-1)):(e.which===N.ARROW_DOWN||h)&&(++n+m>=l.selectpicker.view.canHighlight.length&&(n=l.selectpicker.view.firstHighlightIndex),l.selectpicker.view.canHighlight[n+m]||(n=n+1+l.selectpicker.view.canHighlight.slice(n+m+1).indexOf(!0))),e.preventDefault();var g=m+n;e.which===N.ARROW_UP?0===m&&n===c.length-1?(l.$menuInner[0].scrollTop=l.$menuInner[0].scrollHeight,g=l.selectpicker.current.elements.length-1):d=(a=(o=l.selectpicker.current.data[g]).position-o.height)<p:(e.which===N.ARROW_DOWN||h)&&(n===l.selectpicker.view.firstHighlightIndex?(l.$menuInner[0].scrollTop=0,g=l.selectpicker.view.firstHighlightIndex):d=(a=(o=l.selectpicker.current.data[g]).position-l.sizeInfo.menuInnerHeight)>p),i=l.selectpicker.current.elements[g],l.activeIndex=l.selectpicker.current.data[g].index,l.focusItem(i),l.selectpicker.view.currentActive=i,d&&(l.$menuInner[0].scrollTop=a),l.options.liveSearch?l.$searchbox.trigger("focus"):s.trigger("focus")}else if(!s.is("input")&&!V.test(e.which)||e.which===N.SPACE&&l.selectpicker.keydown.keyHistory){var y,v,_=[];e.preventDefault(),l.selectpicker.keydown.keyHistory+=R[e.which],l.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(l.selectpicker.keydown.resetKeyHistory.cancel),l.selectpicker.keydown.resetKeyHistory.cancel=l.selectpicker.keydown.resetKeyHistory.start(),v=l.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(v)&&(v=v.charAt(0));for(var b=0;b<l.selectpicker.current.data.length;b++){var w=l.selectpicker.current.data[b];k(w,v,"startsWith",!0)&&l.selectpicker.view.canHighlight[b]&&_.push(w.index)}if(_.length){var S=0;c.removeClass("active").find("a").removeClass("active"),1===v.length&&(-1===(S=_.indexOf(l.activeIndex))||S===_.length-1?S=0:S++),y=_[S],p-(o=l.selectpicker.main.data[y]).position>0?(a=o.position-o.height,d=!0):(a=o.position-l.sizeInfo.menuInnerHeight,d=o.position>p+l.sizeInfo.menuInnerHeight),i=l.selectpicker.main.elements[y],l.activeIndex=_[S],l.focusItem(i),i&&i.firstChild.focus(),d&&(l.$menuInner[0].scrollTop=a),s.trigger("focus")}}r&&(e.which===N.SPACE&&!l.selectpicker.keydown.keyHistory||e.which===N.ENTER||e.which===N.TAB&&l.options.selectOnTab)&&(e.which!==N.SPACE&&e.preventDefault(),l.options.liveSearch&&e.which===N.SPACE||(l.$menuInner.find(".active a").trigger("click",!0),s.trigger("focus"),l.options.liveSearch||(e.preventDefault(),t(document).data("spaceSelect",!0))))}},mobile:function(){this.options.mobile=!0,this.$element[0].classList.add("mobile-device")},refresh:function(){var e=t.extend({},this.options,this.$element.data());this.options=e,this.checkDisabled(),this.buildData(),this.setStyle(),this.render(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+B)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.$element.off(B).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),t(window).off(B+"."+this.selectId)}};var K=t.fn.selectpicker;function Z(){if(t.fn.dropdown)return(t.fn.dropdown.Constructor._dataApiKeydownHandler||t.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments)}t.fn.selectpicker=$,t.fn.selectpicker.Constructor=G,t.fn.selectpicker.noConflict=function(){return t.fn.selectpicker=K,this},t(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',Z).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",Z).on("keydown"+B,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',G.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',(function(t){t.stopPropagation()})),t(window).on("load"+B+".data-api",(function(){t(".selectpicker").each((function(){var e=t(this);$.call(e,e.data())}))}))}(t)}.apply(e,r),void 0===i||(t.exports=i)},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){i(t,e,n[e])}))}return t}return t=t&&t.hasOwnProperty("default")?t.default:t,e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n,function(t){var i="tooltip",a="bs.tooltip",u="."+a,l=t.fn[i],c="bs-tooltip",d=new RegExp("(^|\\s)"+c+"\\S+","g"),h={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},f={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},p={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},m="show",g="out",y={HIDE:"hide"+u,HIDDEN:"hidden"+u,SHOW:"show"+u,SHOWN:"shown"+u,INSERTED:"inserted"+u,CLICK:"click"+u,FOCUSIN:"focusin"+u,FOCUSOUT:"focusout"+u,MOUSEENTER:"mouseenter"+u,MOUSELEAVE:"mouseleave"+u},v="fade",_="show",b=".tooltip-inner",w=".arrow",k="hover",S="focus",E="click",C="manual",x=function(){function l(t,n){if("undefined"===typeof e)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(n),this.tip=null,this._setListeners()}var x,D,A,T=l.prototype;return T.enable=function(){this._isEnabled=!0},T.disable=function(){this._isEnabled=!1},T.toggleEnabled=function(){this._isEnabled=!this._isEnabled},T.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(_))return void this._leave(null,this);this._enter(null,this)}},T.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},T.show=function(){var r=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var i=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(i);var o=t.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!o)return;var a=this.getTipElement(),s=n.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(a).addClass(v);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=!1===this.config.container?document.body:t(document).find(this.config.container);t(a).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(a).appendTo(c),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new e(this.element,a,{placement:l,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:w},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&r._handlePopperPlacementChange(t)},onUpdate:function(t){r._handlePopperPlacementChange(t)}}),t(a).addClass(_),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var d=function(){r.config.animation&&r._fixTransition();var e=r._hoverState;r._hoverState=null,t(r.element).trigger(r.constructor.Event.SHOWN),e===g&&r._leave(null,r)};if(t(this.tip).hasClass(v)){var h=n.getTransitionDurationFromElement(this.tip);t(this.tip).one(n.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},T.hide=function(e){var r=this,i=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE),a=function(){r._hoverState!==m&&i.parentNode&&i.parentNode.removeChild(i),r._cleanTipClass(),r.element.removeAttribute("aria-describedby"),t(r.element).trigger(r.constructor.Event.HIDDEN),null!==r._popper&&r._popper.destroy(),e&&e()};if(t(this.element).trigger(o),!o.isDefaultPrevented()){if(t(i).removeClass(_),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[E]=!1,this._activeTrigger[S]=!1,this._activeTrigger[k]=!1,t(this.tip).hasClass(v)){var s=n.getTransitionDurationFromElement(i);t(i).one(n.TRANSITION_END,a).emulateTransitionEnd(s)}else a();this._hoverState=""}},T.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},T.isWithContent=function(){return Boolean(this.getTitle())},T.addAttachmentClass=function(e){t(this.getTipElement()).addClass(c+"-"+e)},T.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},T.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(b)),this.getTitle()),t(e).removeClass(v+" "+_)},T.setElementContent=function(e,n){var r=this.config.html;"object"===s(n)&&(n.nodeType||n.jquery)?r?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[r?"html":"text"](n)},T.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},T._getAttachment=function(t){return f[t.toUpperCase()]},T._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(n!==C){var r=n===k?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i=n===k?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,(function(t){return e._enter(t)})).on(i,e.config.selector,(function(t){return e._leave(t)}))}t(e.element).closest(".modal").on("hide.bs.modal",(function(){return e.hide()}))})),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},T._fixTitle=function(){var t=s(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",""))},T._enter=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?S:k]=!0),t(n.getTipElement()).hasClass(_)||n._hoverState===m?n._hoverState=m:(clearTimeout(n._timeout),n._hoverState=m,n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){n._hoverState===m&&n.show()}),n.config.delay.show):n.show())},T._leave=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?S:k]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=g,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){n._hoverState===g&&n.hide()}),n.config.delay.hide):n.hide())},T._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},T._getConfig=function(e){return"number"===typeof(e=o({},this.constructor.Default,t(this.element).data(),"object"===s(e)&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"===typeof e.title&&(e.title=e.title.toString()),"number"===typeof e.content&&(e.content=e.content.toString()),n.typeCheckConfig(i,e,this.constructor.DefaultType),e},T._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},T._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(d);null!==n&&n.length&&e.removeClass(n.join(""))},T._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},T._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(v),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},l._jQueryInterface=function(e){return this.each((function(){var n=t(this).data(a),r="object"===s(e)&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new l(this,r),t(this).data(a,n)),"string"===typeof e)){if("undefined"===typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},x=l,A=[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return p}},{key:"NAME",get:function(){return i}},{key:"DATA_KEY",get:function(){return a}},{key:"Event",get:function(){return y}},{key:"EVENT_KEY",get:function(){return u}},{key:"DefaultType",get:function(){return h}}],(D=null)&&r(x.prototype,D),A&&r(x,A),l}();return t.fn[i]=x._jQueryInterface,t.fn[i].Constructor=x,t.fn[i].noConflict=function(){return t.fn[i]=l,x._jQueryInterface},x}(t)},"object"===s(e)&&"undefined"!==typeof t?t.exports=a(n(15),n(178),n(425)):(i=[n(15),n(178),n(425)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(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)}o=function(){"use strict";function t(t){return"[object Array]"===Object.prototype.toString.call(t)}function e(t){return t instanceof Function}function n(t){return"[object Object]"===Object.prototype.toString.call(t)&&!e(t)&&t instanceof Object}function r(e,i){var o;for(o in i)"__proto__"!==o&&(n(i[o])||t(i[o])?(n(i[o])&&!n(e[o])&&(e[o]={}),t(i[o])&&!t(e[o])&&(e[o]=[]),r(e[o],i[o])):void 0!==i[o]&&(e[o]=i[o]))}function i(t,e){var n={};return r(n,t),r(n,e),n}var o=/^(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)$/i,s=/(\d\d\d\d)(-)?(\d\d)(-)?(\d\d)(T)?(\d\d)(:)?(\d\d)?(:)?(\d\d)?([.,]\d+)?($|Z|([+-])(\d\d)(:)?(\d\d)?)/i,u=String(1.5).charAt(1);function l(t){return""+t}function c(t){return parseFloat(t)}function d(t){var e,n,r,i;if("object"!==a(t))if("number"===typeof t)t=new Date(1e3*t);else{if(e=(t=l(t)).match(o))return n=parseInt(e[1],10),r=parseInt(e[3],10)-1,i=parseInt(e[5],10),new Date(n,r,i);var c=t.replace(/ /,"T").replace(" ","").replace("UTC","Z");t=function(t){var e,n,r,i,o,a,l,c,d,h,f;return"[object Date]"===(h=Object.prototype.toString.call(t))?t:"[object String]"===h&&(r=t.match(s))?(f=parseInt(r[1],10),a=parseInt(r[3],10)-1,e=parseInt(r[5],10),n=parseInt(r[7],10),o=r[9]?parseInt(r[9],10):0,d=r[11]?parseInt(r[11],10):0,i=r[12]?1e3*parseFloat(u+r[12].slice(1)):0,c=Date.UTC(f,a,e,n,o,d,i),r[13]&&r[14]&&(l=60*r[15],r[17]&&(l+=parseInt(r[17],10)),c-=60*(l*="-"===r[14]?-1:1)*1e3),new Date(c)):void 0}(c)||new Date(t)}return t}function h(e){if(!t(e)){var n,r=[];for(n in e)e.hasOwnProperty(n)&&r.push([n,e[n]]);e=r}return e}function f(t,e,n,r,o,a,s,u){return function(l,c,d){var h=l.data,f=i({},t);return f=i(f,d||{}),(l.hideLegend||"legend"in c)&&e(f,c.legend,l.hideLegend),c.title&&n(f,c.title),"min"in c?r(f,c.min):function(t){var e,n,r;for(e=0;e<t.length;e++)for(r=t[e].data,n=0;n<r.length;n++)if(r[n][1]<0)return!0;return!1}(h)||r(f,0),c.max&&o(f,c.max),"stacked"in c&&a(f,c.stacked),c.colors&&(f.colors=c.colors),c.xtitle&&s(f,c.xtitle),c.ytitle&&u(f,c.ytitle),f=i(f,c.library||{})}}function p(t,e){return t[0].getTime()-e[0].getTime()}function m(t,e){return t[0]-e[0]}function g(t,e){return t-e}function y(t){return 0===t.getMilliseconds()&&0===t.getSeconds()}function v(t){return y(t)&&0===t.getMinutes()}function _(t){return v(t)&&0===t.getHours()}function b(t,e){return _(t)&&t.getDay()===e}function w(t){return _(t)&&1===t.getDate()}function k(t){return w(t)&&0===t.getMonth()}function S(t){return!isNaN(d(t))&&l(t).length>=6}function E(t){return"number"===typeof t}var C=["bytes","KB","MB","GB","TB","PB","EB"];function x(t,e,n,r){t=t||"",n.prefix&&(e<0&&(e*=-1,t+="-"),t+=n.prefix);var i=n.suffix||"",o=n.precision,a=n.round;if(n.byteScale){var s,u=r?n.byteScale:e;u>=0x1000000000000000?(e/=0x1000000000000000,s=6):u>=0x4000000000000?(e/=0x4000000000000,s=5):u>=1099511627776?(e/=1099511627776,s=4):u>=1073741824?(e/=1073741824,s=3):u>=1048576?(e/=1048576,s=2):u>=1024?(e/=1024,s=1):s=0,void 0===o&&void 0===a&&(e>=1023.5&&s<C.length-1&&(e=1,s+=1),o=e>=1e3?4:3),i=" "+C[s]}if(void 0!==o&&void 0!==a)throw Error("Use either round or precision, not both");if(!r&&(void 0!==o&&(e=e.toPrecision(o),n.zeros||(e=parseFloat(e))),void 0!==a))if(a<0){var c=Math.pow(10,-1*a);e=parseInt((1*e/c).toFixed(0))*c}else e=e.toFixed(a),n.zeros||(e=parseFloat(e));if(n.thousands||n.decimal){var d=(e=l(e)).split(".");e=d[0],n.thousands&&(e=e.replace(/\B(?=(\d{3})+(?!\d))/g,n.thousands)),d.length>1&&(e+=(n.decimal||".")+d[1])}return t+e+i}function D(t,e,n){return n in e?e[n]:n in t.options?t.options[n]:null}var A={maintainAspectRatio:!1,animation:!1,tooltips:{displayColors:!1,callbacks:{}},legend:{},title:{fontSize:20,fontColor:"#333"}},T={scales:{yAxes:[{ticks:{maxTicksLimit:4},scaleLabel:{fontSize:16,fontColor:"#333"}}],xAxes:[{gridLines:{drawOnChartArea:!1},scaleLabel:{fontSize:16,fontColor:"#333"},time:{},ticks:{}}]}},M=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#651067"],L=function(t,e,n){void 0!==e?(t.legend.display=!!e,e&&!0!==e&&(t.legend.position=e)):n&&(t.legend.display=!1)},O=function(t,e){t.title.display=!0,t.title.text=e},I=function(t,e){null!==e&&(t.scales.xAxes[0].ticks.min=c(e))},P=function(t,e){t.scales.xAxes[0].ticks.max=c(e)},R=function(t,e){t.scales.xAxes[0].stacked=!!e,t.scales.yAxes[0].stacked=!!e},N=function(t,e){t.scales.xAxes[0].scaleLabel.display=!0,t.scales.xAxes[0].scaleLabel.labelString=e},F=function(t,e){t.scales.yAxes[0].scaleLabel.display=!0,t.scales.yAxes[0].scaleLabel.labelString=e},j=function(t){return null!=t},B=function(e,n,r){var i={prefix:e.options.prefix,suffix:e.options.suffix,thousands:e.options.thousands,decimal:e.options.decimal,precision:e.options.precision,round:e.options.round,zeros:e.options.zeros};if(e.options.bytes){var o=e.data;"pie"===r&&(o=[{data:o}]);for(var a=0,s=0;s<o.length;s++)for(var u=o[s],l=0;l<u.data.length;l++)u.data[l][1]>a&&(a=u.data[l][1]);for(var c=1;a>=1024;)c*=1024,a/=1024;i.byteScale=c}if("pie"!==r){var d=n.scales.yAxes;"bar"===r&&(d=n.scales.xAxes),i.byteScale&&(d[0].ticks.stepSize||(d[0].ticks.stepSize=i.byteScale/2),d[0].ticks.maxTicksLimit||(d[0].ticks.maxTicksLimit=4)),d[0].ticks.callback||(d[0].ticks.callback=function(t){return x("",t,i,!0)})}if(!n.tooltips.callbacks.label)if("scatter"===r)n.tooltips.callbacks.label=function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),n+"("+t.xLabel+", "+t.yLabel+")"};else if("bubble"===r)n.tooltips.callbacks.label=function(t,e){var n=e.datasets[t.datasetIndex].label||"";n&&(n+=": ");var r=e.datasets[t.datasetIndex].data[t.index];return n+"("+t.xLabel+", "+t.yLabel+", "+r.v+")"};else if("pie"===r)n.tooltips.callbacks.label=function(e,n){var r=n.labels[e.index];return t(r)?(r=r.slice())[0]+=": ":r+=": ",x(r,n.datasets[e.datasetIndex].data[e.index],i)};else{var h="bar"===r?"xLabel":"yLabel";n.tooltips.callbacks.label=function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),x(n,t[h],i)}}},Y=f(i(A,T),L,O,(function(t,e){null!==e&&(t.scales.yAxes[0].ticks.min=c(e))}),(function(t,e){t.scales.yAxes[0].ticks.max=c(e)}),R,N,F),H=function(t,e,n,r){var o,a=[],s=[],u=t.options.colors||M,l=!0,h=!0,f=!0,p=!0,m=!0,S=!0,E=t.data,C=0;if("bubble"===n)for(var x=0;x<E.length;x++)for(var A=E[x],T=0;T<A.data.length;T++)A.data[T][2]>C&&(C=A.data[T][2]);var L,O,I,P,R,N,F,B,Y=[],H=[];if("bar"===n||"column"===n||"number"!==t.xtype&&"bubble"!==t.xtype){var z,W,V=[];for(L=0;L<E.length;L++)for(I=E[L],O=0;O<I.data.length;O++)P=I.data[O],Y[R="datetime"==t.xtype?P[0].getTime():P[0]]||(Y[R]=new Array(E.length)),Y[R][L]=c(P[1]),-1===V.indexOf(R)&&V.push(R);for("datetime"!==t.xtype&&"number"!==t.xtype||V.sort(g),O=0;O<E.length;O++)H.push([]);for(W=0;W<V.length;W++)for(L=V[W],"datetime"===t.xtype?(z=new Date(c(L)),l=l&&_(z),o||(o=z.getDay()),h=h&&b(z,o),f=f&&w(z),p=p&&k(z),m=m&&v(z),S=S&&y(z)):z=L,s.push(z),O=0;O<E.length;O++)H[O].push(void 0===Y[L][O]?null:Y[L][O])}else for(var U=0;U<E.length;U++){for(var q=E[U],G=[],$=0;$<q.data.length;$++){var K={x:c(q.data[$][0]),y:c(q.data[$][1])};"bubble"===n&&(K.r=20*c(q.data[$][2])/C,K.v=q.data[$][2]),G.push(K)}H.push(G)}for(L=0;L<E.length;L++){var Z=(I=E[L]).color||u[L],X="line"!==n?(F=.5,B=void 0,(B=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(N=Z))?"rgba("+parseInt(B[1],16)+", "+parseInt(B[2],16)+", "+parseInt(B[3],16)+", "+F+")":N):Z,J={label:I.name||"",data:H[L],fill:"area"===n,borderColor:Z,backgroundColor:X,pointBackgroundColor:Z,borderWidth:2,pointHoverBackgroundColor:Z};I.stack&&(J.stack=I.stack),!1===D(t,I,"curve")&&(J.lineTension=0),!1===D(t,I,"points")&&(J.pointRadius=0,J.pointHitRadius=5),J=i(J,t.options.dataset||{}),J=i(J,I.library||{}),J=i(J,I.dataset||{}),a.push(J)}var Q=t.options.xmin,tt=t.options.xmax;if("datetime"===t.xtype){var et="math"in r.helpers?"ticks":"time";j(Q)&&(e.scales.xAxes[0][et].min=d(Q).getTime()),j(tt)&&(e.scales.xAxes[0][et].max=d(tt).getTime())}else"number"===t.xtype&&(j(Q)&&(e.scales.xAxes[0].ticks.min=Q),j(tt)&&(e.scales.xAxes[0].ticks.max=tt));if("datetime"===t.xtype&&0===s.length&&(j(Q)&&s.push(d(Q)),j(tt)&&s.push(d(tt)),l=!1,h=!1,f=!1,p=!1,m=!1,S=!1),"datetime"===t.xtype&&s.length>0){var nt=(j(Q)?d(Q):s[0]).getTime(),rt=(j(tt)?d(tt):s[0]).getTime();for(L=1;L<s.length;L++){var it=s[L].getTime();it<nt&&(nt=it),it>rt&&(rt=it)}var ot,at=(rt-nt)/864e5;if(!e.scales.xAxes[0].time.unit&&(p||at>3650?(e.scales.xAxes[0].time.unit="year",ot=365):f||at>300?(e.scales.xAxes[0].time.unit="month",ot=30):l||at>10?(e.scales.xAxes[0].time.unit="day",ot=1):m||at>.5?(e.scales.xAxes[0].time.displayFormats={hour:"MMM D, h a"},e.scales.xAxes[0].time.unit="hour",ot=1/24):S&&(e.scales.xAxes[0].time.displayFormats={minute:"h:mm a"},e.scales.xAxes[0].time.unit="minute",ot=1/24/60),ot&&at>0)){var st=Math.ceil(at/ot/(t.element.offsetWidth/100));h&&1===ot&&(st=7*Math.ceil(st/7)),e.scales.xAxes[0].time.unitStepSize=st}e.scales.xAxes[0].time.tooltipFormat||(l?e.scales.xAxes[0].time.tooltipFormat="ll":m?e.scales.xAxes[0].time.tooltipFormat="MMM D, h a":S&&(e.scales.xAxes[0].time.tooltipFormat="h:mm a"))}return{labels:s,datasets:a}},z=function(t){this.name="chartjs",this.library=t};z.prototype.renderLineChart=function(t,e){var n={};!t.options.max&&function(t){var e,n,r;for(e=0;e<t.length;e++)for(r=t[e].data,n=0;n<r.length;n++)if(0!=r[n][1])return!1;return!0}(t.data)&&(n.max=1);var r=Y(t,i(n,t.options));B(t,r,e);var o=H(t,r,e||"line",this.library);"number"===t.xtype?(r.scales.xAxes[0].type="linear",r.scales.xAxes[0].position="bottom"):r.scales.xAxes[0].type="string"===t.xtype?"category":"time",this.drawChart(t,"line",o,r)},z.prototype.renderPieChart=function(t){var e=i({},A);t.options.donut&&(e.cutoutPercentage=50),"legend"in t.options&&L(e,t.options.legend),t.options.title&&O(e,t.options.title),e=i(e,t.options.library||{}),B(t,e,"pie");for(var n=[],r=[],o=0;o<t.data.length;o++){var a=t.data[o];n.push(a[0]),r.push(a[1])}var s={data:r,backgroundColor:t.options.colors||M},u={labels:n,datasets:[s=i(s,t.options.dataset||{})]};this.drawChart(t,"pie",u,e)},z.prototype.renderColumnChart=function(t,e){var n;if("bar"===e){var r=i(A,T);delete r.scales.yAxes[0].ticks.maxTicksLimit,n=f(r,L,O,I,P,R,N,F)(t,t.options)}else n=Y(t,t.options);B(t,n,e);var o=H(t,n,"column",this.library);"bar"!==e&&function(t,e,n){var r=Math.ceil(t.element.offsetWidth/4/e.labels.length);r>25?r=25:r<10&&(r=10),n.scales.xAxes[0].ticks.callback||(n.scales.xAxes[0].ticks.callback=function(t){return(t=l(t)).length>r?t.substring(0,r-2)+"...":t})}(t,o,n),this.drawChart(t,"bar"===e?"horizontalBar":"bar",o,n)},z.prototype.renderAreaChart=function(t){this.renderLineChart(t,"area")},z.prototype.renderBarChart=function(t){this.renderColumnChart(t,"bar")},z.prototype.renderScatterChart=function(t,e){e=e||"scatter";var n=Y(t,t.options);B(t,n,e),"showLines"in n||(n.showLines=!1);var r=H(t,n,e,this.library);n.scales.xAxes[0].type="linear",n.scales.xAxes[0].position="bottom",this.drawChart(t,e,r,n)},z.prototype.renderBubbleChart=function(t){this.renderScatterChart(t,"bubble")},z.prototype.destroy=function(t){t.chart&&t.chart.destroy()},z.prototype.drawChart=function(t,e,n,r){this.destroy(t);var i={type:e,data:n,options:r};t.options.code&&window.console.log("new Chart(ctx, "+JSON.stringify(i)+");"),t.element.innerHTML="<canvas></canvas>";var o=t.element.getElementsByTagName("CANVAS")[0];t.chart=new this.library(o,i)};var W={chart:{},xAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},yAxis:{title:{text:null},labels:{style:{fontSize:"12px"}}},title:{text:null},credits:{enabled:!1},legend:{borderWidth:0},tooltip:{style:{fontSize:"12px"}},plotOptions:{areaspline:{},area:{},series:{marker:{}}}},V=function(t,e,n){void 0!==e?(t.legend.enabled=!!e,e&&!0!==e&&("top"===e||"bottom"===e?t.legend.verticalAlign=e:(t.legend.layout="vertical",t.legend.verticalAlign="middle",t.legend.align=e))):n&&(t.legend.enabled=!1)},U=function(t,e){t.title.text=e},q=f(W,V,U,(function(t,e){t.yAxis.min=e}),(function(t,e){t.yAxis.max=e}),(function(t,e){var n=e?!0===e?"normal":e:null;t.plotOptions.series.stacking=n,t.plotOptions.area.stacking=n,t.plotOptions.areaspline.stacking=n}),(function(t,e){t.xAxis.title.text=e}),(function(t,e){t.yAxis.title.text=e})),G=function(t,e,n){var r={prefix:t.options.prefix,suffix:t.options.suffix,thousands:t.options.thousands,decimal:t.options.decimal,precision:t.options.precision,round:t.options.round,zeros:t.options.zeros};"pie"===n||e.yAxis.labels.formatter||(e.yAxis.labels.formatter=function(){return x("",this.value,r)}),e.tooltip.pointFormatter||(e.tooltip.pointFormatter=function(){return'<span style="color:'+this.color+'">\u25cf</span> '+x(this.series.name+": <b>",this.y,r)+"</b><br/>"})},$=function(t){this.name="highcharts",this.library=t};$.prototype.renderLineChart=function(t,e){var n={};"areaspline"===(e=e||"spline")&&(n={plotOptions:{areaspline:{stacking:"normal"},area:{stacking:"normal"},series:{marker:{enabled:!1}}}}),!1===t.options.curve&&("areaspline"===e?e="area":"spline"===e&&(e="line"));var r,i,o,a=q(t,t.options,n);a.xAxis.type="string"===t.xtype?"category":"number"===t.xtype?"linear":"datetime",a.chart.type||(a.chart.type=e),G(t,a,e);var s=t.data;for(i=0;i<s.length;i++){if(s[i].name=s[i].name||"Value",r=s[i].data,"datetime"===t.xtype)for(o=0;o<r.length;o++)r[o][0]=r[o][0].getTime();s[i].marker={symbol:"circle"},!1===t.options.points&&(s[i].marker.enabled=!1)}this.drawChart(t,s,a)},$.prototype.renderScatterChart=function(t){var e=q(t,t.options,{});e.chart.type="scatter",this.drawChart(t,t.data,e)},$.prototype.renderPieChart=function(t){var e=i(W,{});t.options.colors&&(e.colors=t.options.colors),t.options.donut&&(e.plotOptions={pie:{innerSize:"50%"}}),"legend"in t.options&&V(e,t.options.legend),t.options.title&&U(e,t.options.title);var n=i(e,t.options.library||{});G(t,n,"pie");var r=[{type:"pie",name:t.options.label||"Value",data:t.data}];this.drawChart(t,r,n)},$.prototype.renderColumnChart=function(t,e){e=e||"column";var n,r,i,o,a=t.data,s=q(t,t.options),u=[],l=[];for(s.chart.type=e,G(t,s,e),n=0;n<a.length;n++)for(i=a[n],r=0;r<i.data.length;r++)u[(o=i.data[r])[0]]||(u[o[0]]=new Array(a.length),l.push(o[0])),u[o[0]][n]=o[1];"number"===t.xtype&&l.sort(g),s.xAxis.categories=l;var c,d=[];for(n=0;n<a.length;n++){for(o=[],r=0;r<l.length;r++)o.push(u[l[r]][n]||0);c={name:a[n].name||"Value",data:o},a[n].stack&&(c.stack=a[n].stack),d.push(c)}this.drawChart(t,d,s)},$.prototype.renderBarChart=function(t){this.renderColumnChart(t,"bar")},$.prototype.renderAreaChart=function(t){this.renderLineChart(t,"areaspline")},$.prototype.destroy=function(t){t.chart&&t.chart.destroy()},$.prototype.drawChart=function(t,e,n){this.destroy(t),n.chart.renderTo=t.element.id,n.series=e,t.options.code&&window.console.log("new Highcharts.Chart("+JSON.stringify(n)+");"),t.chart=new this.library.Chart(n)};var K={},Z=[],X={chartArea:{},fontName:"'Lucida Grande', 'Lucida Sans Unicode', Verdana, Arial, Helvetica, sans-serif",pointSize:6,legend:{textStyle:{fontSize:12,color:"#444"},alignment:"center",position:"right"},curveType:"function",hAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},gridlines:{color:"transparent"},baselineColor:"#ccc",viewWindow:{}},vAxis:{textStyle:{color:"#666",fontSize:12},titleTextStyle:{},baselineColor:"#ccc",viewWindow:{}},tooltip:{textStyle:{color:"#666",fontSize:12}}},J=function(t,e,n){var r;void 0!==e?(r=e?!0===e?"right":e:"none",t.legend.position=r):n&&(t.legend.position="none")},Q=function(t,e){t.title=e,t.titleTextStyle={color:"#333",fontSize:"20px"}},tt=function(t,e){t.hAxis.viewWindow.min=e},et=function(t,e){t.hAxis.viewWindow.max=e},nt=function(t,e){t.isStacked=e||!1},rt=function(t,e){t.hAxis.title=e,t.hAxis.titleTextStyle.italic=!1},it=function(t,e){t.vAxis.title=e,t.vAxis.titleTextStyle.italic=!1},ot=f(X,J,Q,(function(t,e){t.vAxis.viewWindow.min=e}),(function(t,e){t.vAxis.viewWindow.max=e}),nt,rt,it),at=function(t){this.name="google",this.library=t};at.prototype.renderLineChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={};!1===t.options.curve&&(n.curveType="none"),!1===t.options.points&&(n.pointSize=0);var r=ot(t,t.options,n),i=e.createDataTable(t.data,t.xtype);e.drawChart(t,"LineChart",i,r)}))},at.prototype.renderPieChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n={chartArea:{top:"10%",height:"80%"},legend:{}};t.options.colors&&(n.colors=t.options.colors),t.options.donut&&(n.pieHole=.5),"legend"in t.options&&J(n,t.options.legend),t.options.title&&Q(n,t.options.title);var r=i(i(X,n),t.options.library||{}),o=new e.library.visualization.DataTable;o.addColumn("string",""),o.addColumn("number","Value"),o.addRows(t.data),e.drawChart(t,"PieChart",o,r)}))},at.prototype.renderColumnChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n=ot(t,t.options),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"ColumnChart",r,n)}))},at.prototype.renderBarChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n=f(X,J,Q,tt,et,nt,rt,it)(t,t.options,{hAxis:{gridlines:{color:"#ccc"}}}),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"BarChart",r,n)}))},at.prototype.renderAreaChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n=ot(t,t.options,{isStacked:!0,pointSize:0,areaOpacity:.5}),r=e.createDataTable(t.data,t.xtype);e.drawChart(t,"AreaChart",r,n)}))},at.prototype.renderGeoChart=function(t){var e=this;this.waitForLoaded(t,"geochart",(function(){var n={legend:"none",colorAxis:{colors:t.options.colors||["#f6c7b6","#ce502d"]}},r=i(i(X,n),t.options.library||{}),o=new e.library.visualization.DataTable;o.addColumn("string",""),o.addColumn("number",t.options.label||"Value"),o.addRows(t.data),e.drawChart(t,"GeoChart",o,r)}))},at.prototype.renderScatterChart=function(t){var e=this;this.waitForLoaded(t,(function(){var n,r,i,o,a=ot(t,t.options,{}),s=t.data,u=[];for(n=0;n<s.length;n++)for(s[n].name=s[n].name||"Value",o=s[n].data,r=0;r<o.length;r++){var l=new Array(s.length+1);l[0]=o[r][0],l[n+1]=o[r][1],u.push(l)}for((i=new e.library.visualization.DataTable).addColumn("number",""),n=0;n<s.length;n++)i.addColumn("number",s[n].name);i.addRows(u),e.drawChart(t,"ScatterChart",i,a)}))},at.prototype.renderTimeline=function(t){var e=this;this.waitForLoaded(t,"timeline",(function(){var n={legend:"none"};t.options.colors&&(n.colors=t.options.colors);var r=i(i(X,n),t.options.library||{}),o=new e.library.visualization.DataTable;o.addColumn({type:"string",id:"Name"}),o.addColumn({type:"date",id:"Start"}),o.addColumn({type:"date",id:"End"}),o.addRows(t.data),t.element.style.lineHeight="normal",e.drawChart(t,"Timeline",o,r)}))},at.prototype.destroy=function(t){t.chart&&t.chart.clearChart()},at.prototype.drawChart=function(t,e,n,r){var i;this.destroy(t),t.options.code&&window.console.log("var data = new google.visualization.DataTable("+n.toJSON()+");\nvar chart = new google.visualization."+e+"(element);\nchart.draw(data, "+JSON.stringify(r)+");"),t.chart=new this.library.visualization[e](t.element),i=function(){t.chart.draw(n,r)},window.attachEvent?window.attachEvent("onresize",i):window.addEventListener&&window.addEventListener("resize",i,!0),i()},at.prototype.waitForLoaded=function(t,e,n){var r=this;if(n||(n=e,e="corechart"),Z.push({pack:e,callback:n}),K[e])this.runCallbacks();else{K[e]=!0;var i={packages:[e],callback:function(){r.runCallbacks()}},o=t.__config();o.language&&(i.language=o.language),"geochart"===e&&o.mapsApiKey&&(i.mapsApiKey=o.mapsApiKey),this.library.charts.load("current",i)}},at.prototype.runCallbacks=function(){for(var t,e=0;e<Z.length;e++)t=Z[e],this.library.visualization&&("corechart"===t.pack&&this.library.visualization.LineChart||"timeline"===t.pack&&this.library.visualization.Timeline||"geochart"===t.pack&&this.library.visualization.GeoChart)&&(t.callback(),Z.splice(e,1),e--)},at.prototype.createDataTable=function(t,e){var n,r,i,o,a,s=[],u=[];for(n=0;n<t.length;n++)for(i=t[n],t[n].name=t[n].name||"Value",r=0;r<i.data.length;r++)o=i.data[r],s[a="datetime"===e?o[0].getTime():o[0]]||(s[a]=new Array(t.length),u.push(a)),s[a][n]=c(o[1]);var d,h=[],f=!0;for(r=0;r<u.length;r++)n=u[r],"datetime"===e?(d=new Date(c(n)),f=f&&_(d)):d="number"===e?c(n):n,h.push([d].concat(s[n]));if("datetime"===e)h.sort(p);else if("number"===e){for(h.sort(m),n=0;n<h.length;n++)h[n][0]=l(h[n][0]);e="string"}var g=new this.library.visualization.DataTable;for(e="datetime"===e&&f?"date":e,g.addColumn(e,""),n=0;n<t.length;n++)g.addColumn("number",t[n].name);return g.addRows(h),g};var st=[],ut=0,lt=4;function ct(){if(ut<lt){var t=st.shift();t&&(ut++,e=t[0],n=t[1],r=t[2],function(t,e,n){var r=window.jQuery||window.Zepto||window.$;if(r&&r.ajax)r.ajax({dataType:"json",url:t,success:e,error:n,complete:dt});else{var i=new XMLHttpRequest;i.open("GET",t,!0),i.setRequestHeader("Content-Type","application/json"),i.onload=function(){dt(),200===i.status?e(JSON.parse(i.responseText),i.statusText,i):n(i,"error",i.statusText)},i.send()}}(e,n,(function(t,e,n){var i="string"===typeof n?n:n.message;r(i)})),ct())}var e,n,r}function dt(){ut--,ct()}var ht={},ft=[];function pt(t,e){document.body.innerText?t.innerText=e:t.textContent=e}function mt(t,e,n){n||(e="Error Loading Chart: "+e),pt(t,e),t.style.color="#ff0000"}function gt(t){try{t.__render()}catch(e){throw mt(t.element,e.message),e}}function yt(t,e){if("string"===typeof e)n=e,r=function(e){t.rawData=e,gt(t)},i=function(e){mt(t.element,e)},st.push([n,r,i]),ct();else if("function"===typeof e)try{e((function(e){t.rawData=e,gt(t)}),(function(e){mt(t.element,e,!0)}))}catch(o){mt(t.element,o,!0)}else t.rawData=e,gt(t);var n,r,i}function vt(t,e,n){if(t.addEventListener)return t.addEventListener(e,n,!1),n;var r=function(){return n.call(t,window.event)};return t.attachEvent("on"+e,r),r}function _t(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)}function bt(t,e){if(t===e)return!1;for(;e&&e!==t;)e=e.parentNode;return e===t}function wt(t){var n=function(t){if(t){if("Highcharts"===t.product)return $;if(t.charts)return at;if(e(t))return z}throw new Error("Unknown adapter")}(t),r=new n(t);-1===ft.indexOf(r)&&ft.push(r)}function kt(t,e){if("PieChart"===e||"GeoChart"===e||"Timeline"===e)return 0===t.length;for(var n=0;n<t.length;n++)if(t[n].data.length>0)return!1;return!0}function St(t,n){n.options.messages&&n.options.messages.empty&&kt(n.data,t)?pt(n.element,n.options.messages.empty):(function(t,n){var r,i,o,a;for((o="render"+t,a=n.options.adapter,"Chart"in window&&wt(window.Chart),"Highcharts"in window&&wt(window.Highcharts),window.google&&window.google.charts&&wt(window.google),r=0);r<ft.length;r++)if(i=ft[r],(!a||a===i.name)&&e(i[o]))return n.adapter=i.name,n.__adapterObject=i,i[o](n);throw ft.length>0?new Error("No charting library found for "+t):new Error("No charting libraries found - be sure to include one before your charts")}(t,n),n.options.download&&!n.__downloadAttached&&"chartjs"===n.adapter&&function(t){var e=t.element,n=document.createElement("a"),r=t.options.download;!0===r?r={}:"string"===typeof r&&(r={filename:r}),n.download=r.filename||"chart.png",n.style.position="absolute",n.style.top="20px",n.style.right="20px",n.style.zIndex=1e3,n.style.lineHeight="20px",n.target="_blank";var i=document.createElement("img");i.alt="Download",i.style.border="none",i.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAABCFBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMywEsqxAAAAV3RSTlMAAQIDBggJCgsMDQ4PERQaHB0eISIjJCouLzE0OTo/QUJHSUpLTU5PUllhYmltcHh5foWLjI+SlaCio6atr7S1t7m6vsHHyM7R2tze5Obo7fHz9ff5+/1hlxK2AAAA30lEQVQYGUXBhVYCQQBA0TdYWAt2d3d3YWAHyur7/z9xgD16Lw0DW+XKx+1GgX+FRzM3HWQWrHl5N/oapW5RPe0PkBu+UYeICvozTWZVK23Ao04B79oJrOsJDOoxkZoQPWgX29pHpCZEk7rEvQYiNSFq1UMqvlCjJkRBS1R8hb00Vb/TajtBL7nTHE1X1vyMQF732dQhyF2o6SAwrzP06iUQzvwsArlnzcOdrgBhJyHa1QOgO9U1GsKuvjUTjavliZYQ8nNPapG6sap/3nrIdJ6bOWzmX/fy0XVpfzZP3S8OJT3g9EEiJwAAAABJRU5ErkJggg==",n.appendChild(i),e.style.position="relative",t.__downloadAttached=!0,t.__enterEvent=vt(e,"mouseover",(function(i){var o=i.relatedTarget;o&&(o===this||bt(this,o))||!t.options.download||(n.href=t.toImage(r),e.appendChild(n))})),t.__leaveEvent=vt(e,"mouseout",(function(t){var e=t.relatedTarget;e&&(e===this||bt(this,e))||n.parentNode&&n.parentNode.removeChild(n)}))}(n))}var Et=function(t,e){return t="number"===e?c(t):"datetime"===e?d(t):l(t)},Ct=function(t,e){var n,r,i=[];for(r=0;r<t.length;r++)"bubble"===e?i.push([c(t[r][0]),c(t[r][1]),c(t[r][2])]):(n=Et(t[r][0],e),i.push([n,c(t[r][1])]));return"datetime"===e?i.sort(p):"number"===e&&i.sort(m),i};function xt(t,e){var n,r,i;for(n=0;n<t.length;n++)for(i=h(t[n].data),r=0;r<i.length;r++)if(!e(i[r][0]))return!1;return!0}function Dt(e,n,r){var i,o=e.options,s=e.rawData;for(!t(s)||"object"!==a(s[0])||t(s[0])?(s=[{name:o.label,data:s}],e.hideLegend=!0):e.hideLegend=!1,s=function(t){var e,n,r=[];for(e=0;e<t.length;e++){var i={};for(n in t[e])t[e].hasOwnProperty(n)&&(i[n]=t[e][n]);r.push(i)}return r}(s),i=0;i<s.length;i++)s[i].data=h(s[i].data);for(e.xtype=n||(o.discrete?"string":function(t,e,n){return kt(t)?!n.xmin&&!n.xmax||n.xmin&&!S(n.xmin)||n.xmax&&!S(n.xmax)?"number":"datetime":xt(t,E)?"number":!e&&xt(t,S)?"datetime":"string"}(s,r,o)),i=0;i<s.length;i++)s[i].data=Ct(s[i].data,e.xtype);return s}function At(t){var e,n=h(t.rawData);for(e=0;e<n.length;e++)n[e]=[l(n[e][0]),c(n[e][1])];return n}var Tt=function(t,e,n){var r;if("string"===typeof t&&(r=t,!(t=document.getElementById(t))))throw new Error("No element with id "+r);this.element=t,this.options=i(Bt.options,n||{}),this.dataSource=e,Bt.charts[t.id]=this,yt(this,e),this.options.refresh&&this.startRefresh()};Tt.prototype.getElement=function(){return this.element},Tt.prototype.getDataSource=function(){return this.dataSource},Tt.prototype.getData=function(){return this.data},Tt.prototype.getOptions=function(){return this.options},Tt.prototype.getChartObject=function(){return this.chart},Tt.prototype.getAdapter=function(){return this.adapter},Tt.prototype.updateData=function(t,e){this.dataSource=t,e&&this.__updateOptions(e),yt(this,t)},Tt.prototype.setOptions=function(t){this.__updateOptions(t),this.redraw()},Tt.prototype.redraw=function(){yt(this,this.rawData)},Tt.prototype.refreshData=function(){if("string"===typeof this.dataSource){var t=-1===this.dataSource.indexOf("?")?"?":"&";yt(this,this.dataSource+t+"_="+(new Date).getTime())}else"function"===typeof this.dataSource&&yt(this,this.dataSource)},Tt.prototype.startRefresh=function(){var t=this,e=this.options.refresh;if(e&&"string"!==typeof this.dataSource&&"function"!==typeof this.dataSource)throw new Error("Data source must be a URL or callback for refresh");if(!this.intervalId){if(!e)throw new Error("No refresh interval");this.intervalId=setInterval((function(){t.refreshData()}),1e3*e)}},Tt.prototype.stopRefresh=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},Tt.prototype.toImage=function(t){if("chartjs"===this.adapter){if(t&&t.background&&"transparent"!==t.background){var e=this.chart.chart.canvas,n=this.chart.chart.ctx,r=document.createElement("canvas"),i=r.getContext("2d");return r.width=n.canvas.width,r.height=n.canvas.height,i.fillStyle=t.background,i.fillRect(0,0,r.width,r.height),i.drawImage(e,0,0),r.toDataURL("image/png")}return this.chart.toBase64Image()}return null},Tt.prototype.destroy=function(){this.__adapterObject&&this.__adapterObject.destroy(this),this.__enterEvent&&_t(this.element,"mouseover",this.__enterEvent),this.__leaveEvent&&_t(this.element,"mouseout",this.__leaveEvent)},Tt.prototype.__updateOptions=function(t){var e=t.refresh&&t.refresh!==this.options.refresh;this.options=i(Bt.options,t),e&&(this.stopRefresh(),this.startRefresh())},Tt.prototype.__render=function(){this.data=this.__processData(),St(this.__chartName(),this)},Tt.prototype.__config=function(){return ht};var Mt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return Dt(this)},e.prototype.__chartName=function(){return"LineChart"},e}(Tt),Lt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return At(this)},e.prototype.__chartName=function(){return"PieChart"},e}(Tt),Ot=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return Dt(this,null,!0)},e.prototype.__chartName=function(){return"ColumnChart"},e}(Tt),It=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return Dt(this,null,!0)},e.prototype.__chartName=function(){return"BarChart"},e}(Tt),Pt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return Dt(this)},e.prototype.__chartName=function(){return"AreaChart"},e}(Tt),Rt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return At(this)},e.prototype.__chartName=function(){return"GeoChart"},e}(Tt),Nt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return Dt(this,"number")},e.prototype.__chartName=function(){return"ScatterChart"},e}(Tt),Ft=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){return Dt(this,"bubble")},e.prototype.__chartName=function(){return"BubbleChart"},e}(Tt),jt=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__processData=function(){var t,e=this.rawData;for(t=0;t<e.length;t++)e[t][1]=d(e[t][1]),e[t][2]=d(e[t][2]);return e},e.prototype.__chartName=function(){return"Timeline"},e}(Tt),Bt={LineChart:Mt,PieChart:Lt,ColumnChart:Ot,BarChart:It,AreaChart:Pt,GeoChart:Rt,ScatterChart:Nt,BubbleChart:Ft,Timeline:jt,charts:{},configure:function(t){for(var e in t)t.hasOwnProperty(e)&&(ht[e]=t[e])},setDefaultOptions:function(t){Bt.options=t},eachChart:function(t){for(var e in Bt.charts)Bt.charts.hasOwnProperty(e)&&t(Bt.charts[e])},config:ht,options:{},adapters:ft,addAdapter:wt,use:function(t){return wt(t),Bt}};return"undefined"===typeof window||window.Chartkick||(window.Chartkick=Bt),Bt.default=Bt,Bt},"object"===a(e)&&"undefined"!==typeof t?t.exports=o():void 0===(i="function"===typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i)},function(t,e,n){var r,i;function o(t){return o="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(t)}i=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);var i=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var o in i)if(i.hasOwnProperty(o)){if(!("channels"in i[o]))throw new Error("missing channels property: "+o);if(!("labels"in i[o]))throw new Error("missing channel labels property: "+o);if(i[o].labels.length!==i[o].channels)throw new Error("channel and label counts mismatch: "+o);var a=i[o].channels,s=i[o].labels;delete i[o].channels,delete i[o].labels,Object.defineProperty(i[o],"channels",{value:a}),Object.defineProperty(i[o],"labels",{value:s})}i.rgb.hsl=function(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?e=0:r===s?e=(i-o)/u:i===s?e=2+(o-r)/u:o===s&&(e=4+(r-i)/u),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},i.rgb.hsv=function(t){var e,n,r,i,o,a=t[0]/255,s=t[1]/255,u=t[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),d=function(t){return(l-t)/6/c+.5};return 0===c?i=o=0:(o=c/l,e=d(a),n=d(s),r=d(u),a===l?i=r-n:s===l?i=1/3+e-r:u===l&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},i.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[i.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(n,r))*100,100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},i.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-i)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-i-e)/(1-e)||0),100*e]},i.rgb.keyword=function(t){var r=n[t];if(r)return r;var i,o,a,s=1/0;for(var u in e)if(e.hasOwnProperty(u)){var l=e[u],c=(o=t,a=l,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c<s&&(s=c,i=u)}return i},i.keyword.rgb=function(t){return e[t]},i.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},i.rgb.lab=function(t){var e=i.rgb.xyz(t),n=e[0],r=e[1],o=e[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},i.hsl.rgb=function(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0===s)return[o=255*u,o,o];e=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var l=0;l<3;l++)(r=a+1/3*-(l-1))<0&&r++,r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[l]=255*o;return i},i.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[e,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},i.hsv.hsl=function(t){var e,n,r,i=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(e=(2-o)*s)<=1?e:2-e)||0),100*(r/=2)]},i.hwb.rgb=function(t){var e,n,r,i,o,a,s,u=t[0]/360,l=t[1]/100,c=t[2]/100,d=l+c;switch(d>1&&(l/=d,c/=d),r=6*u-(e=Math.floor(6*u)),0!==(1&e)&&(r=1-r),i=l+r*((n=1-c)-l),e){default:case 6:case 0:o=n,a=i,s=l;break;case 1:o=i,a=n,s=l;break;case 2:o=l,a=n,s=i;break;case 3:o=l,a=i,s=n;break;case 4:o=i,a=l,s=n;break;case 5:o=n,a=l,s=i}return[255*o,255*a,255*s]},i.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},i.xyz.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,e=(e=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},i.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},i.lab.xyz=function(t){var e,n,r,i=t[0];e=t[1]/500+(n=(i+16)/116),r=n-t[2]/200;var o=Math.pow(n,3),a=Math.pow(e,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},i.lab.lch=function(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]},i.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},i.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],o=1 in arguments?arguments[1]:i.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===o&&(a+=60),a},i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])},i.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},i.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},i.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return e=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},i.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,i=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},i.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},i.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=e%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},i.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},i.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},i.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},i.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},i.gray.hsl=i.gray.hsv=function(t){return[0,0,t[0]]},i.gray.hwb=function(t){return[0,100,t[0]]},i.gray.cmyk=function(t){return[0,0,0,t[0]]},i.gray.lab=function(t){return[t[0],0,0]},i.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}));function r(t){var e=function(){for(var t={},e=Object.keys(n),r=e.length,i=0;i<r;i++)t[e[i]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var i=r.pop(),o=Object.keys(n[i]),a=o.length,s=0;s<a;s++){var u=o[s],l=e[u];-1===l.distance&&(l.distance=e[i].distance+1,l.parent=i,r.unshift(u))}return e}function i(t,e){return function(n){return e(t(n))}}function a(t,e){for(var r=[e[t].parent,t],o=n[e[t].parent][t],a=e[t].parent;e[a].parent;)r.unshift(e[a].parent),o=i(n[e[a].parent][a],o),a=e[a].parent;return o.conversion=r,o}n.rgb,n.hsl,n.hsv,n.hwb,n.cmyk,n.xyz,n.lab,n.lch,n.hex,n.keyword,n.ansi16,n.ansi256,n.hcg,n.apple,n.gray;var s={};Object.keys(n).forEach((function(t){s[t]={},Object.defineProperty(s[t],"channels",{value:n[t].channels}),Object.defineProperty(s[t],"labels",{value:n[t].labels});var e=function(t){for(var e=r(t),n={},i=Object.keys(e),o=i.length,s=0;s<o;s++){var u=i[s];null!==e[u].parent&&(n[u]=a(u,e))}return n}(t);Object.keys(e).forEach((function(n){var r=e[n];s[t][n]=function(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===o(n))for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(r),s[t][n].raw=function(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)}))}));var u=s,l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},c={getRgba:d,getHsla:h,getRgb:function(t){var e=d(t);return e&&e.slice(0,3)},getHsl:function(t){var e=h(t);return e&&e.slice(0,3)},getHwb:f,getAlpha:function(t){var e=d(t);return e||(e=h(t))||(e=f(t))?e[3]:void 0},hexString:function(t,e){return e=void 0!==e&&3===t.length?e:t[3],"#"+v(t[0])+v(t[1])+v(t[2])+(e>=0&&e<1?v(Math.round(255*e)):"")},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?p(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:p,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return m(t,e);var n=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"},percentaString:m,hslString:function(t,e){return e<1||t[3]&&t[3]<1?g(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:g,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return _[t.slice(0,3)]}};function d(t){if(t){var e=[0,0,0],n=1,r=t.match(/^#([a-fA-F0-9]{3,4})$/i),i="";if(r){i=(r=r[1])[3];for(var o=0;o<e.length;o++)e[o]=parseInt(r[o]+r[o],16);i&&(n=Math.round(parseInt(i+i,16)/255*100)/100)}else if(r=t.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(i=r[2],r=r[1],o=0;o<e.length;o++)e[o]=parseInt(r.slice(2*o,2*o+2),16);i&&(n=Math.round(parseInt(i,16)/255*100)/100)}else if(r=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=parseInt(r[o+1]);n=parseFloat(r[4])}else if(r=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=Math.round(2.55*parseFloat(r[o+1]));n=parseFloat(r[4])}else if(r=t.match(/(\w+)/)){if("transparent"==r[1])return[0,0,0,0];if(!(e=l[r[1]]))return}for(o=0;o<e.length;o++)e[o]=y(e[o],0,255);return n=n||0==n?y(n,0,1):1,e[3]=n,e}}function h(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[y(parseInt(e[1]),0,360),y(parseFloat(e[2]),0,100),y(parseFloat(e[3]),0,100),y(isNaN(n)?1:n,0,1)]}}}function f(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[y(parseInt(e[1]),0,360),y(parseFloat(e[2]),0,100),y(parseFloat(e[3]),0,100),y(isNaN(n)?1:n,0,1)]}}}function p(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function m(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function g(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function y(t,e,n){return Math.min(Math.max(e,t),n)}function v(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var _={};for(var b in l)_[l[b]]=b;var w=function t(e){return e instanceof t?e:this instanceof t?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"===typeof e?(n=c.getRgba(e))?this.setValues("rgb",n):(n=c.getHsla(e))?this.setValues("hsl",n):(n=c.getHwb(e))&&this.setValues("hwb",n):"object"===o(e)&&(void 0!==(n=e).r||void 0!==n.red?this.setValues("rgb",n):void 0!==n.l||void 0!==n.lightness?this.setValues("hsl",n):void 0!==n.v||void 0!==n.value?this.setValues("hsv",n):void 0!==n.w||void 0!==n.whiteness?this.setValues("hwb",n):void 0===n.c&&void 0===n.cyan||this.setValues("cmyk",n)))):new t(e);var n};w.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return c.hexString(this.values.rgb)},rgbString:function(){return c.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return c.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return c.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return c.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return c.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return c.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return c.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=this,r=t,i=void 0===e?.5:e,o=2*i-1,a=n.alpha()-r.alpha(),s=((o*a===-1?o:(o+a)/(1+o*a))+1)/2,u=1-s;return this.rgb(s*n.red()+u*r.red(),s*n.green()+u*r.green(),s*n.blue()+u*r.blue()).alpha(n.alpha()*i+r.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new w,r=this.values,i=n.values;for(var o in r)r.hasOwnProperty(o)&&(t=r[o],"[object Array]"===(e={}.toString.call(t))?i[o]=t.slice(0):"[object Number]"===e?i[o]=t:console.error("unexpected color value:",t));return n}},w.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},w.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},w.prototype.getValues=function(t){for(var e=this.values,n={},r=0;r<t.length;r++)n[t.charAt(r)]=e[t][r];return 1!==e.alpha&&(n.a=e.alpha),n},w.prototype.setValues=function(t,e){var n,r,i=this.values,o=this.spaces,a=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)i[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)i[t][n]=e[t.charAt(n)];s=e.a}else if(void 0!==e[o[t][0]]){var l=o[t];for(n=0;n<t.length;n++)i[t][n]=e[l[n]];s=e.alpha}if(i.alpha=Math.max(0,Math.min(1,void 0===s?i.alpha:s)),"alpha"===t)return!1;for(n=0;n<t.length;n++)r=Math.max(0,Math.min(a[t][n],i[t][n])),i[t][n]=Math.round(r);for(var c in o)c!==t&&(i[c]=u[t][c](i[t]));return!0},w.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"===typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},w.prototype.setChannel=function(t,e,n){var r=this.values[t];return void 0===n?r[e]:(n===r[e]||(r[e]=n,this.setValues(t,r)),this)},"undefined"!==typeof window&&(window.Color=w);var k=w;function S(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}var E,C={noop:function(){},uid:(E=0,function(){return E++}),isNullOrUndef:function(t){return null===t||"undefined"===typeof t},isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return("number"===typeof t||t instanceof Number)&&isFinite(t)})),valueOrDefault:function(t,e){return"undefined"===typeof t?e:t},valueAtIndexOrDefault:function(t,e,n){return C.valueOrDefault(C.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)},each:function(t,e,n,r){var i,o,a;if(C.isArray(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i);else if(C.isObject(t))for(o=(a=Object.keys(t)).length,i=0;i<o;i++)e.call(n,t[a[i]],a[i])},arrayEquals:function(t,e){var n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i instanceof Array&&o instanceof Array){if(!C.arrayEquals(i,o))return!1}else if(i!==o)return!1;return!0},clone:function(t){if(C.isArray(t))return t.map(C.clone);if(C.isObject(t)){for(var e=Object.create(t),n=Object.keys(t),r=n.length,i=0;i<r;++i)e[n[i]]=C.clone(t[n[i]]);return e}return t},_merger:function(t,e,n,r){if(S(t)){var i=e[t],o=n[t];C.isObject(i)&&C.isObject(o)?C.merge(i,o,r):e[t]=C.clone(o)}},_mergerIf:function(t,e,n){if(S(t)){var r=e[t],i=n[t];C.isObject(r)&&C.isObject(i)?C.mergeIf(r,i):e.hasOwnProperty(t)||(e[t]=C.clone(i))}},merge:function(t,e,n){var r,i,o,a,s,u=C.isArray(e)?e:[e],l=u.length;if(!C.isObject(t))return t;for(r=(n=n||{}).merger||C._merger,i=0;i<l;++i)if(e=u[i],C.isObject(e))for(s=0,a=(o=Object.keys(e)).length;s<a;++s)r(o[s],t,e,n);return t},mergeIf:function(t,e){return C.merge(t,e,{merger:C._mergerIf})},extend:Object.assign||function(t){return C.merge(t,[].slice.call(arguments,1),{merger:function(t,e,n){e[t]=n[t]}})},inherits:function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=e.prototype,n.prototype=new r,n.extend=C.inherits,t&&C.extend(n.prototype,t),n.__super__=e.prototype,n},_deprecated:function(t,e,n,r){void 0!==e&&console.warn(t+': "'+n+'" is deprecated. Please use "'+r+'" instead')}},x=C;C.callCallback=C.callback,C.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},C.getValueOrDefault=C.valueOrDefault,C.getValueAtIndexOrDefault=C.valueAtIndexOrDefault;var D={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===t?1:(n||(n=.3),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===t?1:(n||(n=.3),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:2===(t/=.5)?1:(n||(n=.45),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),t<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-D.easeOutBounce(1-t)},easeOutBounce:function(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},easeInOutBounce:function(t){return t<.5?.5*D.easeInBounce(2*t):.5*D.easeOutBounce(2*t-1)+.5}},A={effects:D};x.easingEffects=D;var T=Math.PI,M=T/180,L=2*T,O=T/2,I=T/4,P=2*T/3,R={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,r,i,o){if(o){var a=Math.min(o,i/2,r/2),s=e+a,u=n+a,l=e+r-a,c=n+i-a;t.moveTo(e,u),s<l&&u<c?(t.arc(s,u,a,-T,-O),t.arc(l,u,a,-O,0),t.arc(l,c,a,0,O),t.arc(s,c,a,O,T)):s<l?(t.moveTo(s,n),t.arc(l,u,a,-O,O),t.arc(s,u,a,O,T+O)):u<c?(t.arc(s,u,a,-T,0),t.arc(s,c,a,0,T)):t.arc(s,u,a,-T,T),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,r,i)},drawPoint:function(t,e,n,r,i,a){var s,u,l,c,d,h=(a||0)*M;if(e&&"object"===o(e)&&("[object HTMLImageElement]"===(s=e.toString())||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(r,i),t.rotate(h),t.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),void t.restore();if(!(isNaN(n)||n<=0)){switch(t.beginPath(),e){default:t.arc(r,i,n,0,L),t.closePath();break;case"triangle":t.moveTo(r+Math.sin(h)*n,i-Math.cos(h)*n),h+=P,t.lineTo(r+Math.sin(h)*n,i-Math.cos(h)*n),h+=P,t.lineTo(r+Math.sin(h)*n,i-Math.cos(h)*n),t.closePath();break;case"rectRounded":c=n-(d=.516*n),u=Math.cos(h+I)*c,l=Math.sin(h+I)*c,t.arc(r-u,i-l,d,h-T,h-O),t.arc(r+l,i-u,d,h-O,h),t.arc(r+u,i+l,d,h,h+O),t.arc(r-l,i+u,d,h+O,h+T),t.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*n,t.rect(r-c,i-c,2*c,2*c);break}h+=I;case"rectRot":u=Math.cos(h)*n,l=Math.sin(h)*n,t.moveTo(r-u,i-l),t.lineTo(r+l,i-u),t.lineTo(r+u,i+l),t.lineTo(r-l,i+u),t.closePath();break;case"crossRot":h+=I;case"cross":u=Math.cos(h)*n,l=Math.sin(h)*n,t.moveTo(r-u,i-l),t.lineTo(r+u,i+l),t.moveTo(r+l,i-u),t.lineTo(r-l,i+u);break;case"star":u=Math.cos(h)*n,l=Math.sin(h)*n,t.moveTo(r-u,i-l),t.lineTo(r+u,i+l),t.moveTo(r+l,i-u),t.lineTo(r-l,i+u),h+=I,u=Math.cos(h)*n,l=Math.sin(h)*n,t.moveTo(r-u,i-l),t.lineTo(r+u,i+l),t.moveTo(r+l,i-u),t.lineTo(r-l,i+u);break;case"line":u=Math.cos(h)*n,l=Math.sin(h)*n,t.moveTo(r-u,i-l),t.lineTo(r+u,i+l);break;case"dash":t.moveTo(r,i),t.lineTo(r+Math.cos(h)*n,i+Math.sin(h)*n)}t.fill(),t.stroke()}},_isPointInArea:function(t,e){var n=1e-6;return t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,r){var i=n.steppedLine;if(i){if("middle"===i){var o=(e.x+n.x)/2;t.lineTo(o,r?n.y:e.y),t.lineTo(o,r?e.y:n.y)}else"after"===i&&!r||"after"!==i&&r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}else n.tension?t.bezierCurveTo(r?e.controlPointPreviousX:e.controlPointNextX,r?e.controlPointPreviousY:e.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},N=R;x.clear=R.clear,x.drawRoundedRectangle=function(t){t.beginPath(),R.roundedRect.apply(R,arguments)};var F={_set:function(t,e){return x.merge(this[t]||(this[t]={}),e)}};F._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var j=F,B=x.valueOrDefault,Y={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,r,i;return x.isObject(t)?(e=+t.top||0,n=+t.right||0,r=+t.bottom||0,i=+t.left||0):e=n=r=i=+t||0,{top:e,right:n,bottom:r,left:i,height:e+r,width:i+n}},_parseFont:function(t){var e=j.global,n=B(t.fontSize,e.defaultFontSize),r={family:B(t.fontFamily,e.defaultFontFamily),lineHeight:x.options.toLineHeight(B(t.lineHeight,e.defaultLineHeight),n),size:n,style:B(t.fontStyle,e.defaultFontStyle),weight:null,string:""};return r.string=function(t){return!t||x.isNullOrUndef(t.size)||x.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r},resolve:function(t,e,n,r){var i,o,a,s=!0;for(i=0,o=t.length;i<o;++i)if(void 0!==(a=t[i])&&(void 0!==e&&"function"===typeof a&&(a=a(e),s=!1),void 0!==n&&x.isArray(a)&&(a=a[n],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}},H={_factorize:function(t){var e,n=[],r=Math.sqrt(t);for(e=1;e<r;e++)t%e===0&&(n.push(e),n.push(t/e));return r===(0|r)&&n.push(r),n.sort((function(t,e){return t-e})).pop(),n},log10:Math.log10||function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e}},z=H;x.log10=H.log10;var W={getRtlAdapter:function(t,e,n){return t?function(t,e){return{x:function(n){return t+t+e-n},setWidth:function(t){e=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}}(e,n):{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}},overrideTextDirection:function(t,e){var n,r;"ltr"!==e&&"rtl"!==e||(r=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)},restoreTextDirection:function(t){var e=t.prevTextDirection;void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}},V=x,U=A,q=N,G=Y,$=z,K=W;V.easing=U,V.canvas=q,V.options=G,V.math=$,V.rtl=K;var Z=function(t){V.extend(this,t),this.initialize.apply(this,arguments)};V.extend(Z.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=V.extend({},t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,r=e._start,i=e._view;return n&&1!==t?(i||(i=e._view={}),r||(r=e._start={}),function(t,e,n,r){var i,a,s,u,l,c,d,h,f,p=Object.keys(n);for(i=0,a=p.length;i<a;++i)if(c=n[s=p[i]],e.hasOwnProperty(s)||(e[s]=c),(u=e[s])!==c&&"_"!==s[0]){if(t.hasOwnProperty(s)||(t[s]=u),l=t[s],(d=o(c))===o(l))if("string"===d){if((h=k(l)).valid&&(f=k(c)).valid){e[s]=f.mix(h,r).rgbString();continue}}else if(V.isFinite(l)&&V.isFinite(c)){e[s]=l+(c-l)*r;continue}e[s]=c}}(r,i,n,t),e):(e._view=V.extend({},n),e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return V.isNumber(this._model.x)&&V.isNumber(this._model.y)}}),Z.extend=V.inherits;var X=Z,J=X.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),Q=J;Object.defineProperty(J.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(J.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),j._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:V.noop,onComplete:V.noop}});var tt={animations:[],request:null,addAnimation:function(t,e,n,r){var i,o,a=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=n,r||(t.animating=!0),i=0,o=a.length;i<o;++i)if(a[i].chart===t)return void(a[i]=e);a.push(e),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=V.findIndex(this.animations,(function(e){return e.chart===t}));-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=V.requestAnimFrame.call(window,(function(){t.request=null,t.startDigest()})))},startDigest:function(){var t=this;t.advance(),t.animations.length>0&&t.requestAnimationFrame()},advance:function(){for(var t,e,n,r,i=this.animations,o=0;o<i.length;)e=(t=i[o]).chart,n=t.numSteps,r=Math.floor((Date.now()-t.startTime)/t.duration*n)+1,t.currentStep=Math.min(r,n),V.callback(t.render,[e,t],e),V.callback(t.onAnimationProgress,[t],e),t.currentStep>=n?(V.callback(t.onAnimationComplete,[t],e),e.animating=!1,i.splice(o,1)):++o}},et=V.options.resolve,nt=["push","pop","shift","splice","unshift"];function rt(t,e){var n=t._chartjs;if(n){var r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),r.length>0||(nt.forEach((function(e){delete t[e]})),delete t._chartjs)}}var it=function(t,e){this.initialize(t,e)};V.extend(it.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.chart,r=n.scales,i=t.getDataset(),o=n.options.scales;null!==e.xAxisID&&e.xAxisID in r&&!i.xAxisID||(e.xAxisID=i.xAxisID||o.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in r&&!i.yAxisID||(e.yAxisID=i.yAxisID||o.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&rt(this._data,this)},createMetaDataset:function(){var t=this,e=t.datasetElementType;return e&&new e({_chart:t.chart,_datasetIndex:t.index})},createMetaData:function(t){var e=this,n=e.dataElementType;return n&&new n({_chart:e.chart,_datasetIndex:e.index,_index:t})},addElements:function(){var t,e,n=this,r=n.getMeta(),i=n.getDataset().data||[],o=r.data;for(t=0,e=i.length;t<e;++t)o[t]=o[t]||n.createMetaData(t);r.dataset=r.dataset||n.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t,e,n=this,r=n.getDataset(),i=r.data||(r.data=[]);n._data!==i&&(n._data&&rt(n._data,n),i&&Object.isExtensible(i)&&(e=n,(t=i)._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),nt.forEach((function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),i=r.apply(this,e);return V.each(t._chartjs.listeners,(function(t){"function"===typeof t[n]&&t[n].apply(t,e)})),i}})})))),n._data=i),n.resyncElements()},_configure:function(){var t=this;t._config=V.merge(Object.create(null),[t.chart.options.datasets[t._type],t.getDataset()],{merger:function(t,e,n){"_meta"!==t&&"data"!==t&&V._merger(t,e,n)}})},_update:function(t){var e=this;e._configure(),e._cachedDataOpts=null,e.update(t)},update:V.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],r=n.length,i=0;i<r;++i)n[i].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,r=0;for(t.dataset&&t.dataset.draw();r<n;++r)e[r].draw()},getStyle:function(t){var e,n=this,r=n.getMeta(),i=r.dataset;return n._configure(),i&&void 0===t?e=n._resolveDatasetElementOptions(i||{}):(t=t||0,e=n._resolveDataElementOptions(r.data[t]||{},t)),!1!==e.fill&&null!==e.fill||(e.backgroundColor=e.borderColor),e},_resolveDatasetElementOptions:function(t,e){var n,r,i,o,a=this,s=a.chart,u=a._config,l=t.custom||{},c=s.options.elements[a.datasetElementType.prototype._type]||{},d=a._datasetElementOptions,h={},f={chart:s,dataset:a.getDataset(),datasetIndex:a.index,hover:e};for(n=0,r=d.length;n<r;++n)i=d[n],o=e?"hover"+i.charAt(0).toUpperCase()+i.slice(1):i,h[i]=et([l[o],u[o],c[o]],f);return h},_resolveDataElementOptions:function(t,e){var n=this,r=t&&t.custom,i=n._cachedDataOpts;if(i&&!r)return i;var o,a,s,u,l=n.chart,c=n._config,d=l.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},p={chart:l,dataIndex:e,dataset:n.getDataset(),datasetIndex:n.index},m={cacheable:!r};if(r=r||{},V.isArray(h))for(a=0,s=h.length;a<s;++a)f[u=h[a]]=et([r[u],c[u],d[u]],p,e,m);else for(a=0,s=(o=Object.keys(h)).length;a<s;++a)f[u=o[a]]=et([r[u],c[h[u]],c[u],d[u]],p,e,m);return m.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(t){V.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},i=t._model,o=V.getHoverColor;t.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth},i.backgroundColor=et([r.hoverBackgroundColor,e.hoverBackgroundColor,o(i.backgroundColor)],void 0,n),i.borderColor=et([r.hoverBorderColor,e.hoverBorderColor,o(i.borderColor)],void 0,n),i.borderWidth=et([r.hoverBorderWidth,e.hoverBorderWidth,i.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var t=this.getMeta().dataset;t&&this.removeHoverStyle(t)},_setDatasetHoverStyle:function(){var t,e,n,r,i,o,a=this.getMeta().dataset,s={};if(a){for(o=a._model,i=this._resolveDatasetElementOptions(a,!0),t=0,e=(r=Object.keys(i)).length;t<e;++t)s[n=r[t]]=o[n],o[n]=i[n];a.$previousStyle=s}},resyncElements:function(){var t=this,e=t.getMeta(),n=t.getDataset().data,r=e.data.length,i=n.length;i<r?e.data.splice(i,r-i):i>r&&t.insertElements(r,i-r)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){var t=arguments.length;this.insertElements(this.getDataset().data.length-t,t)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),it.extend=V.inherits;var ot=it,at=2*Math.PI;function st(t,e){var n=e.startAngle,r=e.endAngle,i=e.pixelMargin,o=i/e.outerRadius,a=e.x,s=e.y;t.beginPath(),t.arc(a,s,e.outerRadius,n-o,r+o),e.innerRadius>i?(o=i/e.innerRadius,t.arc(a,s,e.innerRadius-i,r+o,n-o,!0)):t.arc(a,s,i,r+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip()}function ut(t,e,n){var r="inner"===e.borderAlign;r?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),n.fullCircles&&function(t,e,n,r){var i,o=n.endAngle;for(r&&(n.endAngle=n.startAngle+at,st(t,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=at,n.fullCircles--)),t.beginPath(),t.arc(n.x,n.y,n.innerRadius,n.startAngle+at,n.startAngle,!0),i=0;i<n.fullCircles;++i)t.stroke();for(t.beginPath(),t.arc(n.x,n.y,e.outerRadius,n.startAngle,n.startAngle+at),i=0;i<n.fullCircles;++i)t.stroke()}(t,e,n,r),r&&st(t,n),t.beginPath(),t.arc(n.x,n.y,e.outerRadius,n.startAngle,n.endAngle),t.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),t.closePath(),t.stroke()}j._set("global",{elements:{arc:{backgroundColor:j.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var lt=X.extend({_type:"arc",inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var r=V.getAngleFromPoint(n,{x:t,y:e}),i=r.angle,o=r.distance,a=n.startAngle,s=n.endAngle;s<a;)s+=at;for(;i>s;)i-=at;for(;i<a;)i+=at;var u=i>=a&&i<=s,l=o>=n.innerRadius&&o<=n.outerRadius;return u&&l}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,i={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/at)};if(e.save(),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+at,e.beginPath(),e.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),e.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),e.closePath(),t=0;t<i.fullCircles;++t)e.fill();i.endAngle=i.startAngle+n.circumference%at}e.beginPath(),e.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),e.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),e.closePath(),e.fill(),n.borderWidth&&ut(e,n,i),e.restore()}}),ct=V.valueOrDefault,dt=j.global.defaultColor;j._set("global",{elements:{line:{tension:.4,backgroundColor:dt,borderWidth:3,borderColor:dt,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var ht=X.extend({_type:"line",draw:function(){var t,e,n,r=this,i=r._view,o=r._chart.ctx,a=i.spanGaps,s=r._children.slice(),u=j.global,l=u.elements.line,c=-1,d=r._loop;if(s.length){if(r._loop){for(t=0;t<s.length;++t)if(e=V.previousItem(s,t),!s[t]._view.skip&&e._view.skip){s=s.slice(t).concat(s.slice(0,t)),d=a;break}d&&s.push(s[0])}for(o.save(),o.lineCap=i.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(i.borderDash||l.borderDash),o.lineDashOffset=ct(i.borderDashOffset,l.borderDashOffset),o.lineJoin=i.borderJoinStyle||l.borderJoinStyle,o.lineWidth=ct(i.borderWidth,l.borderWidth),o.strokeStyle=i.borderColor||u.defaultColor,o.beginPath(),(n=s[0]._view).skip||(o.moveTo(n.x,n.y),c=0),t=1;t<s.length;++t)n=s[t]._view,e=-1===c?V.previousItem(s,t):s[c],n.skip||(c!==t-1&&!a||-1===c?o.moveTo(n.x,n.y):V.canvas.lineTo(o,e._view,n),c=t);d&&o.closePath(),o.stroke(),o.restore()}}}),ft=V.valueOrDefault,pt=j.global.defaultColor;function mt(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}j._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:pt,borderColor:pt,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var gt=X.extend({_type:"point",inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:mt,inXRange:mt,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._chart.ctx,r=e.pointStyle,i=e.rotation,o=e.radius,a=e.x,s=e.y,u=j.global,l=u.defaultColor;e.skip||(void 0===t||V.canvas._isPointInArea(e,t))&&(n.strokeStyle=e.borderColor||l,n.lineWidth=ft(e.borderWidth,u.elements.point.borderWidth),n.fillStyle=e.backgroundColor||l,V.canvas.drawPoint(n,r,o,a,s,i))}}),yt=j.global.defaultColor;function vt(t){return t&&void 0!==t.width}function _t(t){var e,n,r,i,o;return vt(t)?(o=t.width/2,e=t.x-o,n=t.x+o,r=Math.min(t.y,t.base),i=Math.max(t.y,t.base)):(o=t.height/2,e=Math.min(t.x,t.base),n=Math.max(t.x,t.base),r=t.y-o,i=t.y+o),{left:e,top:r,right:n,bottom:i}}function bt(t,e,n){return t===e?n:t===n?e:t}function wt(t,e,n){var r,i,o,a,s=t.borderWidth,u=function(t){var e=t.borderSkipped,n={};return e?(t.horizontal?t.base>t.x&&(e=bt(e,"left","right")):t.base<t.y&&(e=bt(e,"bottom","top")),n[e]=!0,n):n}(t);return V.isObject(s)?(r=+s.top||0,i=+s.right||0,o=+s.bottom||0,a=+s.left||0):r=i=o=a=+s||0,{t:u.top||r<0?0:r>n?n:r,r:u.right||i<0?0:i>e?e:i,b:u.bottom||o<0?0:o>n?n:o,l:u.left||a<0?0:a>e?e:a}}function kt(t,e,n){var r=null===e,i=null===n,o=!(!t||r&&i)&&_t(t);return o&&(r||e>=o.left&&e<=o.right)&&(i||n>=o.top&&n<=o.bottom)}j._set("global",{elements:{rectangle:{backgroundColor:yt,borderColor:yt,borderSkipped:"bottom",borderWidth:0}}});var St=X.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,n=function(t){var e=_t(t),n=e.right-e.left,r=e.bottom-e.top,i=wt(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}(e),r=n.outer,i=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(r.x,r.y,r.w,r.h),r.w===i.w&&r.h===i.h||(t.save(),t.beginPath(),t.rect(r.x,r.y,r.w,r.h),t.clip(),t.fillStyle=e.borderColor,t.rect(i.x,i.y,i.w,i.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return kt(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return vt(n)?kt(n,t,null):kt(n,null,e)},inXRange:function(t){return kt(this._view,t,null)},inYRange:function(t){return kt(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return vt(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return vt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),Et={},Ct=lt,xt=ht,Dt=gt,At=St;Et.Arc=Ct,Et.Line=xt,Et.Point=Dt,Et.Rectangle=At;var Tt=V._deprecated,Mt=V.valueOrDefault;function Lt(t,e,n){var r,i,o=n.barThickness,a=e.stackCount,s=e.pixels[t],u=V.isNullOrUndef(o)?function(t,e){var n,r,i,o,a=t._length;for(i=1,o=e.length;i<o;++i)a=Math.min(a,Math.abs(e[i]-e[i-1]));for(i=0,o=t.getTicks().length;i<o;++i)r=t.getPixelForTick(i),a=i>0?Math.min(a,Math.abs(r-n)):a,n=r;return a}(e.scale,e.pixels):-1;return V.isNullOrUndef(o)?(r=u*n.categoryPercentage,i=n.barPercentage):(r=o*a,i=1),{chunk:r/a,ratio:i,start:s-r/2}}j._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),j._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Ot=ot.extend({dataElementType:Et.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,e,n=this;ot.prototype.initialize.apply(n,arguments),(t=n.getMeta()).stack=n.getDataset().stack,t.bar=!0,e=n._getIndexScale().options,Tt("bar chart",e.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Tt("bar chart",e.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Tt("bar chart",e.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Tt("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Tt("bar chart",e.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var e,n,r=this,i=r.getMeta().data;for(r._ruler=r.getRuler(),e=0,n=i.length;e<n;++e)r.updateElement(i[e],e,t)},updateElement:function(t,e,n){var r=this,i=r.getMeta(),o=r.getDataset(),a=r._resolveDataElementOptions(t,e);t._xScale=r.getScaleForId(i.xAxisID),t._yScale=r.getScaleForId(i.yAxisID),t._datasetIndex=r.index,t._index=e,t._model={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderSkipped:a.borderSkipped,borderWidth:a.borderWidth,datasetLabel:o.label,label:r.chart.data.labels[e]},V.isArray(o.data[e])&&(t._model.borderSkipped=null),r._updateElementGeometry(t,e,n,a),t.pivot()},_updateElementGeometry:function(t,e,n,r){var i=this,o=t._model,a=i._getValueScale(),s=a.getBasePixel(),u=a.isHorizontal(),l=i._ruler||i.getRuler(),c=i.calculateBarValuePixels(i.index,e,r),d=i.calculateBarIndexPixels(i.index,e,l,r);o.horizontal=u,o.base=n?s:c.base,o.x=u?n?s:c.head:d.center,o.y=u?d.center:n?s:c.head,o.height=u?d.size:void 0,o.width=u?void 0:d.size},_getStacks:function(t){var e,n,r=this._getIndexScale(),i=r._getMatchingVisibleMetas(this._type),o=r.options.stacked,a=i.length,s=[];for(e=0;e<a&&(n=i[e],(!1===o||-1===s.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&s.push(n.stack),n.index!==t);++e);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var n=this._getStacks(t),r=void 0!==e?n.indexOf(e):-1;return-1===r?n.length-1:r},getRuler:function(){var t,e,n=this,r=n._getIndexScale(),i=[];for(t=0,e=n.getMeta().data.length;t<e;++t)i.push(r.getPixelForValue(null,t,n.index));return{pixels:i,start:r._startPixel,end:r._endPixel,stackCount:n.getStackCount(),scale:r}},calculateBarValuePixels:function(t,e,n){var r,i,o,a,s,u,l,c=this,d=c.chart,h=c._getValueScale(),f=h.isHorizontal(),p=d.data.datasets,m=h._getMatchingVisibleMetas(c._type),g=h._parseValue(p[t].data[e]),y=n.minBarLength,v=h.options.stacked,_=c.getMeta().stack,b=void 0===g.start?0:g.max>=0&&g.min>=0?g.min:g.max,w=void 0===g.start?g.end:g.max>=0&&g.min>=0?g.max-g.min:g.min-g.max,k=m.length;if(v||void 0===v&&void 0!==_)for(r=0;r<k&&(i=m[r]).index!==t;++r)i.stack===_&&(o=void 0===(l=h._parseValue(p[i.index].data[e])).start?l.end:l.min>=0&&l.max>=0?l.max:l.min,(g.min<0&&o<0||g.max>=0&&o>0)&&(b+=o));return a=h.getPixelForValue(b),u=(s=h.getPixelForValue(b+w))-a,void 0!==y&&Math.abs(u)<y&&(u=y,s=w>=0&&!f||w<0&&f?a-y:a+y),{size:u,base:a,head:s,center:s+u/2}},calculateBarIndexPixels:function(t,e,n,r){var i="flex"===r.barThickness?function(t,e,n){var r,i=e.pixels,o=i[t],a=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null,u=n.categoryPercentage;return null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a),r=o-(o-Math.min(a,s))/2*u,{chunk:Math.abs(s-a)/2*u/e.stackCount,ratio:n.barPercentage,start:r}}(e,n,r):Lt(e,n,r),o=this.getStackIndex(t,this.getMeta().stack),a=i.start+i.chunk*o+i.chunk/2,s=Math.min(Mt(r.maxBarThickness,1/0),i.chunk*i.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}},draw:function(){var t=this,e=t.chart,n=t._getValueScale(),r=t.getMeta().data,i=t.getDataset(),o=r.length,a=0;for(V.canvas.clipArea(e.ctx,e.chartArea);a<o;++a){var s=n._parseValue(i.data[a]);isNaN(s.min)||isNaN(s.max)||r[a].draw()}V.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var t=this,e=V.extend({},ot.prototype._resolveDataElementOptions.apply(t,arguments)),n=t._getIndexScale().options,r=t._getValueScale().options;return e.barPercentage=Mt(n.barPercentage,e.barPercentage),e.barThickness=Mt(n.barThickness,e.barThickness),e.categoryPercentage=Mt(n.categoryPercentage,e.categoryPercentage),e.maxBarThickness=Mt(n.maxBarThickness,e.maxBarThickness),e.minBarLength=Mt(r.minBarLength,e.minBarLength),e}}),It=V.valueOrDefault,Pt=V.options.resolve;j._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",r=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+r.r+")"}}}});var Rt=ot.extend({dataElementType:Et.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(t){var e=this,n=e.getMeta().data;V.each(n,(function(n,r){e.updateElement(n,r,t)}))},updateElement:function(t,e,n){var r=this,i=r.getMeta(),a=t.custom||{},s=r.getScaleForId(i.xAxisID),u=r.getScaleForId(i.yAxisID),l=r._resolveDataElementOptions(t,e),c=r.getDataset().data[e],d=r.index,h=n?s.getPixelForDecimal(.5):s.getPixelForValue("object"===o(c)?c:NaN,e,d),f=n?u.getBasePixel():u.getPixelForValue(c,e,d);t._xScale=s,t._yScale=u,t._options=l,t._datasetIndex=d,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:a.skip||isNaN(h)||isNaN(f),x:h,y:f},t.pivot()},setHoverStyle:function(t){var e=t._model,n=t._options,r=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=It(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=It(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=It(n.hoverBorderWidth,n.borderWidth),e.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(t,e){var n=this,r=n.chart,i=n.getDataset(),o=t.custom||{},a=i.data[e]||{},s=ot.prototype._resolveDataElementOptions.apply(n,arguments),u={chart:r,dataIndex:e,dataset:i,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=V.extend({},s)),s.radius=Pt([o.radius,a.r,n._config.radius,r.options.elements.point.radius],u,e),s}}),Nt=V.valueOrDefault,Ft=Math.PI,jt=2*Ft,Bt=Ft/2;j._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e,n,r,i=document.createElement("ul"),o=t.data,a=o.datasets,s=o.labels;if(i.setAttribute("class",t.id+"-legend"),a.length)for(e=0,n=a[0].data.length;e<n;++e)(r=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[e],s[e]&&r.appendChild(document.createTextNode(s[e]));return i.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,r){var i=t.getDatasetMeta(0),o=i.controller.getStyle(r);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(e.datasets[0].data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(t,e){var n,r,i,o=e.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(i=a.getDatasetMeta(n)).data[o]&&(i.data[o].hidden=!i.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-Bt,circumference:jt,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],r=": "+e.datasets[t.datasetIndex].data[t.index];return V.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}});var Yt=ot.extend({dataElementType:Et.Arc,linkScales:V.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var e,n,r,i,o=this,a=o.chart,s=a.chartArea,u=a.options,l=1,c=1,d=0,h=0,f=o.getMeta(),p=f.data,m=u.cutoutPercentage/100||0,g=u.circumference,y=o._getRingWeight(o.index);if(g<jt){var v=u.rotation%jt,_=(v+=v>=Ft?-jt:v<-Ft?jt:0)+g,b=Math.cos(v),w=Math.sin(v),k=Math.cos(_),S=Math.sin(_),E=v<=0&&_>=0||_>=jt,C=v<=Bt&&_>=Bt||_>=jt+Bt,x=v<=-Bt&&_>=-Bt||_>=Ft+Bt,D=v===-Ft||_>=Ft?-1:Math.min(b,b*m,k,k*m),A=x?-1:Math.min(w,w*m,S,S*m),T=E?1:Math.max(b,b*m,k,k*m),M=C?1:Math.max(w,w*m,S,S*m);l=(T-D)/2,c=(M-A)/2,d=-(T+D)/2,h=-(M+A)/2}for(r=0,i=p.length;r<i;++r)p[r]._options=o._resolveDataElementOptions(p[r],r);for(a.borderWidth=o.getMaxBorderWidth(),e=(s.right-s.left-a.borderWidth)/l,n=(s.bottom-s.top-a.borderWidth)/c,a.outerRadius=Math.max(Math.min(e,n)/2,0),a.innerRadius=Math.max(a.outerRadius*m,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(o._getVisibleDatasetWeightTotal()||1),a.offsetX=d*a.outerRadius,a.offsetY=h*a.outerRadius,f.total=o.calculateTotal(),o.outerRadius=a.outerRadius-a.radiusLength*o._getRingWeightOffset(o.index),o.innerRadius=Math.max(o.outerRadius-a.radiusLength*y,0),r=0,i=p.length;r<i;++r)o.updateElement(p[r],r,t)},updateElement:function(t,e,n){var r=this,i=r.chart,o=i.chartArea,a=i.options,s=a.animation,u=(o.left+o.right)/2,l=(o.top+o.bottom)/2,c=a.rotation,d=a.rotation,h=r.getDataset(),f=n&&s.animateRotate||t.hidden?0:r.calculateCircumference(h.data[e])*(a.circumference/jt),p=n&&s.animateScale?0:r.innerRadius,m=n&&s.animateScale?0:r.outerRadius,g=t._options||{};V.extend(t,{_datasetIndex:r.index,_index:e,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:u+i.offsetX,y:l+i.offsetY,startAngle:c,endAngle:d,circumference:f,outerRadius:m,innerRadius:p,label:V.valueAtIndexOrDefault(h.label,e,i.data.labels[e])}});var y=t._model;n&&s.animateRotate||(y.startAngle=0===e?a.rotation:r.getMeta().data[e-1]._model.endAngle,y.endAngle=y.startAngle+y.circumference),t.pivot()},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),r=0;return V.each(n.data,(function(n,i){t=e.data[i],isNaN(t)||n.hidden||(r+=Math.abs(t))})),r},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?jt*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,r,i,o,a,s,u,l=0,c=this.chart;if(!t)for(e=0,n=c.data.datasets.length;e<n;++e)if(c.isDatasetVisible(e)){t=(r=c.getDatasetMeta(e)).data,e!==this.index&&(o=r.controller);break}if(!t)return 0;for(e=0,n=t.length;e<n;++e)i=t[e],o?(o._configure(),a=o._resolveDataElementOptions(i,e)):a=i._options,"inner"!==a.borderAlign&&(s=a.borderWidth,l=(u=a.hoverBorderWidth)>(l=s>l?s:l)?u:l);return l},setHoverStyle:function(t){var e=t._model,n=t._options,r=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=Nt(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=Nt(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=Nt(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e},_getRingWeight:function(t){return Math.max(Nt(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});j._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),j._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Ht=Ot.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),zt=V.valueOrDefault,Wt=V.options.resolve,Vt=V.canvas._isPointInArea;function Ut(t,e){var n=t&&t.options.ticks||{},r=n.reverse,i=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:r?o:i,end:r?i:o}}j._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var qt=ot.extend({datasetElementType:Et.Line,dataElementType:Et.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(t){var e,n,r=this,i=r.getMeta(),o=i.dataset,a=i.data||[],s=r.chart.options,u=r._config,l=r._showLine=zt(u.showLine,s.showLines);for(r._xScale=r.getScaleForId(i.xAxisID),r._yScale=r.getScaleForId(i.yAxisID),l&&(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),o._scale=r._yScale,o._datasetIndex=r.index,o._children=a,o._model=r._resolveDatasetElementOptions(o),o.pivot()),e=0,n=a.length;e<n;++e)r.updateElement(a[e],e,t);for(l&&0!==o._model.tension&&r.updateBezierControlPoints(),e=0,n=a.length;e<n;++e)a[e].pivot()},updateElement:function(t,e,n){var r,i,a=this,s=a.getMeta(),u=t.custom||{},l=a.getDataset(),c=a.index,d=l.data[e],h=a._xScale,f=a._yScale,p=s.dataset._model,m=a._resolveDataElementOptions(t,e);r=h.getPixelForValue("object"===o(d)?d:NaN,e,c),i=n?f.getBasePixel():a.calculatePointY(d,e,c),t._xScale=h,t._yScale=f,t._options=m,t._datasetIndex=c,t._index=e,t._model={x:r,y:i,skip:u.skip||isNaN(r)||isNaN(i),radius:m.radius,pointStyle:m.pointStyle,rotation:m.rotation,backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,tension:zt(u.tension,p?p.tension:0),steppedLine:!!p&&p.steppedLine,hitRadius:m.hitRadius}},_resolveDatasetElementOptions:function(t){var e,n,r,i,o,a,s,u,l,c,d,h=this,f=h._config,p=t.custom||{},m=h.chart.options,g=m.elements.line,y=ot.prototype._resolveDatasetElementOptions.apply(h,arguments);return y.spanGaps=zt(f.spanGaps,m.spanGaps),y.tension=zt(f.lineTension,g.tension),y.steppedLine=Wt([p.steppedLine,f.steppedLine,g.stepped]),y.clip=(e=zt(f.clip,(a=h._xScale,s=h._yScale,u=y.borderWidth,c=Ut(a,l=u/2),{top:(d=Ut(s,l)).end,right:c.end,bottom:d.start,left:c.start})),V.isObject(e)?(n=e.top,r=e.right,i=e.bottom,o=e.left):n=r=i=o=e,{top:n,right:r,bottom:i,left:o}),y},calculatePointY:function(t,e,n){var r,i,o,a,s,u,l,c=this.chart,d=this._yScale,h=0,f=0;if(d.options.stacked){for(s=+d.getRightValue(t),l=(u=c._getSortedVisibleDatasetMetas()).length,r=0;r<l&&(o=u[r]).index!==n;++r)i=c.data.datasets[o.index],"line"===o.type&&o.yAxisID===d.id&&((a=+d.getRightValue(i.data[e]))<0?f+=a||0:h+=a||0);return s<0?d.getPixelForValue(f+s):d.getPixelForValue(h+s)}return d.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,r,i=this.chart,o=this.getMeta(),a=o.dataset._model,s=i.chartArea,u=o.data||[];function l(t,e,n){return Math.max(Math.min(t,n),e)}if(a.spanGaps&&(u=u.filter((function(t){return!t._model.skip}))),"monotone"===a.cubicInterpolationMode)V.splineCurveMonotone(u);else for(t=0,e=u.length;t<e;++t)n=u[t]._model,r=V.splineCurve(V.previousItem(u,t)._model,n,V.nextItem(u,t)._model,a.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(i.options.elements.line.capBezierPoints)for(t=0,e=u.length;t<e;++t)n=u[t]._model,Vt(n,s)&&(t>0&&Vt(u[t-1]._model,s)&&(n.controlPointPreviousX=l(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=l(n.controlPointPreviousY,s.top,s.bottom)),t<u.length-1&&Vt(u[t+1]._model,s)&&(n.controlPointNextX=l(n.controlPointNextX,s.left,s.right),n.controlPointNextY=l(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var t,e=this,n=e.chart,r=e.getMeta(),i=r.data||[],o=n.chartArea,a=n.canvas,s=0,u=i.length;for(e._showLine&&(t=r.dataset._model.clip,V.canvas.clipArea(n.ctx,{left:!1===t.left?0:o.left-t.left,right:!1===t.right?a.width:o.right+t.right,top:!1===t.top?0:o.top-t.top,bottom:!1===t.bottom?a.height:o.bottom+t.bottom}),r.dataset.draw(),V.canvas.unclipArea(n.ctx));s<u;++s)i[s].draw(o)},setHoverStyle:function(t){var e=t._model,n=t._options,r=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=zt(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=zt(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=zt(n.hoverBorderWidth,n.borderWidth),e.radius=zt(n.hoverRadius,n.radius)}}),Gt=V.options.resolve;j._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e,n,r,i=document.createElement("ul"),o=t.data,a=o.datasets,s=o.labels;if(i.setAttribute("class",t.id+"-legend"),a.length)for(e=0,n=a[0].data.length;e<n;++e)(r=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[e],s[e]&&r.appendChild(document.createTextNode(s[e]));return i.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,r){var i=t.getDatasetMeta(0),o=i.controller.getStyle(r);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(e.datasets[0].data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(t,e){var n,r,i,o=e.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(i=a.getDatasetMeta(n)).data[o].hidden=!i.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}});var $t=ot.extend({dataElementType:Et.Arc,linkScales:V.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,n,r,i=this,o=i.getDataset(),a=i.getMeta(),s=i.chart.options.startAngle||0,u=i._starts=[],l=i._angles=[],c=a.data;for(i._updateRadius(),a.count=i.countVisibleElements(),e=0,n=o.data.length;e<n;e++)u[e]=s,r=i._computeAngle(e),l[e]=r,s+=r;for(e=0,n=c.length;e<n;++e)c[e]._options=i._resolveDataElementOptions(c[e],e),i.updateElement(c[e],e,t)},_updateRadius:function(){var t=this,e=t.chart,n=e.chartArea,r=e.options,i=Math.min(n.right-n.left,n.bottom-n.top);e.outerRadius=Math.max(i/2,0),e.innerRadius=Math.max(r.cutoutPercentage?e.outerRadius/100*r.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,n){var r=this,i=r.chart,o=r.getDataset(),a=i.options,s=a.animation,u=i.scale,l=i.data.labels,c=u.xCenter,d=u.yCenter,h=a.startAngle,f=t.hidden?0:u.getDistanceFromCenterForValue(o.data[e]),p=r._starts[e],m=p+(t.hidden?0:r._angles[e]),g=s.animateScale?0:u.getDistanceFromCenterForValue(o.data[e]),y=t._options||{};V.extend(t,{_datasetIndex:r.index,_index:e,_scale:u,_model:{backgroundColor:y.backgroundColor,borderColor:y.borderColor,borderWidth:y.borderWidth,borderAlign:y.borderAlign,x:c,y:d,innerRadius:0,outerRadius:n?g:f,startAngle:n&&s.animateRotate?h:p,endAngle:n&&s.animateRotate?h:m,label:V.valueAtIndexOrDefault(l,e,l[e])}}),t.pivot()},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),n=0;return V.each(e.data,(function(e,r){isNaN(t.data[r])||e.hidden||n++})),n},setHoverStyle:function(t){var e=t._model,n=t._options,r=V.getHoverColor,i=V.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=i(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=i(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=i(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(t){var e=this,n=this.getMeta().count,r=e.getDataset(),i=e.getMeta();if(isNaN(r.data[t])||i.data[t].hidden)return 0;var o={chart:e.chart,dataIndex:t,dataset:r,datasetIndex:e.index};return Gt([e.chart.options.elements.arc.angle,2*Math.PI/n],o,t)}});j._set("pie",V.clone(j.doughnut)),j._set("pie",{cutoutPercentage:0});var Kt=Yt,Zt=V.valueOrDefault;j._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Xt=ot.extend({datasetElementType:Et.Line,dataElementType:Et.Point,linkScales:V.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,n,r=this,i=r.getMeta(),o=i.dataset,a=i.data||[],s=r.chart.scale,u=r._config;for(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),o._scale=s,o._datasetIndex=r.index,o._children=a,o._loop=!0,o._model=r._resolveDatasetElementOptions(o),o.pivot(),e=0,n=a.length;e<n;++e)r.updateElement(a[e],e,t);for(r.updateBezierControlPoints(),e=0,n=a.length;e<n;++e)a[e].pivot()},updateElement:function(t,e,n){var r=this,i=t.custom||{},o=r.getDataset(),a=r.chart.scale,s=a.getPointPositionForValue(e,o.data[e]),u=r._resolveDataElementOptions(t,e),l=r.getMeta().dataset._model,c=n?a.xCenter:s.x,d=n?a.yCenter:s.y;t._scale=a,t._options=u,t._datasetIndex=r.index,t._index=e,t._model={x:c,y:d,skip:i.skip||isNaN(c)||isNaN(d),radius:u.radius,pointStyle:u.pointStyle,rotation:u.rotation,backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,tension:Zt(i.tension,l?l.tension:0),hitRadius:u.hitRadius}},_resolveDatasetElementOptions:function(){var t=this,e=t._config,n=t.chart.options,r=ot.prototype._resolveDatasetElementOptions.apply(t,arguments);return r.spanGaps=Zt(e.spanGaps,n.spanGaps),r.tension=Zt(e.lineTension,n.elements.line.tension),r},updateBezierControlPoints:function(){var t,e,n,r,i=this.getMeta(),o=this.chart.chartArea,a=i.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}for(i.dataset._model.spanGaps&&(a=a.filter((function(t){return!t._model.skip}))),t=0,e=a.length;t<e;++t)n=a[t]._model,r=V.splineCurve(V.previousItem(a,t,!0)._model,n,V.nextItem(a,t,!0)._model,n.tension),n.controlPointPreviousX=s(r.previous.x,o.left,o.right),n.controlPointPreviousY=s(r.previous.y,o.top,o.bottom),n.controlPointNextX=s(r.next.x,o.left,o.right),n.controlPointNextY=s(r.next.y,o.top,o.bottom)},setHoverStyle:function(t){var e=t._model,n=t._options,r=V.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Zt(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=Zt(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=Zt(n.hoverBorderWidth,n.borderWidth),e.radius=Zt(n.hoverRadius,n.radius)}});j._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),j._set("global",{datasets:{scatter:{showLine:!1}}});var Jt={bar:Ot,bubble:Rt,doughnut:Yt,horizontalBar:Ht,line:qt,polarArea:$t,pie:Kt,radar:Xt,scatter:qt};function Qt(t,e){return t.native?{x:t.x,y:t.y}:V.getRelativePosition(t,e)}function te(t,e){var n,r,i,o,a,s,u=t._getSortedVisibleDatasetMetas();for(r=0,o=u.length;r<o;++r)for(i=0,a=(n=u[r].data).length;i<a;++i)(s=n[i])._view.skip||e(s)}function ee(t,e){var n=[];return te(t,(function(t){t.inRange(e.x,e.y)&&n.push(t)})),n}function ne(t,e,n,r){var i=Number.POSITIVE_INFINITY,o=[];return te(t,(function(t){if(!n||t.inRange(e.x,e.y)){var a=t.getCenterPoint(),s=r(e,a);s<i?(o=[t],i=s):s===i&&o.push(t)}})),o}function re(t){var e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){var i=e?Math.abs(t.x-r.x):0,o=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function ie(t,e,n){var r=Qt(e,t);n.axis=n.axis||"x";var i=re(n.axis),o=n.intersect?ee(t,r):ne(t,r,!1,i),a=[];return o.length?(t._getSortedVisibleDatasetMetas().forEach((function(t){var e=t.data[o[0]._index];e&&!e._view.skip&&a.push(e)})),a):[]}var oe={modes:{single:function(t,e){var n=Qt(e,t),r=[];return te(t,(function(t){if(t.inRange(n.x,n.y))return r.push(t),r})),r.slice(0,1)},label:ie,index:ie,dataset:function(t,e,n){var r=Qt(e,t);n.axis=n.axis||"xy";var i=re(n.axis),o=n.intersect?ee(t,r):ne(t,r,!1,i);return o.length>0&&(o=t.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(t,e){return ie(t,e,{intersect:!1})},point:function(t,e){return ee(t,Qt(e,t))},nearest:function(t,e,n){var r=Qt(e,t);n.axis=n.axis||"xy";var i=re(n.axis);return ne(t,r,n.intersect,i)},x:function(t,e,n){var r=Qt(e,t),i=[],o=!1;return te(t,(function(t){t.inXRange(r.x)&&i.push(t),t.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i},y:function(t,e,n){var r=Qt(e,t),i=[],o=!1;return te(t,(function(t){t.inYRange(r.y)&&i.push(t),t.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i}}},ae=V.extend;function se(t,e){return V.where(t,(function(t){return t.pos===e}))}function ue(t,e){return t.sort((function(t,n){var r=e?n:t,i=e?t:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function le(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function ce(t,e,n){var r,i,o=n.box,a=t.maxPadding;if(n.size&&(t[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,t[n.pos]+=n.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(r=e.outerWidth-le(a,t,"left","right"),i=e.outerHeight-le(a,t,"top","bottom"),r!==t.w||i!==t.h){t.w=r,t.h=i;var u=n.horizontal?[r,t.w]:[i,t.h];return u[0]!==u[1]&&(!isNaN(u[0])||!isNaN(u[1]))}}function de(t,e){var n=e.maxPadding;function r(t){var r={left:0,top:0,right:0,bottom:0};return t.forEach((function(t){r[t]=Math.max(e[t],n[t])})),r}return r(t?["left","right"]:["top","bottom"])}function he(t,e,n){var r,i,o,a,s,u,l=[];for(r=0,i=t.length;r<i;++r)(a=(o=t[r]).box).update(o.width||e.w,o.height||e.h,de(o.horizontal,e)),ce(e,n,o)&&(u=!0,l.length&&(s=!0)),a.fullWidth||l.push(o);return s&&he(l,e,n)||u}function fe(t,e,n){var r,i,o,a,s=n.padding,u=e.x,l=e.y;for(r=0,i=t.length;r<i;++r)a=(o=t[r]).box,o.horizontal?(a.left=a.fullWidth?s.left:e.left,a.right=a.fullWidth?n.outerWidth-s.right:e.left+e.w,a.top=l,a.bottom=l+a.height,a.width=a.right-a.left,l=a.bottom):(a.left=u,a.right=u+a.width,a.top=e.top,a.bottom=e.top+e.h,a.height=a.bottom-a.top,u=a.right);e.x=u,e.y=l}j._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var pe,me={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw:function(){e.draw.apply(e,arguments)}}]},t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var r,i=["fullWidth","position","weight"],o=i.length,a=0;a<o;++a)r=i[a],n.hasOwnProperty(r)&&(e[r]=n[r])},update:function(t,e,n){if(t){var r=t.options.layout||{},i=V.options.toPadding(r.padding),o=e-i.width,a=n-i.height,s=function(t){var e=function(t){var e,n,r,i=[];for(e=0,n=(t||[]).length;e<n;++e)r=t[e],i.push({index:e,box:r,pos:r.position,horizontal:r.isHorizontal(),weight:r.weight});return i}(t),n=ue(se(e,"left"),!0),r=ue(se(e,"right")),i=ue(se(e,"top"),!0),o=ue(se(e,"bottom"));return{leftAndTop:n.concat(i),rightAndBottom:r.concat(o),chartArea:se(e,"chartArea"),vertical:n.concat(r),horizontal:i.concat(o)}}(t.boxes),u=s.vertical,l=s.horizontal,c=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:o,vBoxMaxWidth:o/2/u.length,hBoxMaxHeight:a/2}),d=ae({maxPadding:ae({},i),w:o,h:a,x:i.left,y:i.top},i);!function(t,e){var n,r,i;for(n=0,r=t.length;n<r;++n)(i=t[n]).width=i.horizontal?i.box.fullWidth&&e.availableWidth:e.vBoxMaxWidth,i.height=i.horizontal&&e.hBoxMaxHeight}(u.concat(l),c),he(u,d,c),he(l,d,c)&&he(u,d,c),function(t){var e=t.maxPadding;function n(n){var r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(d),fe(s.leftAndTop,d,c),d.x+=d.w,d.y+=d.h,fe(s.rightAndBottom,d,c),t.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h},V.each(s.chartArea,(function(e){var n=e.box;ae(n,t.chartArea),n.update(d.w,d.h)}))}}},ge=(pe=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&pe.default||pe,ye="$chartjs",ve="chartjs-",_e=ve+"size-monitor",be=ve+"render-monitor",we=ve+"render-animation",ke=["animationstart","webkitAnimationStart"],Se={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Ee(t,e){var n=V.getStyle(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var Ce=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(n){}return t}(),xe=!!Ce&&{passive:!0};function De(t,e,n){t.addEventListener(e,n,xe)}function Ae(t,e,n){t.removeEventListener(e,n,xe)}function Te(t,e,n,r,i){return{type:t,chart:e,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function Me(t){var e=document.createElement("div");return e.className=t||"",e}function Le(t,e,n){var r,i,o,a,s=t[ye]||(t[ye]={}),u=s.resizer=function(t){var e=1e6,n=Me(_e),r=Me(_e+"-expand"),i=Me(_e+"-shrink");r.appendChild(Me()),i.appendChild(Me()),n.appendChild(r),n.appendChild(i),n._reset=function(){r.scrollLeft=e,r.scrollTop=e,i.scrollLeft=e,i.scrollTop=e};var o=function(){n._reset(),t()};return De(r,"scroll",o.bind(r,"expand")),De(i,"scroll",o.bind(i,"shrink")),n}((r=function(){if(s.resizer){var r=n.options.maintainAspectRatio&&t.parentNode,i=r?r.clientWidth:0;e(Te("resize",n)),r&&r.clientWidth<i&&n.canvas&&e(Te("resize",n))}},o=!1,a=[],function(){a=Array.prototype.slice.call(arguments),i=i||this,o||(o=!0,V.requestAnimFrame.call(window,(function(){o=!1,r.apply(i,a)})))}));!function(t,e){var n=t[ye]||(t[ye]={}),r=n.renderProxy=function(t){t.animationName===we&&e()};V.each(ke,(function(e){De(t,e,r)})),n.reflow=!!t.offsetParent,t.classList.add(be)}(t,(function(){if(s.resizer){var e=t.parentNode;e&&e!==u.parentNode&&e.insertBefore(u,e.firstChild),u._reset()}}))}function Oe(t){var e=t[ye]||{},n=e.resizer;delete e.resizer,function(t){var e=t[ye]||{},n=e.renderProxy;n&&(V.each(ke,(function(e){Ae(t,e,n)})),delete e.renderProxy),t.classList.remove(be)}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}var Ie={disableCSSInjection:!1,_enabled:"undefined"!==typeof window&&"undefined"!==typeof document,_ensureLoaded:function(t){if(!this.disableCSSInjection){var e=t.getRootNode?t.getRootNode():document;!function(t,e){var n=t[ye]||(t[ye]={});if(!n.containsStyles){n.containsStyles=!0,e="/* Chart.js */\n"+e;var r=document.createElement("style");r.setAttribute("type","text/css"),r.appendChild(document.createTextNode(e)),t.appendChild(r)}}(e.host?e:document.head,ge)}},acquireContext:function(t,e){"string"===typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(this._ensureLoaded(t),function(t,e){var n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t[ye]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var o=Ee(t,"width");void 0!==o&&(t.width=o)}if(null===r||""===r)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var a=Ee(t,"height");void 0!==o&&(t.height=a)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e[ye]){var n=e[ye].initial;["height","width"].forEach((function(t){var r=n[t];V.isNullOrUndef(r)?e.removeAttribute(t):e.setAttribute(t,r)})),V.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e[ye]}},addEventListener:function(t,e,n){var r=t.canvas;if("resize"!==e){var i=n[ye]||(n[ye]={}),o=(i.proxies||(i.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=Se[t.type]||t.type,r=V.getRelativePosition(t,e);return Te(n,e,r.x,r.y,t)}(e,t))};De(r,e,o)}else Le(r,n,t)},removeEventListener:function(t,e,n){var r=t.canvas;if("resize"!==e){var i=((n[ye]||{}).proxies||{})[t.id+"_"+e];i&&Ae(r,e,i)}else Oe(r)}};V.addEvent=De,V.removeEvent=Ae;var Pe=Ie._enabled?Ie:{acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}},Re=V.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Pe);j._set("global",{plugins:{}});var Ne={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach((function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var r,i,o,a,s,u=this.descriptors(t),l=u.length;for(r=0;r<l;++r)if("function"===typeof(s=(o=(i=u[r]).plugin)[e])&&((a=[t].concat(n||[])).push(i.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],r=[],i=t&&t.config||{},o=i.options&&i.options.plugins||{};return this._plugins.concat(i.plugins||[]).forEach((function(t){if(-1===n.indexOf(t)){var e=t.id,i=o[e];!1!==i&&(!0===i&&(i=V.clone(j.global.plugins[e])),n.push(t),r.push({plugin:t,options:i||{}}))}})),e.descriptors=r,e.id=this._cacheId,r},_invalidate:function(t){delete t.$plugins}},Fe={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=V.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?V.merge(Object.create(null),[j.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){var n=this;n.defaults.hasOwnProperty(t)&&(n.defaults[t]=V.extend(n.defaults[t],e))},addScalesToLayout:function(t){V.each(t.scales,(function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,me.addBox(t,e)}))}},je=V.valueOrDefault,Be=V.rtl.getRtlAdapter;j._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:V.noop,title:function(t,e){var n="",r=e.labels,i=r?r.length:0;if(t.length>0){var o=t[0];o.label?n=o.label:o.xLabel?n=o.xLabel:i>0&&o.index<i&&(n=r[o.index])}return n},afterTitle:V.noop,beforeBody:V.noop,beforeLabel:V.noop,label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),V.isNullOrUndef(t.value)?n+=t.yLabel:n+=t.value,n},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:V.noop,afterBody:V.noop,beforeFooter:V.noop,footer:V.noop,afterFooter:V.noop}}});var Ye={average:function(t){if(!t.length)return!1;var e,n,r=0,i=0,o=0;for(e=0,n=t.length;e<n;++e){var a=t[e];if(a&&a.hasValue()){var s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:r/o,y:i/o}},nearest:function(t,e){var n,r,i,o=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){var u=t[n];if(u&&u.hasValue()){var l=u.getCenterPoint(),c=V.distanceBetweenPoints(e,l);c<s&&(s=c,i=u)}}if(i){var d=i.tooltipPosition();o=d.x,a=d.y}return{x:o,y:a}}};function He(t,e){return e&&(V.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function ze(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function We(t){var e=j.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:je(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:je(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:je(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:je(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:je(t.titleFontStyle,e.defaultFontStyle),titleFontSize:je(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:je(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:je(t.footerFontStyle,e.defaultFontStyle),footerFontSize:je(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Ve(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function Ue(t){return He([],ze(t))}var qe=X.extend({initialize:function(){this._model=We(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options.callbacks,n=e.beforeTitle.apply(t,arguments),r=e.title.apply(t,arguments),i=e.afterTitle.apply(t,arguments),o=[];return o=He(o,ze(n)),o=He(o,ze(r)),o=He(o,ze(i))},getBeforeBody:function(){return Ue(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,r=n._options.callbacks,i=[];return V.each(t,(function(t){var o={before:[],lines:[],after:[]};He(o.before,ze(r.beforeLabel.call(n,t,e))),He(o.lines,r.label.call(n,t,e)),He(o.after,ze(r.afterLabel.call(n,t,e))),i.push(o)})),i},getAfterBody:function(){return Ue(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,n=e.beforeFooter.apply(t,arguments),r=e.footer.apply(t,arguments),i=e.afterFooter.apply(t,arguments),o=[];return o=He(o,ze(n)),o=He(o,ze(r)),o=He(o,ze(i))},update:function(t){var e,n,r,i,o,a,s,u,l,c,d=this,h=d._options,f=d._model,p=d._model=We(h),m=d._active,g=d._data,y={xAlign:f.xAlign,yAlign:f.yAlign},v={x:f.x,y:f.y},_={width:f.width,height:f.height},b={x:f.caretX,y:f.caretY};if(m.length){p.opacity=1;var w=[],k=[];b=Ye[h.position].call(d,m,d._eventPosition);var S=[];for(e=0,n=m.length;e<n;++e)S.push((r=m[e],i=void 0,o=void 0,a=void 0,s=void 0,u=void 0,l=void 0,c=void 0,i=r._xScale,o=r._yScale||r._scale,a=r._index,s=r._datasetIndex,u=r._chart.getDatasetMeta(s).controller,l=u._getIndexScale(),c=u._getValueScale(),{xLabel:i?i.getLabelForIndex(a,s):"",yLabel:o?o.getLabelForIndex(a,s):"",label:l?""+l.getLabelForIndex(a,s):"",value:c?""+c.getLabelForIndex(a,s):"",index:a,datasetIndex:s,x:r._model.x,y:r._model.y}));h.filter&&(S=S.filter((function(t){return h.filter(t,g)}))),h.itemSort&&(S=S.sort((function(t,e){return h.itemSort(t,e,g)}))),V.each(S,(function(t){w.push(h.callbacks.labelColor.call(d,t,d._chart)),k.push(h.callbacks.labelTextColor.call(d,t,d._chart))})),p.title=d.getTitle(S,g),p.beforeBody=d.getBeforeBody(S,g),p.body=d.getBody(S,g),p.afterBody=d.getAfterBody(S,g),p.footer=d.getFooter(S,g),p.x=b.x,p.y=b.y,p.caretPadding=h.caretPadding,p.labelColors=w,p.labelTextColors=k,p.dataPoints=S,_=function(t,e){var n=t._chart.ctx,r=2*e.yPadding,i=0,o=e.body,a=o.reduce((function(t,e){return t+e.before.length+e.lines.length+e.after.length}),0);a+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,u=e.footer.length,l=e.titleFontSize,c=e.bodyFontSize,d=e.footerFontSize;r+=s*l,r+=s?(s-1)*e.titleSpacing:0,r+=s?e.titleMarginBottom:0,r+=a*c,r+=a?(a-1)*e.bodySpacing:0,r+=u?e.footerMarginTop:0,r+=u*d,r+=u?(u-1)*e.footerSpacing:0;var h=0,f=function(t){i=Math.max(i,n.measureText(t).width+h)};return n.font=V.fontString(l,e._titleFontStyle,e._titleFontFamily),V.each(e.title,f),n.font=V.fontString(c,e._bodyFontStyle,e._bodyFontFamily),V.each(e.beforeBody.concat(e.afterBody),f),h=e.displayColors?c+2:0,V.each(o,(function(t){V.each(t.before,f),V.each(t.lines,f),V.each(t.after,f)})),h=0,n.font=V.fontString(d,e._footerFontStyle,e._footerFontFamily),V.each(e.footer,f),{width:i+=2*e.xPadding,height:r}}(this,p),y=function(t,e){var n,r,i,o,a,s=t._model,u=t._chart,l=t._chart.chartArea,c="center",d="center";s.y<e.height?d="top":s.y>u.height-e.height&&(d="bottom");var h=(l.left+l.right)/2,f=(l.top+l.bottom)/2;"center"===d?(n=function(t){return t<=h},r=function(t){return t>h}):(n=function(t){return t<=e.width/2},r=function(t){return t>=u.width-e.width/2}),i=function(t){return t+e.width+s.caretSize+s.caretPadding>u.width},o=function(t){return t-e.width-s.caretSize-s.caretPadding<0},a=function(t){return t<=f?"top":"bottom"},n(s.x)?(c="left",i(s.x)&&(c="center",d=a(s.y))):r(s.x)&&(c="right",o(s.x)&&(c="center",d=a(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:d}}(this,_),v=function(t,e,n,r){var i=t.x,o=t.y,a=t.caretSize,s=t.caretPadding,u=t.cornerRadius,l=n.xAlign,c=n.yAlign,d=a+s,h=u+s;return"right"===l?i-=e.width:"center"===l&&((i-=e.width/2)+e.width>r.width&&(i=r.width-e.width),i<0&&(i=0)),"top"===c?o+=d:o-="bottom"===c?e.height+d:e.height/2,"center"===c?"left"===l?i+=d:"right"===l&&(i-=d):"left"===l?i-=h:"right"===l&&(i+=h),{x:i,y:o}}(p,_,y,d._chart)}else p.opacity=0;return p.xAlign=y.xAlign,p.yAlign=y.yAlign,p.x=v.x,p.y=v.y,p.width=_.width,p.height=_.height,p.caretX=b.x,p.caretY=b.y,d._model=p,t&&h.custom&&h.custom.call(d,p),d},drawCaret:function(t,e){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(t,e,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(t,e,n){var r,i,o,a,s,u,l=n.caretSize,c=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=t.x,p=t.y,m=e.width,g=e.height;if("center"===h)s=p+g/2,"left"===d?(i=(r=f)-l,o=r,a=s+l,u=s-l):(i=(r=f+m)+l,o=r,a=s-l,u=s+l);else if("left"===d?(r=(i=f+c+l)-l,o=i+l):"right"===d?(r=(i=f+m-c-l)-l,o=i+l):(r=(i=n.caretX)-l,o=i+l),"top"===h)s=(a=p)-l,u=a;else{s=(a=p+g)+l,u=a;var y=o;o=r,r=y}return{x1:r,x2:i,x3:o,y1:a,y2:s,y3:u}},drawTitle:function(t,e,n){var r,i,o,a=e.title,s=a.length;if(s){var u=Be(e.rtl,e.x,e.width);for(t.x=Ve(e,e._titleAlign),n.textAlign=u.textAlign(e._titleAlign),n.textBaseline="middle",r=e.titleFontSize,i=e.titleSpacing,n.fillStyle=e.titleFontColor,n.font=V.fontString(r,e._titleFontStyle,e._titleFontFamily),o=0;o<s;++o)n.fillText(a[o],u.x(t.x),t.y+r/2),t.y+=r+i,o+1===s&&(t.y+=e.titleMarginBottom-i)}},drawBody:function(t,e,n){var r,i,o,a,s,u,l,c,d=e.bodyFontSize,h=e.bodySpacing,f=e._bodyAlign,p=e.body,m=e.displayColors,g=0,y=m?Ve(e,"left"):0,v=Be(e.rtl,e.x,e.width),_=function(e){n.fillText(e,v.x(t.x+g),t.y+d/2),t.y+=d+h},b=v.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=V.fontString(d,e._bodyFontStyle,e._bodyFontFamily),t.x=Ve(e,b),n.fillStyle=e.bodyFontColor,V.each(e.beforeBody,_),g=m&&"right"!==b?"center"===f?d/2+1:d+2:0,s=0,l=p.length;s<l;++s){for(r=p[s],i=e.labelTextColors[s],o=e.labelColors[s],n.fillStyle=i,V.each(r.before,_),u=0,c=(a=r.lines).length;u<c;++u){if(m){var w=v.x(y);n.fillStyle=e.legendColorBackground,n.fillRect(v.leftForLtr(w,d),t.y,d,d),n.lineWidth=1,n.strokeStyle=o.borderColor,n.strokeRect(v.leftForLtr(w,d),t.y,d,d),n.fillStyle=o.backgroundColor,n.fillRect(v.leftForLtr(v.xPlus(w,1),d-2),t.y+1,d-2,d-2),n.fillStyle=i}_(a[u])}V.each(r.after,_)}g=0,V.each(e.afterBody,_),t.y-=h},drawFooter:function(t,e,n){var r,i,o=e.footer,a=o.length;if(a){var s=Be(e.rtl,e.x,e.width);for(t.x=Ve(e,e._footerAlign),t.y+=e.footerMarginTop,n.textAlign=s.textAlign(e._footerAlign),n.textBaseline="middle",r=e.footerFontSize,n.fillStyle=e.footerFontColor,n.font=V.fontString(r,e._footerFontStyle,e._footerFontFamily),i=0;i<a;++i)n.fillText(o[i],s.x(t.x),t.y+r/2),t.y+=r+e.footerSpacing}},drawBackground:function(t,e,n,r){n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,n.lineWidth=e.borderWidth;var i=e.xAlign,o=e.yAlign,a=t.x,s=t.y,u=r.width,l=r.height,c=e.cornerRadius;n.beginPath(),n.moveTo(a+c,s),"top"===o&&this.drawCaret(t,r),n.lineTo(a+u-c,s),n.quadraticCurveTo(a+u,s,a+u,s+c),"center"===o&&"right"===i&&this.drawCaret(t,r),n.lineTo(a+u,s+l-c),n.quadraticCurveTo(a+u,s+l,a+u-c,s+l),"bottom"===o&&this.drawCaret(t,r),n.lineTo(a+c,s+l),n.quadraticCurveTo(a,s+l,a,s+l-c),"center"===o&&"left"===i&&this.drawCaret(t,r),n.lineTo(a,s+c),n.quadraticCurveTo(a,s,a+c,s),n.closePath(),n.fill(),e.borderWidth>0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},r={x:e.x,y:e.y},i=Math.abs(e.opacity<.001)?0:e.opacity,o=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(r,e,t,n),r.y+=e.yPadding,V.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),V.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(t,r.mode,r),r.reverse&&n._active.reverse()),(e=!V.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),Ge=Ye,$e=qe;$e.positioners=Ge;var Ke=V.valueOrDefault;function Ze(){return V.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,r){if("xAxes"===t||"yAxes"===t){var i,o,a,s=n[t].length;for(e[t]||(e[t]=[]),i=0;i<s;++i)a=n[t][i],o=Ke(a.type,"xAxes"===t?"category":"linear"),i>=e[t].length&&e[t].push({}),!e[t][i].type||a.type&&a.type!==e[t][i].type?V.merge(e[t][i],[Fe.getScaleDefaults(o),a]):V.merge(e[t][i],a)}else V._merger(t,e,n,r)}})}function Xe(){return V.merge(Object.create(null),[].slice.call(arguments),{merger:function(t,e,n,r){var i=e[t]||Object.create(null),o=n[t];"scales"===t?e[t]=Ze(i,o):"scale"===t?e[t]=V.merge(i,[Fe.getScaleDefaults(o.type),o]):V._merger(t,e,n,r)}})}function Je(t,e,n){var r,i=function(t){return t.id===r};do{r=e+n++}while(V.findIndex(t,i)>=0);return r}function Qe(t){return"top"===t||"bottom"===t}function tn(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}j._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var en=function(t,e){return this.construct(t,e),this};V.extend(en.prototype,{construct:function(t,e){var n=this;e=function(t){var e=(t=t||Object.create(null)).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=Xe(j.global,j[t.type],t.options||{}),t}(e);var r=Re.acquireContext(t,e),i=r&&r.canvas,o=i&&i.height,a=i&&i.width;n.id=V.uid(),n.ctx=r,n.canvas=i,n.config=e,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=e.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,en.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return Ne.notify(t,"beforeInit"),V.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),Ne.notify(t,"afterInit"),t},clear:function(){return V.canvas.clear(this),this},stop:function(){return tt.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,r=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(V.getMaximumWidth(r))),a=Math.max(0,Math.floor(i?o/i:V.getMaximumHeight(r)));if((e.width!==o||e.height!==a)&&(r.width=e.width=o,r.height=e.height=a,r.style.width=o+"px",r.style.height=a+"px",V.retinaScale(e,n.devicePixelRatio),!t)){var s={width:o,height:a};Ne.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;V.each(e.xAxes,(function(t,n){t.id||(t.id=Je(e.xAxes,"x-axis-",n))})),V.each(e.yAxes,(function(t,n){t.id||(t.id=Je(e.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},r=[],i=Object.keys(n).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(r=r.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&r.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),V.each(r,(function(e){var r=e.options,o=r.id,a=Ke(r.type,e.dtype);Qe(r.position)!==Qe(e.dposition)&&(r.position=e.dposition),i[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=r,s.ctx=t.ctx,s.chart=t;else{var u=Fe.getScaleConstructor(a);if(!u)return;s=new u({id:o,type:a,options:r,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)})),V.each(i,(function(t,e){t||delete n[e]})),t.scales=n,Fe.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,n=this,r=[],i=n.data.datasets;for(t=0,e=i.length;t<e;t++){var o=i[t],a=n.getDatasetMeta(t),s=o.type||n.config.type;if(a.type&&a.type!==s&&(n.destroyDatasetMeta(t),a=n.getDatasetMeta(t)),a.type=s,a.order=o.order||0,a.index=t,a.controller)a.controller.updateIndex(t),a.controller.linkScales();else{var u=Jt[a.type];if(void 0===u)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new u(n,t),r.push(a.controller)}}return r},resetElements:function(){var t=this;V.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,r,i,a=this;if(t&&"object"===o(t)||(t={duration:t,lazy:arguments[1]}),i=(r=a).options,V.each(r.scales,(function(t){me.removeBox(r,t)})),i=Xe(j.global,j[r.config.type],i),r.options=r.config.options=i,r.ensureScalesHaveIDs(),r.buildOrUpdateScales(),r.tooltip._options=i.tooltips,r.tooltip.initialize(),Ne._invalidate(a),!1!==Ne.notify(a,"beforeUpdate")){a.tooltip._data=a.data;var s=a.buildOrUpdateControllers();for(e=0,n=a.data.datasets.length;e<n;e++)a.getDatasetMeta(e).controller.buildOrUpdateElements();a.updateLayout(),a.options.animation&&a.options.animation.duration&&V.each(s,(function(t){t.reset()})),a.updateDatasets(),a.tooltip.initialize(),a.lastActive=[],Ne.notify(a,"afterUpdate"),a._layers.sort(tn("z","_idx")),a._bufferedRender?a._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:a.render(t)}},updateLayout:function(){var t=this;!1!==Ne.notify(t,"beforeLayout")&&(me.update(this,this.width,this.height),t._layers=[],V.each(t.boxes,(function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())}),t),t._layers.forEach((function(t,e){t._idx=e})),Ne.notify(t,"afterScaleUpdate"),Ne.notify(t,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==Ne.notify(t,"beforeDatasetsUpdate")){for(var e=0,n=t.data.datasets.length;e<n;++e)t.updateDataset(e);Ne.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,n=e.getDatasetMeta(t),r={meta:n,index:t};!1!==Ne.notify(e,"beforeDatasetUpdate",[r])&&(n.controller._update(),Ne.notify(e,"afterDatasetUpdate",[r]))},render:function(t){var e=this;t&&"object"===o(t)||(t={duration:t,lazy:arguments[1]});var n=e.options.animation,r=Ke(t.duration,n&&n.duration),i=t.lazy;if(!1!==Ne.notify(e,"beforeRender")){var a=function(t){Ne.notify(e,"afterRender"),V.callback(n&&n.onComplete,[t],e)};if(n&&r){var s=new Q({numSteps:r/16.66,easing:t.easing||n.easing,render:function(t,e){var n=V.easing.effects[e.easing],r=e.currentStep,i=r/e.numSteps;t.draw(n(i),i,r)},onAnimationProgress:n.onProgress,onAnimationComplete:a});tt.addAnimation(e,s,r,i)}else e.draw(),a(new Q({numSteps:0,chart:e}));return e}},draw:function(t){var e,n,r=this;if(r.clear(),V.isNullOrUndef(t)&&(t=1),r.transition(t),!(r.width<=0||r.height<=0)&&!1!==Ne.notify(r,"beforeDraw",[t])){for(n=r._layers,e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(r.chartArea);for(r.drawDatasets(t);e<n.length;++e)n[e].draw(r.chartArea);r._drawTooltip(t),Ne.notify(r,"afterDraw",[t])}},transition:function(t){for(var e=this,n=0,r=(e.data.datasets||[]).length;n<r;++n)e.isDatasetVisible(n)&&e.getDatasetMeta(n).controller.transition(t);e.tooltip.transition(t)},_getSortedDatasetMetas:function(t){var e,n,r=this,i=[];for(e=0,n=(r.data.datasets||[]).length;e<n;++e)t&&!r.isDatasetVisible(e)||i.push(r.getDatasetMeta(e));return i.sort(tn("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(t){var e,n,r=this;if(!1!==Ne.notify(r,"beforeDatasetsDraw",[t])){for(n=(e=r._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)r.drawDataset(e[n],t);Ne.notify(r,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n={meta:t,index:t.index,easingValue:e};!1!==Ne.notify(this,"beforeDatasetDraw",[n])&&(t.controller.draw(e),Ne.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this,n=e.tooltip,r={tooltip:n,easingValue:t};!1!==Ne.notify(e,"beforeTooltipDraw",[r])&&(n.draw(),Ne.notify(e,"afterTooltipDraw",[r]))},getElementAtEvent:function(t){return oe.modes.single(this,t)},getElementsAtEvent:function(t){return oe.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return oe.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var r=oe.modes[e];return"function"===typeof r?r(this,t,n):[]},getDatasetAtEvent:function(t){return oe.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this,n=e.data.datasets[t];n._meta||(n._meta={});var r=n._meta[e.id];return r||(r=n._meta[e.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n.order||0,index:t}),r},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"===typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],r=n._meta&&n._meta[e];r&&(r.controller.destroy(),delete n._meta[e])},destroy:function(){var t,e,n=this,r=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);r&&(n.unbindEvents(),V.canvas.clear(n),Re.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Ne.notify(n,"destroy"),delete en.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new $e({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var t=this,e=t._listeners={},n=function(){t.eventHandler.apply(t,arguments)};V.each(t.options.events,(function(r){Re.addEventListener(t,r,n),e[r]=n})),t.options.responsive&&(n=function(){t.resize()},Re.addEventListener(t,"resize",n),e.resize=n)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,V.each(e,(function(e,n){Re.removeEventListener(t,n,e)})))},updateHoverStyle:function(t,e,n){var r,i,o,a=n?"set":"remove";for(i=0,o=t.length;i<o;++i)(r=t[i])&&this.getDatasetMeta(r._datasetIndex).controller[a+"HoverStyle"](r);"dataset"===e&&this.getDatasetMeta(t[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==Ne.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var r=e.handleEvent(t);n&&(r=n._start?n.handleEvent(t):r|n.handleEvent(t)),Ne.notify(e,"afterEvent",[t]);var i=e._bufferedRequest;return i?e.render(i):r&&!e.animating&&(e.stop(),e.render({duration:e.options.hover.animationDuration,lazy:!0})),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,r=n.options||{},i=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===t.type?n.active=[]:n.active=n.getElementsAtEventForMode(t,i.mode,i),V.callback(r.onHover||r.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||r.onClick&&r.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,i.mode,!1),n.active.length&&i.mode&&n.updateHoverStyle(n.active,i.mode,!0),e=!V.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),en.instances={};var nn=en;function rn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function on(t){this.options=t||{}}en.Controller=en,en.types={},V.configMerge=Xe,V.scaleMerge=Ze,V.extend(on.prototype,{formats:rn,parse:rn,format:rn,add:rn,diff:rn,startOf:rn,endOf:rn,_create:function(t){return t}}),on.override=function(t){V.extend(on.prototype,t)};var an={_date:on},sn={formatters:{values:function(t){return V.isArray(t)?t:""+t},linear:function(t,e,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var i=V.log10(Math.abs(r)),o="";if(0!==t)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=V.log10(Math.abs(t)),s=Math.floor(a)-Math.floor(i);s=Math.max(Math.min(s,20),0),o=t.toExponential(s)}else{var u=-1*Math.floor(i);u=Math.max(Math.min(u,20),0),o=t.toFixed(u)}else o="0";return o},logarithmic:function(t,e,n){var r=t/Math.pow(10,Math.floor(V.log10(t)));return 0===t?"0":1===r||2===r||5===r||0===e||e===n.length-1?t.toExponential():""}}},un=V.isArray,ln=V.isNullOrUndef,cn=V.valueOrDefault,dn=V.valueAtIndexOrDefault;function hn(t,e,n){var r,i=t.getTicks().length,o=Math.min(e,i-1),a=t.getPixelForTick(o),s=t._startPixel,u=t._endPixel,l=1e-6;if(!(n&&(r=1===i?Math.max(a-s,u-a):0===e?(t.getPixelForTick(1)-a)/2:(a-t.getPixelForTick(o-1))/2,(a+=o<e?r:-r)<s-l||a>u+l)))return a}function fn(t,e,n,r){var i,o,a,s,u,l,c,d,h,f,p,m,g,y=n.length,v=[],_=[],b=[],w=0,k=0;for(i=0;i<y;++i){if(s=n[i].label,u=n[i].major?e.major:e.minor,t.font=l=u.string,c=r[l]=r[l]||{data:{},gc:[]},d=u.lineHeight,h=f=0,ln(s)||un(s)){if(un(s))for(o=0,a=s.length;o<a;++o)p=s[o],ln(p)||un(p)||(h=V.measureText(t,c.data,c.gc,h,p),f+=d)}else h=V.measureText(t,c.data,c.gc,h,s),f=d;v.push(h),_.push(f),b.push(d/2),w=Math.max(h,w),k=Math.max(f,k)}function S(t){return{width:v[t]||0,height:_[t]||0,offset:b[t]||0}}return function(t,e){V.each(t,(function(t){var n,r=t.gc,i=r.length/2;if(i>e){for(n=0;n<i;++n)delete t.data[r[n]];r.splice(0,i)}}))}(r,y),m=v.indexOf(w),g=_.indexOf(k),{first:S(0),last:S(y-1),widest:S(m),highest:S(g)}}function pn(t){return t.drawTicks?t.tickMarkLength:0}function mn(t){var e,n;return t.display?(e=V.options._parseFont(t),n=V.options.toPadding(t.padding),e.lineHeight+n.height):0}function gn(t,e){return V.extend(V.options._parseFont({fontFamily:cn(e.fontFamily,t.fontFamily),fontSize:cn(e.fontSize,t.fontSize),fontStyle:cn(e.fontStyle,t.fontStyle),lineHeight:cn(e.lineHeight,t.lineHeight)}),{color:V.options.resolve([e.fontColor,t.fontColor,j.global.defaultFontColor])})}function yn(t){var e=gn(t,t.minor);return{minor:e,major:t.major.enabled?gn(t,t.major):e}}function vn(t){var e,n,r,i=[];for(n=0,r=t.length;n<r;++n)"undefined"!==typeof(e=t[n])._index&&i.push(e);return i}function _n(t,e,n,r){var i,o,a,s,u=cn(n,0),l=Math.min(cn(r,t.length),t.length),c=0;for(e=Math.ceil(e),r&&(e=(i=r-n)/Math.floor(i/e)),s=u;s<0;)c++,s=Math.round(u+c*e);for(o=Math.max(u,0);o<l;o++)a=t[o],o===s?(a._index=o,c++,s=Math.round(u+c*e)):delete a.label}j._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:sn.formatters.values,minor:{},major:{}}});var bn=X.extend({zeroLineIndex:0,getPadding:function(){var t=this;return{left:t.paddingLeft||0,top:t.paddingTop||0,right:t.paddingRight||0,bottom:t.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){V.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var r,i,o,a,s,u=this,l=u.options.ticks,c=l.sampleSize;if(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=e,u.margins=V.extend({left:0,right:0,top:0,bottom:0},n),u._ticks=null,u.ticks=null,u._labelSizes=null,u._maxLabelLines=0,u.longestLabelWidth=0,u.longestTextCache=u.longestTextCache||{},u._gridLineItems=null,u._labelItems=null,u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),a=u.buildTicks()||[],(!(a=u.afterBuildTicks(a)||a)||!a.length)&&u.ticks)for(a=[],r=0,i=u.ticks.length;r<i;++r)a.push({value:u.ticks[r],major:!1});return u._ticks=a,s=c<a.length,o=u._convertTicksToLabels(s?function(t,e){for(var n=[],r=t.length/e,i=0,o=t.length;i<o;i+=r)n.push(t[Math.floor(i)]);return n}(a,c):a),u._configure(),u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u._ticksToDraw=l.display&&(l.autoSkip||"auto"===l.source)?u._autoSkip(a):a,s&&(o=u._convertTicksToLabels(u._ticksToDraw)),u.ticks=o,u.afterUpdate(),u.minSize},_configure:function(){var t,e,n=this,r=n.options.ticks.reverse;n.isHorizontal()?(t=n.left,e=n.right):(t=n.top,e=n.bottom,r=!r),n._startPixel=t,n._endPixel=e,n._reversePixels=r,n._length=e-t},afterUpdate:function(){V.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){V.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){V.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){V.callback(this.options.beforeDataLimits,[this])},determineDataLimits:V.noop,afterDataLimits:function(){V.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){V.callback(this.options.beforeBuildTicks,[this])},buildTicks:V.noop,afterBuildTicks:function(t){var e=this;return un(t)&&t.length?V.callback(e.options.afterBuildTicks,[e,t]):(e.ticks=V.callback(e.options.afterBuildTicks,[e,e.ticks])||e.ticks,t)},beforeTickToLabelConversion:function(){V.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this,e=t.options.ticks;t.ticks=t.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){V.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){V.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t,e,n,r,i,o,a,s=this,u=s.options,l=u.ticks,c=s.getTicks().length,d=l.minRotation||0,h=l.maxRotation,f=d;!s._isVisible()||!l.display||d>=h||c<=1||!s.isHorizontal()?s.labelRotation=d:(e=(t=s._getLabelSizes()).widest.width,n=t.highest.height-t.highest.offset,r=Math.min(s.maxWidth,s.chart.width-e),e+6>(i=u.offset?s.maxWidth/c:r/(c-1))&&(i=r/(c-(u.offset?.5:1)),o=s.maxHeight-pn(u.gridLines)-l.padding-mn(u.scaleLabel),a=Math.sqrt(e*e+n*n),f=V.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/i,1)),Math.asin(Math.min(o/a,1))-Math.asin(n/a))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){V.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){V.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.chart,r=t.options,i=r.ticks,o=r.scaleLabel,a=r.gridLines,s=t._isVisible(),u="bottom"===r.position,l=t.isHorizontal();if(l?e.width=t.maxWidth:s&&(e.width=pn(a)+mn(o)),l?s&&(e.height=pn(a)+mn(o)):e.height=t.maxHeight,i.display&&s){var c=yn(i),d=t._getLabelSizes(),h=d.first,f=d.last,p=d.widest,m=d.highest,g=.4*c.minor.lineHeight,y=i.padding;if(l){var v=0!==t.labelRotation,_=V.toRadians(t.labelRotation),b=Math.cos(_),w=Math.sin(_),k=w*p.width+b*(m.height-(v?m.offset:0))+(v?0:g);e.height=Math.min(t.maxHeight,e.height+k+y);var S,E,C=t.getPixelForTick(0)-t.left,x=t.right-t.getPixelForTick(t.getTicks().length-1);v?(S=u?b*h.width+w*h.offset:w*(h.height-h.offset),E=u?w*(f.height-f.offset):b*f.width+w*f.offset):(S=h.width/2,E=f.width/2),t.paddingLeft=Math.max((S-C)*t.width/(t.width-C),0)+3,t.paddingRight=Math.max((E-x)*t.width/(t.width-x),0)+3}else{var D=i.mirror?0:p.width+y+g;e.width=Math.min(t.maxWidth,e.width+D),t.paddingTop=h.height/2,t.paddingBottom=f.height/2}}t.handleMargins(),l?(t.width=t._length=n.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=n.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){V.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(ln(t))return NaN;if(("number"===typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,n,r,i=this;for(i.ticks=t.map((function(t){return t.value})),i.beforeTickToLabelConversion(),e=i.convertTicksToLabels(t)||i.ticks,i.afterTickToLabelConversion(),n=0,r=t.length;n<r;++n)t[n].label=e[n];return e},_getLabelSizes:function(){var t=this,e=t._labelSizes;return e||(t._labelSizes=e=fn(t.ctx,yn(t.options.ticks),t.getTicks(),t.longestTextCache),t.longestLabelWidth=e.widest.width),e},_parseValue:function(t){var e,n,r,i;return un(t)?(e=+this.getRightValue(t[0]),n=+this.getRightValue(t[1]),r=Math.min(e,n),i=Math.max(e,n)):(e=void 0,n=t=+this.getRightValue(t),r=t,i=t),{min:r,max:i,start:e,end:n}},_getScaleLabel:function(t){var e=this._parseValue(t);return void 0!==e.start?"["+e.start+", "+e.end+"]":+this.getRightValue(t)},getLabelForIndex:V.noop,getPixelForValue:V.noop,getValueForPixel:V.noop,getPixelForTick:function(t){var e=this,n=e.options.offset,r=e._ticks.length,i=1/Math.max(r-(n?0:1),1);return t<0||t>r-1?null:e.getPixelForDecimal(t*i+(n?i/2:0))},getPixelForDecimal:function(t){var e=this;return e._reversePixels&&(t=1-t),e._startPixel+t*e._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,n=t.max;return t.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0},_autoSkip:function(t){var e,n,r,i,o=this,a=o.options.ticks,s=o._length,u=a.maxTicksLimit||s/o._tickSize()+1,l=a.major.enabled?function(t){var e,n,r=[];for(e=0,n=t.length;e<n;e++)t[e].major&&r.push(e);return r}(t):[],c=l.length,d=l[0],h=l[c-1];if(c>u)return function(t,e,n){var r,i,o=0,a=e[0];for(n=Math.ceil(n),r=0;r<t.length;r++)i=t[r],r===a?(i._index=r,a=e[++o*n]):delete i.label}(t,l,c/u),vn(t);if(r=function(t,e,n,r){var i,o,a,s,u=function(t){var e,n,r=t.length;if(r<2)return!1;for(n=t[0],e=1;e<r;++e)if(t[e]-t[e-1]!==n)return!1;return n}(t),l=(e.length-1)/r;if(!u)return Math.max(l,1);for(a=0,s=(i=V.math._factorize(u)).length-1;a<s;a++)if((o=i[a])>l)return o;return Math.max(l,1)}(l,t,0,u),c>0){for(e=0,n=c-1;e<n;e++)_n(t,r,l[e],l[e+1]);return i=c>1?(h-d)/(c-1):null,_n(t,r,V.isNullOrUndef(i)?0:d-i,d),_n(t,r,h,V.isNullOrUndef(i)?t.length:h+i),vn(t)}return _n(t,r),vn(t)},_tickSize:function(){var t=this,e=t.options.ticks,n=V.toRadians(t.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=t._getLabelSizes(),a=e.autoSkipPadding||0,s=o?o.widest.width+a:0,u=o?o.highest.height+a:0;return t.isHorizontal()?u*r>s*i?s/r:u/i:u*i<s*r?u/r:s/i},_isVisible:function(){var t,e,n,r=this,i=r.chart,o=r.options.display;if("auto"!==o)return!!o;for(t=0,e=i.data.datasets.length;t<e;++t)if(i.isDatasetVisible(t)&&((n=i.getDatasetMeta(t)).xAxisID===r.id||n.yAxisID===r.id))return!0;return!1},_computeGridLineItems:function(t){var e,n,r,i,o,a,s,u,l,c,d,h,f,p,m,g,y,v=this,_=v.chart,b=v.options,w=b.gridLines,k=b.position,S=w.offsetGridLines,E=v.isHorizontal(),C=v._ticksToDraw,x=C.length+(S?1:0),D=pn(w),A=[],T=w.drawBorder?dn(w.lineWidth,0,0):0,M=T/2,L=V._alignPixel,O=function(t){return L(_,t,T)};for("top"===k?(e=O(v.bottom),s=v.bottom-D,l=e-M,d=O(t.top)+M,f=t.bottom):"bottom"===k?(e=O(v.top),d=t.top,f=O(t.bottom)-M,s=e+M,l=v.top+D):"left"===k?(e=O(v.right),a=v.right-D,u=e-M,c=O(t.left)+M,h=t.right):(e=O(v.left),c=t.left,h=O(t.right)-M,a=e+M,u=v.left+D),n=0;n<x;++n)r=C[n]||{},ln(r.label)&&n<C.length||(n===v.zeroLineIndex&&b.offset===S?(p=w.zeroLineWidth,m=w.zeroLineColor,g=w.zeroLineBorderDash||[],y=w.zeroLineBorderDashOffset||0):(p=dn(w.lineWidth,n,1),m=dn(w.color,n,"rgba(0,0,0,0.1)"),g=w.borderDash||[],y=w.borderDashOffset||0),void 0!==(i=hn(v,r._index||n,S))&&(o=L(_,i,p),E?a=u=c=h=o:s=l=d=f=o,A.push({tx1:a,ty1:s,tx2:u,ty2:l,x1:c,y1:d,x2:h,y2:f,width:p,color:m,borderDash:g,borderDashOffset:y})));return A.ticksLength=x,A.borderValue=e,A},_computeLabelItems:function(){var t,e,n,r,i,o,a,s,u,l,c,d,h=this,f=h.options,p=f.ticks,m=f.position,g=p.mirror,y=h.isHorizontal(),v=h._ticksToDraw,_=yn(p),b=p.padding,w=pn(f.gridLines),k=-V.toRadians(h.labelRotation),S=[];for("top"===m?(o=h.bottom-w-b,a=k?"left":"center"):"bottom"===m?(o=h.top+w+b,a=k?"right":"center"):"left"===m?(i=h.right-(g?0:w)-b,a=g?"left":"right"):(i=h.left+(g?0:w)+b,a=g?"right":"left"),t=0,e=v.length;t<e;++t)r=(n=v[t]).label,ln(r)||(s=h.getPixelForTick(n._index||t)+p.labelOffset,l=(u=n.major?_.major:_.minor).lineHeight,c=un(r)?r.length:1,y?(i=s,d="top"===m?((k?1:.5)-c)*l:(k?0:.5)*l):(o=s,d=(1-c)*l/2),S.push({x:i,y:o,rotation:k,label:r,font:u,textOffset:d,textAlign:a}));return S},_drawGrid:function(t){var e=this,n=e.options.gridLines;if(n.display){var r,i,o,a,s,u=e.ctx,l=e.chart,c=V._alignPixel,d=n.drawBorder?dn(n.lineWidth,0,0):0,h=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));for(o=0,a=h.length;o<a;++o)r=(s=h[o]).width,i=s.color,r&&i&&(u.save(),u.lineWidth=r,u.strokeStyle=i,u.setLineDash&&(u.setLineDash(s.borderDash),u.lineDashOffset=s.borderDashOffset),u.beginPath(),n.drawTicks&&(u.moveTo(s.tx1,s.ty1),u.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(u.moveTo(s.x1,s.y1),u.lineTo(s.x2,s.y2)),u.stroke(),u.restore());if(d){var f,p,m,g,y=d,v=dn(n.lineWidth,h.ticksLength-1,1),_=h.borderValue;e.isHorizontal()?(f=c(l,e.left,y)-y/2,p=c(l,e.right,v)+v/2,m=g=_):(m=c(l,e.top,y)-y/2,g=c(l,e.bottom,v)+v/2,f=p=_),u.lineWidth=d,u.strokeStyle=dn(n.color,0),u.beginPath(),u.moveTo(f,m),u.lineTo(p,g),u.stroke()}}},_drawLabels:function(){var t=this;if(t.options.ticks.display){var e,n,r,i,o,a,s,u,l=t.ctx,c=t._labelItems||(t._labelItems=t._computeLabelItems());for(e=0,r=c.length;e<r;++e){if(a=(o=c[e]).font,l.save(),l.translate(o.x,o.y),l.rotate(o.rotation),l.font=a.string,l.fillStyle=a.color,l.textBaseline="middle",l.textAlign=o.textAlign,s=o.label,u=o.textOffset,un(s))for(n=0,i=s.length;n<i;++n)l.fillText(""+s[n],0,u),u+=a.lineHeight;else l.fillText(s,0,u);l.restore()}}},_drawTitle:function(){var t=this,e=t.ctx,n=t.options,r=n.scaleLabel;if(r.display){var i,o,a=cn(r.fontColor,j.global.defaultFontColor),s=V.options._parseFont(r),u=V.options.toPadding(r.padding),l=s.lineHeight/2,c=n.position,d=0;if(t.isHorizontal())i=t.left+t.width/2,o="bottom"===c?t.bottom-l-u.bottom:t.top+l+u.top;else{var h="left"===c;i=h?t.left+l+u.top:t.right-l-u.top,o=t.top+t.height/2,d=h?-.5*Math.PI:.5*Math.PI}e.save(),e.translate(i,o),e.rotate(d),e.textAlign="center",e.textBaseline="middle",e.fillStyle=a,e.font=s.string,e.fillText(r.labelString,0,0),e.restore()}},draw:function(t){var e=this;e._isVisible()&&(e._drawGrid(t),e._drawTitle(),e._drawLabels())},_layers:function(){var t=this,e=t.options,n=e.ticks&&e.ticks.z||0,r=e.gridLines&&e.gridLines.z||0;return t._isVisible()&&n!==r&&t.draw===t._draw?[{z:r,draw:function(){t._drawGrid.apply(t,arguments),t._drawTitle.apply(t,arguments)}},{z:n,draw:function(){t._drawLabels.apply(t,arguments)}}]:[{z:n,draw:function(){t.draw.apply(t,arguments)}}]},_getMatchingVisibleMetas:function(t){var e=this,n=e.isHorizontal();return e.chart._getSortedVisibleDatasetMetas().filter((function(r){return(!t||r.type===t)&&(n?r.xAxisID===e.id:r.yAxisID===e.id)}))}});bn.prototype._draw=bn.prototype.draw;var wn=bn,kn=V.isNullOrUndef,Sn=wn.extend({determineDataLimits:function(){var t,e=this,n=e._getLabels(),r=e.options.ticks,i=r.min,o=r.max,a=0,s=n.length-1;void 0!==i&&(t=n.indexOf(i))>=0&&(a=t),void 0!==o&&(t=n.indexOf(o))>=0&&(s=t),e.minIndex=a,e.maxIndex=s,e.min=n[a],e.max=n[s]},buildTicks:function(){var t=this,e=t._getLabels(),n=t.minIndex,r=t.maxIndex;t.ticks=0===n&&r===e.length-1?e:e.slice(n,r+1)},getLabelForIndex:function(t,e){var n=this,r=n.chart;return r.getDatasetMeta(e).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[e].data[t]):n._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,n=t.ticks;wn.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),n&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(n.length-(e?0:1),1))},getPixelForValue:function(t,e,n){var r,i,o,a=this;return kn(e)||kn(n)||(t=a.chart.data.datasets[n].data[e]),kn(t)||(r=a.isHorizontal()?t.x:t.y),(void 0!==r||void 0!==t&&isNaN(e))&&(i=a._getLabels(),t=V.valueOrDefault(r,t),e=-1!==(o=i.indexOf(t))?o:e,isNaN(e)&&(e=t)),a.getPixelForDecimal((e-a._startValue)/a._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=this,n=Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange);return Math.min(Math.max(n,0),e.ticks.length-1)},getBasePixel:function(){return this.bottom}}),En={position:"bottom"};Sn._defaults=En;var Cn=V.noop,xn=V.isNullOrUndef,Dn=wn.extend({getRightValue:function(t){return"string"===typeof t?+t:wn.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=V.sign(t.min),r=V.sign(t.max);n<0&&r<0?t.max=0:n>0&&r>0&&(t.min=0)}var i=void 0!==e.min||void 0!==e.suggestedMin,o=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!==o&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this,n=e.options.ticks,r=n.stepSize,i=n.maxTicksLimit;return r?t=Math.ceil(e.max/r)-Math.floor(e.min/r)+1:(t=e._computeTickLimit(),i=i||11),i&&(t=Math.min(i,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Cn,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:V.valueOrDefault(e.fixedStepSize,e.stepSize)},i=t.ticks=function(t,e){var n,r,i,o,a=[],s=t.stepSize,u=s||1,l=t.maxTicks-1,c=t.min,d=t.max,h=t.precision,f=e.min,p=e.max,m=V.niceNum((p-f)/l/u)*u;if(m<1e-14&&xn(c)&&xn(d))return[f,p];(o=Math.ceil(p/m)-Math.floor(f/m))>l&&(m=V.niceNum(o*m/l/u)*u),s||xn(h)?n=Math.pow(10,V._decimalPlaces(m)):(n=Math.pow(10,h),m=Math.ceil(m*n)/n),r=Math.floor(f/m)*m,i=Math.ceil(p/m)*m,s&&(!xn(c)&&V.almostWhole(c/m,m/1e3)&&(r=c),!xn(d)&&V.almostWhole(d/m,m/1e3)&&(i=d)),o=(i-r)/m,o=V.almostEquals(o,Math.round(o),m/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,i=Math.round(i*n)/n,a.push(xn(c)?r:c);for(var g=1;g<o;++g)a.push(Math.round((r+g*m)*n)/n);return a.push(xn(d)?i:d),a}(r,t);t.handleDirectionalChanges(),t.max=V.max(i),t.min=V.min(i),e.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),wn.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,n=e.getTicks(),r=e.min,i=e.max;wn.prototype._configure.call(e),e.options.offset&&n.length&&(r-=t=(i-r)/Math.max(n.length-1,1)/2,i+=t),e._startValue=r,e._endValue=i,e._valueRange=i-r}}),An={position:"left",ticks:{callback:sn.formatters.linear}};function Tn(t,e,n,r){var i,o,a=t.options,s=function(t,e,n){var r=[n.type,void 0===e&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===t[r]&&(t[r]={pos:[],neg:[]}),t[r]}(e,a.stacked,n),u=s.pos,l=s.neg,c=r.length;for(i=0;i<c;++i)o=t._parseValue(r[i]),isNaN(o.min)||isNaN(o.max)||n.data[i].hidden||(u[i]=u[i]||0,l[i]=l[i]||0,a.relativePoints?u[i]=100:o.min<0||o.max<0?l[i]+=o.min:u[i]+=o.max)}function Mn(t,e,n){var r,i,o=n.length;for(r=0;r<o;++r)i=t._parseValue(n[r]),isNaN(i.min)||isNaN(i.max)||e.data[r].hidden||(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}var Ln=Dn.extend({determineDataLimits:function(){var t,e,n,r,i=this,o=i.options,a=i.chart.data.datasets,s=i._getMatchingVisibleMetas(),u=o.stacked,l={},c=s.length;if(i.min=Number.POSITIVE_INFINITY,i.max=Number.NEGATIVE_INFINITY,void 0===u)for(t=0;!u&&t<c;++t)u=void 0!==(e=s[t]).stack;for(t=0;t<c;++t)n=a[(e=s[t]).index].data,u?Tn(i,l,e,n):Mn(i,e,n);V.each(l,(function(t){r=t.pos.concat(t.neg),i.min=Math.min(i.min,V.min(r)),i.max=Math.max(i.max,V.max(r))})),i.min=V.isFinite(i.min)&&!isNaN(i.min)?i.min:0,i.max=V.isFinite(i.max)&&!isNaN(i.max)?i.max:1,i.handleTickRangeOptions()},_computeTickLimit:function(){var t,e=this;return e.isHorizontal()?Math.ceil(e.width/40):(t=V.options._parseFont(e.options.ticks),Math.ceil(e.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this;return e.getPixelForDecimal((+e.getRightValue(t)-e._startValue)/e._valueRange)},getValueForPixel:function(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange},getPixelForTick:function(t){var e=this.ticksAsNumbers;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])}}),On=An;Ln._defaults=On;var In=V.valueOrDefault,Pn=V.math.log10,Rn={position:"left",ticks:{callback:sn.formatters.logarithmic}};function Nn(t,e){return V.isFinite(t)&&t>=0?t:e}var Fn=wn.extend({determineDataLimits:function(){var t,e,n,r,i,o,a=this,s=a.options,u=a.chart,l=u.data.datasets,c=a.isHorizontal();function d(t){return c?t.xAxisID===a.id:t.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(t=0;t<l.length;t++)if(e=u.getDatasetMeta(t),u.isDatasetVisible(t)&&d(e)&&void 0!==e.stack){h=!0;break}if(s.stacked||h){var f={};for(t=0;t<l.length;t++){var p=[(e=u.getDatasetMeta(t)).type,void 0===s.stacked&&void 0===e.stack?t:"",e.stack].join(".");if(u.isDatasetVisible(t)&&d(e))for(void 0===f[p]&&(f[p]=[]),i=0,o=(r=l[t].data).length;i<o;i++){var m=f[p];n=a._parseValue(r[i]),isNaN(n.min)||isNaN(n.max)||e.data[i].hidden||n.min<0||n.max<0||(m[i]=m[i]||0,m[i]+=n.max)}}V.each(f,(function(t){if(t.length>0){var e=V.min(t),n=V.max(t);a.min=Math.min(a.min,e),a.max=Math.max(a.max,n)}}))}else for(t=0;t<l.length;t++)if(e=u.getDatasetMeta(t),u.isDatasetVisible(t)&&d(e))for(i=0,o=(r=l[t].data).length;i<o;i++)n=a._parseValue(r[i]),isNaN(n.min)||isNaN(n.max)||e.data[i].hidden||n.min<0||n.max<0||(a.min=Math.min(n.min,a.min),a.max=Math.max(n.max,a.max),0!==n.min&&(a.minNotZero=Math.min(n.min,a.minNotZero)));a.min=V.isFinite(a.min)?a.min:null,a.max=V.isFinite(a.max)?a.max:null,a.minNotZero=V.isFinite(a.minNotZero)?a.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;t.min=Nn(e.min,t.min),t.max=Nn(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(Pn(t.min))-1),t.max=Math.pow(10,Math.floor(Pn(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(Pn(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(Pn(t.min))+1):10),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(Pn(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),r={min:Nn(e.min),max:Nn(e.max)},i=t.ticks=function(t,e){var n,r,i=[],o=In(t.min,Math.pow(10,Math.floor(Pn(e.min)))),a=Math.floor(Pn(e.max)),s=Math.ceil(e.max/Math.pow(10,a));0===o?(n=Math.floor(Pn(e.minNotZero)),r=Math.floor(e.minNotZero/Math.pow(10,n)),i.push(o),o=r*Math.pow(10,n)):(n=Math.floor(Pn(o)),r=Math.floor(o/Math.pow(10,n)));var u=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(o),10===++r&&(r=1,u=++n>=0?1:u),o=Math.round(r*Math.pow(10,n)*u)/u}while(n<a||n===a&&r<s);var l=In(t.max,o);return i.push(l),i}(r,t);t.max=V.max(i),t.min=V.min(i),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),wn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(Pn(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,n=0;wn.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),n=In(t.options.ticks.fontSize,j.global.defaultFontSize)/t._length),t._startValue=Pn(e),t._valueOffset=n,t._valueRange=(Pn(t.max)-Pn(e))/(1-n)},getPixelForValue:function(t){var e=this,n=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(n=(Pn(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(n)},getValueForPixel:function(t){var e=this,n=e.getDecimalForPixel(t);return 0===n&&0===e.min?0:Math.pow(10,e._startValue+(n-e._valueOffset)*e._valueRange)}}),jn=Rn;Fn._defaults=jn;var Bn=V.valueOrDefault,Yn=V.valueAtIndexOrDefault,Hn=V.options.resolve,zn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:sn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Wn(t){var e=t.ticks;return e.display&&t.display?Bn(e.fontSize,j.global.defaultFontSize)+2*e.backdropPaddingY:0}function Vn(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function Un(t){return 0===t||180===t?"center":t<180?"left":"right"}function qn(t,e,n,r){var i,o,a=n.y+r/2;if(V.isArray(e))for(i=0,o=e.length;i<o;++i)t.fillText(e[i],n.x,a),a+=r;else t.fillText(e,n.x,a)}function Gn(t,e,n){90===t||270===t?n.y-=e.h/2:(t>270||t<90)&&(n.y-=e.h)}function $n(t){return V.isNumber(t)?t:0}var Kn=Dn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Wn(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;V.each(e.data.datasets,(function(i,o){if(e.isDatasetVisible(o)){var a=e.getDatasetMeta(o);V.each(i.data,(function(e,i){var o=+t.getRightValue(e);isNaN(o)||a.data[i].hidden||(n=Math.min(o,n),r=Math.max(o,r))}))}})),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=r===Number.NEGATIVE_INFINITY?0:r,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Wn(this.options))},convertTicksToLabels:function(){var t=this;Dn.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map((function(){var e=V.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""}))},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this,e=t.options;e.display&&e.pointLabels.display?function(t){var e,n,r,i=V.options._parseFont(t.options.pointLabels),o={l:0,r:t.width,t:0,b:t.height-t.paddingTop},a={};t.ctx.font=i.string,t._pointLabelSizes=[];var s,u,l,c=t.chart.data.labels.length;for(e=0;e<c;e++){r=t.getPointPosition(e,t.drawingArea+5),s=t.ctx,u=i.lineHeight,l=t.pointLabels[e],n=V.isArray(l)?{w:V.longestText(s,s.font,l),h:l.length*u}:{w:s.measureText(l).width,h:u},t._pointLabelSizes[e]=n;var d=t.getIndexAngle(e),h=V.toDegrees(d)%360,f=Vn(h,r.x,n.w,0,180),p=Vn(h,r.y,n.h,90,270);f.start<o.l&&(o.l=f.start,a.l=d),f.end>o.r&&(o.r=f.end,a.r=d),p.start<o.t&&(o.t=p.start,a.t=d),p.end>o.b&&(o.b=p.end,a.b=d)}t.setReductions(t.drawingArea,o,a)}(t):t.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var r=this,i=e.l/Math.sin(n.l),o=Math.max(e.r-r.width,0)/Math.sin(n.r),a=-e.t/Math.cos(n.t),s=-Math.max(e.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=$n(i),o=$n(o),a=$n(a),s=$n(s),r.drawingArea=Math.min(Math.floor(t-(i+o)/2),Math.floor(t-(a+s)/2)),r.setCenterPoint(i,o,a,s)},setCenterPoint:function(t,e,n,r){var i=this,o=i.width-e-i.drawingArea,a=t+i.drawingArea,s=n+i.drawingArea,u=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+u)/2+i.top+i.paddingTop)},getIndexAngle:function(t){var e=this.chart,n=(t*(360/e.data.labels.length)+((e.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(V.isNullOrUndef(t))return NaN;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this,r=n.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(r)*e+n.xCenter,y:Math.sin(r)*e+n.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this,n=e.min,r=e.max;return e.getPointPositionForValue(t||0,e.beginAtZero?0:n<0&&r<0?r:n>0&&r>0?n:0)},_drawGrid:function(){var t,e,n,r=this,i=r.ctx,o=r.options,a=o.gridLines,s=o.angleLines,u=Bn(s.lineWidth,a.lineWidth),l=Bn(s.color,a.color);if(o.pointLabels.display&&function(t){var e=t.ctx,n=t.options,r=n.pointLabels,i=Wn(n),o=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),a=V.options._parseFont(r);e.save(),e.font=a.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var u=0===s?i/2:0,l=t.getPointPosition(s,o+u+5),c=Yn(r.fontColor,s,j.global.defaultFontColor);e.fillStyle=c;var d=t.getIndexAngle(s),h=V.toDegrees(d);e.textAlign=Un(h),Gn(h,t._pointLabelSizes[s],l),qn(e,t.pointLabels[s],l,a.lineHeight)}e.restore()}(r),a.display&&V.each(r.ticks,(function(t,n){0!==n&&(e=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),function(t,e,n,r){var i,o=t.ctx,a=e.circular,s=t.chart.data.labels.length,u=Yn(e.color,r-1),l=Yn(e.lineWidth,r-1);if((a||s)&&u&&l){if(o.save(),o.strokeStyle=u,o.lineWidth=l,o.setLineDash&&(o.setLineDash(e.borderDash||[]),o.lineDashOffset=e.borderDashOffset||0),o.beginPath(),a)o.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{i=t.getPointPosition(0,n),o.moveTo(i.x,i.y);for(var c=1;c<s;c++)i=t.getPointPosition(c,n),o.lineTo(i.x,i.y)}o.closePath(),o.stroke(),o.restore()}}(r,a,e,n))})),s.display&&u&&l){for(i.save(),i.lineWidth=u,i.strokeStyle=l,i.setLineDash&&(i.setLineDash(Hn([s.borderDash,a.borderDash,[]])),i.lineDashOffset=Hn([s.borderDashOffset,a.borderDashOffset,0])),t=r.chart.data.labels.length-1;t>=0;t--)e=r.getDistanceFromCenterForValue(o.ticks.reverse?r.min:r.max),n=r.getPointPosition(t,e),i.beginPath(),i.moveTo(r.xCenter,r.yCenter),i.lineTo(n.x,n.y),i.stroke();i.restore()}},_drawLabels:function(){var t=this,e=t.ctx,n=t.options.ticks;if(n.display){var r,i,o=t.getIndexAngle(0),a=V.options._parseFont(n),s=Bn(n.fontColor,j.global.defaultFontColor);e.save(),e.font=a.string,e.translate(t.xCenter,t.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",V.each(t.ticks,(function(o,u){(0!==u||n.reverse)&&(r=t.getDistanceFromCenterForValue(t.ticksAsNumbers[u]),n.showLabelBackdrop&&(i=e.measureText(o).width,e.fillStyle=n.backdropColor,e.fillRect(-i/2-n.backdropPaddingX,-r-a.size/2-n.backdropPaddingY,i+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),e.fillStyle=s,e.fillText(o,0,-r))})),e.restore()}},_drawTitle:V.noop}),Zn=zn;Kn._defaults=Zn;var Xn=V._deprecated,Jn=V.options.resolve,Qn=V.valueOrDefault,tr=Number.MIN_SAFE_INTEGER||-9007199254740991,er=Number.MAX_SAFE_INTEGER||9007199254740991,nr={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},rr=Object.keys(nr);function ir(t,e){return t-e}function or(t){return V.valueOrDefault(t.time.min,t.ticks.min)}function ar(t){return V.valueOrDefault(t.time.max,t.ticks.max)}function sr(t,e,n,r){var i=function(t,e,n){for(var r,i,o,a=0,s=t.length-1;a>=0&&a<=s;){if(i=t[(r=a+s>>1)-1]||null,o=t[r],!i)return{lo:null,hi:o};if(o[e]<n)a=r+1;else{if(!(i[e]>n))return{lo:i,hi:o};s=r-1}}return{lo:o,hi:null}}(t,e,n),o=i.lo?i.hi?i.lo:t[t.length-2]:t[0],a=i.lo?i.hi?i.hi:t[t.length-1]:t[1],s=a[e]-o[e],u=s?(n-o[e])/s:0,l=(a[r]-o[r])*u;return o[r]+l}function ur(t,e){var n=t._adapter,r=t.options.time,i=r.parser,o=i||r.format,a=e;return"function"===typeof i&&(a=i(a)),V.isFinite(a)||(a="string"===typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(i||"function"!==typeof o||(a=o(e),V.isFinite(a)||(a=n.parse(a))),a)}function lr(t,e){if(V.isNullOrUndef(e))return null;var n=t.options.time,r=ur(t,t.getRightValue(e));return null===r||n.round&&(r=+t._adapter.startOf(r,n.round)),r}function cr(t,e,n,r){var i,o,a,s=rr.length;for(i=rr.indexOf(t);i<s-1;++i)if(a=(o=nr[rr[i]]).steps?o.steps:er,o.common&&Math.ceil((n-e)/(a*o.size))<=r)return rr[i];return rr[s-1]}function dr(t,e,n){var r,i,o=[],a={},s=e.length;for(r=0;r<s;++r)a[i=e[r]]=r,o.push({value:i,major:!1});return 0!==s&&n?function(t,e,n,r){var i,o,a=t._adapter,s=+a.startOf(e[0].value,r),u=e[e.length-1].value;for(i=s;i<=u;i=+a.add(i,1,r))(o=n[i])>=0&&(e[o].major=!0);return e}(t,o,a,n):o}var hr=wn.extend({initialize:function(){this.mergeTicksOptions(),wn.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,n=e.time||(e.time={}),r=t._adapter=new an._date(e.adapters.date);return Xn("time scale",n.format,"time.format","time.parser"),Xn("time scale",n.min,"time.min","ticks.min"),Xn("time scale",n.max,"time.max","ticks.max"),V.mergeIf(n.displayFormats,r.formats()),wn.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),wn.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,n,r,i,o,a,s=this,u=s.chart,l=s._adapter,c=s.options,d=c.time.unit||"day",h=er,f=tr,p=[],m=[],g=[],y=s._getLabels();for(t=0,n=y.length;t<n;++t)g.push(lr(s,y[t]));for(t=0,n=(u.data.datasets||[]).length;t<n;++t)if(u.isDatasetVisible(t))if(i=u.data.datasets[t].data,V.isObject(i[0]))for(m[t]=[],e=0,r=i.length;e<r;++e)o=lr(s,i[e]),p.push(o),m[t][e]=o;else m[t]=g.slice(0),a||(p=p.concat(g),a=!0);else m[t]=[];g.length&&(h=Math.min(h,g[0]),f=Math.max(f,g[g.length-1])),p.length&&(p=n>1?function(t){var e,n,r,i={},o=[];for(e=0,n=t.length;e<n;++e)i[r=t[e]]||(i[r]=!0,o.push(r));return o}(p).sort(ir):p.sort(ir),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=lr(s,or(c))||h,f=lr(s,ar(c))||f,h=h===er?+l.startOf(Date.now(),d):h,f=f===tr?+l.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:m,labels:g}},buildTicks:function(){var t,e,n,r=this,i=r.min,o=r.max,a=r.options,s=a.ticks,u=a.time,l=r._timestamps,c=[],d=r.getLabelCapacity(i),h=s.source,f=a.distribution;for(l="data"===h||"auto"===h&&"series"===f?l.data:"labels"===h?l.labels:function(t,e,n,r){var i,o=t._adapter,a=t.options,s=a.time,u=s.unit||cr(s.minUnit,e,n,r),l=Jn([s.stepSize,s.unitStepSize,1]),c="week"===u&&s.isoWeekday,d=e,h=[];if(c&&(d=+o.startOf(d,"isoWeek",c)),d=+o.startOf(d,c?"day":u),o.diff(n,e,u)>1e5*l)throw e+" and "+n+" are too far apart with stepSize of "+l+" "+u;for(i=d;i<n;i=+o.add(i,l,u))h.push(i);return i!==n&&"ticks"!==a.bounds||h.push(i),h}(r,i,o,d),"ticks"===a.bounds&&l.length&&(i=l[0],o=l[l.length-1]),i=lr(r,or(a))||i,o=lr(r,ar(a))||o,t=0,e=l.length;t<e;++t)(n=l[t])>=i&&n<=o&&c.push(n);return r.min=i,r.max=o,r._unit=u.unit||(s.autoSkip?cr(u.minUnit,r.min,r.max,d):function(t,e,n,r,i){var o,a;for(o=rr.length-1;o>=rr.indexOf(n);o--)if(a=rr[o],nr[a].common&&t._adapter.diff(i,r,a)>=e-1)return a;return rr[n?rr.indexOf(n):0]}(r,c.length,u.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?function(t){for(var e=rr.indexOf(t)+1,n=rr.length;e<n;++e)if(nr[rr[e]].common)return rr[e]}(r._unit):void 0,r._table=function(t,e,n,r){if("linear"===r||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var i,o,a,s,u,l=[],c=[e];for(i=0,o=t.length;i<o;++i)(s=t[i])>e&&s<n&&c.push(s);for(c.push(n),i=0,o=c.length;i<o;++i)u=c[i+1],a=c[i-1],s=c[i],void 0!==a&&void 0!==u&&Math.round((u+a)/2)===s||l.push({time:s,pos:i/(o-1)});return l}(r._timestamps.data,i,o,f),r._offsets=function(t,e,n,r,i){var o,a,s=0,u=0;return i.offset&&e.length&&(o=sr(t,"time",e[0],"pos"),s=1===e.length?1-o:(sr(t,"time",e[1],"pos")-o)/2,a=sr(t,"time",e[e.length-1],"pos"),u=1===e.length?a:(a-sr(t,"time",e[e.length-2],"pos"))/2),{start:s,end:u,factor:1/(s+1+u)}}(r._table,c,0,0,a),s.reverse&&c.reverse(),dr(r,c,r._majorUnit)},getLabelForIndex:function(t,e){var n=this,r=n._adapter,i=n.chart.data,o=n.options.time,a=i.labels&&t<i.labels.length?i.labels[t]:"",s=i.datasets[e].data[t];return V.isObject(s)&&(a=n.getRightValue(s)),o.tooltipFormat?r.format(ur(n,a),o.tooltipFormat):"string"===typeof a?a:r.format(ur(n,a),o.displayFormats.datetime)},tickFormatFunction:function(t,e,n,r){var i=this,o=i._adapter,a=i.options,s=a.time.displayFormats,u=s[i._unit],l=i._majorUnit,c=s[l],d=n[e],h=a.ticks,f=l&&c&&d&&d.major,p=o.format(t,r||(f?c:u)),m=f?h.major:h.minor,g=Jn([m.callback,m.userCallback,h.callback,h.userCallback]);return g?g(p,e,n):p},convertTicksToLabels:function(t){var e,n,r=[];for(e=0,n=t.length;e<n;++e)r.push(this.tickFormatFunction(t[e].value,e,t));return r},getPixelForOffset:function(t){var e=this,n=e._offsets,r=sr(e._table,"time",t,"pos");return e.getPixelForDecimal((n.start+r)*n.factor)},getPixelForValue:function(t,e,n){var r=this,i=null;if(void 0!==e&&void 0!==n&&(i=r._timestamps.datasets[n][e]),null===i&&(i=lr(r,t)),null!==i)return r.getPixelForOffset(i)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,n=e._offsets,r=e.getDecimalForPixel(t)/n.factor-n.end,i=sr(e._table,"pos",r,"time");return e._adapter._create(i)},_getLabelSize:function(t){var e=this,n=e.options.ticks,r=e.ctx.measureText(t).width,i=V.toRadians(e.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),a=Math.sin(i),s=Qn(n.fontSize,j.global.defaultFontSize);return{w:r*o+s*a,h:r*a+s*o}},getLabelWidth:function(t){return this._getLabelSize(t).w},getLabelCapacity:function(t){var e=this,n=e.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=e.tickFormatFunction(t,0,dr(e,[t],e._majorUnit),i),a=e._getLabelSize(o),s=Math.floor(e.isHorizontal()?e.width/a.w:e.height/a.h);return e.options.offset&&s--,s>0?s:1}}),fr={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};hr._defaults=fr;var pr={category:Sn,linear:Ln,logarithmic:Fn,radialLinear:Kn,time:hr},mr={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};an._date.override("function"===typeof t?{_id:"moment",formats:function(){return mr},parse:function(e,n){return"string"===typeof e&&"string"===typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,r){return t(e).add(n,r).valueOf()},diff:function(e,n,r){return t(e).diff(t(n),r)},startOf:function(e,n,r){return e=t(e),"isoWeek"===n?e.isoWeekday(r).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),j._set("global",{plugins:{filler:{propagate:!0}}});var gr={dataset:function(t){var e=t.fill,n=t.chart,r=n.getDatasetMeta(e),i=r&&n.isDatasetVisible(e)&&r.dataset._children||[],o=i.length||0;return o?function(t,e){return e<o&&i[e]._view||null}:null},boundary:function(t){var e=t.boundary,n=e?e.x:null,r=e?e.y:null;return V.isArray(e)?function(t,n){return e[n]}:function(t){return{x:null===n?t.x:n,y:null===r?t.y:r}}}};function yr(t,e,n){var r,i=t._model||{},o=i.fill;if(void 0===o&&(o=!!i.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=e+r),!(r===e||r<0||r>=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function vr(t){return(t.el._scale||{}).getPointPositionForValue?function(t){var e,n,r,i,o,a=t.el._scale,s=a.options,u=a.chart.data.labels.length,l=t.fill,c=[];if(!u)return null;for(e=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,r=a.getPointPositionForValue(0,e),i=0;i<u;++i)o="start"===l||"end"===l?a.getPointPositionForValue(i,"start"===l?e:n):a.getBasePosition(i),s.gridLines.circular&&(o.cx=r.x,o.cy=r.y,o.angle=a.getIndexAngle(i)-Math.PI/2),c.push(o);return c}(t):function(t){var e,n=t.el._model||{},r=t.el._scale||{},i=t.fill,o=null;if(isFinite(i))return null;if("start"===i?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===i?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePixel&&(o=r.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if(V.isFinite(o))return{x:(e=r.isHorizontal())?o:null,y:e?null:o}}return null}(t)}function _r(t,e,n){var r,i=t[e].fill,o=[e];if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!isFinite(i))return i;if(!(r=t[i]))return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function br(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),gr[n](t))}function wr(t){return t&&!t.skip}function kr(t,e,n,r,i){var o,a,s,u;if(r&&i){for(t.moveTo(e[0].x,e[0].y),o=1;o<r;++o)V.canvas.lineTo(t,e[o-1],e[o]);if(void 0===n[0].angle)for(t.lineTo(n[i-1].x,n[i-1].y),o=i-1;o>0;--o)V.canvas.lineTo(t,n[o],n[o-1],!0);else for(a=n[0].cx,s=n[0].cy,u=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),o=i-1;o>0;--o)t.arc(a,s,u,n[o].angle,n[o-1].angle,!0)}}function Sr(t,e,n,r,i,o){var a,s,u,l,c,d,h,f,p=e.length,m=r.spanGaps,g=[],y=[],v=0,_=0;for(t.beginPath(),a=0,s=p;a<s;++a)c=n(l=e[u=a%p]._view,u,r),d=wr(l),h=wr(c),o&&void 0===f&&d&&(s=p+(f=a+1)),d&&h?(v=g.push(l),_=y.push(c)):v&&_&&(m?(d&&g.push(l),h&&y.push(c)):(kr(t,g,y,v,_),v=_=0,g=[],y=[]));kr(t,g,y,v,_),t.closePath(),t.fillStyle=i,t.fill()}var Er={id:"filler",afterDatasetsUpdate:function(t,e){var n,r,i,o,a=(t.data.datasets||[]).length,s=e.propagate,u=[];for(r=0;r<a;++r)o=null,(i=(n=t.getDatasetMeta(r)).dataset)&&i._model&&i instanceof Et.Line&&(o={visible:t.isDatasetVisible(r),fill:yr(i,r,a),chart:t,el:i}),n.$filler=o,u.push(o);for(r=0;r<a;++r)(o=u[r])&&(o.fill=_r(u,r,s),o.boundary=vr(o),o.mapper=br(o))},beforeDatasetsDraw:function(t){var e,n,r,i,o,a,s,u=t._getSortedVisibleDatasetMetas(),l=t.ctx;for(n=u.length-1;n>=0;--n)(e=u[n].$filler)&&e.visible&&(i=(r=e.el)._view,o=r._children||[],a=e.mapper,s=i.backgroundColor||j.global.defaultColor,a&&s&&o.length&&(V.canvas.clipArea(l,t.chartArea),Sr(l,o,a,i,s,r._loop),V.canvas.unclipArea(l)))}},Cr=V.rtl.getRtlAdapter,xr=V.noop,Dr=V.valueOrDefault;function Ar(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}j._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.options.legend||{},r=n.labels&&n.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(n){var i=n.controller.getStyle(r?0:void 0);return{text:e[n.index].label,fillStyle:i.backgroundColor,hidden:!t.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(t){var e,n,r,i=document.createElement("ul"),o=t.data.datasets;for(i.setAttribute("class",t.id+"-legend"),e=0,n=o.length;e<n;e++)(r=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[e].backgroundColor,o[e].label&&r.appendChild(document.createTextNode(o[e].label));return i.outerHTML}});var Tr=X.extend({initialize:function(t){var e=this;V.extend(e,t),e.legendHitBoxes=[],e._hoveredItem=null,e.doughnutMode=!1},beforeUpdate:xr,update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:xr,beforeSetDimensions:xr,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:xr,beforeBuildLabels:xr,buildLabels:function(){var t=this,e=t.options.labels||{},n=V.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:xr,beforeFit:xr,fit:function(){var t=this,e=t.options,n=e.labels,r=e.display,i=t.ctx,o=V.options._parseFont(n),a=o.size,s=t.legendHitBoxes=[],u=t.minSize,l=t.isHorizontal();if(l?(u.width=t.maxWidth,u.height=r?10:0):(u.width=r?10:0,u.height=t.maxHeight),r){if(i.font=o.string,l){var c=t.lineWidths=[0],d=0;i.textAlign="left",i.textBaseline="middle",V.each(t.legendItems,(function(t,e){var r=Ar(n,a)+a/2+i.measureText(t.text).width;(0===e||c[c.length-1]+r+2*n.padding>u.width)&&(d+=a+n.padding,c[c.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:r,height:a},c[c.length-1]+=r+n.padding})),u.height+=d}else{var h=n.padding,f=t.columnWidths=[],p=t.columnHeights=[],m=n.padding,g=0,y=0;V.each(t.legendItems,(function(t,e){var r=Ar(n,a)+a/2+i.measureText(t.text).width;e>0&&y+a+2*h>u.height&&(m+=g+n.padding,f.push(g),p.push(y),g=0,y=0),g=Math.max(g,r),y+=a+h,s[e]={left:0,top:0,width:r,height:a}})),m+=g,f.push(g),p.push(y),u.width+=m}t.width=u.width,t.height=u.height}else t.width=u.width=t.height=u.height=0},afterFit:xr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,r=j.global,i=r.defaultColor,o=r.elements.line,a=t.height,s=t.columnHeights,u=t.width,l=t.lineWidths;if(e.display){var c,d=Cr(e.rtl,t.left,t.minSize.width),h=t.ctx,f=Dr(n.fontColor,r.defaultFontColor),p=V.options._parseFont(n),m=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var g=Ar(n,m),y=t.legendHitBoxes,v=function(t,r){switch(e.align){case"start":return n.padding;case"end":return t-r;default:return(t-r+n.padding)/2}},_=t.isHorizontal();c=_?{x:t.left+v(u,l[0]),y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+v(a,s[0]),line:0},V.rtl.overrideTextDirection(t.ctx,e.textDirection);var b=m+n.padding;V.each(t.legendItems,(function(e,r){var f=h.measureText(e.text).width,p=g+m/2+f,w=c.x,k=c.y;d.setWidth(t.minSize.width),_?r>0&&w+p+n.padding>t.left+t.minSize.width&&(k=c.y+=b,c.line++,w=c.x=t.left+v(u,l[c.line])):r>0&&k+b>t.top+t.minSize.height&&(w=c.x=w+t.columnWidths[c.line]+n.padding,c.line++,k=c.y=t.top+v(a,s[c.line]));var S=d.x(w);!function(t,e,r){if(!(isNaN(g)||g<=0)){h.save();var a=Dr(r.lineWidth,o.borderWidth);if(h.fillStyle=Dr(r.fillStyle,i),h.lineCap=Dr(r.lineCap,o.borderCapStyle),h.lineDashOffset=Dr(r.lineDashOffset,o.borderDashOffset),h.lineJoin=Dr(r.lineJoin,o.borderJoinStyle),h.lineWidth=a,h.strokeStyle=Dr(r.strokeStyle,i),h.setLineDash&&h.setLineDash(Dr(r.lineDash,o.borderDash)),n&&n.usePointStyle){var s=g*Math.SQRT2/2,u=d.xPlus(t,g/2),l=e+m/2;V.canvas.drawPoint(h,r.pointStyle,s,u,l,r.rotation)}else h.fillRect(d.leftForLtr(t,g),e,g,m),0!==a&&h.strokeRect(d.leftForLtr(t,g),e,g,m);h.restore()}}(S,k,e),y[r].left=d.leftForLtr(S,y[r].width),y[r].top=k,function(t,e,n,r){var i=m/2,o=d.xPlus(t,g+i),a=e+i;h.fillText(n.text,o,a),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(o,a),h.lineTo(d.xPlus(o,r),a),h.stroke())}(S,k,e,f),_?c.x+=p+n.padding:c.y+=b})),V.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var n,r,i,o=this;if(t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom)for(i=o.legendHitBoxes,n=0;n<i.length;++n)if(t>=(r=i[n]).left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(t){var e,n=this,r=n.options,i="mouseup"===t.type?"click":t.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===i?e&&r.onClick&&r.onClick.call(n,t.native,e):(r.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),r.onHover&&e&&r.onHover.call(n,t.native,e))}});function Mr(t,e){var n=new Tr({ctx:t.ctx,options:e,chart:t});me.configure(t,n,e),me.addBox(t,n),t.legend=n}var Lr={id:"legend",_element:Tr,beforeInit:function(t){var e=t.options.legend;e&&Mr(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(V.mergeIf(e,j.global.legend),n?(me.configure(t,n,e),n.options=e):Mr(t,e)):n&&(me.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},Or=V.noop;j._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Ir=X.extend({initialize:function(t){V.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:Or,update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Or,beforeSetDimensions:Or,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:Or,beforeBuildLabels:Or,buildLabels:Or,afterBuildLabels:Or,beforeFit:Or,fit:function(){var t,e=this,n=e.options,r=e.minSize={},i=e.isHorizontal();n.display?(t=(V.isArray(n.text)?n.text.length:1)*V.options._parseFont(n).lineHeight+2*n.padding,e.width=r.width=i?e.maxWidth:t,e.height=r.height=i?t:e.maxHeight):e.width=r.width=e.height=r.height=0},afterFit:Or,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var r,i,o,a=V.options._parseFont(n),s=a.lineHeight,u=s/2+n.padding,l=0,c=t.top,d=t.left,h=t.bottom,f=t.right;e.fillStyle=V.valueOrDefault(n.fontColor,j.global.defaultFontColor),e.font=a.string,t.isHorizontal()?(i=d+(f-d)/2,o=c+u,r=f-d):(i="left"===n.position?d+u:f-u,o=c+(h-c)/2,r=h-c,l=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(i,o),e.rotate(l),e.textAlign="center",e.textBaseline="middle";var p=n.text;if(V.isArray(p))for(var m=0,g=0;g<p.length;++g)e.fillText(p[g],0,m,r),m+=s;else e.fillText(p,0,0,r);e.restore()}}});function Pr(t,e){var n=new Ir({ctx:t.ctx,options:e,chart:t});me.configure(t,n,e),me.addBox(t,n),t.titleBlock=n}var Rr={},Nr=Er,Fr=Lr,jr={id:"title",_element:Ir,beforeInit:function(t){var e=t.options.title;e&&Pr(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(V.mergeIf(e,j.global.title),n?(me.configure(t,n,e),n.options=e):Pr(t,e)):n&&(me.removeBox(t,n),delete t.titleBlock)}};for(var Br in Rr.filler=Nr,Rr.legend=Fr,Rr.title=jr,nn.helpers=V,function(){function t(t,e,n){var r;return"string"===typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}function e(t){return void 0!==t&&null!==t&&"none"!==t}function n(n,r,i){var o=document.defaultView,a=V._getParentNode(n),s=o.getComputedStyle(n)[r],u=o.getComputedStyle(a)[r],l=e(s),c=e(u),d=Number.POSITIVE_INFINITY;return l||c?Math.min(l?t(s,n,i):d,c?t(u,a,i):d):"none"}V.where=function(t,e){if(V.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return V.each(t,(function(t){e(t)&&n.push(t)})),n},V.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var r=0,i=t.length;r<i;++r)if(e.call(n,t[r],r,t))return r;return-1},V.findNextWhere=function(t,e,n){V.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<t.length;r++){var i=t[r];if(e(i))return i}},V.findPreviousWhere=function(t,e,n){V.isNullOrUndef(n)&&(n=t.length);for(var r=n-1;r>=0;r--){var i=t[r];if(e(i))return i}},V.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},V.almostEquals=function(t,e,n){return Math.abs(t-e)<n},V.almostWhole=function(t,e){var n=Math.round(t);return n-e<=t&&n+e>=t},V.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},V.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},V.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1},V.toRadians=function(t){return t*(Math.PI/180)},V.toDegrees=function(t){return t*(180/Math.PI)},V._decimalPlaces=function(t){if(V.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},V.getAngleFromPoint=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},V.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},V.aliasPixel=function(t){return t%2===0?0:.5},V._alignPixel=function(t,e,n){var r=t.currentDevicePixelRatio,i=n/2;return Math.round((e-i)*r)/r+i},V.splineCurve=function(t,e,n,r){var i=t.skip?e:t,o=e,a=n.skip?e:n,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),u=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),l=s/(s+u),c=u/(s+u),d=r*(l=isNaN(l)?0:l),h=r*(c=isNaN(c)?0:c);return{previous:{x:o.x-d*(a.x-i.x),y:o.y-d*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}},V.EPSILON=Number.EPSILON||1e-14,V.splineCurveMonotone=function(t){var e,n,r,i,o,a,s,u,l,c=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),d=c.length;for(e=0;e<d;++e)if(!(r=c[e]).model.skip){if(n=e>0?c[e-1]:null,(i=e<d-1?c[e+1]:null)&&!i.model.skip){var h=i.model.x-r.model.x;r.deltaK=0!==h?(i.model.y-r.model.y)/h:0}!n||n.model.skip?r.mK=r.deltaK:!i||i.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(e=0;e<d-1;++e)r=c[e],i=c[e+1],r.model.skip||i.model.skip||(V.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=i.mK=0:(o=r.mK/r.deltaK,a=i.mK/r.deltaK,(u=Math.pow(o,2)+Math.pow(a,2))<=9||(s=3/Math.sqrt(u),r.mK=o*s*r.deltaK,i.mK=a*s*r.deltaK)));for(e=0;e<d;++e)(r=c[e]).model.skip||(n=e>0?c[e-1]:null,i=e<d-1?c[e+1]:null,n&&!n.model.skip&&(l=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-l,r.model.controlPointPreviousY=r.model.y-l*r.mK),i&&!i.model.skip&&(l=(i.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+l,r.model.controlPointNextY=r.model.y+l*r.mK))},V.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},V.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},V.niceNum=function(t,e){var n=Math.floor(V.log10(t)),r=t/Math.pow(10,n);return(e?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},V.requestAnimFrame="undefined"===typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},V.getRelativePosition=function(t,e){var n,r,i=t.originalEvent||t,o=t.target||t.srcElement,a=o.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var u=parseFloat(V.getStyle(o,"padding-left")),l=parseFloat(V.getStyle(o,"padding-top")),c=parseFloat(V.getStyle(o,"padding-right")),d=parseFloat(V.getStyle(o,"padding-bottom")),h=a.right-a.left-u-c,f=a.bottom-a.top-l-d;return{x:n=Math.round((n-a.left-u)/h*o.width/e.currentDevicePixelRatio),y:r=Math.round((r-a.top-l)/f*o.height/e.currentDevicePixelRatio)}},V.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},V.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},V._calculatePadding=function(t,e,n){return(e=V.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},V._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},V.getMaximumWidth=function(t){var e=V._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,r=n-V._calculatePadding(e,"padding-left",n)-V._calculatePadding(e,"padding-right",n),i=V.getConstraintWidth(t);return isNaN(i)?r:Math.min(r,i)},V.getMaximumHeight=function(t){var e=V._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,r=n-V._calculatePadding(e,"padding-top",n)-V._calculatePadding(e,"padding-bottom",n),i=V.getConstraintHeight(t);return isNaN(i)?r:Math.min(r,i)},V.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},V.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==n){var r=t.canvas,i=t.height,o=t.width;r.height=i*n,r.width=o*n,t.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=o+"px")}},V.fontString=function(t,e,n){return e+" "+t+"px "+n},V.longestText=function(t,e,n,r){var i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.font=e;var a,s,u,l,c,d=0,h=n.length;for(a=0;a<h;a++)if(void 0!==(l=n[a])&&null!==l&&!0!==V.isArray(l))d=V.measureText(t,i,o,d,l);else if(V.isArray(l))for(s=0,u=l.length;s<u;s++)void 0===(c=l[s])||null===c||V.isArray(c)||(d=V.measureText(t,i,o,d,c));var f=o.length/2;if(f>n.length){for(a=0;a<f;a++)delete i[o[a]];o.splice(0,f)}return d},V.measureText=function(t,e,n,r,i){var o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r},V.numberOfLabelLines=function(t){var e=1;return V.each(t,(function(t){V.isArray(t)&&t.length>e&&(e=t.length)})),e},V.color=k?function(t){return t instanceof CanvasGradient&&(t=j.global.defaultColor),k(t)}:function(t){return console.error("Color.js not found!"),t},V.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:V.color(t).saturate(.5).darken(.1).rgbString()}}(),nn._adapters=an,nn.Animation=Q,nn.animationService=tt,nn.controllers=Jt,nn.DatasetController=ot,nn.defaults=j,nn.Element=X,nn.elements=Et,nn.Interaction=oe,nn.layouts=me,nn.platform=Re,nn.plugins=Ne,nn.Scale=wn,nn.scaleService=Fe,nn.Ticks=sn,nn.Tooltip=$e,nn.helpers.each(pr,(function(t,e){nn.scaleService.registerScaleType(e,t,t._defaults)})),Rr)Rr.hasOwnProperty(Br)&&nn.plugins.register(Rr[Br]);nn.platform.initialize();var Yr=nn;return"undefined"!==typeof window&&(window.Chart=nn),nn.Chart=nn,nn.Legend=Rr.legend._element,nn.Title=Rr.title._element,nn.pluginService=nn.plugins,nn.PluginBase=nn.Element.extend({}),nn.canvasHelpers=nn.helpers.canvas,nn.layoutService=nn.layouts,nn.LinearScaleBase=Dn,nn.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(t){nn[t]=function(e,n){return new nn(e,nn.helpers.merge(n||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}})),Yr},"object"===o(e)&&"undefined"!==typeof t?t.exports=i(function(){try{return n(0)}catch(t){}}()):void 0===(r=function(t){return i(function(){try{return n(0)}catch(t){}}())}.apply(e,[n]))||(t.exports=r)},function(t,e,n){var r={"./af":426,"./af.js":426,"./ar":427,"./ar-dz":428,"./ar-dz.js":428,"./ar-kw":429,"./ar-kw.js":429,"./ar-ly":430,"./ar-ly.js":430,"./ar-ma":431,"./ar-ma.js":431,"./ar-sa":432,"./ar-sa.js":432,"./ar-tn":433,"./ar-tn.js":433,"./ar.js":427,"./az":434,"./az.js":434,"./be":435,"./be.js":435,"./bg":436,"./bg.js":436,"./bm":437,"./bm.js":437,"./bn":438,"./bn-bd":439,"./bn-bd.js":439,"./bn.js":438,"./bo":440,"./bo.js":440,"./br":441,"./br.js":441,"./bs":442,"./bs.js":442,"./ca":443,"./ca.js":443,"./cs":444,"./cs.js":444,"./cv":445,"./cv.js":445,"./cy":446,"./cy.js":446,"./da":447,"./da.js":447,"./de":448,"./de-at":449,"./de-at.js":449,"./de-ch":450,"./de-ch.js":450,"./de.js":448,"./dv":451,"./dv.js":451,"./el":452,"./el.js":452,"./en-au":453,"./en-au.js":453,"./en-ca":454,"./en-ca.js":454,"./en-gb":455,"./en-gb.js":455,"./en-ie":456,"./en-ie.js":456,"./en-il":457,"./en-il.js":457,"./en-in":458,"./en-in.js":458,"./en-nz":459,"./en-nz.js":459,"./en-sg":460,"./en-sg.js":460,"./eo":461,"./eo.js":461,"./es":462,"./es-do":463,"./es-do.js":463,"./es-mx":464,"./es-mx.js":464,"./es-us":465,"./es-us.js":465,"./es.js":462,"./et":466,"./et.js":466,"./eu":467,"./eu.js":467,"./fa":468,"./fa.js":468,"./fi":469,"./fi.js":469,"./fil":470,"./fil.js":470,"./fo":471,"./fo.js":471,"./fr":472,"./fr-ca":473,"./fr-ca.js":473,"./fr-ch":474,"./fr-ch.js":474,"./fr.js":472,"./fy":475,"./fy.js":475,"./ga":476,"./ga.js":476,"./gd":477,"./gd.js":477,"./gl":478,"./gl.js":478,"./gom-deva":479,"./gom-deva.js":479,"./gom-latn":480,"./gom-latn.js":480,"./gu":481,"./gu.js":481,"./he":482,"./he.js":482,"./hi":483,"./hi.js":483,"./hr":484,"./hr.js":484,"./hu":485,"./hu.js":485,"./hy-am":486,"./hy-am.js":486,"./id":487,"./id.js":487,"./is":488,"./is.js":488,"./it":489,"./it-ch":490,"./it-ch.js":490,"./it.js":489,"./ja":491,"./ja.js":491,"./jv":492,"./jv.js":492,"./ka":493,"./ka.js":493,"./kk":494,"./kk.js":494,"./km":495,"./km.js":495,"./kn":496,"./kn.js":496,"./ko":497,"./ko.js":497,"./ku":498,"./ku.js":498,"./ky":499,"./ky.js":499,"./lb":500,"./lb.js":500,"./lo":501,"./lo.js":501,"./lt":502,"./lt.js":502,"./lv":503,"./lv.js":503,"./me":504,"./me.js":504,"./mi":505,"./mi.js":505,"./mk":506,"./mk.js":506,"./ml":507,"./ml.js":507,"./mn":508,"./mn.js":508,"./mr":509,"./mr.js":509,"./ms":510,"./ms-my":511,"./ms-my.js":511,"./ms.js":510,"./mt":512,"./mt.js":512,"./my":513,"./my.js":513,"./nb":514,"./nb.js":514,"./ne":515,"./ne.js":515,"./nl":516,"./nl-be":517,"./nl-be.js":517,"./nl.js":516,"./nn":518,"./nn.js":518,"./oc-lnc":519,"./oc-lnc.js":519,"./pa-in":520,"./pa-in.js":520,"./pl":521,"./pl.js":521,"./pt":522,"./pt-br":523,"./pt-br.js":523,"./pt.js":522,"./ro":524,"./ro.js":524,"./ru":525,"./ru.js":525,"./sd":526,"./sd.js":526,"./se":527,"./se.js":527,"./si":528,"./si.js":528,"./sk":529,"./sk.js":529,"./sl":530,"./sl.js":530,"./sq":531,"./sq.js":531,"./sr":532,"./sr-cyrl":533,"./sr-cyrl.js":533,"./sr.js":532,"./ss":534,"./ss.js":534,"./sv":535,"./sv.js":535,"./sw":536,"./sw.js":536,"./ta":537,"./ta.js":537,"./te":538,"./te.js":538,"./tet":539,"./tet.js":539,"./tg":540,"./tg.js":540,"./th":541,"./th.js":541,"./tk":542,"./tk.js":542,"./tl-ph":543,"./tl-ph.js":543,"./tlh":544,"./tlh.js":544,"./tr":545,"./tr.js":545,"./tzl":546,"./tzl.js":546,"./tzm":547,"./tzm-latn":548,"./tzm-latn.js":548,"./tzm.js":547,"./ug-cn":549,"./ug-cn.js":549,"./uk":550,"./uk.js":550,"./ur":551,"./ur.js":551,"./uz":552,"./uz-latn":553,"./uz-latn.js":553,"./uz.js":552,"./vi":554,"./vi.js":554,"./x-pseudo":555,"./x-pseudo.js":555,"./yo":556,"./yo.js":556,"./zh-cn":557,"./zh-cn.js":557,"./zh-hk":558,"./zh-hk.js":558,"./zh-mo":559,"./zh-mo.js":559,"./zh-tw":560,"./zh-tw.js":560};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=590},function(t,e,n){"use strict";var r={set:function(t,e,n,r){var i="",o="";if(n){var a=new Date;a.setTime(a.getTime()+60*n*1e3),i="; expires="+a.toGMTString()}r&&(o="; domain="+r),document.cookie=t+"="+escape(e)+i+o+"; path=/"},get:function(t){var e,n,r=t+"=",i=document.cookie.split(";");for(e=0;e<i.length;e++){for(n=i[e];" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(r))return unescape(n.substring(r.length,n.length))}return null}},i={urlPrefix:"",visitsUrl:"/ahoy/visits",eventsUrl:"/ahoy/events",page:null,platform:"Web",useBeacon:!0,startOnReady:!0,trackVisits:!0,cookies:!0,cookieDomain:null,headers:{},visitParams:{},withCredentials:!1,visitDuration:240,visitorDuration:1051200},o=window.ahoy||window.Ahoy||{};o.configure=function(t){for(var e in t)t.hasOwnProperty(e)&&(i[e]=t[e])},o.configure(o);var a,s,u,l,c=window.jQuery||window.Zepto||window.$,d=!1,h=[],f="undefined"!==typeof JSON&&"undefined"!==typeof JSON.stringify,p=[];function m(){return i.urlPrefix+i.eventsUrl}function g(){return(i.useBeacon||i.trackNow)&&(t=i.headers,0===Object.keys(t).length)&&f&&"undefined"!==typeof window.navigator.sendBeacon&&!i.withCredentials;var t}function y(t,e,n){r.set(t,e,n,i.cookieDomain||i.domain)}function v(t){return r.get(t)}function _(t){r.set(t,"",-1)}function b(t){v("ahoy_debug")&&window.console.log(t)}function w(){for(var t;t=h.shift();)t();d=!0}function k(t,e){var n=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return n?n.apply(t,[e])?t:t.parentElement?k(t.parentElement,e):null:(b("Unable to match"),null)}function S(t,e,n){document.addEventListener(t,(function(t){var r=k(t.target,e);r&&n.call(r,t)}))}function E(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}function C(){i.cookies&&f&&y("ahoy_events",JSON.stringify(p),1)}function x(){var t=document.querySelector("meta[name=csrf-token]");return t&&t.content}function D(t){var e=x();e&&t.setRequestHeader("X-CSRF-Token",e)}function A(t,e,n){if(f)if(c&&c.ajax)c.ajax({type:"POST",url:t,data:JSON.stringify(e),contentType:"application/json; charset=utf-8",dataType:"json",beforeSend:D,success:n,headers:i.headers,xhrFields:{withCredentials:i.withCredentials}});else{var r=new XMLHttpRequest;for(var o in r.open("POST",t,!0),r.withCredentials=i.withCredentials,r.setRequestHeader("Content-Type","application/json"),i.headers)i.headers.hasOwnProperty(o)&&r.setRequestHeader(o,i.headers[o]);r.onload=function(){200===r.status&&n()},D(r),r.send(JSON.stringify(e))}}function T(t){var e={events:[t]};return i.cookies&&(e.visit_token=t.visit_token,e.visitor_token=t.visitor_token),delete t.visit_token,delete t.visitor_token,e}function M(t){o.ready((function(){A(m(),T(t),(function(){for(var e=0;e<p.length;e++)if(p[e].id==t.id){p.splice(e,1);break}C()}))}))}function L(t){o.ready((function(){var e,n=T(t),r=(e=document.querySelector("meta[name=csrf-param]"))&&e.content,i=x();r&&i&&(n[r]=i),n.events_json=JSON.stringify(n.events),delete n.events,window.navigator.sendBeacon(m(),function(t){var e=new FormData;for(var n in t)t.hasOwnProperty(n)&&e.append(n,t[n]);return e}(n))}))}function O(){return i.page||window.location.pathname}function I(t){return t&&t.length>0?t:null}function P(){return function(t){for(var e in t)t.hasOwnProperty(e)&&null===t[e]&&delete t[e];return t}({tag:this.tagName.toLowerCase(),id:I(this.id),class:I(this.className),page:O(),section:R(this)})}function R(t){for(;t&&t!==document;t=t.parentNode)if(t.hasAttribute("data-section"))return t.getAttribute("data-section");return null}function N(){if(d=!1,a=o.getVisitId(),s=o.getVisitorId(),u=v("ahoy_track"),!1===i.cookies||!1===i.trackVisits)b("Visit tracking disabled"),w();else if(a&&s&&!u)b("Active visit"),w();else if(a||y("ahoy_visit",a=E(),i.visitDuration),v("ahoy_visit")){b("Visit started"),s||y("ahoy_visitor",s=E(),i.visitorDuration);var t={visit_token:a,visitor_token:s,platform:i.platform,landing_page:window.location.href,screen_width:window.screen.width,screen_height:window.screen.height,js:!0};for(var e in document.referrer.length>0&&(t.referrer=document.referrer),i.visitParams)i.visitParams.hasOwnProperty(e)&&(t[e]=i.visitParams[e]);b(t),A(i.urlPrefix+i.visitsUrl,t,(function(){_("ahoy_track"),w()}))}else b("Cookies disabled"),w()}o.ready=function(t){d?t():h.push(t)},o.getVisitId=o.getVisitToken=function(){return v("ahoy_visit")},o.getVisitorId=o.getVisitorToken=function(){return v("ahoy_visitor")},o.reset=function(){return _("ahoy_visit"),_("ahoy_visitor"),_("ahoy_events"),_("ahoy_track"),!0},o.debug=function(t){return!1===t?_("ahoy_debug"):y("ahoy_debug","t",525600),!0},o.track=function(t,e){var n={name:t,properties:e||{},time:(new Date).getTime()/1e3,id:E(),js:!0};return o.ready((function(){i.cookies&&!o.getVisitId()&&N(),o.ready((function(){b(n),n.visit_token=o.getVisitId(),n.visitor_token=o.getVisitorId(),g()?L(n):(p.push(n),C(),setTimeout((function(){M(n)}),1e3))}))})),!0},o.trackView=function(t){var e={url:window.location.href,title:document.title,page:O()};if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);o.track("$view",e)},o.trackClicks=function(t){void 0===t&&(b("trackClicks will require a selector in 0.4.0"),t="a, button, input[type=submit]"),S("click",t,(function(t){var e=P.call(this,t);e.text="input"==e.tag?this.value:(this.textContent||this.innerText||this.innerHTML).replace(/[\s\r\n]+/g," ").trim(),e.href=this.href,o.track("$click",e)}))},o.trackSubmits=function(t){void 0===t&&(b("trackSubmits will require a selector in 0.4.0"),t="form"),S("submit",t,(function(t){var e=P.call(this,t);o.track("$submit",e)}))},o.trackChanges=function(t){void 0===t&&(b("trackChanges is deprecated and will be removed in 0.4.0"),t="input, textarea, select"),S("change",t,(function(t){var e=P.call(this,t);o.track("$change",e)}))},o.trackAll=function(){b("trackAll is deprecated and will be removed in 0.4.0"),o.trackView(),o.trackClicks("a, button, input[type=submit]"),o.trackSubmits("form"),o.trackChanges("input, textarea, select")};try{p=JSON.parse(v("ahoy_events")||"[]")}catch(j){}for(var F=0;F<p.length;F++)M(p[F]);o.start=function(){N(),o.start=function(){}},l=function(){i.startOnReady&&o.start()},"interactive"===document.readyState||"complete"===document.readyState?setTimeout(l,0):document.addEventListener("DOMContentLoaded",l)},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";function e(t){var e,n,r,i;for(n=1,r=arguments.length;n<r;n++)for(e in i=arguments[n])t[e]=i[e];return t}var n=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function r(t,e){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var r=n.call(arguments,2);return function(){return t.apply(e,r.length?r.concat(n.call(arguments)):arguments)}}var i=0;function o(t){return"_leaflet_id"in t||(t._leaflet_id=++i),t._leaflet_id}function a(t,e,n){var r,i,o,a;return a=function(){r=!1,i&&(o.apply(n,i),i=!1)},o=function(){r?i=arguments:(t.apply(n,arguments),setTimeout(a,e),r=!0)},o}function u(t,e,n){var r=e[1],i=e[0],o=r-i;return t===r&&n?t:((t-i)%o+o)%o+i}function l(){return!1}function c(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return d(t).split(/\s+/)}function f(t,e){for(var r in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),e)t.options[r]=e[r];return t.options}function p(t,e,n){var r=[];for(var i in t)r.push(encodeURIComponent(n?i.toUpperCase():i)+"="+encodeURIComponent(t[i]));return(e&&-1!==e.indexOf("?")?"&":"?")+r.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,n){var r=e[n];if(void 0===r)throw new Error("No value provided for variable "+t);return"function"===typeof r&&(r=r(e)),r}))}var y=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function v(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var _="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var w=0;function k(t){var e=+new Date,n=Math.max(0,16-(e-w));return w=e+n,window.setTimeout(t,n)}var S=window.requestAnimationFrame||b("RequestAnimationFrame")||k,E=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function C(t,e,n){if(!n||S!==k)return S.call(window,r(t,e));t.call(e)}function x(t){t&&E.call(window,t)}var D={__proto__:null,extend:e,create:n,bind:r,get lastId(){return i},stamp:o,throttle:a,wrapNum:u,falseFn:l,formatNum:c,trim:d,splitWords:h,setOptions:f,getParamString:p,template:g,isArray:y,indexOf:v,emptyImageUrl:_,requestFn:S,cancelFn:E,requestAnimFrame:C,cancelAnimFrame:x};function A(){}A.extend=function(t){var r=function(){f(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=r.__super__=this.prototype,o=n(i);for(var a in o.constructor=r,r.prototype=o,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(r[a]=this[a]);return t.statics&&e(r,t.statics),t.includes&&(function(t){if("undefined"!==typeof L&&L&&L.Mixin){t=y(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}(t.includes),e.apply(null,[o].concat(t.includes))),e(o,t),delete o.statics,delete o.includes,o.options&&(o.options=i.options?n(i.options):{},e(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},r},A.include=function(t){var n=this.prototype.options;return e(this.prototype,t),t.options&&(this.prototype.options=n,this.mergeOptions(t.options)),this},A.mergeOptions=function(t){return e(this.prototype.options,t),this},A.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"===typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var T={on:function(t,e,n){if("object"===s(t))for(var r in t)this._on(r,t[r],e);else for(var i=0,o=(t=h(t)).length;i<o;i++)this._on(t[i],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"===s(t))for(var r in t)this._off(r,t[r],e);else{t=h(t);for(var i=1===arguments.length,o=0,a=t.length;o<a;o++)i?this._off(t[o]):this._off(t[o],e,n)}else delete this._events;return this},_on:function(t,e,n,r){if("function"===typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var i={fn:e,ctx:n};r&&(i.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(i)}}else console.warn("wrong listener type: "+s(e))},_off:function(t,e,n){var r,i,o;if(this._events&&(r=this._events[t]))if(1!==arguments.length)if("function"===typeof e){var a=this._listens(t,e,n);if(!1!==a){var u=r[a];this._firingCount&&(u.fn=l,this._events[t]=r=r.slice()),r.splice(a,1)}}else console.warn("wrong listener type: "+s(e));else{if(this._firingCount)for(i=0,o=r.length;i<o;i++)r[i].fn=l;delete this._events[t]}},fire:function(t,n,r){if(!this.listens(t,r))return this;var i=e({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var a=0,s=o.length;a<s;a++){var u=o[a],l=u.fn;u.once&&this.off(t,l,u.ctx),l.call(u.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(t,e,n,r){"string"!==typeof t&&console.warn('"string" type argument expected');var i=e;"function"!==typeof e&&(r=!!e,i=void 0,n=void 0);var o=this._events&&this._events[t];if(o&&o.length&&!1!==this._listens(t,i,n))return!0;if(r)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,n,r))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var r=this._events[t]||[];if(!e)return!!r.length;n===this&&(n=void 0);for(var i=0,o=r.length;i<o;i++)if(r[i].fn===e&&r[i].ctx===n)return i;return!1},once:function(t,e,n){if("object"===s(t))for(var r in t)this._on(r,t[r],e,!0);else for(var i=0,o=(t=h(t)).length;i<o;i++)this._on(t[i],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[o(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[o(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};T.addEventListener=T.on,T.removeEventListener=T.clearAllEventListeners=T.off,T.addOneTimeEventListener=T.once,T.fireEvent=T.fire,T.hasEventListeners=T.listens;var M=A.extend(T);function O(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var I=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function P(t,e,n){return t instanceof O?t:y(t)?new O(t[0],t[1]):void 0===t||null===t?t:"object"===s(t)&&"x"in t&&"y"in t?new O(t.x,t.y):new O(t,e,n)}function R(t,e){if(t)for(var n=e?[t,e]:t,r=0,i=n.length;r<i;r++)this.extend(n[r])}function N(t,e){return!t||t instanceof R?t:new R(t,e)}function F(t,e){if(t)for(var n=e?[t,e]:t,r=0,i=n.length;r<i;r++)this.extend(n[r])}function j(t,e){return t instanceof F?t:new F(t,e)}function B(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function Y(t,e,n){return t instanceof B?t:y(t)&&"object"!==s(t[0])?3===t.length?new B(t[0],t[1],t[2]):2===t.length?new B(t[0],t[1]):null:void 0===t||null===t?t:"object"===s(t)&&"lat"in t?new B(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new B(t,e,n)}O.prototype={clone:function(){return new O(this.x,this.y)},add:function(t){return this.clone()._add(P(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(P(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new O(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new O(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=I(this.x),this.y=I(this.y),this},distanceTo:function(t){var e=(t=P(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=P(t)).x===this.x&&t.y===this.y},contains:function(t){return t=P(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}},R.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof O||"number"===typeof t[0]||"x"in t)e=n=P(t);else if(e=(t=N(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return P((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return P(this.min.x,this.max.y)},getTopRight:function(){return P(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"===typeof t[0]||t instanceof O?P(t):N(t))instanceof R?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>=e.x&&r.x<=n.x,a=i.y>=e.y&&r.y<=n.y;return o&&a},overlaps:function(t){t=N(t);var e=this.min,n=this.max,r=t.min,i=t.max,o=i.x>e.x&&r.x<n.x,a=i.y>e.y&&r.y<n.y;return o&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,r=Math.abs(e.x-n.x)*t,i=Math.abs(e.y-n.y)*t;return N(P(e.x-r,e.y-i),P(n.x+r,n.y+i))},equals:function(t){return!!t&&(t=N(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},F.prototype={extend:function(t){var e,n,r=this._southWest,i=this._northEast;if(t instanceof B)e=t,n=t;else{if(!(t instanceof F))return t?this.extend(Y(t)||j(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return r||i?(r.lat=Math.min(e.lat,r.lat),r.lng=Math.min(e.lng,r.lng),i.lat=Math.max(n.lat,i.lat),i.lng=Math.max(n.lng,i.lng)):(this._southWest=new B(e.lat,e.lng),this._northEast=new B(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,r=Math.abs(e.lat-n.lat)*t,i=Math.abs(e.lng-n.lng)*t;return new F(new B(e.lat-r,e.lng-i),new B(n.lat+r,n.lng+i))},getCenter:function(){return new B((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new B(this.getNorth(),this.getWest())},getSouthEast:function(){return new B(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"===typeof t[0]||t instanceof B||"lat"in t?Y(t):j(t);var e,n,r=this._southWest,i=this._northEast;return t instanceof F?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=r.lat&&n.lat<=i.lat&&e.lng>=r.lng&&n.lng<=i.lng},intersects:function(t){t=j(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>=e.lat&&r.lat<=n.lat,a=i.lng>=e.lng&&r.lng<=n.lng;return o&&a},overlaps:function(t){t=j(t);var e=this._southWest,n=this._northEast,r=t.getSouthWest(),i=t.getNorthEast(),o=i.lat>e.lat&&r.lat<n.lat,a=i.lng>e.lng&&r.lng<n.lng;return o&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=j(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},B.prototype={equals:function(t,e){return!!t&&(t=Y(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,Y(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return j([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new B(this.lat,this.lng,this.alt)}};var H,z={latLngToPoint:function(t,e){var n=this.projection.project(t),r=this.scale(e);return this.transformation._transform(n,r)},pointToLatLng:function(t,e){var n=this.scale(e),r=this.transformation.untransform(t,n);return this.projection.unproject(r)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new R(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?u(t.lng,this.wrapLng,!0):t.lng;return new B(this.wrapLat?u(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),r=e.lat-n.lat,i=e.lng-n.lng;if(0===r&&0===i)return t;var o=t.getSouthWest(),a=t.getNorthEast();return new F(new B(o.lat-r,o.lng-i),new B(a.lat-r,a.lng-i))}},W=e({},z,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,r=t.lat*n,i=e.lat*n,o=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),s=o*o+Math.cos(r)*Math.cos(i)*a*a,u=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*u}}),V=6378137,U={R:V,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,t.lat),-n),i=Math.sin(r*e);return new O(this.R*t.lng*e,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(t){var e=180/Math.PI;return new B((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(H=V*Math.PI,new R([-H,-H],[H,H]))};function q(t,e,n,r){if(y(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=r}function G(t,e,n,r){return new q(t,e,n,r)}q.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new O((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var $=e({},W,{code:"EPSG:3857",projection:U,transformation:function(){var t=.5/(Math.PI*U.R);return G(t,.5,-t,.5)}()}),K=e({},$,{code:"EPSG:900913"});function Z(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function X(t,e){var n,r,i,o,a,s,u="";for(n=0,i=t.length;n<i;n++){for(r=0,o=(a=t[n]).length;r<o;r++)u+=(r?"L":"M")+(s=a[r]).x+" "+s.y;u+=e?Rt.svg?"z":"x":""}return u||"M0 0"}var J,Q=document.documentElement.style,tt="ActiveXObject"in window,et=tt&&!document.addEventListener,nt="msLaunchUri"in navigator&&!("documentMode"in document),rt=Pt("webkit"),it=Pt("android"),ot=Pt("android 2")||Pt("android 3"),at=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),st=it&&Pt("Google")&&at<537&&!("AudioNode"in window),ut=!!window.opera,lt=!nt&&Pt("chrome"),ct=Pt("gecko")&&!rt&&!ut&&!tt,dt=!lt&&Pt("safari"),ht=Pt("phantom"),ft="OTransition"in Q,pt=0===navigator.platform.indexOf("Win"),mt=tt&&"transition"in Q,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot,yt="MozPerspective"in Q,vt=!window.L_DISABLE_3D&&(mt||gt||yt)&&!ft&&!ht,_t="undefined"!==typeof orientation||Pt("mobile"),bt=_t&&rt,wt=_t&&gt,kt=!window.PointerEvent&&window.MSPointerEvent,St=!(!window.PointerEvent&&!kt),Et="ontouchstart"in window||!!window.TouchEvent,Ct=!window.L_NO_TOUCH&&(Et||St),xt=_t&&ut,Dt=_t&&ct,At=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Tt=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",l,e),window.removeEventListener("testPassiveEventSupport",l,e)}catch(n){}return t}(),Mt=!!document.createElement("canvas").getContext,Lt=!(!document.createElementNS||!Z("svg").createSVGRect),Ot=!!Lt&&((J=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(J.firstChild&&J.firstChild.namespaceURI)),It=!Lt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"===s(e.adj)}catch(n){return!1}}();function Pt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Rt={ie:tt,ielt9:et,edge:nt,webkit:rt,android:it,android23:ot,androidStock:st,opera:ut,chrome:lt,gecko:ct,safari:dt,phantom:ht,opera12:ft,win:pt,ie3d:mt,webkit3d:gt,gecko3d:yt,any3d:vt,mobile:_t,mobileWebkit:bt,mobileWebkit3d:wt,msPointer:kt,pointer:St,touch:Ct,touchNative:Et,mobileOpera:xt,mobileGecko:Dt,retina:At,passiveEvents:Tt,canvas:Mt,svg:Lt,vml:It,inlineSvg:Ot,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Nt=Rt.msPointer?"MSPointerDown":"pointerdown",Ft=Rt.msPointer?"MSPointerMove":"pointermove",jt=Rt.msPointer?"MSPointerUp":"pointerup",Bt=Rt.msPointer?"MSPointerCancel":"pointercancel",Yt={touchstart:Nt,touchmove:Ft,touchend:jt,touchcancel:Bt},Ht={touchstart:function(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Be(e),$t(t,e)},touchmove:$t,touchend:$t,touchcancel:$t},zt={},Wt=!1;function Vt(t,e,n){return"touchstart"===e&&(Wt||(document.addEventListener(Nt,Ut,!0),document.addEventListener(Ft,qt,!0),document.addEventListener(jt,Gt,!0),document.addEventListener(Bt,Gt,!0),Wt=!0)),Ht[e]?(n=Ht[e].bind(this,n),t.addEventListener(Yt[e],n,!1),n):(console.warn("wrong event specified:",e),l)}function Ut(t){zt[t.pointerId]=t}function qt(t){zt[t.pointerId]&&(zt[t.pointerId]=t)}function Gt(t){delete zt[t.pointerId]}function $t(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],zt)e.touches.push(zt[n]);e.changedTouches=[e],t(e)}}var Kt,Zt,Xt,Jt,Qt,te=200,ee=ye(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ne=ye(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),re="webkitTransition"===ne||"OTransition"===ne?ne+"End":"transitionend";function ie(t){return"string"===typeof t?document.getElementById(t):t}function oe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var r=document.defaultView.getComputedStyle(t,null);n=r?r[e]:null}return"auto"===n?null:n}function ae(t,e,n){var r=document.createElement(t);return r.className=e||"",n&&n.appendChild(r),r}function se(t){var e=t.parentNode;e&&e.removeChild(t)}function ue(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function le(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function ce(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function de(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=me(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function he(t,e){if(void 0!==t.classList)for(var n=h(e),r=0,i=n.length;r<i;r++)t.classList.add(n[r]);else if(!de(t,e)){var o=me(t);pe(t,(o?o+" ":"")+e)}}function fe(t,e){void 0!==t.classList?t.classList.remove(e):pe(t,d((" "+me(t)+" ").replace(" "+e+" "," ")))}function pe(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function me(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function ge(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&function(t,e){var n=!1,r="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(r)}catch(i){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+r+"(opacity="+e+")"}(t,e)}function ye(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function ve(t,e,n){var r=e||new O(0,0);t.style[ee]=(Rt.ie3d?"translate("+r.x+"px,"+r.y+"px)":"translate3d("+r.x+"px,"+r.y+"px,0)")+(n?" scale("+n+")":"")}function _e(t,e){t._leaflet_pos=e,Rt.any3d?ve(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function be(t){return t._leaflet_pos||new O(0,0)}if("onselectstart"in document)Kt=function(){Te(window,"selectstart",Be)},Zt=function(){Le(window,"selectstart",Be)};else{var we=ye(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Kt=function(){if(we){var t=document.documentElement.style;Xt=t[we],t[we]="none"}},Zt=function(){we&&(document.documentElement.style[we]=Xt,Xt=void 0)}}function ke(){Te(window,"dragstart",Be)}function Se(){Le(window,"dragstart",Be)}function Ee(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Ce(),Jt=t,Qt=t.style.outline,t.style.outline="none",Te(window,"keydown",Ce))}function Ce(){Jt&&(Jt.style.outline=Qt,Jt=void 0,Qt=void 0,Le(window,"keydown",Ce))}function xe(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function De(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ae={__proto__:null,TRANSFORM:ee,TRANSITION:ne,TRANSITION_END:re,get:ie,getStyle:oe,create:ae,remove:se,empty:ue,toFront:le,toBack:ce,hasClass:de,addClass:he,removeClass:fe,setClass:pe,getClass:me,setOpacity:ge,testProp:ye,setTransform:ve,setPosition:_e,getPosition:be,get disableTextSelection(){return Kt},get enableTextSelection(){return Zt},disableImageDrag:ke,enableImageDrag:Se,preventOutline:Ee,restoreOutline:Ce,getSizedParentNode:xe,getScale:De};function Te(t,e,n,r){if(e&&"object"===s(e))for(var i in e)Pe(t,i,e[i],n);else for(var o=0,a=(e=h(e)).length;o<a;o++)Pe(t,e[o],n,r);return this}var Me="_leaflet_events";function Le(t,e,n,r){if(1===arguments.length)Oe(t),delete t[Me];else if(e&&"object"===s(e))for(var i in e)Re(t,i,e[i],n);else if(e=h(e),2===arguments.length)Oe(t,(function(t){return-1!==v(e,t)}));else for(var o=0,a=e.length;o<a;o++)Re(t,e[o],n,r);return this}function Oe(t,e){for(var n in t[Me]){var r=n.split(/\d/)[0];e&&!e(r)||Re(t,r,null,null,n)}}var Ie={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Pe(t,e,n,r){var i=e+o(n)+(r?"_"+o(r):"");if(t[Me]&&t[Me][i])return this;var a=function(e){return n.call(r||t,e||window.event)},s=a;!Rt.touchNative&&Rt.pointer&&0===e.indexOf("touch")?a=Vt(t,e,a):Rt.touch&&"dblclick"===e?a=function(t,e){t.addEventListener("dblclick",e);var n,r=0;function i(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var i=He(t);if(!i.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||i.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var o=Date.now();o-r<=te?2===++n&&e(function(t){var e,n,r={};for(n in t)e=t[n],r[n]=e&&e.bind?e.bind(t):e;return t=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}(t)):n=1,r=o}}}else n=t.detail}return t.addEventListener("click",i),{dblclick:e,simDblclick:i}}(t,a):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Ie[e]||e,a,!!Rt.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,Ue(t,e)&&s(e)},t.addEventListener(Ie[e],a,!1)):t.addEventListener(e,s,!1):t.attachEvent("on"+e,a),t[Me]=t[Me]||{},t[Me][i]=a}function Re(t,e,n,r,i){i=i||e+o(n)+(r?"_"+o(r):"");var a=t[Me]&&t[Me][i];if(!a)return this;!Rt.touchNative&&Rt.pointer&&0===e.indexOf("touch")?function(t,e,n){Yt[e]?t.removeEventListener(Yt[e],n,!1):console.warn("wrong event specified:",e)}(t,e,a):Rt.touch&&"dblclick"===e?function(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}(t,a):"removeEventListener"in t?t.removeEventListener(Ie[e]||e,a,!1):t.detachEvent("on"+e,a),t[Me][i]=null}function Ne(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Fe(t){return Pe(t,"wheel",Ne),this}function je(t){return Te(t,"mousedown touchstart dblclick contextmenu",Ne),t._leaflet_disable_click=!0,this}function Be(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ye(t){return Be(t),Ne(t),this}function He(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function ze(t,e){if(!e)return new O(t.clientX,t.clientY);var n=De(e),r=n.boundingClientRect;return new O((t.clientX-r.left)/n.x-e.clientLeft,(t.clientY-r.top)/n.y-e.clientTop)}var We=Rt.linux&&Rt.chrome?window.devicePixelRatio:Rt.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ve(t){return Rt.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/We:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Ue(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(r){return!1}return n!==t}var qe={__proto__:null,on:Te,off:Le,stopPropagation:Ne,disableScrollPropagation:Fe,disableClickPropagation:je,preventDefault:Be,stop:Ye,getPropagationPath:He,getMousePosition:ze,getWheelDelta:Ve,isExternalTarget:Ue,addListener:Te,removeListener:Le},Ge=M.extend({run:function(t,e,n,r){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=be(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=C(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),_e(this._el,n),this.fire("step")},_complete:function(){x(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),$e=M.extend({options:{crs:$,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=f(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=r(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(Y(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ne&&Rt.any3d&&!Rt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Te(this._proxy,re,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,r){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(Y(t),n,this.options.maxBounds),r=r||{},this._stop(),this._loaded&&!r.reset&&!0!==r&&(void 0!==r.animate&&(r.zoom=e({animate:r.animate},r.zoom),r.pan=e({animate:r.animate,duration:r.duration},r.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,r.zoom):this._tryAnimatedPan(t,r.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n,r.pan&&r.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Rt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Rt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var r=this.getZoomScale(e),i=this.getSize().divideBy(2),o=(t instanceof O?t:this.latLngToContainerPoint(t)).subtract(i).multiplyBy(1-1/r),a=this.containerPointToLatLng(i.add(o));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():j(t);var n=P(e.paddingTopLeft||e.padding||[0,0]),r=P(e.paddingBottomRight||e.padding||[0,0]),i=this.getBoundsZoom(t,!1,n.add(r));if((i="number"===typeof e.maxZoom?Math.min(e.maxZoom,i):i)===1/0)return{center:t.getCenter(),zoom:i};var o=r.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),i),s=this.project(t.getNorthEast(),i);return{center:this.unproject(a.add(s).divideBy(2).add(o),i),zoom:i}},fitBounds:function(t,e){if(!(t=j(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=P(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Ge,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){he(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!Rt.any3d)return this.setView(t,e,n);this._stop();var r=this.project(this.getCenter()),i=this.project(t),o=this.getSize(),a=this._zoom;t=Y(t),e=void 0===e?a:e;var s=Math.max(o.x,o.y),u=s*this.getZoomScale(a,e),l=i.distanceTo(r)||1,c=1.42,d=c*c;function h(t){var e=(u*u-s*s+(t?-1:1)*d*d*l*l)/(2*(t?u:s)*d*l),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function f(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}var m=h(0);function g(t){return s*(p(m)*(f(e=m+c*t)/p(e))-f(m))/d;var e}var y=Date.now(),v=(h(1)-m)/c,_=n.duration?1e3*n.duration:1e3*v*.8;return this._moveStart(!0,n.noMoveStart),function n(){var o=(Date.now()-y)/_,u=function(t){return 1-Math.pow(1-t,1.5)}(o)*v;o<=1?(this._flyToFrame=C(n,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(g(u)/l)),a),this.getScaleZoom(s/function(t){return s*(p(m)/p(m+c*t))}(u),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=j(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,j(t));return n.equals(r)||this.panTo(r,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=P((e=e||{}).paddingTopLeft||e.padding||[0,0]),r=P(e.paddingBottomRight||e.padding||[0,0]),i=this.project(this.getCenter()),o=this.project(t),a=this.getPixelBounds(),s=N([a.min.add(n),a.max.subtract(r)]),u=s.getSize();if(!s.contains(o)){this._enforcingBounds=!0;var l=o.subtract(s.getCenter()),c=s.extend(o).getSize().subtract(u);i.x+=l.x<0?-c.x:c.x,i.y+=l.y<0?-c.y:c.y,this.panTo(this.unproject(i),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),o=n.divideBy(2).round(),a=i.divideBy(2).round(),s=o.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(r(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=r(this._handleGeolocationResponse,this),i=r(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,i,t):navigator.geolocation.getCurrentPosition(n,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new B(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),r=this._locateOptions;if(r.setView){var i=this.getBoundsZoom(n);this.setView(e,r.maxZoom?Math.min(i,r.maxZoom):i)}var o={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"===typeof t.coords[a]&&(o[a]=t.coords[a]);this.fire("locationfound",o)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(e){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),se(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(x(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)se(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=ae("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new F(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=j(t),n=P(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),o=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),u=this.getSize().subtract(n),l=N(this.project(s,r),this.project(a,r)).getSize(),c=Rt.any3d?this.options.zoomSnap:1,d=u.x/l.x,h=u.y/l.y,f=e?Math.max(d,h):Math.min(d,h);return r=this.getScaleZoom(f,r),c&&(r=Math.round(r/(c/100))*(c/100),r=e?Math.ceil(r/c)*c:Math.floor(r/c)*c),Math.max(i,Math.min(o,r))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new O(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new R(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"===typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var r=n.zoom(t*n.scale(e));return isNaN(r)?1/0:r},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(Y(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(P(t),e)},layerPointToLatLng:function(t){var e=P(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(Y(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Y(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(j(t))},distance:function(t,e){return this.options.crs.distance(Y(t),Y(e))},containerPointToLayerPoint:function(t){return P(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return P(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(P(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(t)))},mouseEventToContainerPoint:function(t){return ze(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=ie(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Te(e,"scroll",this._onScroll,this),this._containerId=o(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Rt.any3d,he(t,"leaflet-container"+(Rt.touch?" leaflet-touch":"")+(Rt.retina?" leaflet-retina":"")+(Rt.ielt9?" leaflet-oldie":"")+(Rt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=oe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),_e(this._mapPane,new O(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(he(t.markerPane,"leaflet-zoom-hide"),he(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){_e(this._mapPane,new O(0,0));var r=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var i=this._zoom!==e;this._moveStart(i,n)._move(t,e)._moveEnd(i),this.fire("viewreset"),r&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,r){void 0===e&&(e=this._zoom);var i=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),r?n&&n.pinch&&this.fire("zoom",n):((i||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return x(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){_e(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[o(this._container)]=this;var e=t?Le:Te;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Rt.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){x(this._resizeRequest),this._resizeRequest=C((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,r=[],i="mouseout"===e||"mouseover"===e,a=t.target||t.srcElement,s=!1;a;){if((n=this._targets[o(a)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(i&&!Ue(a,t))break;if(r.push(n),i)break}if(a===this._container)break;a=a.parentNode}return r.length||s||i||!this.listens(e,!0)||(r=[this]),r},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(e))){var n=t.type;"mousedown"===n&&Ee(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,r){if("click"===t.type){var i=e({},t);i.type="preclick",this._fireDOMEvent(i,i.type,r)}var o=this._findEventTargets(t,n);if(r){for(var a=[],s=0;s<r.length;s++)r[s].listens(n,!0)&&a.push(r[s]);o=a.concat(o)}if(o.length){"contextmenu"===n&&Be(t);var u=o[0],l={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=u.getLatLng&&(!u._radius||u._radius<=10);l.containerPoint=c?this.latLngToContainerPoint(u.getLatLng()):this.mouseEventToContainerPoint(t),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=c?u.getLatLng():this.layerPointToLatLng(l.layerPoint)}for(s=0;s<o.length;s++)if(o[s].fire(n,l,!0),l.originalEvent._stopped||!1===o[s].options.bubblingMouseEvents&&-1!==v(this._mouseEvents,n))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return be(this._mapPane)||new O(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(r)},_latLngBoundsToNewLayerBounds:function(t,e,n){var r=this._getNewPixelOrigin(n,e);return N([this.project(t.getSouthWest(),e)._subtract(r),this.project(t.getNorthWest(),e)._subtract(r),this.project(t.getSouthEast(),e)._subtract(r),this.project(t.getNorthEast(),e)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var r=this.project(t,e),i=this.getSize().divideBy(2),o=new R(r.subtract(i),r.add(i)),a=this._getBoundsOffset(o,n,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(r.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),r=new R(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(r,e))},_getBoundsOffset:function(t,e,n){var r=N(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),i=r.min.subtract(t.min),o=r.max.subtract(t.max);return new O(this._rebound(i.x,-o.x),this._rebound(i.y,-o.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),r=Rt.any3d?this.options.zoomSnap:1;return r&&(t=Math.round(t/r)*r),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fe(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n))&&(this.panBy(n,e),!0)},_createAnimProxy:function(){var t=this._proxy=ae("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ee,n=this._proxy.style[e];ve(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){se(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ve(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(e),i=this._getCenterOffset(t)._divideBy(1-1/r);return!(!0!==n.animate&&!this.getSize().contains(i))&&(C((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),!0)},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,he(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(r(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&fe(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}}),Ke=A.extend({options:{position:"topright"},initialize:function(t){f(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),r=t._controlCorners[n];return he(e,"leaflet-control"),-1!==n.indexOf("bottom")?r.insertBefore(e,r.firstChild):r.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(se(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ze=function(t){return new Ke(t)};$e.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=ae("div",e+"control-container",this._container);function r(r,i){var o=e+r+" "+e+i;t[r+i]=ae("div",o,n)}r("top","left"),r("top","right"),r("bottom","left"),r("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)se(this._controlCorners[t]);se(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Xe=Ke.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,r){return n<r?-1:r<n?1:0}},initialize:function(t,e,n){for(var r in f(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[r],r);for(r in e)this._addLayer(e[r],r,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return Ke.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(o(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){he(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(he(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):fe(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return fe(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=ae("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),je(e),Fe(e);var r=this._section=ae("section",t+"-list");n&&(this._map.on("click",this.collapse,this),Te(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var i=this._layersLink=ae("a",t+"-toggle",e);i.href="#",i.title="Layers",i.setAttribute("role","button"),Te(i,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Be(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=ae("div",t+"-base",r),this._separator=ae("div",t+"-separator",r),this._overlaysList=ae("div",t+"-overlays",r),e.appendChild(r)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&o(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(r((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ue(this._baseLayersList),ue(this._overlaysList),this._layerControlInputs=[];var t,e,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),e=e||r.overlay,t=t||!r.overlay,i+=r.overlay?0:1;return this.options.hideSingleBase&&(t=t&&i>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(o(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",r=document.createElement("div");return r.innerHTML=n,r.firstChild},_addItem:function(t){var e,n=document.createElement("label"),r=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=r):e=this._createRadioElement("leaflet-base-layers_"+o(this),r),this._layerControlInputs.push(e),e.layerId=o(t.layer),Te(e,"click",this._onInputClick,this);var i=document.createElement("span");i.innerHTML=" "+t.name;var a=document.createElement("span");return n.appendChild(a),a.appendChild(e),a.appendChild(i),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,r=[],i=[];this._handlingClick=!0;for(var o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.checked?r.push(e):t.checked||i.push(e);for(o=0;o<i.length;o++)this._map.hasLayer(i[o])&&this._map.removeLayer(i[o]);for(o=0;o<r.length;o++)this._map.hasLayer(r[o])||this._map.addLayer(r[o]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,r=this._map.getZoom(),i=n.length-1;i>=0;i--)t=n[i],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&r<e.options.minZoom||void 0!==e.options.maxZoom&&r>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;Te(t,"click",Be),this.expand(),setTimeout((function(){Le(t,"click",Be)}))}}),Je=Ke.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=ae("div",e+" leaflet-bar"),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,r,i){var o=ae("a",n,r);return o.innerHTML=t,o.href="#",o.title=e,o.setAttribute("role","button"),o.setAttribute("aria-label",e),je(o),Te(o,"click",Ye),Te(o,"click",i,this),Te(o,"click",this._refocusOnMap,this),o},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";fe(this._zoomInButton,e),fe(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(he(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(he(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});$e.mergeOptions({zoomControl:!0}),$e.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Je,this.addControl(this.zoomControl))}));var Qe=Ke.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=ae("div",e),r=this.options;return this._addScales(r,e+"-line",n),t.on(r.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=ae("div",e,n)),t.imperial&&(this._iScale=ae("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,r,i=3.2808399*t;i>5280?(e=i/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(r=this._getRoundNum(i),this._updateScale(this._iScale,r+" ft",r/i))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),tn=Ke.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Rt.inlineSvg?'<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> ':"")+"Leaflet</a>"},initialize:function(t){f(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=ae("div","leaflet-control-attribution"),je(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});$e.mergeOptions({attributionControl:!0}),$e.addInitHook((function(){this.options.attributionControl&&(new tn).addTo(this)})),Ke.Layers=Xe,Ke.Zoom=Je,Ke.Scale=Qe,Ke.Attribution=tn,Ze.layers=function(t,e,n){return new Xe(t,e,n)},Ze.zoom=function(t){return new Je(t)},Ze.scale=function(t){return new Qe(t)},Ze.attribution=function(t){return new tn(t)};var en=A.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});en.addTo=function(t,e){return t.addHandler(e,this),this};var nn,rn={Events:T},on=Rt.touch?"touchstart mousedown":"mousedown",an=M.extend({options:{clickTolerance:3},initialize:function(t,e,n,r){f(this,r),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Te(this._dragStartTarget,on,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(an._dragging===this&&this.finishDrag(!0),Le(this._dragStartTarget,on,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!de(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)an._dragging===this&&this.finishDrag();else if(!(an._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches)&&(an._dragging=this,this._preventOutline&&Ee(this._element),ke(),Kt(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,n=xe(this._element);this._startPoint=new O(e.clientX,e.clientY),this._startPos=be(this._element),this._parentScale=De(n);var r="mousedown"===t.type;Te(document,r?"mousemove":"touchmove",this._onMove,this),Te(document,r?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new O(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Be(t),this._moved||(this.fire("dragstart"),this._moved=!0,he(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),he(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),_e(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){fe(document.body,"leaflet-dragging"),this._lastTarget&&(fe(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Le(document,"mousemove touchmove",this._onMove,this),Le(document,"mouseup touchend touchcancel",this._onUp,this),Se(),Zt(),this._moved&&this._moving&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,an._dragging=!1}});function sn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=function(t,e){for(var n=[t[0]],r=1,i=0,o=t.length;r<o;r++)fn(t[r],t[i])>e&&(n.push(t[r]),i=r);return i<o-1&&n.push(t[o-1]),n}(t,n),t=function(t,e){var n=t.length,r=new(("undefined"===typeof Uint8Array?"undefined":s(Uint8Array))!==void 0+""?Uint8Array:Array)(n);r[0]=r[n-1]=1,ln(t,r,e,0,n-1);var i,o=[];for(i=0;i<n;i++)r[i]&&o.push(t[i]);return o}(t,n),t}function un(t,e,n){return Math.sqrt(pn(t,e,n,!0))}function ln(t,e,n,r,i){var o,a,s,u=0;for(a=r+1;a<=i-1;a++)(s=pn(t[a],t[r],t[i],!0))>u&&(o=a,u=s);u>n&&(e[o]=1,ln(t,e,n,r,o),ln(t,e,n,o,i))}function cn(t,e,n,r,i){var o,a,s,u=r?nn:hn(t,n),l=hn(e,n);for(nn=l;;){if(!(u|l))return[t,e];if(u&l)return!1;s=hn(a=dn(t,e,o=u||l,n,i),n),o===u?(t=a,u=s):(e=a,l=s)}}function dn(t,e,n,r,i){var o,a,s=e.x-t.x,u=e.y-t.y,l=r.min,c=r.max;return 8&n?(o=t.x+s*(c.y-t.y)/u,a=c.y):4&n?(o=t.x+s*(l.y-t.y)/u,a=l.y):2&n?(o=c.x,a=t.y+u*(c.x-t.x)/s):1&n&&(o=l.x,a=t.y+u*(l.x-t.x)/s),new O(o,a,i)}function hn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function fn(t,e){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r}function pn(t,e,n,r){var i,o=e.x,a=e.y,s=n.x-o,u=n.y-a,l=s*s+u*u;return l>0&&((i=((t.x-o)*s+(t.y-a)*u)/l)>1?(o=n.x,a=n.y):i>0&&(o+=s*i,a+=u*i)),s=t.x-o,u=t.y-a,r?s*s+u*u:new O(o,a)}function mn(t){return!y(t[0])||"object"!==s(t[0][0])&&"undefined"!==typeof t[0][0]}function gn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),mn(t)}function yn(t,e){var n,r,i,o,a,s,u,l;if(!t||0===t.length)throw new Error("latlngs not passed");mn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=[];for(var d in t)c.push(e.project(Y(t[d])));var h=c.length;for(n=0,r=0;n<h-1;n++)r+=c[n].distanceTo(c[n+1])/2;if(0===r)l=c[0];else for(n=0,o=0;n<h-1;n++)if(a=c[n],s=c[n+1],(o+=i=a.distanceTo(s))>r){u=(o-r)/i,l=[s.x-u*(s.x-a.x),s.y-u*(s.y-a.y)];break}return e.unproject(P(l))}var vn={__proto__:null,simplify:sn,pointToSegmentDistance:un,closestPointOnSegment:function(t,e,n){return pn(t,e,n)},clipSegment:cn,_getEdgeIntersection:dn,_getBitCode:hn,_sqClosestPointOnSegment:pn,isFlat:mn,_flat:gn,polylineCenter:yn};function _n(t,e,n){var r,i,o,a,s,u,l,c,d,h=[1,4,2,8];for(i=0,l=t.length;i<l;i++)t[i]._code=hn(t[i],e);for(a=0;a<4;a++){for(c=h[a],r=[],i=0,o=(l=t.length)-1;i<l;o=i++)s=t[i],u=t[o],s._code&c?u._code&c||((d=dn(u,s,c,e,n))._code=hn(d,e),r.push(d)):(u._code&c&&((d=dn(u,s,c,e,n))._code=hn(d,e),r.push(d)),r.push(s));t=r}return t}function bn(t,e){var n,r,i,o,a,s,u,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");mn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=[];for(var h in t)d.push(e.project(Y(t[h])));var f=d.length;for(s=u=l=0,n=0,r=f-1;n<f;r=n++)i=d[n],o=d[r],a=i.y*o.x-o.y*i.x,u+=(i.x+o.x)*a,l+=(i.y+o.y)*a,s+=3*a;return c=0===s?d[0]:[u/s,l/s],e.unproject(P(c))}var wn={__proto__:null,clipPolygon:_n,polygonCenter:bn},kn={project:function(t){return new O(t.lng,t.lat)},unproject:function(t){return new B(t.y,t.x)},bounds:new R([-180,-90],[180,90])},Sn={R:6378137,R_MINOR:6356752.314245179,bounds:new R([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,r=t.lat*e,i=this.R_MINOR/n,o=Math.sqrt(1-i*i),a=o*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/Math.pow((1-a)/(1+a),o/2);return r=-n*Math.log(Math.max(s,1e-10)),new O(t.lng*e*n,r)},unproject:function(t){for(var e,n=180/Math.PI,r=this.R,i=this.R_MINOR/r,o=Math.sqrt(1-i*i),a=Math.exp(-t.y/r),s=Math.PI/2-2*Math.atan(a),u=0,l=.1;u<15&&Math.abs(l)>1e-7;u++)e=o*Math.sin(s),e=Math.pow((1-e)/(1+e),o/2),s+=l=Math.PI/2-2*Math.atan(a*e)-s;return new B(s*n,t.x*n/r)}},En={__proto__:null,LonLat:kn,Mercator:Sn,SphericalMercator:U},Cn=e({},W,{code:"EPSG:3395",projection:Sn,transformation:function(){var t=.5/(Math.PI*Sn.R);return G(t,.5,-t,.5)}()}),xn=e({},W,{code:"EPSG:4326",projection:kn,transformation:G(1/180,1,-1/180,.5)}),Dn=e({},z,{projection:kn,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,r=e.lat-t.lat;return Math.sqrt(n*n+r*r)},infinite:!0});z.Earth=W,z.EPSG3395=Cn,z.EPSG3857=$,z.EPSG900913=K,z.EPSG4326=xn,z.Simple=Dn;var An=M.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[o(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[o(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});$e.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=o(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=o(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return o(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?y(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[o(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=o(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;t=void 0===i.minZoom?t:Math.min(t,i.minZoom),e=void 0===i.maxZoom?e:Math.max(e,i.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Tn=An.extend({initialize:function(t,e){var n,r;if(f(this,e),this._layers={},t)for(n=0,r=t.length;n<r;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"===typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,r=Array.prototype.slice.call(arguments,1);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,r);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return o(t)}}),Mn=Tn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Tn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Tn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new F;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Ln=A.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){f(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var r=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(r,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(r.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),r},_setIconStyles:function(t,e){var n=this.options,r=n[e+"Size"];"number"===typeof r&&(r=[r,r]);var i=P(r),o=P("shadow"===e&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),o&&(t.style.marginLeft=-o.x+"px",t.style.marginTop=-o.y+"px"),i&&(t.style.width=i.x+"px",t.style.height=i.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Rt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),On=Ln.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!==typeof On.imagePath&&(On.imagePath=this._detectIconPath()),(this.options.imagePath||On.imagePath)+Ln.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var r=e.exec(t);return r&&r[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=ae("div","leaflet-default-icon-path",document.body),e=oe(t,"background-image")||oe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),In=en.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new an(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),he(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&fe(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,o=be(e._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),u=N(a.min._subtract(s).add(i),a.max._subtract(s).subtract(i));if(!u.contains(o)){var l=P((Math.max(u.max.x,o.x)-u.max.x)/(a.max.x-u.max.x)-(Math.min(u.min.x,o.x)-u.min.x)/(a.min.x-u.min.x),(Math.max(u.max.y,o.y)-u.max.y)/(a.max.y-u.max.y)-(Math.min(u.min.y,o.y)-u.min.y)/(a.min.y-u.min.y)).multiplyBy(r);n.panBy(l,{animate:!1}),this._draggable._newPos._add(l),this._draggable._startPos._add(l),_e(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=C(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(x(this._panRequest),this._panRequest=C(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,r=be(e._icon),i=e._map.layerPointToLatLng(r);n&&_e(n,r),e._latlng=i,t.latlng=i,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){x(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Pn=An.extend({options:{icon:new On,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){f(this,e),this._latlng=Y(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=Y(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),he(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Te(n,"focus",this._panOnFocus,this);var i=t.icon.createShadow(this._shadow),o=!1;i!==this._shadow&&(this._removeShadow(),o=!0),i&&(he(i,e),i.alt=""),this._shadow=i,t.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Le(this._icon,"focus",this._panOnFocus,this),se(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&se(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&_e(this._icon,t),this._shadow&&_e(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(he(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),In)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new In(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&ge(this._icon,t),this._shadow&&ge(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?P(e.iconSize):P(0,0),r=e.iconAnchor?P(e.iconAnchor):P(0,0);t.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Rn=An.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return f(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Nn=Rn.extend({options:{fill:!0,radius:10},initialize:function(t,e){f(this,e),this._latlng=Y(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=Y(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Rn.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),r=[t+n,e+n];this._pxBounds=new R(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Fn=Nn.extend({initialize:function(t,n,r){if("number"===typeof n&&(n=e({},r,{radius:n})),f(this,n),this._latlng=Y(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new F(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Rn.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===W.distance){var i=Math.PI/180,o=this._mRadius/W.R/i,a=n.project([e+o,t]),s=n.project([e-o,t]),u=a.add(s).divideBy(2),l=n.unproject(u).lat,c=Math.acos((Math.cos(o*i)-Math.sin(e*i)*Math.sin(l*i))/(Math.cos(e*i)*Math.cos(l*i)))/i;(isNaN(c)||0===c)&&(c=o/Math.cos(Math.PI/180*e)),this._point=u.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:u.x-n.project([l,t-c]).x,this._radiusY=u.y-a.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}}),jn=Rn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){f(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,r=1/0,i=null,o=pn,a=0,s=this._parts.length;a<s;a++)for(var u=this._parts[a],l=1,c=u.length;l<c;l++){var d=o(t,e=u[l-1],n=u[l],!0);d<r&&(r=d,i=o(t,e,n))}return i&&(i.distance=Math.sqrt(r)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return yn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=Y(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new F,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return mn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=mn(t),r=0,i=t.length;r<i;r++)n?(e[r]=Y(t[r]),this._bounds.extend(e[r])):e[r]=this._convertLatLngs(t[r]);return e},_project:function(){var t=new R;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new O(t,t);this._rawPxBounds&&(this._pxBounds=new R([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var r,i,o=t[0]instanceof B,a=t.length;if(o){for(i=[],r=0;r<a;r++)i[r]=this._map.latLngToLayerPoint(t[r]),n.extend(i[r]);e.push(i)}else for(r=0;r<a;r++)this._projectLatlngs(t[r],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,r,i,o,a,s,u=this._parts;for(e=0,r=0,i=this._rings.length;e<i;e++)for(n=0,o=(s=this._rings[e]).length;n<o-1;n++)(a=cn(s[n],s[n+1],t,n,!0))&&(u[r]=u[r]||[],u[r].push(a[0]),a[1]===s[n+1]&&n!==o-2||(u[r].push(a[1]),r++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,r=t.length;n<r;n++)t[n]=sn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,r,i,o,a,s,u=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,o=this._parts.length;n<o;n++)for(r=0,i=(a=(s=this._parts[n]).length)-1;r<a;i=r++)if((e||0!==r)&&un(t,s[i],s[r])<=u)return!0;return!1}});jn._flat=gn;var Bn=jn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return bn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=jn.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof B&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){jn.prototype._setLatLngs.call(this,t),mn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return mn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new O(e,e);if(t=new R(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var r,i=0,o=this._rings.length;i<o;i++)(r=_n(this._rings[i],t,!0)).length&&this._parts.push(r)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,r,i,o,a,s,u,l=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,s=this._parts.length;i<s;i++)for(o=0,a=(u=(e=this._parts[i]).length)-1;o<u;a=o++)n=e[o],r=e[a],n.y>t.y!==r.y>t.y&&t.x<(r.x-n.x)*(t.y-n.y)/(r.y-n.y)+n.x&&(l=!l);return l||jn.prototype._containsPoint.call(this,t,!0)}}),Yn=Mn.extend({initialize:function(t,e){f(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,r,i=y(t)?t:t.features;if(i){for(e=0,n=i.length;e<n;e++)((r=i[e]).geometries||r.geometry||r.features||r.coordinates)&&this.addData(r);return this}var o=this.options;if(o.filter&&!o.filter(t))return this;var a=Hn(t,o);return a?(a.feature=$n(t),a.defaultOptions=a.options,this.resetStyle(a),o.onEachFeature&&o.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"===typeof e&&(e=e(t.feature)),t.setStyle(e))}});function Hn(t,e){var n,r,i,o,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,u=[],l=e&&e.pointToLayer,c=e&&e.coordsToLatLng||Wn;if(!s&&!a)return null;switch(a.type){case"Point":return zn(l,t,n=c(s),e);case"MultiPoint":for(i=0,o=s.length;i<o;i++)n=c(s[i]),u.push(zn(l,t,n,e));return new Mn(u);case"LineString":case"MultiLineString":return r=Vn(s,"LineString"===a.type?0:1,c),new jn(r,e);case"Polygon":case"MultiPolygon":return r=Vn(s,"Polygon"===a.type?1:2,c),new Bn(r,e);case"GeometryCollection":for(i=0,o=a.geometries.length;i<o;i++){var d=Hn({geometry:a.geometries[i],type:"Feature",properties:t.properties},e);d&&u.push(d)}return new Mn(u);case"FeatureCollection":for(i=0,o=a.features.length;i<o;i++){var h=Hn(a.features[i],e);h&&u.push(h)}return new Mn(u);default:throw new Error("Invalid GeoJSON object.")}}function zn(t,e,n,r){return t?t(e,n):new Pn(n,r&&r.markersInheritOptions&&r)}function Wn(t){return new B(t[1],t[0],t[2])}function Vn(t,e,n){for(var r,i=[],o=0,a=t.length;o<a;o++)r=e?Vn(t[o],e-1,n):(n||Wn)(t[o]),i.push(r);return i}function Un(t,e){return void 0!==(t=Y(t)).alt?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function qn(t,e,n,r){for(var i=[],o=0,a=t.length;o<a;o++)i.push(e?qn(t[o],mn(t[o])?0:e-1,n,r):Un(t[o],r));return!e&&n&&i.push(i[0].slice()),i}function Gn(t,n){return t.feature?e({},t.feature,{geometry:n}):$n(n)}function $n(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Kn={toGeoJSON:function(t){return Gn(this,{type:"Point",coordinates:Un(this.getLatLng(),t)})}};function Zn(t,e){return new Yn(t,e)}Pn.include(Kn),Fn.include(Kn),Nn.include(Kn),jn.include({toGeoJSON:function(t){var e=!mn(this._latlngs);return Gn(this,{type:(e?"Multi":"")+"LineString",coordinates:qn(this._latlngs,e?1:0,!1,t)})}}),Bn.include({toGeoJSON:function(t){var e=!mn(this._latlngs),n=e&&!mn(this._latlngs[0]),r=qn(this._latlngs,n?2:e?1:0,!0,t);return e||(r=[r]),Gn(this,{type:(n?"Multi":"")+"Polygon",coordinates:r})}}),Tn.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),Gn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,r=[];return this.eachLayer((function(e){if(e.toGeoJSON){var i=e.toGeoJSON(t);if(n)r.push(i.geometry);else{var o=$n(i);"FeatureCollection"===o.type?r.push.apply(r,o.features):r.push(o)}}})),n?Gn(this,{geometries:r,type:"GeometryCollection"}):{type:"FeatureCollection",features:r}}});var Xn=Zn,Jn=An.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=j(e),f(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(he(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){se(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&le(this._image),this},bringToBack:function(){return this._map&&ce(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=j(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:ae("img");he(e,"leaflet-image-layer"),this._zoomAnimated&&he(e,"leaflet-zoom-animated"),this.options.className&&he(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onload=r(this.fire,this,"load"),e.onerror=r(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ve(this._image,n,e)},_reset:function(){var t=this._image,e=new R(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();_e(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){ge(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Qn=Jn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:ae("video");if(he(e,"leaflet-image-layer"),this._zoomAnimated&&he(e,"leaflet-zoom-animated"),this.options.className&&he(e,this.options.className),e.onselectstart=l,e.onmousemove=l,e.onloadeddata=r(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),i=[],o=0;o<n.length;o++)i.push(n[o].src);this._url=n.length>0?i:[e.src]}else{y(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=ae("source");s.src=this._url[a],e.appendChild(s)}}}}),tr=Jn.extend({_initImage:function(){var t=this._image=this._url;he(t,"leaflet-image-layer"),this._zoomAnimated&&he(t,"leaflet-zoom-animated"),this.options.className&&he(t,this.options.className),t.onselectstart=l,t.onmousemove=l}}),er=An.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof B||y(t))?(this._latlng=Y(t),f(this,e)):(f(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ge(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ge(this._container,1),this.bringToFront(),this.options.interactive&&(he(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(ge(this._container,0),this._removeTimeout=setTimeout(r(se,void 0,this._container),200)):se(this._container),this.options.interactive&&(fe(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=Y(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&le(this._container),this},bringToBack:function(){return this._map&&ce(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Mn){e=null;var n=this._source._layers;for(var r in n)if(n[r]._map){e=n[r];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"===typeof this._content?this._content(this._source||this):this._content;if("string"===typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=P(this.options.offset),n=this._getAnchor();this._zoomAnimated?_e(this._container,t.add(n)):e=e.add(t).add(n);var r=this._containerBottom=-e.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=r+"px",this._container.style.left=i+"px"}},_getAnchor:function(){return[0,0]}});$e.include({_initOverlay:function(t,e,n,r){var i=e;return i instanceof t||(i=new t(r).setContent(e)),n&&i.setLatLng(n),i}}),An.include({_initOverlay:function(t,e,n,r){var i=n;return i instanceof t?(f(i,r),i._source=this):(i=e&&!r?e:new t(r,this)).setContent(n),i}});var nr=er.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,er.prototype.openOn.call(this,t)},onAdd:function(t){er.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Rn||this._source.on("preclick",Ne))},onRemove:function(t){er.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Rn||this._source.off("preclick",Ne))},getEvents:function(){var t=er.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=ae("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ae("div",t+"-content-wrapper",e);if(this._contentNode=ae("div",t+"-content",n),je(e),Fe(this._contentNode),Te(e,"contextmenu",Ne),this._tipContainer=ae("div",t+"-tip-container",e),this._tip=ae("div",t+"-tip",this._tipContainer),this.options.closeButton){var r=this._closeButton=ae("a",t+"-close-button",e);r.setAttribute("role","button"),r.setAttribute("aria-label","Close popup"),r.href="#close",r.innerHTML='<span aria-hidden="true">&#215;</span>',Te(r,"click",(function(t){Be(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var r=t.offsetHeight,i=this.options.maxHeight,o="leaflet-popup-scrolled";i&&r>i?(e.height=i+"px",he(t,o)):fe(t,o),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();_e(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(oe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,r=this._containerWidth,i=new O(this._containerLeft,-n-this._containerBottom);i._add(be(this._container));var o=t.layerPointToContainerPoint(i),a=P(this.options.autoPanPadding),s=P(this.options.autoPanPaddingTopLeft||a),u=P(this.options.autoPanPaddingBottomRight||a),l=t.getSize(),c=0,d=0;o.x+r+u.x>l.x&&(c=o.x+r-l.x+u.x),o.x-c-s.x<0&&(c=o.x-s.x),o.y+n+u.y>l.y&&(d=o.y+n-l.y+u.y),o.y-d-s.y<0&&(d=o.y-s.y),(c||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,d]))}},_getAnchor:function(){return P(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});$e.mergeOptions({closePopupOnClick:!0}),$e.include({openPopup:function(t,e,n){return this._initOverlay(nr,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),An.include({bindPopup:function(t,e){return this._popup=this._initOverlay(nr,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Mn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ye(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof Rn?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var rr=er.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){er.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){er.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=er.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=ae("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,r=this._map,i=this._container,o=r.latLngToContainerPoint(r.getCenter()),a=r.layerPointToContainerPoint(t),s=this.options.direction,u=i.offsetWidth,l=i.offsetHeight,c=P(this.options.offset),d=this._getAnchor();"top"===s?(e=u/2,n=l):"bottom"===s?(e=u/2,n=0):"center"===s?(e=u/2,n=l/2):"right"===s?(e=0,n=l/2):"left"===s?(e=u,n=l/2):a.x<o.x?(s="right",e=0,n=l/2):(s="left",e=u+2*(c.x+d.x),n=l/2),t=t.subtract(P(e,n,!0)).add(c).add(d),fe(i,"leaflet-tooltip-right"),fe(i,"leaflet-tooltip-left"),fe(i,"leaflet-tooltip-top"),fe(i,"leaflet-tooltip-bottom"),he(i,"leaflet-tooltip-"+s),_e(i,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&ge(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return P(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});$e.include({openTooltip:function(t,e,n){return this._initOverlay(rr,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),An.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(rr,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Mn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e=t.getElement();e&&(Te(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),Te(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0))},_moveTooltip:function(t){var e,n,r=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),r=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(r)}});var ir=Ln.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ue(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var r=P(n.bgPos);e.style.backgroundPosition=-r.x+"px "+-r.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});Ln.Default=On;var or=An.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Rt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){f(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),se(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(le(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ce(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof O?t:new O(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,r=-t(-1/0,1/0),i=0,o=n.length;i<o;i++)e=n[i].style.zIndex,n[i]!==this._container&&e&&(r=t(r,+e));isFinite(r)&&(this.options.zIndex=r+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Rt.ielt9){ge(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var o=Math.min(1,(t-i.loaded)/200);ge(i.el,o),o<1?e=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(x(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this))}},_onOpaqueTile:l,_initContainer:function(){this._container||(this._container=ae("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(se(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[t],i=this._map;return r||((r=this._levels[t]={}).el=ae("div","leaflet-tile-container leaflet-zoom-animated",this._container),r.el.style.zIndex=e,r.origin=i.project(i.unproject(i.getPixelOrigin()),t).round(),r.zoom=t,this._setZoomTransform(r,i.getCenter(),i.getZoom()),r.el.offsetWidth,this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var r=e.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)se(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,r){var i=Math.floor(t/2),o=Math.floor(e/2),a=n-1,s=new O(+i,+o);s.z=+a;var u=this._tileCoordsToKey(s),l=this._tiles[u];return l&&l.active?(l.retain=!0,!0):(l&&l.loaded&&(l.retain=!0),a>r&&this._retainParent(i,o,a,r))},_retainChildren:function(t,e,n,r){for(var i=2*t;i<2*t+2;i++)for(var o=2*e;o<2*e+2;o++){var a=new O(i,o);a.z=n+1;var s=this._tileCoordsToKey(a),u=this._tiles[s];u&&u.active?u.retain=!0:(u&&u.loaded&&(u.retain=!0),n+1<r&&this._retainChildren(i,o,n+1,r))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,r){var i=Math.round(e);i=void 0!==this.options.maxZoom&&i>this.options.maxZoom||void 0!==this.options.minZoom&&i<this.options.minZoom?void 0:this._clampZoom(i);var o=this.options.updateWhenZooming&&i!==this._tileZoom;r&&!o||(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==i&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var r=this._map.getZoomScale(n,t.zoom),i=t.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(e,n)).round();Rt.any3d?ve(t.el,i,r):_e(t.el,i)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],r).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],r).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],r).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),r=e.getZoomScale(n,this._tileZoom),i=e.project(t,this._tileZoom).floor(),o=e.getSize().divideBy(2*r);return new R(i.subtract(o),i.add(o))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var r=this._getTiledPixelBounds(t),i=this._pxBoundsToTileRange(r),o=i.getCenter(),a=[],s=this.options.keepBuffer,u=new R(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var l in this._tiles){var c=this._tiles[l].coords;c.z===this._tileZoom&&u.contains(new O(c.x,c.y))||(this._tiles[l].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var d=i.min.y;d<=i.max.y;d++)for(var h=i.min.x;h<=i.max.x;h++){var f=new O(h,d);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:a.push(f)}}if(a.sort((function(t,e){return t.distanceTo(o)-e.distanceTo(o)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<a.length;h++)this._addTile(a[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(t);return j(this.options.bounds).overlaps(r)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),r=t.scaleBy(n),i=r.add(n);return[e.unproject(r,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new F(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new O(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(se(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){he(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onmousemove=l,Rt.ielt9&&this.options.opacity<1&&ge(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),r(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&C(r(this._tileReady,this,t,null,o)),_e(o,n),this._tiles[i]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(ge(n.el,0),x(this._fadeFrame),this._fadeFrame=C(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(he(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Rt.ielt9||!this._map._fadeAnimated?C(this._pruneTiles,this):setTimeout(r(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new O(this._wrapX?u(t.x,this._wrapX):t.x,this._wrapY?u(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new R(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),ar=or.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=f(this,e)).detectRetina&&Rt.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"===typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Te(n,"load",r(this._tileOnLoad,this,e,n)),Te(n,"error",r(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"===typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:Rt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=r),n["-y"]=r}return g(this._url,e(n,this.options))},_tileOnLoad:function(t,e){Rt.ielt9?setTimeout(r(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var r=this.options.errorTileUrl;r&&e.getAttribute("src")!==r&&(e.src=r),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,!e.complete)){e.src=_;var n=this._tiles[t].coords;se(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",_),or.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==_))return or.prototype._tileReady.call(this,t,e,n)}});function sr(t,e){return new ar(t,e)}var ur=ar.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var r=e({},this.defaultWmsParams);for(var i in n)i in this.options||(r[i]=n[i]);var o=(n=f(this,n)).detectRetina&&Rt.retina?2:1,a=this.getTileSize();r.width=a.x*o,r.height=a.y*o,this.wmsParams=r},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ar.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,r=N(n.project(e[0]),n.project(e[1])),i=r.min,o=r.max,a=(this._wmsVersion>=1.3&&this._crs===xn?[i.y,i.x,o.y,o.x]:[i.x,i.y,o.x,o.y]).join(","),s=ar.prototype.getTileUrl.call(this,t);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,n){return e(this.wmsParams,t),n||this.redraw(),this}});ar.WMS=ur,sr.wms=function(t,e){return new ur(t,e)};var lr=An.extend({options:{padding:.1},initialize:function(t){f(this,t),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&he(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,e),o=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(t,e));Rt.any3d?ve(this._container,o,n):_e(this._container,o)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new R(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),cr=lr.extend({options:{tolerance:0},getEvents:function(){var t=lr.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){lr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Te(t,"mousemove",this._onMouseMove,this),Te(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Te(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){x(this._redrawRequest),delete this._ctx,se(this._container),Le(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){lr.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),r=Rt.retina?2:1;_e(e,t.min),e.width=r*n.x,e.height=r*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Rt.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){lr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[o(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,r=e.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete t._order,delete this._layers[o(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"===typeof t.options.dashArray){var e,n,r=t.options.dashArray.split(/[, ]+/),i=[];for(n=0;n<r.length;n++){if(e=Number(r[n]),isNaN(e))return;i.push(e)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||C(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new R,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)t=r.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,r,i,o,a=t._parts,s=a.length,u=this._ctx;if(s){for(u.beginPath(),n=0;n<s;n++){for(r=0,i=a[n].length;r<i;r++)o=a[n][r],u[r?"lineTo":"moveTo"](o.x,o.y);e&&u.closePath()}this._fillStroke(u,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,r=Math.max(Math.round(t._radius),1),i=(Math.max(Math.round(t._radiusY),1)||r)/r;1!==i&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(e.x,e.y/i,r,0,2*Math.PI,!1),1!==i&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,r=this._map.mouseEventToLayerPoint(t),i=this._drawFirst;i;i=i.next)(e=i.layer).options.interactive&&e._containsPoint(r)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(fe(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,i,o=this._drawFirst;o;o=o.next)(n=o.layer).options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(he(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(r((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,r=e.prev;n&&(n.prev=r,r?r.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,r=e.prev;r&&(r.next=n,n?n.prev=r:r&&(this._drawLast=r),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function dr(t){return Rt.canvas?new cr(t):null}var hr=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),fr={_initContainer:function(){this._container=ae("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(lr.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=hr("shape");he(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=hr("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;se(e),t.removeInteractiveTarget(e),delete this._layers[o(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,r=t.options,i=t._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(e||(e=t._stroke=hr("stroke")),i.appendChild(e),e.weight=r.weight+"px",e.color=r.color,e.opacity=r.opacity,r.dashArray?e.dashStyle=y(r.dashArray)?r.dashArray.join(" "):r.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=r.lineCap.replace("butt","flat"),e.joinstyle=r.lineJoin):e&&(i.removeChild(e),t._stroke=null),r.fill?(n||(n=t._fill=hr("fill")),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),r=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+r+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){le(t._container)},_bringToBack:function(t){ce(t._container)}},pr=Rt.vml?hr:Z,mr=lr.extend({_initContainer:function(){this._container=pr("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pr("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){se(this._container),Le(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){lr.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),_e(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=pr("path");t.options.className&&he(e,t.options.className),t.options.interactive&&he(e,"leaflet-interactive"),this._updateStyle(t),this._layers[o(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){se(t._path),t.removeInteractiveTarget(t._path),delete this._layers[o(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,X(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),r="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",i=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+r+2*n+",0 "+r+2*-n+",0 ";this._setPath(t,i)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){le(t._path)},_bringToBack:function(t){ce(t._path)}});function gr(t){return Rt.svg||Rt.vml?new mr(t):null}Rt.vml&&mr.include(fr),$e.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&dr(t)||gr(t)}});var yr=Bn.extend({initialize:function(t,e){Bn.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=j(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});mr.create=pr,mr.pointsToPath=X,Yn.geometryToLayer=Hn,Yn.coordsToLatLng=Wn,Yn.coordsToLatLngs=Vn,Yn.latLngToCoords=Un,Yn.latLngsToCoords=qn,Yn.getFeature=Gn,Yn.asFeature=$n,$e.mergeOptions({boxZoom:!0});var vr=en.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Te(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Le(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){se(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Kt(),ke(),this._startPoint=this._map.mouseEventToContainerPoint(t),Te(document,{contextmenu:Ye,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ae("div","leaflet-zoom-box",this._container),he(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new R(this._point,this._startPoint),n=e.getSize();_e(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(se(this._box),fe(this._container,"leaflet-crosshair")),Zt(),Se(),Le(document,{contextmenu:Ye,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(r(this._resetState,this),0);var e=new F(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});$e.addInitHook("addHandler","boxZoom",vr),$e.mergeOptions({doubleClickZoom:!0});var _r=en.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),r=e.options.zoomDelta,i=t.originalEvent.shiftKey?n-r:n+r;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}});$e.addInitHook("addHandler","doubleClickZoom",_r),$e.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var br=en.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new an(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}he(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){fe(this._map._container,"leaflet-grab"),fe(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=j(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-e+n)%t+e-n,o=(r+e+n)%t-e-n,a=Math.abs(i+n)<Math.abs(o+n)?i:o;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,n=e.options,r=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),r)e.fire("moveend");else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),o=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=i.multiplyBy(a/o),u=s.distanceTo([0,0]),l=Math.min(n.inertiaMaxSpeed,u),c=s.multiplyBy(l/u),d=l/(n.inertiaDeceleration*a),h=c.multiplyBy(-d/2).round();h.x||h.y?(h=e._limitOffset(h,e.options.maxBounds),C((function(){e.panBy(h,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});$e.addInitHook("addHandler","dragging",br),$e.mergeOptions({keyboard:!0,keyboardPanDelta:80});var wr=en.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Te(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Le(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,r=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,r=this._panKeys={},i=this.keyCodes;for(e=0,n=i.left.length;e<n;e++)r[i.left[e]]=[-1*t,0];for(e=0,n=i.right.length;e<n;e++)r[i.right[e]]=[t,0];for(e=0,n=i.down.length;e<n;e++)r[i.down[e]]=[0,t];for(e=0,n=i.up.length;e<n;e++)r[i.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,r=this._zoomKeys={},i=this.keyCodes;for(e=0,n=i.zoomIn.length;e<n;e++)r[i.zoomIn[e]]=t;for(e=0,n=i.zoomOut.length;e<n;e++)r[i.zoomOut[e]]=-t},_addHooks:function(){Te(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Le(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,r=this._map;if(n in this._panKeys){if(!r._panAnim||!r._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=P(e).multiplyBy(3)),r.options.maxBounds&&(e=r._limitOffset(P(e),r.options.maxBounds)),r.options.worldCopyJump){var i=r.wrapLatLng(r.unproject(r.project(r.getCenter()).add(e)));r.panTo(i)}else r.panBy(e)}else if(n in this._zoomKeys)r.setZoom(r.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!r._popup||!r._popup.options.closeOnEscapeKey)return;r.closePopup()}Ye(t)}}});$e.addInitHook("addHandler","keyboard",wr),$e.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var kr=en.extend({addHooks:function(){Te(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Le(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ve(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(r(this._performZoom,this),i),Ye(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var r=this._delta/(4*this._map.options.wheelPxPerZoomLevel),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,o=n?Math.ceil(i/n)*n:i,a=t._limitZoom(e+(this._delta>0?o:-o))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});$e.addInitHook("addHandler","scrollWheelZoom",kr),$e.mergeOptions({tapHold:Rt.touchNative&&Rt.safari&&Rt.mobile,tapTolerance:15});var Sr=en.extend({addHooks:function(){Te(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Le(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new O(e.clientX,e.clientY),this._holdTimeout=setTimeout(r((function(){this._cancel(),this._isTapValid()&&(Te(document,"touchend",Be),Te(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),600),Te(document,"touchend touchcancel contextmenu",this._cancel,this),Te(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Le(document,"touchend",Be),Le(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Le(document,"touchend touchcancel contextmenu",this._cancel,this),Le(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new O(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});$e.addInitHook("addHandler","tapHold",Sr),$e.mergeOptions({touchZoom:Rt.touch,bounceAtZoomLimits:!0});var Er=en.extend({addHooks:function(){he(this._map._container,"leaflet-touch-zoom"),Te(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fe(this._map._container,"leaflet-touch-zoom"),Le(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),r=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Te(document,"touchmove",this._onTouchMove,this),Te(document,"touchend touchcancel",this._onTouchEnd,this),Be(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),o=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===o)return}else{var a=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===o&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),x(this._animRequest);var s=r(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=C(s,this,!0),Be(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,x(this._animRequest),Le(document,"touchmove",this._onTouchMove,this),Le(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});$e.addInitHook("addHandler","touchZoom",Er),$e.BoxZoom=vr,$e.DoubleClickZoom=_r,$e.Drag=br,$e.Keyboard=wr,$e.ScrollWheelZoom=kr,$e.TapHold=Sr,$e.TouchZoom=Er,t.Bounds=R,t.Browser=Rt,t.CRS=z,t.Canvas=cr,t.Circle=Fn,t.CircleMarker=Nn,t.Class=A,t.Control=Ke,t.DivIcon=ir,t.DivOverlay=er,t.DomEvent=qe,t.DomUtil=Ae,t.Draggable=an,t.Evented=M,t.FeatureGroup=Mn,t.GeoJSON=Yn,t.GridLayer=or,t.Handler=en,t.Icon=Ln,t.ImageOverlay=Jn,t.LatLng=B,t.LatLngBounds=F,t.Layer=An,t.LayerGroup=Tn,t.LineUtil=vn,t.Map=$e,t.Marker=Pn,t.Mixin=rn,t.Path=Rn,t.Point=O,t.PolyUtil=wn,t.Polygon=Bn,t.Polyline=jn,t.Popup=nr,t.PosAnimation=Ge,t.Projection=En,t.Rectangle=yr,t.Renderer=lr,t.SVG=mr,t.SVGOverlay=tr,t.TileLayer=ar,t.Tooltip=rr,t.Transformation=q,t.Util=D,t.VideoOverlay=Qn,t.bind=r,t.bounds=N,t.canvas=dr,t.circle=function(t,e,n){return new Fn(t,e,n)},t.circleMarker=function(t,e){return new Nn(t,e)},t.control=Ze,t.divIcon=function(t){return new ir(t)},t.extend=e,t.featureGroup=function(t,e){return new Mn(t,e)},t.geoJSON=Zn,t.geoJson=Xn,t.gridLayer=function(t){return new or(t)},t.icon=function(t){return new Ln(t)},t.imageOverlay=function(t,e,n){return new Jn(t,e,n)},t.latLng=Y,t.latLngBounds=j,t.layerGroup=function(t,e){return new Tn(t,e)},t.map=function(t,e){return new $e(t,e)},t.marker=function(t,e){return new Pn(t,e)},t.point=P,t.polygon=function(t,e){return new Bn(t,e)},t.polyline=function(t,e){return new jn(t,e)},t.popup=function(t,e){return new nr(t,e)},t.rectangle=function(t,e){return new yr(t,e)},t.setOptions=f,t.stamp=o,t.svg=gr,t.svgOverlay=function(t,e,n){return new tr(t,e,n)},t.tileLayer=sr,t.tooltip=function(t,e){return new rr(t,e)},t.transformation=G,t.version="1.9.3",t.videoOverlay=function(t,e,n){return new Qn(t,e,n)};var Cr=window.L;t.noConflict=function(){return window.L=Cr,this},window.L=t},"object"===s(e)&&"undefined"!==typeof t?a(e):(i=[e],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t){"use strict";var e=L.ExtraMarkers={};e.version=L.ExtraMarkers.version="1.2.1",e.Icon=L.ExtraMarkers.Icon=L.Icon.extend({options:{iconSize:[35,45],iconAnchor:[17,42],popupAnchor:[1,-32],shadowAnchor:[10,12],shadowSize:[36,16],className:"",prefix:"",extraClasses:"",shape:"circle",icon:"",innerHTML:"",markerColor:"red",svgBorderColor:"#fff",svgOpacity:1,iconColor:"#fff",iconRotate:0,number:"",svg:!1,name:""},initialize:function(t){t=L.Util.setOptions(this,t)},createIcon:function(){var t=document.createElement("div"),e=this.options;return e.icon&&(t.innerHTML=this._createInner()),e.innerHTML&&(t.innerHTML=e.innerHTML),e.bgPos&&(t.style.backgroundPosition=-e.bgPos.x+"px "+-e.bgPos.y+"px"),e.svg?this._setIconStyles(t,"svg"):this._setIconStyles(t,e.shape+"-"+e.markerColor),t},_getColorHex:function(t){return{red:"#a23337","orange-dark":"#d73e29",orange:"#ef9227",yellow:"#f5bb39","blue-dark":"#276273",cyan:"#32a9dd",purple:"#440444",violet:"#90278d",pink:"#c057a0",green:"#006838",white:"#e8e8e8",black:"#211c1d"}[t]||t},_createSvg:function(t,e){return{circle:'<svg width="32" height="44" viewBox="0 0 35 45" xmlns="http://www.w3.org/2000/svg"><path d="M17.5 2.746c-8.284 0-15 6.853-15 15.307 0 .963.098 1.902.265 2.816a15.413 15.413 0 002.262 5.684l.134.193 12.295 17.785 12.439-17.863.056-.08a15.422 15.422 0 002.343-6.112c.123-.791.206-1.597.206-2.423 0-8.454-6.716-15.307-15-15.307" fill="'+e+'" /><path d="M17.488 2.748c-8.284 0-15 6.853-15 15.307 0 .963.098 1.902.265 2.816a15.413 15.413 0 002.262 5.684l.134.193 12.295 17.785 12.44-17.863.055-.08a15.422 15.422 0 002.343-6.112c.124-.791.206-1.597.206-2.423 0-8.454-6.716-15.307-15-15.307m0 1.071c7.68 0 13.929 6.386 13.929 14.236 0 .685-.064 1.423-.193 2.258-.325 2.075-1.059 3.99-2.164 5.667l-.055.078-11.557 16.595L6.032 26.14l-.12-.174a14.256 14.256 0 01-2.105-5.29 14.698 14.698 0 01-.247-2.62c0-7.851 6.249-14.237 13.928-14.237" fill="#231f20" opacity=".15" /></svg>',square:'<svg width="33" height="44" viewBox="0 0 35 45" xmlns="http://www.w3.org/2000/svg"><path d="M28.205 3.217H6.777c-2.367 0-4.286 1.87-4.286 4.179v19.847c0 2.308 1.919 4.179 4.286 4.179h5.357l5.337 13.58 5.377-13.58h5.357c2.366 0 4.285-1.87 4.285-4.179V7.396c0-2.308-1.919-4.179-4.285-4.179" fill="'+e+'" /><g opacity=".15" transform="matrix(1.0714 0 0 -1.0714 -233.22 146.783)"><path d="M244 134h-20c-2.209 0-4-1.746-4-3.9v-18.525c0-2.154 1.791-3.9 4-3.9h5L233.982 95 239 107.675h5c2.209 0 4 1.746 4 3.9V130.1c0 2.154-1.791 3.9-4 3.9m0-1c1.654 0 3-1.301 3-2.9v-18.525c0-1.599-1.346-2.9-3-2.9h-5.68l-.25-.632-4.084-10.318-4.055 10.316-.249.634H224c-1.654 0-3 1.301-3 2.9V130.1c0 1.599 1.346 2.9 3 2.9h20" fill="#231f20" /></g></svg>',star:'<svg width="34" height="44" viewBox="0 0 35 45" xmlns="http://www.w3.org/2000/svg"><path d="M32.92 16.93l-3.525-3.525V8.419a1.983 1.983 0 00-1.983-1.982h-4.985L18.9 2.91a1.984 1.984 0 00-2.803 0l-3.524 3.526H7.588a1.983 1.983 0 00-1.982 1.982v4.986L2.081 16.93a1.982 1.982 0 000 2.803l3.525 3.526v4.984c0 1.096.888 1.983 1.982 1.983h4.986L17.457 45l4.97-14.773h4.985a1.983 1.983 0 001.983-1.983V23.26l3.525-3.526a1.982 1.982 0 000-2.803" fill="'+e+'" /><g opacity=".15" transform="matrix(1.0667 0 0 -1.0667 -347.3 97.26)"><path d="M342 89c-.476 0-.951-.181-1.314-.544l-3.305-3.305h-4.673a1.858 1.858 0 01-1.859-1.858v-4.674l-3.305-3.305a1.857 1.857 0 010-2.627l3.305-3.305v-4.674a1.86 1.86 0 011.859-1.859h4.673L341.959 49l4.659 13.849h4.674a1.86 1.86 0 011.859 1.859v4.674l3.305 3.305a1.858 1.858 0 010 2.627l-3.305 3.305v4.674a1.859 1.859 0 01-1.859 1.858h-4.674l-3.304 3.305A1.851 1.851 0 01342 89m0-1a.853.853 0 00.607-.251l3.304-3.305.293-.293h5.088a.86.86 0 00.859-.858v-5.088l3.598-3.598A.852.852 0 00356 74a.85.85 0 00-.251-.606l-3.598-3.598v-5.088a.86.86 0 00-.859-.859h-5.393l-.229-.681-3.702-11.006-3.637 11.001-.227.686h-5.396a.86.86 0 00-.859.859v5.088l-3.598 3.598c-.162.162-.251.377-.251.606s.089.445.251.607l3.598 3.598v5.088a.86.86 0 00.859.858h5.087l3.598 3.598A.853.853 0 00342 88" fill="#231f20" /></g></svg>',penta:'<svg width="33" height="44" viewBox="0 0 35 45" xmlns="http://www.w3.org/2000/svg"><path d="M1.872 17.35L9.679 2.993h15.615L33.1 17.35 17.486 44.992z" fill="'+e+'" /><g opacity=".15" transform="matrix(1.0769 0 0 -1.0769 -272.731 48.23)"><path d="M276.75 42h-14.5L255 28.668 269.5 3 284 28.668zm-.595-1l6.701-12.323L269.5 5.033l-13.356 23.644L262.845 41z" fill="#231f20" /></g></svg>'}[t]},_createInner:function(){var t="",e="",n="",r="",i=this.options;return i.iconColor&&(t="color: "+i.iconColor+";"),0!==i.iconRotate&&(t+="-webkit-transform: rotate("+i.iconRotate+"deg);",t+="-moz-transform: rotate("+i.iconRotate+"deg);",t+="-o-transform: rotate("+i.iconRotate+"deg);",t+="-ms-transform: rotate("+i.iconRotate+"deg);",t+="transform: rotate("+i.iconRotate+"deg);"),i.number&&(e='number="'+i.number+'" '),i.extraClasses.length&&(n+=i.extraClasses+" "),i.prefix.length&&(n+=i.prefix+" "),i.icon.length&&(n+=i.icon+" "),i.svg&&(r+=this._createSvg(i.shape,this._getColorHex(i.markerColor))),r+="<i "+e+'style="'+t+'" class="'+n+'"></i>',i.name.length&&(r+='<div class="'+(void 0!==i.nameClasses?i.nameClasses:"")+'">'+i.name+"</div>"),r},_setIconStyles:function(t,e){var n,r,i=this.options,o=L.point(i["shadow"===e?"shadowSize":"iconSize"]);"shadow"===e?(n=L.point(i.shadowAnchor||i.iconAnchor),r="shadow"):(n=L.point(i.iconAnchor),r="icon"),!n&&o&&(n=o.divideBy(2,!0)),t.className="leaflet-marker-"+r+" extra-marker extra-marker-"+e+" "+i.className,n&&(t.style.marginLeft=-n.x+"px",t.style.marginTop=-n.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},createShadow:function(){var t=document.createElement("div");return this._setIconStyles(t,"shadow"),t}}),e.icon=L.ExtraMarkers.icon=function(t){return new L.ExtraMarkers.Icon(t)},t.ExtraMarkers=e,Object.defineProperty(t,"__esModule",{value:!0})},"object"===s(e)&&"undefined"!==typeof t?a(e):(i=[e],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var r={"./Search":180,"./Search/":180,"./Search/components/Result":182,"./Search/components/Result.js":182,"./Search/components/ResultTypes":183,"./Search/components/ResultTypes.js":183,"./Search/index":180,"./Search/index.js":180,"./Search/styles":562,"./Search/styles.scss":562,"./Uploader":181,"./Uploader/":181,"./Uploader/index":181,"./Uploader/index.js":181,"./Uploader/spinner":184,"./Uploader/spinner.js":184,"./Uploader/styles":563,"./Uploader/styles.scss":563};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=594},function(t,e,n){"use strict";function r(t){return r="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},r(t)}var i=n(272),o="function"===typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,s=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,d=o?Symbol.for("react.provider"):60109,h=o?Symbol.for("react.context"):60110,f=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.memo"):60115,g=o?Symbol.for("react.lazy"):60116,y="function"===typeof Symbol&&Symbol.iterator;function v(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||_}function k(){}function S(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||_}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){if("object"!==r(t)&&"function"!==typeof t&&null!=t)throw Error(v(85));this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},k.prototype=w.prototype;var E=S.prototype=new k;E.constructor=S,i(E,w.prototype),E.isPureReactComponent=!0;var C={current:null},x=Object.prototype.hasOwnProperty,D={key:!0,ref:!0,__self:!0,__source:!0};function A(t,e,n){var r,i={},o=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(o=""+e.key),e)x.call(e,r)&&!D.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:a,type:t,key:o,ref:s,props:i,_owner:C.current}}function T(t){return"object"===r(t)&&null!==t&&t.$$typeof===a}var M=/\/+/g,L=[];function O(t,e,n,r){if(L.length){var i=L.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function I(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>L.length&&L.push(t)}function P(t,e,n,i){var o=r(t);"undefined"!==o&&"boolean"!==o||(t=null);var u=!1;if(null===t)u=!0;else switch(o){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case s:u=!0}}if(u)return n(i,t,""===e?"."+N(t,0):e),1;if(u=0,e=""===e?".":e+":",Array.isArray(t))for(var l=0;l<t.length;l++){var c=e+N(o=t[l],l);u+=P(o,c,n,i)}else if(null===t||"object"!==r(t)?c=null:c="function"===typeof(c=y&&t[y]||t["@@iterator"])?c:null,"function"===typeof c)for(t=c.call(t),l=0;!(o=t.next()).done;)u+=P(o=o.value,c=e+N(o,l++),n,i);else if("object"===o)throw n=""+t,Error(v(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return u}function R(t,e,n){return null==t?0:P(t,"",e,n)}function N(t,e){return"object"===r(t)&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function F(t,e){t.func.call(t.context,e,t.count++)}function j(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?B(t,r,n,(function(t){return t})):null!=t&&(T(t)&&(t=function(t,e){return{$$typeof:a,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(M,"$&/")+"/")+n)),r.push(t))}function B(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(M,"$&/")+"/"),R(t,j,e=O(e,o,r,i)),I(e)}var Y={current:null};function H(){var t=Y.current;if(null===t)throw Error(v(321));return t}var z={ReactCurrentDispatcher:Y,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:i};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return B(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;R(t,F,e=O(null,null,e,n)),I(e)},count:function(t){return R(t,(function(){return null}),null)},toArray:function(t){var e=[];return B(t,e,null,(function(t){return t})),e},only:function(t){if(!T(t))throw Error(v(143));return t}},e.Component=w,e.Fragment=u,e.Profiler=c,e.PureComponent=S,e.StrictMode=l,e.Suspense=p,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,e.cloneElement=function(t,e,n){if(null===t||void 0===t)throw Error(v(267,t));var r=i({},t.props),o=t.key,s=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,u=C.current),void 0!==e.key&&(o=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)x.call(e,c)&&!D.hasOwnProperty(c)&&(r[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}return{$$typeof:a,type:t.type,key:o,ref:s,props:r,_owner:u}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:h,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:d,_context:t},t.Consumer=t},e.createElement=A,e.createFactory=function(t){var e=A.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:f,render:t}},e.isValidElement=T,e.lazy=function(t){return{$$typeof:g,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:m,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return H().useCallback(t,e)},e.useContext=function(t,e){return H().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return H().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return H().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return H().useLayoutEffect(t,e)},e.useMemo=function(t,e){return H().useMemo(t,e)},e.useReducer=function(t,e,n){return H().useReducer(t,e,n)},e.useRef=function(t){return H().useRef(t)},e.useState=function(t){return H().useState(t)},e.version="16.14.0"},function(t,e,n){!function(e,n){"use strict";var r=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function i(t,e,n){return n.length!==t.length&&e.ellipsis?n+=e.ellipsis:n}function o(t,e,n){var o,a,s="",u=!0,l=e;if((n=n||{}).ellipsis="undefined"===typeof n.ellipsis?"\u2026":n.ellipsis,!t||0===t.length)return"";for(u=!0;u;){if(r.lastIndex=s.length,!(u=r.exec(t))||u.index-s.length>=l)return s+=t.substring(s.length,e),i(t,n,s);if(o=u[0],a=u.index,s+=t.substring(s.length,a+o.length),(l-=a+o.length)<=0)break}return i(t,n,s)}t.exports?t.exports=o:e.truncate=o}(String)},function(t,e,n){"use strict";function r(t){return r="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},r(t)}var i=n(4),o=n(272),a=n(598);function s(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!i)throw Error(s(227));function u(t,e,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(c){this.onError(c)}}var l=!1,c=null,d=!1,h=null,f={onError:function(t){l=!0,c=t}};function p(t,e,n,r,i,o,a,s,d){l=!1,c=null,u.apply(f,arguments)}var m=null,g=null,y=null;function v(t,e,n){var r=t.type||"unknown-event";t.currentTarget=y(n),function(t,e,n,r,i,o,a,u,f){if(p.apply(this,arguments),l){if(!l)throw Error(s(198));var m=c;l=!1,c=null,d||(d=!0,h=m)}}(r,e,void 0,t),t.currentTarget=null}var _=null,b={};function w(){if(_)for(var t in b){var e=b[t],n=_.indexOf(t);if(!(-1<n))throw Error(s(96,t));if(!S[n]){if(!e.extractEvents)throw Error(s(97,t));for(var r in S[n]=e,n=e.eventTypes){var i=void 0,o=n[r],a=e,u=r;if(E.hasOwnProperty(u))throw Error(s(99,u));E[u]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&k(l[i],a,u);i=!0}else o.registrationName?(k(o.registrationName,a,u),i=!0):i=!1;if(!i)throw Error(s(98,r,t))}}}}function k(t,e,n){if(C[t])throw Error(s(100,t));C[t]=e,x[t]=e.eventTypes[n].dependencies}var S=[],E={},C={},x={};function D(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!b.hasOwnProperty(e)||b[e]!==r){if(b[e])throw Error(s(102,e));b[e]=r,n=!0}}n&&w()}var A=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),T=null,M=null,L=null;function O(t){if(t=g(t)){if("function"!==typeof T)throw Error(s(280));var e=t.stateNode;e&&(e=m(e),T(t.stateNode,t.type,e))}}function I(t){M?L?L.push(t):L=[t]:M=t}function P(){if(M){var t=M,e=L;if(L=M=null,O(t),e)for(t=0;t<e.length;t++)O(e[t])}}function R(t,e){return t(e)}function N(t,e,n,r,i){return t(e,n,r,i)}function F(){}var j=R,B=!1,Y=!1;function H(){null===M&&null===L||(F(),P())}function z(t,e,n){if(Y)return t(e,n);Y=!0;try{return j(t,e,n)}finally{Y=!1,H()}}var W=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,V=Object.prototype.hasOwnProperty,U={},q={};function G(t,e,n,i){if(null===e||"undefined"===typeof e||function(t,e,n,i){if(null!==n&&0===n.type)return!1;switch(r(e)){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function $(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){K[t]=new $(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];K[e]=new $(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){K[t]=new $(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){K[t]=new $(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){K[t]=new $(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){K[t]=new $(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){K[t]=new $(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){K[t]=new $(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){K[t]=new $(t,5,!1,t.toLowerCase(),null,!1)}));var Z=/[\-:]([a-z])/g;function X(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(Z,X);K[e]=new $(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(Z,X);K[e]=new $(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(Z,X);K[e]=new $(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){K[t]=new $(t,1,!1,t.toLowerCase(),null,!1)})),K.xlinkHref=new $("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){K[t]=new $(t,1,!1,t.toLowerCase(),null,!0)}));var J=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Q(t,e,n,r){var i=K.hasOwnProperty(e)?K[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(G(e,n,i,r)&&(n=null),r||null===i?function(t){return!!V.call(q,t)||!V.call(U,t)&&(W.test(t)?q[t]=!0:(U[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}J.hasOwnProperty("ReactCurrentDispatcher")||(J.ReactCurrentDispatcher={current:null}),J.hasOwnProperty("ReactCurrentBatchConfig")||(J.ReactCurrentBatchConfig={suspense:null});var tt=/^(.*)[\\\/]/,et="function"===typeof Symbol&&Symbol.for,nt=et?Symbol.for("react.element"):60103,rt=et?Symbol.for("react.portal"):60106,it=et?Symbol.for("react.fragment"):60107,ot=et?Symbol.for("react.strict_mode"):60108,at=et?Symbol.for("react.profiler"):60114,st=et?Symbol.for("react.provider"):60109,ut=et?Symbol.for("react.context"):60110,lt=et?Symbol.for("react.concurrent_mode"):60111,ct=et?Symbol.for("react.forward_ref"):60112,dt=et?Symbol.for("react.suspense"):60113,ht=et?Symbol.for("react.suspense_list"):60120,ft=et?Symbol.for("react.memo"):60115,pt=et?Symbol.for("react.lazy"):60116,mt=et?Symbol.for("react.block"):60121,gt="function"===typeof Symbol&&Symbol.iterator;function yt(t){return null===t||"object"!==r(t)?null:"function"===typeof(t=gt&&t[gt]||t["@@iterator"])?t:null}function vt(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case it:return"Fragment";case rt:return"Portal";case at:return"Profiler";case ot:return"StrictMode";case dt:return"Suspense";case ht:return"SuspenseList"}if("object"===r(t))switch(t.$$typeof){case ut:return"Context.Consumer";case st:return"Context.Provider";case ct:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ft:return vt(t.type);case mt:return vt(t.render);case pt:if(t=1===t._status?t._result:null)return vt(t)}return null}function _t(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=vt(t.type);n=null,r&&(n=vt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(tt,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function bt(t){switch(r(t)){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function wt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function kt(t){t._valueTracker||(t._valueTracker=function(t){var e=wt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function St(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=wt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function Et(t,e){var n=e.checked;return o({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Ct(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=bt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function xt(t,e){null!=(e=e.checked)&&Q(t,"checked",e,!1)}function Dt(t,e){xt(t,e);var n=bt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&Tt(t,e.type,bt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function At(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Tt(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Mt(t,e){return t=o({children:void 0},e),(e=function(t){var e="";return i.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function Lt(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+bt(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function Ot(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(s(91));return o({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function It(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:bt(n)}}function Pt(t,e){var n=bt(e.value),r=bt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Rt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Nt="http://www.w3.org/1999/xhtml",Ft="http://www.w3.org/2000/svg";function jt(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Bt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?jt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Yt,Ht,zt=(Ht=function(t,e){if(t.namespaceURI!==Ft||"innerHTML"in t)t.innerHTML=e;else{for((Yt=Yt||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Yt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,e,n,r){MSApp.execUnsafeLocalFunction((function(){return Ht(t,e)}))}:Ht);function Wt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function Vt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ut={animationend:Vt("Animation","AnimationEnd"),animationiteration:Vt("Animation","AnimationIteration"),animationstart:Vt("Animation","AnimationStart"),transitionend:Vt("Transition","TransitionEnd")},qt={},Gt={};function $t(t){if(qt[t])return qt[t];if(!Ut[t])return t;var e,n=Ut[t];for(e in n)if(n.hasOwnProperty(e)&&e in Gt)return qt[t]=n[e];return t}A&&(Gt=document.createElement("div").style,"AnimationEvent"in window||(delete Ut.animationend.animation,delete Ut.animationiteration.animation,delete Ut.animationstart.animation),"TransitionEvent"in window||delete Ut.transitionend.transition);var Kt=$t("animationend"),Zt=$t("animationiteration"),Xt=$t("animationstart"),Jt=$t("transitionend"),Qt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),te=new("function"===typeof WeakMap?WeakMap:Map);function ee(t){var e=te.get(t);return void 0===e&&(e=new Map,te.set(t,e)),e}function ne(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!==(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function re(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ie(t){if(ne(t)!==t)throw Error(s(188))}function oe(t){if(t=function(t){var e=t.alternate;if(!e){if(null===(e=ne(t)))throw Error(s(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ie(i),t;if(o===r)return ie(i),e;o=o.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}if(!a)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?t:e}(t),!t)return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function ae(t,e){if(null==e)throw Error(s(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function se(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var ue=null;function le(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)v(t,e[r],n[r]);else e&&v(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function ce(t){if(null!==t&&(ue=ae(ue,t)),t=ue,ue=null,t){if(se(t,le),ue)throw Error(s(95));if(d)throw t=h,d=!1,h=null,t}}function de(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function he(t){if(!A)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"===typeof e[t]),e}var fe=[];function pe(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>fe.length&&fe.push(t)}function me(t,e,n,r){if(fe.length){var i=fe.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function ge(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=Rn(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=de(t.nativeEvent);r=t.topLevelType;var o=t.nativeEvent,a=t.eventSystemFlags;0===n&&(a|=64);for(var s=null,u=0;u<S.length;u++){var l=S[u];l&&(l=l.extractEvents(r,e,o,i,a))&&(s=ae(s,l))}ce(s)}}function ye(t,e,n){if(!n.has(t)){switch(t){case"scroll":Xe(e,"scroll",!0);break;case"focus":case"blur":Xe(e,"focus",!0),Xe(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":he(t)&&Xe(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qt.indexOf(t)&&Ze(t,e)}n.set(t,null)}}var ve,_e,be,we=!1,ke=[],Se=null,Ee=null,Ce=null,xe=new Map,De=new Map,Ae=[],Te="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Me="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Le(t,e,n,r,i){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Oe(t,e){switch(t){case"focus":case"blur":Se=null;break;case"dragenter":case"dragleave":Ee=null;break;case"mouseover":case"mouseout":Ce=null;break;case"pointerover":case"pointerout":xe.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":De.delete(e.pointerId)}}function Ie(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t=Le(e,n,r,i,o),null!==e&&(null!==(e=Nn(e))&&_e(e)),t):(t.eventSystemFlags|=r,t)}function Pe(t){var e=Rn(t.target);if(null!==e){var n=ne(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=re(n)))return t.blockedOn=e,void a.unstable_runWithPriority(t.priority,(function(){be(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function Re(t){if(null!==t.blockedOn)return!1;var e=en(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=Nn(e);return null!==n&&_e(n),t.blockedOn=e,!1}return!0}function Ne(t,e,n){Re(t)&&n.delete(e)}function Fe(){for(we=!1;0<ke.length;){var t=ke[0];if(null!==t.blockedOn){null!==(t=Nn(t.blockedOn))&&ve(t);break}var e=en(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:ke.shift()}null!==Se&&Re(Se)&&(Se=null),null!==Ee&&Re(Ee)&&(Ee=null),null!==Ce&&Re(Ce)&&(Ce=null),xe.forEach(Ne),De.forEach(Ne)}function je(t,e){t.blockedOn===e&&(t.blockedOn=null,we||(we=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Fe)))}function Be(t){function e(e){return je(e,t)}if(0<ke.length){je(ke[0],t);for(var n=1;n<ke.length;n++){var r=ke[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==Se&&je(Se,t),null!==Ee&&je(Ee,t),null!==Ce&&je(Ce,t),xe.forEach(e),De.forEach(e),n=0;n<Ae.length;n++)(r=Ae[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Ae.length&&null===(n=Ae[0]).blockedOn;)Pe(n),null===n.blockedOn&&Ae.shift()}var Ye={},He=new Map,ze=new Map,We=["abort","abort",Kt,"animationEnd",Zt,"animationIteration",Xt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Jt,"transitionEnd","waiting","waiting"];function Ve(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:e},ze.set(r,e),He.set(r,o),Ye[i]=o}}Ve("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ve("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ve(We,2);for(var Ue="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),qe=0;qe<Ue.length;qe++)ze.set(Ue[qe],0);var Ge=a.unstable_UserBlockingPriority,$e=a.unstable_runWithPriority,Ke=!0;function Ze(t,e){Xe(e,t,!1)}function Xe(t,e,n){var r=ze.get(e);switch(void 0===r?2:r){case 0:r=Je.bind(null,e,1,t);break;case 1:r=Qe.bind(null,e,1,t);break;default:r=tn.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function Je(t,e,n,r){B||F();var i=tn,o=B;B=!0;try{N(i,t,e,n,r)}finally{(B=o)||H()}}function Qe(t,e,n,r){$e(Ge,tn.bind(null,t,e,n,r))}function tn(t,e,n,r){if(Ke)if(0<ke.length&&-1<Te.indexOf(t))t=Le(null,t,e,n,r),ke.push(t);else{var i=en(t,e,n,r);if(null===i)Oe(t,r);else if(-1<Te.indexOf(t))t=Le(i,t,e,n,r),ke.push(t);else if(!function(t,e,n,r,i){switch(e){case"focus":return Se=Ie(Se,t,e,n,r,i),!0;case"dragenter":return Ee=Ie(Ee,t,e,n,r,i),!0;case"mouseover":return Ce=Ie(Ce,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return xe.set(o,Ie(xe.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,De.set(o,Ie(De.get(o)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r)){Oe(t,r),t=me(t,r,null,e);try{z(ge,t)}finally{pe(t)}}}}function en(t,e,n,r){if(null!==(n=Rn(n=de(r)))){var i=ne(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=re(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}t=me(t,r,n,e);try{z(ge,t)}finally{pe(t)}return null}var nn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},rn=["Webkit","ms","Moz","O"];function on(t,e,n){return null==e||"boolean"===typeof e||""===e?"":n||"number"!==typeof e||0===e||nn.hasOwnProperty(t)&&nn[t]?(""+e).trim():e+"px"}function an(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=on(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(nn).forEach((function(t){rn.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),nn[e]=nn[t]}))}));var sn=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function un(t,e){if(e){if(sn[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(s(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(s(60));if("object"!==r(e.dangerouslySetInnerHTML)||!("__html"in e.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=e.style&&"object"!==r(e.style))throw Error(s(62,""))}}function ln(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cn=Nt;function dn(t,e){var n=ee(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=x[e];for(var r=0;r<e.length;r++)ye(e[r],t,n)}function hn(){}function fn(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function pn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function mn(t,e){var n,r=pn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=pn(r)}}function gn(t,e){return!(!t||!e)&&(t===e||(!t||3!==t.nodeType)&&(e&&3===e.nodeType?gn(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}function yn(){for(var t=window,e=fn();e instanceof t.HTMLIFrameElement;){try{var n="string"===typeof e.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=fn((t=e.contentWindow).document)}return e}function vn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var _n="$",bn="/$",wn="$?",kn="$!",Sn=null,En=null;function Cn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function xn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"===typeof e.children||"number"===typeof e.children||"object"===r(e.dangerouslySetInnerHTML)&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var Dn="function"===typeof setTimeout?setTimeout:void 0,An="function"===typeof clearTimeout?clearTimeout:void 0;function Tn(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function Mn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if(n===_n||n===kn||n===wn){if(0===e)return t;e--}else n===bn&&e++}t=t.previousSibling}return null}var Ln=Math.random().toString(36).slice(2),On="__reactInternalInstance$"+Ln,In="__reactEventHandlers$"+Ln,Pn="__reactContainere$"+Ln;function Rn(t){var e=t[On];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Pn]||n[On]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=Mn(t);null!==t;){if(n=t[On])return n;t=Mn(t)}return e}n=(t=n).parentNode}return null}function Nn(t){return!(t=t[On]||t[Pn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function Fn(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(s(33))}function jn(t){return t[In]||null}function Bn(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function Yn(t,e){var n=t.stateNode;if(!n)return null;var i=m(n);if(!i)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!i;break t;default:t=!1}if(t)return null;if(n&&"function"!==typeof n)throw Error(s(231,e,r(n)));return n}function Hn(t,e,n){(e=Yn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=ae(n._dispatchListeners,e),n._dispatchInstances=ae(n._dispatchInstances,t))}function zn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Bn(e);for(e=n.length;0<e--;)Hn(n[e],"captured",t);for(e=0;e<n.length;e++)Hn(n[e],"bubbled",t)}}function Wn(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=Yn(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ae(n._dispatchListeners,e),n._dispatchInstances=ae(n._dispatchInstances,t))}function Vn(t){t&&t.dispatchConfig.registrationName&&Wn(t._targetInst,null,t)}function Un(t){se(t,zn)}var qn=null,Gn=null,$n=null;function Kn(){if($n)return $n;var t,e,n=Gn,r=n.length,i="value"in qn?qn.value:qn.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return $n=i.slice(t,1<e?1-e:void 0)}function Zn(){return!0}function Xn(){return!1}function Jn(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Zn:Xn,this.isPropagationStopped=Xn,this}function Qn(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function tr(t){if(!(t instanceof this))throw Error(s(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function er(t){t.eventPool=[],t.getPooled=Qn,t.release=tr}o(Jn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Zn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Zn)},persist:function(){this.isPersistent=Zn},isPersistent:Xn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Xn,this._dispatchInstances=this._dispatchListeners=null}}),Jn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Jn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var i=new e;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,t),n.extend=r.extend,er(n),n},er(Jn);var nr=Jn.extend({data:null}),rr=Jn.extend({data:null}),ir=[9,13,27,32],or=A&&"CompositionEvent"in window,ar=null;A&&"documentMode"in document&&(ar=document.documentMode);var sr=A&&"TextEvent"in window&&!ar,ur=A&&(!or||ar&&8<ar&&11>=ar),lr=String.fromCharCode(32),cr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},dr=!1;function hr(t,e){switch(t){case"keyup":return-1!==ir.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function fr(t){return"object"===r(t=t.detail)&&"data"in t?t.data:null}var pr=!1;var mr={eventTypes:cr,extractEvents:function(t,e,n,r){var i;if(or)t:{switch(t){case"compositionstart":var o=cr.compositionStart;break t;case"compositionend":o=cr.compositionEnd;break t;case"compositionupdate":o=cr.compositionUpdate;break t}o=void 0}else pr?hr(t,n)&&(o=cr.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=cr.compositionStart);return o?(ur&&"ko"!==n.locale&&(pr||o!==cr.compositionStart?o===cr.compositionEnd&&pr&&(i=Kn()):(Gn="value"in(qn=r)?qn.value:qn.textContent,pr=!0)),o=nr.getPooled(o,e,n,r),i?o.data=i:null!==(i=fr(n))&&(o.data=i),Un(o),i=o):i=null,(t=sr?function(t,e){switch(t){case"compositionend":return fr(e);case"keypress":return 32!==e.which?null:(dr=!0,lr);case"textInput":return(t=e.data)===lr&&dr?null:t;default:return null}}(t,n):function(t,e){if(pr)return"compositionend"===t||!or&&hr(t,e)?(t=Kn(),$n=Gn=qn=null,pr=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ur&&"ko"!==e.locale?null:e.data}}(t,n))?((e=rr.getPooled(cr.beforeInput,e,n,r)).data=t,Un(e)):e=null,null===i?e:null===e?i:[i,e]}},gr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!gr[t.type]:"textarea"===e}var vr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function _r(t,e,n){return(t=Jn.getPooled(vr.change,t,e,n)).type="change",I(n),Un(t),t}var br=null,wr=null;function kr(t){ce(t)}function Sr(t){if(St(Fn(t)))return t}function Er(t,e){if("change"===t)return e}var Cr=!1;function xr(){br&&(br.detachEvent("onpropertychange",Dr),wr=br=null)}function Dr(t){if("value"===t.propertyName&&Sr(wr))if(t=_r(wr,t,de(t)),B)ce(t);else{B=!0;try{R(kr,t)}finally{B=!1,H()}}}function Ar(t,e,n){"focus"===t?(xr(),wr=n,(br=e).attachEvent("onpropertychange",Dr)):"blur"===t&&xr()}function Tr(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Sr(wr)}function Mr(t,e){if("click"===t)return Sr(e)}function Lr(t,e){if("input"===t||"change"===t)return Sr(e)}A&&(Cr=he("input")&&(!document.documentMode||9<document.documentMode));var Or={eventTypes:vr,_isInputEventSupported:Cr,extractEvents:function(t,e,n,r){var i=e?Fn(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=Er;else if(yr(i))if(Cr)a=Lr;else{a=Tr;var s=Ar}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Mr);if(a&&(a=a(t,e)))return _r(a,n,r);s&&s(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Tt(i,"number",i.value)}},Ir=Jn.extend({view:null,detail:null}),Pr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rr(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Pr[t])&&!!e[t]}function Nr(){return Rr}var Fr=0,jr=0,Br=!1,Yr=!1,Hr=Ir.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Nr,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Fr;return Fr=t.screenX,Br?"mousemove"===t.type?t.screenX-e:0:(Br=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=jr;return jr=t.screenY,Yr?"mousemove"===t.type?t.screenY-e:0:(Yr=!0,0)}}),zr=Hr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Wr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Vr={eventTypes:Wr,extractEvents:function(t,e,n,r,i){var o="mouseover"===t||"pointerover"===t,a="mouseout"===t||"pointerout"===t;if(o&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=e,null!==(e=(e=n.relatedTarget||n.toElement)?Rn(e):null)&&(e!==ne(e)||5!==e.tag&&6!==e.tag)&&(e=null)):a=null;if(a===e)return null;if("mouseout"===t||"mouseover"===t)var s=Hr,u=Wr.mouseLeave,l=Wr.mouseEnter,c="mouse";else"pointerout"!==t&&"pointerover"!==t||(s=zr,u=Wr.pointerLeave,l=Wr.pointerEnter,c="pointer");if(t=null==a?o:Fn(a),o=null==e?o:Fn(e),(u=s.getPooled(u,a,n,r)).type=c+"leave",u.target=t,u.relatedTarget=o,(n=s.getPooled(l,e,n,r)).type=c+"enter",n.target=o,n.relatedTarget=t,c=e,(r=a)&&c)t:{for(l=c,a=0,t=s=r;t;t=Bn(t))a++;for(t=0,e=l;e;e=Bn(e))t++;for(;0<a-t;)s=Bn(s),a--;for(;0<t-a;)l=Bn(l),t--;for(;a--;){if(s===l||s===l.alternate)break t;s=Bn(s),l=Bn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)s.push(r),r=Bn(r);for(r=[];c&&c!==l&&(null===(a=c.alternate)||a!==l);)r.push(c),c=Bn(c);for(c=0;c<s.length;c++)Wn(s[c],"bubbled",u);for(c=r.length;0<c--;)Wn(r[c],"captured",n);return 0===(64&i)?[u]:[u,n]}};var Ur="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},qr=Object.prototype.hasOwnProperty;function Gr(t,e){if(Ur(t,e))return!0;if("object"!==r(t)||null===t||"object"!==r(e)||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!qr.call(e,n[i])||!Ur(t[n[i]],e[n[i]]))return!1;return!0}var $r=A&&"documentMode"in document&&11>=document.documentMode,Kr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Zr=null,Xr=null,Jr=null,Qr=!1;function ti(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Qr||null==Zr||Zr!==fn(n)?null:("selectionStart"in(n=Zr)&&vn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Jr&&Gr(Jr,n)?null:(Jr=n,(t=Jn.getPooled(Kr.select,Xr,t,e)).type="select",t.target=Zr,Un(t),t))}var ei={eventTypes:Kr,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=ee(i),o=x.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break t}i=!0}o=!i}if(o)return null;switch(i=e?Fn(e):window,t){case"focus":(yr(i)||"true"===i.contentEditable)&&(Zr=i,Xr=e,Jr=null);break;case"blur":Jr=Xr=Zr=null;break;case"mousedown":Qr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Qr=!1,ti(n,r);case"selectionchange":if($r)break;case"keydown":case"keyup":return ti(n,r)}return null}},ni=Jn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ri=Jn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ii=Ir.extend({relatedTarget:null});function oi(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var ai={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},si={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ui=Ir.extend({key:function(t){if(t.key){var e=ai[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=oi(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?si[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Nr,charCode:function(t){return"keypress"===t.type?oi(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?oi(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),li=Hr.extend({dataTransfer:null}),ci=Ir.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Nr}),di=Jn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),hi=Hr.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),fi={eventTypes:Ye,extractEvents:function(t,e,n,r){var i=He.get(t);if(!i)return null;switch(t){case"keypress":if(0===oi(n))return null;case"keydown":case"keyup":t=ui;break;case"blur":case"focus":t=ii;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=li;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=ci;break;case Kt:case Zt:case Xt:t=ni;break;case Jt:t=di;break;case"scroll":t=Ir;break;case"wheel":t=hi;break;case"copy":case"cut":case"paste":t=ri;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=zr;break;default:t=Jn}return Un(e=t.getPooled(i,e,n,r)),e}};if(_)throw Error(s(101));_=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),m=jn,g=Nn,y=Fn,D({SimpleEventPlugin:fi,EnterLeaveEventPlugin:Vr,ChangeEventPlugin:Or,SelectEventPlugin:ei,BeforeInputEventPlugin:mr});var pi=[],mi=-1;function gi(t){0>mi||(t.current=pi[mi],pi[mi]=null,mi--)}function yi(t,e){mi++,pi[mi]=t.current,t.current=e}var vi={},_i={current:vi},bi={current:!1},wi=vi;function ki(t,e){var n=t.type.contextTypes;if(!n)return vi;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Si(t){return null!==(t=t.childContextTypes)&&void 0!==t}function Ei(){gi(bi),gi(_i)}function Ci(t,e,n){if(_i.current!==vi)throw Error(s(168));yi(_i,e),yi(bi,n)}function xi(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(s(108,vt(e)||"Unknown",i));return o({},n,{},r)}function Di(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||vi,wi=_i.current,yi(_i,t),yi(bi,bi.current),!0}function Ai(t,e,n){var r=t.stateNode;if(!r)throw Error(s(169));n?(t=xi(t,e,wi),r.__reactInternalMemoizedMergedChildContext=t,gi(bi),gi(_i),yi(_i,t)):gi(bi),yi(bi,n)}var Ti=a.unstable_runWithPriority,Mi=a.unstable_scheduleCallback,Li=a.unstable_cancelCallback,Oi=a.unstable_requestPaint,Ii=a.unstable_now,Pi=a.unstable_getCurrentPriorityLevel,Ri=a.unstable_ImmediatePriority,Ni=a.unstable_UserBlockingPriority,Fi=a.unstable_NormalPriority,ji=a.unstable_LowPriority,Bi=a.unstable_IdlePriority,Yi={},Hi=a.unstable_shouldYield,zi=void 0!==Oi?Oi:function(){},Wi=null,Vi=null,Ui=!1,qi=Ii(),Gi=1e4>qi?Ii:function(){return Ii()-qi};function $i(){switch(Pi()){case Ri:return 99;case Ni:return 98;case Fi:return 97;case ji:return 96;case Bi:return 95;default:throw Error(s(332))}}function Ki(t){switch(t){case 99:return Ri;case 98:return Ni;case 97:return Fi;case 96:return ji;case 95:return Bi;default:throw Error(s(332))}}function Zi(t,e){return t=Ki(t),Ti(t,e)}function Xi(t,e,n){return t=Ki(t),Mi(t,e,n)}function Ji(t){return null===Wi?(Wi=[t],Vi=Mi(Ri,to)):Wi.push(t),Yi}function Qi(){if(null!==Vi){var t=Vi;Vi=null,Li(t)}to()}function to(){if(!Ui&&null!==Wi){Ui=!0;var t=0;try{var e=Wi;Zi(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),Wi=null}catch(n){throw null!==Wi&&(Wi=Wi.slice(t+1)),Mi(Ri,Qi),n}finally{Ui=!1}}}function eo(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function no(t,e){if(t&&t.defaultProps)for(var n in e=o({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var ro={current:null},io=null,oo=null,ao=null;function so(){ao=oo=io=null}function uo(t){var e=ro.current;gi(ro),t.type._context._currentValue=e}function lo(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function co(t,e){io=t,ao=oo=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(ja=!0),t.firstContext=null)}function ho(t,e){if(ao!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(ao=t,e=1073741823),e={context:t,observedBits:e,next:null},null===oo){if(null===io)throw Error(s(308));oo=e,io.dependencies={expirationTime:0,firstContext:e,responders:null}}else oo=oo.next=e;return t._currentValue}var fo=!1;function po(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function mo(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function go(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function yo(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function vo(t,e){var n=t.alternate;null!==n&&mo(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function _o(t,e,n,r){var i=t.updateQueue;fo=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var u=a.next;a.next=s.next,s.next=u}a=s,i.shared.pending=null,null!==(u=t.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==a){u=a.next;var l=i.baseState,c=0,d=null,h=null,f=null;if(null!==u)for(var p=u;;){if((s=p.expirationTime)<r){var m={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===f?(h=f=m,d=l):f=f.next=m,s>c&&(c=s)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),Eu(s,p.suspenseConfig);t:{var g=t,y=p;switch(s=e,m=n,y.tag){case 1:if("function"===typeof(g=y.payload)){l=g.call(m,l,s);break t}l=g;break t;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null===(s="function"===typeof(g=y.payload)?g.call(m,l,s):g)||void 0===s)break t;l=o({},l,s);break t;case 2:fo=!0}}null!==p.callback&&(t.effectTag|=32,null===(s=i.effects)?i.effects=[p]:s.push(p))}if(null===(p=p.next)||p===u){if(null===(s=i.shared.pending))break;p=a.next=s.next,s.next=u,i.baseQueue=a=s,i.shared.pending=null}}null===f?d=l:f.next=h,i.baseState=d,i.baseQueue=f,Cu(c),t.expirationTime=c,t.memoizedState=l}}function bo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(s(191,r));r.call(i)}}}var wo=J.ReactCurrentBatchConfig,ko=(new i.Component).refs;function So(t,e,n,r){n=null===(n=n(r,e=t.memoizedState))||void 0===n?e:o({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var Eo={isMounted:function(t){return!!(t=t._reactInternalFiber)&&ne(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=du(),i=wo.suspense;(i=go(r=hu(r,t,i),i)).payload=e,void 0!==n&&null!==n&&(i.callback=n),yo(t,i),fu(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=du(),i=wo.suspense;(i=go(r=hu(r,t,i),i)).tag=1,i.payload=e,void 0!==n&&null!==n&&(i.callback=n),yo(t,i),fu(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=du(),r=wo.suspense;(r=go(n=hu(n,t,r),r)).tag=2,void 0!==e&&null!==e&&(r.callback=e),yo(t,r),fu(t,n)}};function Co(t,e,n,r,i,o,a){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!Gr(n,r)||!Gr(i,o))}function xo(t,e,n){var i=!1,o=vi,a=e.contextType;return"object"===r(a)&&null!==a?a=ho(a):(o=Si(e)?wi:_i.current,a=(i=null!==(i=e.contextTypes)&&void 0!==i)?ki(t,o):vi),e=new e(n,a),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=Eo,t.stateNode=e,e._reactInternalFiber=t,i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=a),e}function Do(t,e,n,r){t=e.state,"function"===typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"===typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Eo.enqueueReplaceState(e,e.state,null)}function Ao(t,e,n,i){var o=t.stateNode;o.props=n,o.state=t.memoizedState,o.refs=ko,po(t);var a=e.contextType;"object"===r(a)&&null!==a?o.context=ho(a):(a=Si(e)?wi:_i.current,o.context=ki(t,a)),_o(t,n,o,i),o.state=t.memoizedState,"function"===typeof(a=e.getDerivedStateFromProps)&&(So(t,e,a,n),o.state=t.memoizedState),"function"===typeof e.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(e=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),e!==o.state&&Eo.enqueueReplaceState(o,o.state,null),_o(t,n,o,i),o.state=t.memoizedState),"function"===typeof o.componentDidMount&&(t.effectTag|=4)}var To=Array.isArray;function Mo(t,e,n){if(null!==(t=n.ref)&&"function"!==typeof t&&"object"!==r(t)){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var i=n.stateNode}if(!i)throw Error(s(147,t));var o=""+t;return null!==e&&null!==e.ref&&"function"===typeof e.ref&&e.ref._stringRef===o?e.ref:(e=function(t){var e=i.refs;e===ko&&(e=i.refs={}),null===t?delete e[o]:e[o]=t},e._stringRef=o,e)}if("string"!==typeof t)throw Error(s(284));if(!n._owner)throw Error(s(290,t))}return t}function Lo(t,e){if("textarea"!==t.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function Oo(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function i(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e){return(t=Uu(t,e)).index=0,t.sibling=null,t}function a(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function u(e){return t&&null===e.alternate&&(e.effectTag=2),e}function l(t,e,n,r){return null===e||6!==e.tag?((e=$u(n,t.mode,r)).return=t,e):((e=o(e,n)).return=t,e)}function c(t,e,n,r){return null!==e&&e.elementType===n.type?((r=o(e,n.props)).ref=Mo(t,e,n),r.return=t,r):((r=qu(n.type,n.key,n.props,null,t.mode,r)).ref=Mo(t,e,n),r.return=t,r)}function d(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Ku(n,t.mode,r)).return=t,e):((e=o(e,n.children||[])).return=t,e)}function h(t,e,n,r,i){return null===e||7!==e.tag?((e=Gu(n,t.mode,r,i)).return=t,e):((e=o(e,n)).return=t,e)}function f(t,e,n){if("string"===typeof e||"number"===typeof e)return(e=$u(""+e,t.mode,n)).return=t,e;if("object"===r(e)&&null!==e){switch(e.$$typeof){case nt:return(n=qu(e.type,e.key,e.props,null,t.mode,n)).ref=Mo(t,null,e),n.return=t,n;case rt:return(e=Ku(e,t.mode,n)).return=t,e}if(To(e)||yt(e))return(e=Gu(e,t.mode,n,null)).return=t,e;Lo(t,e)}return null}function p(t,e,n,i){var o=null!==e?e.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(t,e,""+n,i);if("object"===r(n)&&null!==n){switch(n.$$typeof){case nt:return n.key===o?n.type===it?h(t,e,n.props.children,i,o):c(t,e,n,i):null;case rt:return n.key===o?d(t,e,n,i):null}if(To(n)||yt(n))return null!==o?null:h(t,e,n,i,null);Lo(t,n)}return null}function m(t,e,n,i,o){if("string"===typeof i||"number"===typeof i)return l(e,t=t.get(n)||null,""+i,o);if("object"===r(i)&&null!==i){switch(i.$$typeof){case nt:return t=t.get(null===i.key?n:i.key)||null,i.type===it?h(e,t,i.props.children,o,i.key):c(e,t,i,o);case rt:return d(e,t=t.get(null===i.key?n:i.key)||null,i,o)}if(To(i)||yt(i))return h(e,t=t.get(n)||null,i,o,null);Lo(e,i)}return null}function g(r,o,s,u){for(var l=null,c=null,d=o,h=o=0,g=null;null!==d&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var y=p(r,d,s[h],u);if(null===y){null===d&&(d=g);break}t&&d&&null===y.alternate&&e(r,d),o=a(y,o,h),null===c?l=y:c.sibling=y,c=y,d=g}if(h===s.length)return n(r,d),l;if(null===d){for(;h<s.length;h++)null!==(d=f(r,s[h],u))&&(o=a(d,o,h),null===c?l=d:c.sibling=d,c=d);return l}for(d=i(r,d);h<s.length;h++)null!==(g=m(d,r,h,s[h],u))&&(t&&null!==g.alternate&&d.delete(null===g.key?h:g.key),o=a(g,o,h),null===c?l=g:c.sibling=g,c=g);return t&&d.forEach((function(t){return e(r,t)})),l}function y(r,o,u,l){var c=yt(u);if("function"!==typeof c)throw Error(s(150));if(null==(u=c.call(u)))throw Error(s(151));for(var d=c=null,h=o,g=o=0,y=null,v=u.next();null!==h&&!v.done;g++,v=u.next()){h.index>g?(y=h,h=null):y=h.sibling;var _=p(r,h,v.value,l);if(null===_){null===h&&(h=y);break}t&&h&&null===_.alternate&&e(r,h),o=a(_,o,g),null===d?c=_:d.sibling=_,d=_,h=y}if(v.done)return n(r,h),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=f(r,v.value,l))&&(o=a(v,o,g),null===d?c=v:d.sibling=v,d=v);return c}for(h=i(r,h);!v.done;g++,v=u.next())null!==(v=m(h,r,g,v.value,l))&&(t&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===d?c=v:d.sibling=v,d=v);return t&&h.forEach((function(t){return e(r,t)})),c}return function(t,i,a,l){var c="object"===r(a)&&null!==a&&a.type===it&&null===a.key;c&&(a=a.props.children);var d="object"===r(a)&&null!==a;if(d)switch(a.$$typeof){case nt:t:{for(d=a.key,c=i;null!==c;){if(c.key===d){if(7===c.tag){if(a.type===it){n(t,c.sibling),(i=o(c,a.props.children)).return=t,t=i;break t}}else if(c.elementType===a.type){n(t,c.sibling),(i=o(c,a.props)).ref=Mo(t,c,a),i.return=t,t=i;break t}n(t,c);break}e(t,c),c=c.sibling}a.type===it?((i=Gu(a.props.children,t.mode,l,a.key)).return=t,t=i):((l=qu(a.type,a.key,a.props,null,t.mode,l)).ref=Mo(t,i,a),l.return=t,t=l)}return u(t);case rt:t:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(t,i.sibling),(i=o(i,a.children||[])).return=t,t=i;break t}n(t,i);break}e(t,i),i=i.sibling}(i=Ku(a,t.mode,l)).return=t,t=i}return u(t)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==i&&6===i.tag?(n(t,i.sibling),(i=o(i,a)).return=t,t=i):(n(t,i),(i=$u(a,t.mode,l)).return=t,t=i),u(t);if(To(a))return g(t,i,a,l);if(yt(a))return y(t,i,a,l);if(d&&Lo(t,a),"undefined"===typeof a&&!c)switch(t.tag){case 1:case 0:throw t=t.type,Error(s(152,t.displayName||t.name||"Component"))}return n(t,i)}}var Io=Oo(!0),Po=Oo(!1),Ro={},No={current:Ro},Fo={current:Ro},jo={current:Ro};function Bo(t){if(t===Ro)throw Error(s(174));return t}function Yo(t,e){switch(yi(jo,e),yi(Fo,t),yi(No,Ro),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Bt(null,"");break;default:e=Bt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}gi(No),yi(No,e)}function Ho(){gi(No),gi(Fo),gi(jo)}function zo(t){Bo(jo.current);var e=Bo(No.current),n=Bt(e,t.type);e!==n&&(yi(Fo,t),yi(No,n))}function Wo(t){Fo.current===t&&(gi(No),gi(Fo))}var Vo={current:0};function Uo(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===wn||n.data===kn))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function qo(t,e){return{responder:t,props:e}}var Go=J.ReactCurrentDispatcher,$o=J.ReactCurrentBatchConfig,Ko=0,Zo=null,Xo=null,Jo=null,Qo=!1;function ta(){throw Error(s(321))}function ea(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ur(t[n],e[n]))return!1;return!0}function na(t,e,n,r,i,o){if(Ko=o,Zo=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Go.current=null===t||null===t.memoizedState?Ca:xa,t=n(r,i),e.expirationTime===Ko){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(s(301));o+=1,Jo=Xo=null,e.updateQueue=null,Go.current=Da,t=n(r,i)}while(e.expirationTime===Ko)}if(Go.current=Ea,e=null!==Xo&&null!==Xo.next,Ko=0,Jo=Xo=Zo=null,Qo=!1,e)throw Error(s(300));return t}function ra(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Jo?Zo.memoizedState=Jo=t:Jo=Jo.next=t,Jo}function ia(){if(null===Xo){var t=Zo.alternate;t=null!==t?t.memoizedState:null}else t=Xo.next;var e=null===Jo?Zo.memoizedState:Jo.next;if(null!==e)Jo=e,Xo=t;else{if(null===t)throw Error(s(310));t={memoizedState:(Xo=t).memoizedState,baseState:Xo.baseState,baseQueue:Xo.baseQueue,queue:Xo.queue,next:null},null===Jo?Zo.memoizedState=Jo=t:Jo=Jo.next=t}return Jo}function oa(t,e){return"function"===typeof e?e(t):e}function aa(t){var e=ia(),n=e.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=t;var r=Xo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=a=o=null,l=i;do{var c=l.expirationTime;if(c<Ko){var d={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(a=u=d,o=r):u=u.next=d,c>Zo.expirationTime&&(Zo.expirationTime=c,Cu(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),Eu(c,l.suspenseConfig),r=l.eagerReducer===t?l.eagerState:t(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?o=r:u.next=a,Ur(r,e.memoizedState)||(ja=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=u,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function sa(t){var e=ia(),n=e.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{o=t(o,a.action),a=a.next}while(a!==i);Ur(o,e.memoizedState)||(ja=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function ua(t){var e=ra();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:t}).dispatch=Sa.bind(null,Zo,t),[e.memoizedState,t]}function la(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Zo.updateQueue)?(e={lastEffect:null},Zo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function ca(){return ia().memoizedState}function da(t,e,n,r){var i=ra();Zo.effectTag|=t,i.memoizedState=la(1|e,n,void 0,void 0===r?null:r)}function ha(t,e,n,r){var i=ia();r=void 0===r?null:r;var o=void 0;if(null!==Xo){var a=Xo.memoizedState;if(o=a.destroy,null!==r&&ea(r,a.deps))return void la(e,n,o,r)}Zo.effectTag|=t,i.memoizedState=la(1|e,n,o,r)}function fa(t,e){return da(516,4,t,e)}function pa(t,e){return ha(516,4,t,e)}function ma(t,e){return ha(4,2,t,e)}function ga(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function ya(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ha(4,2,ga.bind(null,e,t),n)}function va(){}function _a(t,e){return ra().memoizedState=[t,void 0===e?null:e],t}function ba(t,e){var n=ia();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&ea(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function wa(t,e){var n=ia();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&ea(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function ka(t,e,n){var r=$i();Zi(98>r?98:r,(function(){t(!0)})),Zi(97<r?97:r,(function(){var r=$o.suspense;$o.suspense=void 0===e?null:e;try{t(!1),n()}finally{$o.suspense=r}}))}function Sa(t,e,n){var r=du(),i=wo.suspense;i={expirationTime:r=hu(r,t,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=e.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),e.pending=i,o=t.alternate,t===Zo||null!==o&&o===Zo)Qo=!0,i.expirationTime=Ko,Zo.expirationTime=Ko;else{if(0===t.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Ur(s,a))return}catch(u){}fu(t,r)}}var Ea={readContext:ho,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useResponder:ta,useDeferredValue:ta,useTransition:ta},Ca={readContext:ho,useCallback:_a,useContext:ho,useEffect:fa,useImperativeHandle:function(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,da(4,2,ga.bind(null,e,t),n)},useLayoutEffect:function(t,e){return da(4,2,t,e)},useMemo:function(t,e){var n=ra();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=ra();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=Sa.bind(null,Zo,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},ra().memoizedState=t},useState:ua,useDebugValue:va,useResponder:qo,useDeferredValue:function(t,e){var n=ua(t),r=n[0],i=n[1];return fa((function(){var n=$o.suspense;$o.suspense=void 0===e?null:e;try{i(t)}finally{$o.suspense=n}}),[t,e]),r},useTransition:function(t){var e=ua(!1),n=e[0];return e=e[1],[_a(ka.bind(null,e,t),[e,t]),n]}},xa={readContext:ho,useCallback:ba,useContext:ho,useEffect:pa,useImperativeHandle:ya,useLayoutEffect:ma,useMemo:wa,useReducer:aa,useRef:ca,useState:function(){return aa(oa)},useDebugValue:va,useResponder:qo,useDeferredValue:function(t,e){var n=aa(oa),r=n[0],i=n[1];return pa((function(){var n=$o.suspense;$o.suspense=void 0===e?null:e;try{i(t)}finally{$o.suspense=n}}),[t,e]),r},useTransition:function(t){var e=aa(oa),n=e[0];return e=e[1],[ba(ka.bind(null,e,t),[e,t]),n]}},Da={readContext:ho,useCallback:ba,useContext:ho,useEffect:pa,useImperativeHandle:ya,useLayoutEffect:ma,useMemo:wa,useReducer:sa,useRef:ca,useState:function(){return sa(oa)},useDebugValue:va,useResponder:qo,useDeferredValue:function(t,e){var n=sa(oa),r=n[0],i=n[1];return pa((function(){var n=$o.suspense;$o.suspense=void 0===e?null:e;try{i(t)}finally{$o.suspense=n}}),[t,e]),r},useTransition:function(t){var e=sa(oa),n=e[0];return e=e[1],[ba(ka.bind(null,e,t),[e,t]),n]}},Aa=null,Ta=null,Ma=!1;function La(t,e){var n=Wu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Oa(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function Ia(t){if(Ma){var e=Ta;if(e){var n=e;if(!Oa(t,e)){if(!(e=Tn(n.nextSibling))||!Oa(t,e))return t.effectTag=-1025&t.effectTag|2,Ma=!1,void(Aa=t);La(Aa,n)}Aa=t,Ta=Tn(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,Ma=!1,Aa=t}}function Pa(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;Aa=t}function Ra(t){if(t!==Aa)return!1;if(!Ma)return Pa(t),Ma=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!xn(e,t.memoizedProps))for(e=Ta;e;)La(t,e),e=Tn(e.nextSibling);if(Pa(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(s(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if(n===bn){if(0===e){Ta=Tn(t.nextSibling);break t}e--}else n!==_n&&n!==kn&&n!==wn||e++}t=t.nextSibling}Ta=null}}else Ta=Aa?Tn(t.stateNode.nextSibling):null;return!0}function Na(){Ta=Aa=null,Ma=!1}var Fa=J.ReactCurrentOwner,ja=!1;function Ba(t,e,n,r){e.child=null===t?Po(e,null,n,r):Io(e,t.child,n,r)}function Ya(t,e,n,r,i){n=n.render;var o=e.ref;return co(e,i),r=na(t,e,n,r,o,i),null===t||ja?(e.effectTag|=1,Ba(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),rs(t,e,i))}function Ha(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!==typeof a||Vu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=qu(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,za(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Gr)(i,r)&&t.ref===e.ref)?rs(t,e,o):(e.effectTag|=1,(t=Uu(a,r)).ref=e.ref,t.return=e,e.child=t)}function za(t,e,n,r,i,o){return null!==t&&Gr(t.memoizedProps,r)&&t.ref===e.ref&&(ja=!1,i<o)?(e.expirationTime=t.expirationTime,rs(t,e,o)):Va(t,e,n,r,o)}function Wa(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Va(t,e,n,r,i){var o=Si(n)?wi:_i.current;return o=ki(e,o),co(e,i),n=na(t,e,n,r,o,i),null===t||ja?(e.effectTag|=1,Ba(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),rs(t,e,i))}function Ua(t,e,n,i,o){if(Si(n)){var a=!0;Di(e)}else a=!1;if(co(e,o),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),xo(e,n,i),Ao(e,n,i,o),i=!0;else if(null===t){var s=e.stateNode,u=e.memoizedProps;s.props=u;var l=s.context,c=n.contextType;"object"===r(c)&&null!==c?c=ho(c):c=ki(e,c=Si(n)?wi:_i.current);var d=n.getDerivedStateFromProps,h="function"===typeof d||"function"===typeof s.getSnapshotBeforeUpdate;h||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(u!==i||l!==c)&&Do(e,s,i,c),fo=!1;var f=e.memoizedState;s.state=f,_o(e,i,s,o),l=e.memoizedState,u!==i||f!==l||bi.current||fo?("function"===typeof d&&(So(e,n,d,i),l=e.memoizedState),(u=fo||Co(e,n,u,i,f,l,c))?(h||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(e.effectTag|=4)):("function"===typeof s.componentDidMount&&(e.effectTag|=4),e.memoizedProps=i,e.memoizedState=l),s.props=i,s.state=l,s.context=c,i=u):("function"===typeof s.componentDidMount&&(e.effectTag|=4),i=!1)}else s=e.stateNode,mo(t,e),u=e.memoizedProps,s.props=e.type===e.elementType?u:no(e.type,u),l=s.context,"object"===r(c=n.contextType)&&null!==c?c=ho(c):c=ki(e,c=Si(n)?wi:_i.current),(h="function"===typeof(d=n.getDerivedStateFromProps)||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(u!==i||l!==c)&&Do(e,s,i,c),fo=!1,l=e.memoizedState,s.state=l,_o(e,i,s,o),f=e.memoizedState,u!==i||l!==f||bi.current||fo?("function"===typeof d&&(So(e,n,d,i),f=e.memoizedState),(d=fo||Co(e,n,u,i,l,f,c))?(h||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(i,f,c),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(i,f,c)),"function"===typeof s.componentDidUpdate&&(e.effectTag|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!==typeof s.componentDidUpdate||u===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!==typeof s.getSnapshotBeforeUpdate||u===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),e.memoizedProps=i,e.memoizedState=f),s.props=i,s.state=f,s.context=c,i=d):("function"!==typeof s.componentDidUpdate||u===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!==typeof s.getSnapshotBeforeUpdate||u===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),i=!1);return qa(t,e,n,i,a,o)}function qa(t,e,n,r,i,o){Wa(t,e);var a=0!==(64&e.effectTag);if(!r&&!a)return i&&Ai(e,n,!1),rs(t,e,o);r=e.stateNode,Fa.current=e;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=Io(e,t.child,null,o),e.child=Io(e,null,s,o)):Ba(t,e,s,o),e.memoizedState=r.state,i&&Ai(e,n,!0),e.child}function Ga(t){var e=t.stateNode;e.pendingContext?Ci(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Ci(0,e.context,!1),Yo(t,e.containerInfo)}var $a,Ka,Za,Xa,Ja={dehydrated:null,retryTime:0};function Qa(t,e,n){var r,i=e.mode,o=e.pendingProps,a=Vo.current,s=!1;if((r=0!==(64&e.effectTag))||(r=0!==(2&a)&&(null===t||null!==t.memoizedState)),r?(s=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),yi(Vo,1&a),null===t){if(void 0!==o.fallback&&Ia(e),s){if(s=o.fallback,(o=Gu(null,i,0,null)).return=e,0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Gu(s,i,n,null)).return=e,o.sibling=n,e.memoizedState=Ja,e.child=o,n}return i=o.children,e.memoizedState=null,e.child=Po(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,s){if(o=o.fallback,(n=Uu(t,t.pendingProps)).return=e,0===(2&e.mode)&&(s=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Uu(i,o)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=Ja,e.child=n,i}return n=Io(e,t.child,o.children,n),e.memoizedState=null,e.child=n}if(t=t.child,s){if(s=o.fallback,(o=Gu(null,i,0,null)).return=e,o.child=t,null!==t&&(t.return=o),0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Gu(s,i,n,null)).return=e,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,e.memoizedState=Ja,e.child=o,n}return e.memoizedState=null,e.child=Io(e,t,o.children,n)}function ts(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),lo(t.return,e)}function es(t,e,n,r,i,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function ns(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Ba(t,e,r.children,n),0!==(2&(r=Vo.current)))r=1&r|2,e.effectTag|=64;else{if(null!==t&&0!==(64&t.effectTag))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&ts(t,n);else if(19===t.tag)ts(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(yi(Vo,r),0===(2&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===Uo(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),es(e,!1,i,n,o,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===Uo(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}es(e,!0,n,null,o,e.lastEffect);break;case"together":es(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function rs(t,e,n){null!==t&&(e.dependencies=t.dependencies);var r=e.expirationTime;if(0!==r&&Cu(r),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(s(153));if(null!==e.child){for(n=Uu(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Uu(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function is(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function os(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return Si(e.type)&&Ei(),null;case 3:return Ho(),gi(bi),gi(_i),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!Ra(e)||(e.effectTag|=4),Ka(e),null;case 5:Wo(e),n=Bo(jo.current);var i=e.type;if(null!==t&&null!=e.stateNode)Za(t,e,i,r,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(s(166));return null}if(t=Bo(No.current),Ra(e)){r=e.stateNode,i=e.type;var a=e.memoizedProps;switch(r[On]=e,r[In]=a,i){case"iframe":case"object":case"embed":Ze("load",r);break;case"video":case"audio":for(t=0;t<Qt.length;t++)Ze(Qt[t],r);break;case"source":Ze("error",r);break;case"img":case"image":case"link":Ze("error",r),Ze("load",r);break;case"form":Ze("reset",r),Ze("submit",r);break;case"details":Ze("toggle",r);break;case"input":Ct(r,a),Ze("invalid",r),dn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Ze("invalid",r),dn(n,"onChange");break;case"textarea":It(r,a),Ze("invalid",r),dn(n,"onChange")}for(var u in un(i,a),t=null,a)if(a.hasOwnProperty(u)){var l=a[u];"children"===u?"string"===typeof l?r.textContent!==l&&(t=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(t=["children",""+l]):C.hasOwnProperty(u)&&null!=l&&dn(n,u)}switch(i){case"input":kt(r),At(r,a,!0);break;case"textarea":kt(r),Rt(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=hn)}n=t,e.updateQueue=n,null!==n&&(e.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,t===cn&&(t=jt(i)),t===cn?"script"===i?((t=u.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"===typeof r.is?t=u.createElement(i,{is:r.is}):(t=u.createElement(i),"select"===i&&(u=t,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):t=u.createElementNS(t,i),t[On]=e,t[In]=r,$a(t,e,!1,!1),e.stateNode=t,u=ln(i,r),i){case"iframe":case"object":case"embed":Ze("load",t),l=r;break;case"video":case"audio":for(l=0;l<Qt.length;l++)Ze(Qt[l],t);l=r;break;case"source":Ze("error",t),l=r;break;case"img":case"image":case"link":Ze("error",t),Ze("load",t),l=r;break;case"form":Ze("reset",t),Ze("submit",t),l=r;break;case"details":Ze("toggle",t),l=r;break;case"input":Ct(t,r),l=Et(t,r),Ze("invalid",t),dn(n,"onChange");break;case"option":l=Mt(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},l=o({},r,{value:void 0}),Ze("invalid",t),dn(n,"onChange");break;case"textarea":It(t,r),l=Ot(t,r),Ze("invalid",t),dn(n,"onChange");break;default:l=r}un(i,l);var c=l;for(a in c)if(c.hasOwnProperty(a)){var d=c[a];"style"===a?an(t,d):"dangerouslySetInnerHTML"===a?null!=(d=d?d.__html:void 0)&&zt(t,d):"children"===a?"string"===typeof d?("textarea"!==i||""!==d)&&Wt(t,d):"number"===typeof d&&Wt(t,""+d):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(C.hasOwnProperty(a)?null!=d&&dn(n,a):null!=d&&Q(t,a,d,u))}switch(i){case"input":kt(t),At(t,r,!1);break;case"textarea":kt(t),Rt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+bt(r.value));break;case"select":t.multiple=!!r.multiple,null!=(n=r.value)?Lt(t,!!r.multiple,n,!1):null!=r.defaultValue&&Lt(t,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof l.onClick&&(t.onclick=hn)}Cn(i,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Xa(t,e,t.memoizedProps,r);else{if("string"!==typeof r&&null===e.stateNode)throw Error(s(166));n=Bo(jo.current),Bo(No.current),Ra(e)?(n=e.stateNode,r=e.memoizedProps,n[On]=e,n.nodeValue!==r&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[On]=e,e.stateNode=n)}return null;case 13:return gi(Vo),r=e.memoizedState,0!==(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&Ra(e):(r=null!==(i=t.memoizedState),n||null===i||null!==(i=t.child.sibling)&&(null!==(a=e.firstEffect)?(e.firstEffect=i,i.nextEffect=a):(e.firstEffect=e.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!==(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!==(1&Vo.current)?Us===Rs&&(Us=js):(Us!==Rs&&Us!==js||(Us=Bs),0!==Zs&&null!==zs&&(Ju(zs,Vs),Qu(zs,Zs)))),(n||r)&&(e.effectTag|=4),null);case 4:return Ho(),Ka(e),null;case 10:return uo(e),null;case 19:if(gi(Vo),null===(r=e.memoizedState))return null;if(i=0!==(64&e.effectTag),null===(a=r.rendering)){if(i)is(r,!1);else if(Us!==Rs||null!==t&&0!==(64&t.effectTag))for(a=e.child;null!==a;){if(null!==(t=Uo(a))){for(e.effectTag|=64,is(r,!1),null!==(i=t.updateQueue)&&(e.updateQueue=i,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=e.child;null!==r;)a=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(t=i.alternate)?(i.childExpirationTime=0,i.expirationTime=a,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=t.childExpirationTime,i.expirationTime=t.expirationTime,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=null===a?null:{expirationTime:a.expirationTime,firstContext:a.firstContext,responders:a.responders}),r=r.sibling;return yi(Vo,1&Vo.current|2),e.child}a=a.sibling}}else{if(!i)if(null!==(t=Uo(a))){if(e.effectTag|=64,i=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),is(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Gi()-r.renderingStartTime>r.tailExpiration&&1<n&&(e.effectTag|=64,i=!0,is(r,!1),e.expirationTime=e.childExpirationTime=n-1);r.isBackwards?(a.sibling=e.child,e.child=a):(null!==(n=r.last)?n.sibling=a:e.child=a,r.last=a)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Gi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Gi(),n.sibling=null,e=Vo.current,yi(Vo,i?1&e|2:1&e),n):null}throw Error(s(156,e.tag))}function as(t){switch(t.tag){case 1:Si(t.type)&&Ei();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Ho(),gi(bi),gi(_i),0!==(64&(e=t.effectTag)))throw Error(s(285));return t.effectTag=-4097&e|64,t;case 5:return Wo(t),null;case 13:return gi(Vo),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return gi(Vo),null;case 4:return Ho(),null;case 10:return uo(t),null;default:return null}}function ss(t,e){return{value:t,source:e,stack:_t(e)}}$a=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ka=function(){},Za=function(t,e,n,r,i){var a=t.memoizedProps;if(a!==r){var s,u,l=e.stateNode;switch(Bo(No.current),t=null,n){case"input":a=Et(l,a),r=Et(l,r),t=[];break;case"option":a=Mt(l,a),r=Mt(l,r),t=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),t=[];break;case"textarea":a=Ot(l,a),r=Ot(l,r),t=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(l.onclick=hn)}for(s in un(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(u in l=a[s])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(C.hasOwnProperty(s)?t||(t=[]):(t=t||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(t||(t=[]),t.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(t=t||[]).push(s,c)):"children"===s?l===c||"string"!==typeof c&&"number"!==typeof c||(t=t||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(C.hasOwnProperty(s)?(null!=c&&dn(i,s),t||l===c||(t=[])):(t=t||[]).push(s,c))}n&&(t=t||[]).push("style",n),i=t,(e.updateQueue=i)&&(e.effectTag|=4)}},Xa=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var us="function"===typeof WeakSet?WeakSet:Set;function ls(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=_t(n)),null!==n&&vt(n.type),e=e.value,null!==t&&1===t.tag&&vt(t.type);try{console.error(e)}catch(i){setTimeout((function(){throw i}))}}function cs(t){var e=t.ref;if(null!==e)if("function"===typeof e)try{e(null)}catch(n){Fu(t,n)}else e.current=null}function ds(t,e){switch(e.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:no(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return}throw Error(s(163))}function hs(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==e)}}function fs(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function ps(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void fs(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var r=n.elementType===n.type?e.memoizedProps:no(n.type,e.memoizedProps);t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&bo(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:case 1:t=n.child.stateNode}bo(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&Cn(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Be(n)))))}throw Error(s(163))}function ms(t,e,n){switch("function"===typeof Hu&&Hu(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var r=t.next;Zi(97<n?97:n,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var i=e;try{n()}catch(o){Fu(i,o)}}t=t.next}while(t!==r)}))}break;case 1:cs(e),"function"===typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(n){Fu(t,n)}}(e,n);break;case 5:cs(e);break;case 4:ws(t,e,n)}}function gs(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&gs(e)}function ys(t){return 5===t.tag||3===t.tag||4===t.tag}function vs(t){t:{for(var e=t.return;null!==e;){if(ys(e)){var n=e;break t}e=e.return}throw Error(s(160))}switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.effectTag&&(Wt(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||ys(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}r?_s(t,n,e):bs(t,n,e)}function _s(t,e,n){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,e?8===n.nodeType?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(8===n.nodeType?(e=n.parentNode).insertBefore(t,n):(e=n).appendChild(t),null!==(n=n._reactRootContainer)&&void 0!==n||null!==e.onclick||(e.onclick=hn));else if(4!==r&&null!==(t=t.child))for(_s(t,e,n),t=t.sibling;null!==t;)_s(t,e,n),t=t.sibling}function bs(t,e,n){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(4!==r&&null!==(t=t.child))for(bs(t,e,n),t=t.sibling;null!==t;)bs(t,e,n),t=t.sibling}function ws(t,e,n){for(var r,i,o=e,a=!1;;){if(!a){a=o.return;t:for(;;){if(null===a)throw Error(s(160));switch(r=a.stateNode,a.tag){case 5:i=!1;break t;case 3:case 4:r=r.containerInfo,i=!0;break t}a=a.return}a=!0}if(5===o.tag||6===o.tag){t:for(var u=t,l=o,c=n,d=l;;)if(ms(u,d,c),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===l)break t;for(;null===d.sibling;){if(null===d.return||d.return===l)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}i?(u=r,l=o.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(ms(t,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function ks(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void hs(3,e);case 1:case 12:case 17:return;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[In]=r,"input"===t&&"radio"===r.type&&null!=r.name&&xt(n,r),ln(t,i),e=ln(t,r),i=0;i<o.length;i+=2){var a=o[i],u=o[i+1];"style"===a?an(n,u):"dangerouslySetInnerHTML"===a?zt(n,u):"children"===a?Wt(n,u):Q(n,a,u,e)}switch(t){case"input":Dt(n,r);break;case"textarea":Pt(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?Lt(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?Lt(n,!!r.multiple,r.defaultValue,!0):Lt(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(s(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Be(e.containerInfo)));case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Js=Gi()),null!==n)t:for(t=n;;){if(5===t.tag)o=t.stateNode,r?"function"===typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=t.stateNode,i=void 0!==(i=t.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,o.style.display=on("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(o=t.child.sibling).return=t,t=o;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void Ss(e);case 19:return void Ss(e)}throw Error(s(163))}function Ss(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new us),e.forEach((function(e){var r=Bu.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}var Es="function"===typeof WeakMap?WeakMap:Map;function Cs(t,e,n){(n=go(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){eu||(eu=!0,nu=r),ls(t,e)},n}function xs(t,e,n){(n=go(n,null)).tag=3;var r=t.type.getDerivedStateFromError;if("function"===typeof r){var i=e.value;n.payload=function(){return ls(t,e),r(i)}}var o=t.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===ru?ru=new Set([this]):ru.add(this),ls(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var Ds,As=Math.ceil,Ts=J.ReactCurrentDispatcher,Ms=J.ReactCurrentOwner,Ls=0,Os=8,Is=16,Ps=32,Rs=0,Ns=1,Fs=2,js=3,Bs=4,Ys=5,Hs=Ls,zs=null,Ws=null,Vs=0,Us=Rs,qs=null,Gs=1073741823,$s=1073741823,Ks=null,Zs=0,Xs=!1,Js=0,Qs=500,tu=null,eu=!1,nu=null,ru=null,iu=!1,ou=null,au=90,su=null,uu=0,lu=null,cu=0;function du(){return(Hs&(Is|Ps))!==Ls?1073741821-(Gi()/10|0):0!==cu?cu:cu=1073741821-(Gi()/10|0)}function hu(t,e,n){if(0===(2&(e=e.mode)))return 1073741823;var r=$i();if(0===(4&e))return 99===r?1073741823:1073741822;if((Hs&Is)!==Ls)return Vs;if(null!==n)t=eo(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=eo(t,150,100);break;case 97:case 96:t=eo(t,5e3,250);break;case 95:t=2;break;default:throw Error(s(326))}return null!==zs&&t===Vs&&--t,t}function fu(t,e){if(50<uu)throw uu=0,lu=null,Error(s(185));if(null!==(t=pu(t,e))){var n=$i();1073741823===e?(Hs&Os)!==Ls&&(Hs&(Is|Ps))===Ls?vu(t):(gu(t),Hs===Ls&&Qi()):gu(t),(4&Hs)===Ls||98!==n&&99!==n||(null===su?su=new Map([[t,e]]):(void 0===(n=su.get(t))||n>e)&&su.set(t,e))}}function pu(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(zs===i&&(Cu(e),Us===Bs&&Ju(i,Vs)),Qu(i,e)),i}function mu(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!Xu(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function gu(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Ji(vu.bind(null,t));else{var e=mu(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=du();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==Yi&&Li(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Ji(vu.bind(null,t)):Xi(r,yu.bind(null,t),{timeout:10*(1073741821-e)-Gi()}),t.callbackNode=e}}}function yu(t,e){if(cu=0,e)return tl(t,e=du()),gu(t),null;var n=mu(t);if(0!==n){if(e=t.callbackNode,(Hs&(Is|Ps))!==Ls)throw Error(s(327));if(Pu(),t===zs&&n===Vs||wu(t,n),null!==Ws){var r=Hs;Hs|=Is;for(var i=Su();;)try{Du();break}catch(u){ku(t,u)}if(so(),Hs=r,Ts.current=i,Us===Ns)throw e=qs,wu(t,n),Ju(t,n),gu(t),e;if(null===Ws)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Us,zs=null,r){case Rs:case Ns:throw Error(s(345));case Fs:tl(t,2<n?2:n);break;case js:if(Ju(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=Mu(i)),1073741823===Gs&&10<(i=Js+Qs-Gi())){if(Xs){var o=t.lastPingedTime;if(0===o||o>=n){t.lastPingedTime=n,wu(t,n);break}}if(0!==(o=mu(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=Dn(Lu.bind(null,t),i);break}Lu(t);break;case Bs:if(Ju(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=Mu(i)),Xs&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,wu(t,n);break}if(0!==(i=mu(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==$s?r=10*(1073741821-$s)-Gi():1073741823===Gs?r=0:(r=10*(1073741821-Gs)-5e3,0>(r=(i=Gi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*As(r/1960))-r)&&(r=n)),10<r){t.timeoutHandle=Dn(Lu.bind(null,t),r);break}Lu(t);break;case Ys:if(1073741823!==Gs&&null!==Ks){o=Gs;var a=Ks;if(0>=(r=0|a.busyMinDurationMs)?r=0:(i=0|a.busyDelayMs,r=(o=Gi()-(10*(1073741821-o)-(0|a.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Ju(t,n),t.timeoutHandle=Dn(Lu.bind(null,t),r);break}}Lu(t);break;default:throw Error(s(329))}if(gu(t),t.callbackNode===e)return yu.bind(null,t)}}return null}function vu(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,(Hs&(Is|Ps))!==Ls)throw Error(s(327));if(Pu(),t===zs&&e===Vs||wu(t,e),null!==Ws){var n=Hs;Hs|=Is;for(var r=Su();;)try{xu();break}catch(i){ku(t,i)}if(so(),Hs=n,Ts.current=r,Us===Ns)throw n=qs,wu(t,e),Ju(t,e),gu(t),n;if(null!==Ws)throw Error(s(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,zs=null,Lu(t),gu(t)}return null}function _u(t,e){var n=Hs;Hs|=1;try{return t(e)}finally{(Hs=n)===Ls&&Qi()}}function bu(t,e){var n=Hs;Hs&=-2,Hs|=Os;try{return t(e)}finally{(Hs=n)===Ls&&Qi()}}function wu(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,An(n)),null!==Ws)for(n=Ws.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ei();break;case 3:Ho(),gi(bi),gi(_i);break;case 5:Wo(r);break;case 4:Ho();break;case 13:case 19:gi(Vo);break;case 10:uo(r)}n=n.return}zs=t,Ws=Uu(t.current,null),Vs=e,Us=Rs,qs=null,$s=Gs=1073741823,Ks=null,Zs=0,Xs=!1}function ku(t,e){for(;;){try{if(so(),Go.current=Ea,Qo)for(var n=Zo.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}if(Ko=0,Jo=Xo=Zo=null,Qo=!1,null===Ws||null===Ws.return)return Us=Ns,qs=e,Ws=null;t:{var o=t,a=Ws.return,s=Ws,u=e;if(e=Vs,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"===r(u)&&"function"===typeof u.then){var l=u;if(0===(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.expirationTime=c.expirationTime):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&Vo.current),h=a;do{var f;if(f=13===h.tag){var p=h.memoizedState;if(null!==p)f=null!==p.dehydrated;else{var m=h.memoizedProps;f=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(f){var g=h.updateQueue;if(null===g){var y=new Set;y.add(l),h.updateQueue=y}else g.add(l);if(0===(2&h.mode)){if(h.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var v=go(1073741823,null);v.tag=2,yo(s,v)}s.expirationTime=1073741823;break t}u=void 0,s=e;var _=o.pingCache;if(null===_?(_=o.pingCache=new Es,u=new Set,_.set(l,u)):void 0===(u=_.get(l))&&(u=new Set,_.set(l,u)),!u.has(s)){u.add(s);var b=ju.bind(null,o,l,s);l.then(b,b)}h.effectTag|=4096,h.expirationTime=e;break t}h=h.return}while(null!==h);u=Error((vt(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+_t(s))}Us!==Ys&&(Us=Fs),u=ss(u,s),h=a;do{switch(h.tag){case 3:l=u,h.effectTag|=4096,h.expirationTime=e,vo(h,Cs(h,l,e));break t;case 1:l=u;var w=h.type,k=h.stateNode;if(0===(64&h.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===ru||!ru.has(k)))){h.effectTag|=4096,h.expirationTime=e,vo(h,xs(h,l,e));break t}}h=h.return}while(null!==h)}Ws=Tu(Ws)}catch(S){e=S;continue}break}}function Su(){var t=Ts.current;return Ts.current=Ea,null===t?Ea:t}function Eu(t,e){t<Gs&&2<t&&(Gs=t),null!==e&&t<$s&&2<t&&($s=t,Ks=e)}function Cu(t){t>Zs&&(Zs=t)}function xu(){for(;null!==Ws;)Ws=Au(Ws)}function Du(){for(;null!==Ws&&!Hi();)Ws=Au(Ws)}function Au(t){var e=Ds(t.alternate,t,Vs);return t.memoizedProps=t.pendingProps,null===e&&(e=Tu(t)),Ms.current=null,e}function Tu(t){Ws=t;do{var e=Ws.alternate;if(t=Ws.return,0===(2048&Ws.effectTag)){if(e=os(e,Ws,Vs),1===Vs||1!==Ws.childExpirationTime){for(var n=0,r=Ws.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ws.childExpirationTime=n}if(null!==e)return e;null!==t&&0===(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=Ws.firstEffect),null!==Ws.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=Ws.firstEffect),t.lastEffect=Ws.lastEffect),1<Ws.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=Ws:t.firstEffect=Ws,t.lastEffect=Ws))}else{if(null!==(e=as(Ws)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=Ws.sibling))return e;Ws=t}while(null!==Ws);return Us===Rs&&(Us=Ys),null}function Mu(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function Lu(t){var e=$i();return Zi(99,Ou.bind(null,t,e)),null}function Ou(t,e){do{Pu()}while(null!==ou);if((Hs&(Is|Ps))!==Ls)throw Error(s(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(s(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=Mu(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===zs&&(Ws=zs=null,Vs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Hs;Hs|=Ps,Ms.current=null,Sn=Ke;var a=yn();if(vn(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else t:{var l=(u=(u=a.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{u.nodeType,d.nodeType}catch(x){u=null;break t}var h=0,f=-1,p=-1,m=0,g=0,y=a,v=null;e:for(;;){for(var _;y!==u||0!==c&&3!==y.nodeType||(f=h+c),y!==d||0!==l&&3!==y.nodeType||(p=h+l),3===y.nodeType&&(h+=y.nodeValue.length),null!==(_=y.firstChild);)v=y,y=_;for(;;){if(y===a)break e;if(v===u&&++m===c&&(f=h),v===d&&++g===l&&(p=h),null!==(_=y.nextSibling))break;v=(y=v).parentNode}y=_}u=-1===f||-1===p?null:{start:f,end:p}}else u=null}u=u||{start:0,end:0}}else u=null;En={activeElementDetached:null,focusedElem:a,selectionRange:u},Ke=!1,tu=i;do{try{Iu()}catch(x){if(null===tu)throw Error(s(330));Fu(tu,x),tu=tu.nextEffect}}while(null!==tu);tu=i;do{try{for(a=t,u=e;null!==tu;){var b=tu.effectTag;if(16&b&&Wt(tu.stateNode,""),128&b){var w=tu.alternate;if(null!==w){var k=w.ref;null!==k&&("function"===typeof k?k(null):k.current=null)}}switch(1038&b){case 2:vs(tu),tu.effectTag&=-3;break;case 6:vs(tu),tu.effectTag&=-3,ks(tu.alternate,tu);break;case 1024:tu.effectTag&=-1025;break;case 1028:tu.effectTag&=-1025,ks(tu.alternate,tu);break;case 4:ks(tu.alternate,tu);break;case 8:ws(a,c=tu,u),gs(c)}tu=tu.nextEffect}}catch(x){if(null===tu)throw Error(s(330));Fu(tu,x),tu=tu.nextEffect}}while(null!==tu);if(k=En,w=yn(),b=k.focusedElem,u=k.selectionRange,w!==b&&b&&b.ownerDocument&&gn(b.ownerDocument.documentElement,b)){null!==u&&vn(b)&&(w=u.start,void 0===(k=u.end)&&(k=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(k,b.value.length)):(k=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(k=k.getSelection(),c=b.textContent.length,a=Math.min(u.start,c),u=void 0===u.end?a:Math.min(u.end,c),!k.extend&&a>u&&(c=u,u=a,a=c),c=mn(b,a),d=mn(b,u),c&&d&&(1!==k.rangeCount||k.anchorNode!==c.node||k.anchorOffset!==c.offset||k.focusNode!==d.node||k.focusOffset!==d.offset)&&((w=w.createRange()).setStart(c.node,c.offset),k.removeAllRanges(),a>u?(k.addRange(w),k.extend(d.node,d.offset)):(w.setEnd(d.node,d.offset),k.addRange(w))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(k=w[b]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Ke=!!Sn,En=Sn=null,t.current=n,tu=i;do{try{for(b=t;null!==tu;){var S=tu.effectTag;if(36&S&&ps(b,tu.alternate,tu),128&S){w=void 0;var E=tu.ref;if(null!==E){var C=tu.stateNode;tu.tag,w=C,"function"===typeof E?E(w):E.current=w}}tu=tu.nextEffect}}catch(x){if(null===tu)throw Error(s(330));Fu(tu,x),tu=tu.nextEffect}}while(null!==tu);tu=null,zi(),Hs=o}else t.current=n;if(iu)iu=!1,ou=t,au=e;else for(tu=i;null!==tu;)e=tu.nextEffect,tu.nextEffect=null,tu=e;if(0===(e=t.firstPendingTime)&&(ru=null),1073741823===e?t===lu?uu++:(uu=0,lu=t):uu=0,"function"===typeof Yu&&Yu(n.stateNode,r),gu(t),eu)throw eu=!1,t=nu,nu=null,t;return(Hs&Os)!==Ls||Qi(),null}function Iu(){for(;null!==tu;){var t=tu.effectTag;0!==(256&t)&&ds(tu.alternate,tu),0===(512&t)||iu||(iu=!0,Xi(97,(function(){return Pu(),null}))),tu=tu.nextEffect}}function Pu(){if(90!==au){var t=97<au?97:au;return au=90,Zi(t,Ru)}}function Ru(){if(null===ou)return!1;var t=ou;if(ou=null,(Hs&(Is|Ps))!==Ls)throw Error(s(331));var e=Hs;for(Hs|=Ps,t=t.current.firstEffect;null!==t;){try{var n=t;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:hs(5,n),fs(5,n)}}catch(r){if(null===t)throw Error(s(330));Fu(t,r)}n=t.nextEffect,t.nextEffect=null,t=n}return Hs=e,Qi(),!0}function Nu(t,e,n){yo(t,e=Cs(t,e=ss(n,e),1073741823)),null!==(t=pu(t,1073741823))&&gu(t)}function Fu(t,e){if(3===t.tag)Nu(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){Nu(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ru||!ru.has(r))){yo(n,t=xs(n,t=ss(e,t),1073741823)),null!==(n=pu(n,1073741823))&&gu(n);break}}n=n.return}}function ju(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),zs===t&&Vs===n?Us===Bs||Us===js&&1073741823===Gs&&Gi()-Js<Qs?wu(t,Vs):Xs=!0:Xu(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,gu(t)))}function Bu(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=hu(e=du(),t,null)),null!==(t=pu(t,e))&&gu(t)}Ds=function(t,e,n){var i=e.expirationTime;if(null!==t){var o=e.pendingProps;if(t.memoizedProps!==o||bi.current)ja=!0;else{if(i<n){switch(ja=!1,e.tag){case 3:Ga(e),Na();break;case 5:if(zo(e),4&e.mode&&1!==n&&o.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:Si(e.type)&&Di(e);break;case 4:Yo(e,e.stateNode.containerInfo);break;case 10:i=e.memoizedProps.value,o=e.type._context,yi(ro,o._currentValue),o._currentValue=i;break;case 13:if(null!==e.memoizedState)return 0!==(i=e.child.childExpirationTime)&&i>=n?Qa(t,e,n):(yi(Vo,1&Vo.current),null!==(e=rs(t,e,n))?e.sibling:null);yi(Vo,1&Vo.current);break;case 19:if(i=e.childExpirationTime>=n,0!==(64&t.effectTag)){if(i)return ns(t,e,n);e.effectTag|=64}if(null!==(o=e.memoizedState)&&(o.rendering=null,o.tail=null),yi(Vo,Vo.current),!i)return null}return rs(t,e,n)}ja=!1}}else ja=!1;switch(e.expirationTime=0,e.tag){case 2:if(i=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,o=ki(e,_i.current),co(e,n),o=na(null,e,i,t,o,n),e.effectTag|=1,"object"===r(o)&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Si(i)){var a=!0;Di(e)}else a=!1;e.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,po(e);var u=i.getDerivedStateFromProps;"function"===typeof u&&So(e,i,u,t),o.updater=Eo,e.stateNode=o,o._reactInternalFiber=e,Ao(e,i,t,n),e=qa(null,e,i,!0,a,n)}else e.tag=0,Ba(null,e,o,n),e=e.child;return e;case 16:t:{if(o=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,e.type=o,a=e.tag=function(t){if("function"===typeof t)return Vu(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===ct)return 11;if(t===ft)return 14}return 2}(o),t=no(o,t),a){case 0:e=Va(null,e,o,t,n);break t;case 1:e=Ua(null,e,o,t,n);break t;case 11:e=Ya(null,e,o,t,n);break t;case 14:e=Ha(null,e,o,no(o.type,t),i,n);break t}throw Error(s(306,o,""))}return e;case 0:return i=e.type,o=e.pendingProps,Va(t,e,i,o=e.elementType===i?o:no(i,o),n);case 1:return i=e.type,o=e.pendingProps,Ua(t,e,i,o=e.elementType===i?o:no(i,o),n);case 3:if(Ga(e),i=e.updateQueue,null===t||null===i)throw Error(s(282));if(i=e.pendingProps,o=null!==(o=e.memoizedState)?o.element:null,mo(t,e),_o(e,i,null,n),(i=e.memoizedState.element)===o)Na(),e=rs(t,e,n);else{if((o=e.stateNode.hydrate)&&(Ta=Tn(e.stateNode.containerInfo.firstChild),Aa=e,o=Ma=!0),o)for(n=Po(e,null,i,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ba(t,e,i,n),Na();e=e.child}return e;case 5:return zo(e),null===t&&Ia(e),i=e.type,o=e.pendingProps,a=null!==t?t.memoizedProps:null,u=o.children,xn(i,o)?u=null:null!==a&&xn(i,a)&&(e.effectTag|=16),Wa(t,e),4&e.mode&&1!==n&&o.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Ba(t,e,u,n),e=e.child),e;case 6:return null===t&&Ia(e),null;case 13:return Qa(t,e,n);case 4:return Yo(e,e.stateNode.containerInfo),i=e.pendingProps,null===t?e.child=Io(e,null,i,n):Ba(t,e,i,n),e.child;case 11:return i=e.type,o=e.pendingProps,Ya(t,e,i,o=e.elementType===i?o:no(i,o),n);case 7:return Ba(t,e,e.pendingProps,n),e.child;case 8:case 12:return Ba(t,e,e.pendingProps.children,n),e.child;case 10:t:{i=e.type._context,o=e.pendingProps,u=e.memoizedProps,a=o.value;var l=e.type._context;if(yi(ro,l._currentValue),l._currentValue=a,null!==u)if(l=u.value,0===(a=Ur(l,a)?0:0|("function"===typeof i._calculateChangedBits?i._calculateChangedBits(l,a):1073741823))){if(u.children===o.children&&!bi.current){e=rs(t,e,n);break t}}else for(null!==(l=e.child)&&(l.return=e);null!==l;){var c=l.dependencies;if(null!==c){u=l.child;for(var d=c.firstContext;null!==d;){if(d.context===i&&0!==(d.observedBits&a)){1===l.tag&&((d=go(n,null)).tag=2,yo(l,d)),l.expirationTime<n&&(l.expirationTime=n),null!==(d=l.alternate)&&d.expirationTime<n&&(d.expirationTime=n),lo(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}d=d.next}}else u=10===l.tag&&l.type===e.type?null:l.child;if(null!==u)u.return=l;else for(u=l;null!==u;){if(u===e){u=null;break}if(null!==(l=u.sibling)){l.return=u.return,u=l;break}u=u.return}l=u}Ba(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,i=(a=e.pendingProps).children,co(e,n),i=i(o=ho(o,a.unstable_observedBits)),e.effectTag|=1,Ba(t,e,i,n),e.child;case 14:return a=no(o=e.type,e.pendingProps),Ha(t,e,o,a=no(o.type,a),i,n);case 15:return za(t,e,e.type,e.pendingProps,i,n);case 17:return i=e.type,o=e.pendingProps,o=e.elementType===i?o:no(i,o),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,Si(i)?(t=!0,Di(e)):t=!1,co(e,n),xo(e,i,o),Ao(e,i,o,n),qa(null,e,i,!0,t,n);case 19:return ns(t,e,n)}throw Error(s(156,e.tag))};var Yu=null,Hu=null;function zu(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Wu(t,e,n,r){return new zu(t,e,n,r)}function Vu(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Uu(t,e){var n=t.alternate;return null===n?((n=Wu(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function qu(t,e,n,i,o,a){var u=2;if(i=t,"function"===typeof t)Vu(t)&&(u=1);else if("string"===typeof t)u=5;else t:switch(t){case it:return Gu(n.children,o,a,e);case lt:u=8,o|=7;break;case ot:u=8,o|=1;break;case at:return(t=Wu(12,n,e,8|o)).elementType=at,t.type=at,t.expirationTime=a,t;case dt:return(t=Wu(13,n,e,o)).type=dt,t.elementType=dt,t.expirationTime=a,t;case ht:return(t=Wu(19,n,e,o)).elementType=ht,t.expirationTime=a,t;default:if("object"===r(t)&&null!==t)switch(t.$$typeof){case st:u=10;break t;case ut:u=9;break t;case ct:u=11;break t;case ft:u=14;break t;case pt:u=16,i=null;break t;case mt:u=22;break t}throw Error(s(130,null==t?t:r(t),""))}return(e=Wu(u,n,e,o)).elementType=t,e.type=i,e.expirationTime=a,e}function Gu(t,e,n,r){return(t=Wu(7,t,r,e)).expirationTime=n,t}function $u(t,e,n){return(t=Wu(6,t,null,e)).expirationTime=n,t}function Ku(t,e,n){return(e=Wu(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Zu(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Xu(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function Ju(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(r>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Qu(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function tl(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function el(t,e,n,r){var i=e.current,o=du(),a=wo.suspense;o=hu(o,i,a);t:if(n){e:{if(ne(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(s(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(Si(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(null!==u);throw Error(s(171))}if(1===n.tag){var l=n.type;if(Si(l)){n=xi(n,l,u);break t}}n=u}else n=vi;return null===e.context?e.context=n:e.pendingContext=n,(e=go(o,a)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),yo(i,e),fu(i,o),o}function nl(t){return(t=t.current).child?(t.child.tag,t.child.stateNode):null}function rl(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function il(t,e){rl(t,e),(t=t.alternate)&&rl(t,e)}function ol(t,e,n){var r=new Zu(t,e,n=null!=n&&!0===n.hydrate),i=Wu(3,null,null,2===e?7:1===e?3:0);r.current=i,i.stateNode=r,po(i),t[Pn]=r.current,n&&0!==e&&function(t,e){var n=ee(e);Te.forEach((function(t){ye(t,e,n)})),Me.forEach((function(t){ye(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=r}function al(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function sl(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var t=nl(a);s.call(t)}}el(e,a,t,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new ol(t,0,e?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var t=nl(a);u.call(t)}}bu((function(){el(e,a,t,i)}))}return nl(a)}function ul(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!al(e))throw Error(s(200));return function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:rt,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}(t,e,null,n)}ol.prototype.render=function(t){el(t,this._internalRoot,null,null)},ol.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;el(null,t,null,(function(){e[Pn]=null}))},ve=function(t){if(13===t.tag){var e=eo(du(),150,100);fu(t,e),il(t,e)}},_e=function(t){13===t.tag&&(fu(t,3),il(t,3))},be=function(t){if(13===t.tag){var e=du();fu(t,e=hu(e,t,null)),il(t,e)}},T=function(t,e,n){switch(e){case"input":if(Dt(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=jn(r);if(!i)throw Error(s(90));St(r),Dt(r,i)}}}break;case"textarea":Pt(t,n);break;case"select":null!=(e=n.value)&&Lt(t,!!n.multiple,e,!1)}},R=_u,N=function(t,e,n,r,i){var o=Hs;Hs|=4;try{return Zi(98,t.bind(null,e,n,r,i))}finally{(Hs=o)===Ls&&Qi()}},F=function(){(Hs&(1|Is|Ps))===Ls&&(function(){if(null!==su){var t=su;su=null,t.forEach((function(t,e){tl(e,t),gu(e)})),Qi()}}(),Pu())},j=function(t,e){var n=Hs;Hs|=2;try{return t(e)}finally{(Hs=n)===Ls&&Qi()}};var ll={Events:[Nn,Fn,jn,D,E,Un,function(t){se(t,Vn)},I,P,tn,ce,Pu,{current:!1}]};!function(t){var e=t.findFiberByHostInstance;(function(t){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);Yu=function(t){try{e.onCommitFiberRoot(n,t,void 0,64===(64&t.current.effectTag))}catch(r){}},Hu=function(t){try{e.onCommitFiberUnmount(n,t)}catch(r){}}}catch(r){}})(o({},t,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:J.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=oe(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Rn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ll,e.createPortal=ul,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"===typeof t.render)throw Error(s(188));throw Error(s(268,Object.keys(t)))}return t=null===(t=oe(e))?null:t.stateNode},e.flushSync=function(t,e){if((Hs&(Is|Ps))!==Ls)throw Error(s(187));var n=Hs;Hs|=1;try{return Zi(99,t.bind(null,e))}finally{Hs=n,Qi()}},e.hydrate=function(t,e,n){if(!al(e))throw Error(s(200));return sl(null,t,e,!0,n)},e.render=function(t,e,n){if(!al(e))throw Error(s(200));return sl(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!al(t))throw Error(s(40));return!!t._reactRootContainer&&(bu((function(){sl(null,null,t,!1,(function(){t._reactRootContainer=null,t[Pn]=null}))})),!0)},e.unstable_batchedUpdates=_u,e.unstable_createPortal=function(t,e){return ul(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!al(n))throw Error(s(200));if(null==t||void 0===t._reactInternalFiber)throw Error(s(38));return sl(t,e,n,!1,r)},e.version="16.14.0"},function(t,e,n){"use strict";t.exports=n(599)},function(t,e,n){"use strict";function r(t){return r="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},r(t)}var i,o,a,s,u;if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,c=null,d=function t(){if(null!==l)try{var n=e.unstable_now();l(!0,n),l=null}catch(r){throw setTimeout(t,0),r}},h=Date.now();e.unstable_now=function(){return Date.now()-h},i=function(t){null!==l?setTimeout(i,0,t):(l=t,setTimeout(d,0))},o=function(t,e){c=setTimeout(t,e)},a=function(){clearTimeout(c)},s=function(){return!1},u=e.unstable_forceFrameRate=function(){}}else{var f=window.performance,p=window.Date,m=window.setTimeout,g=window.clearTimeout;if("undefined"!==typeof console){var y=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===r(f)&&"function"===typeof f.now)e.unstable_now=function(){return f.now()};else{var v=p.now();e.unstable_now=function(){return p.now()-v}}var _=!1,b=null,w=-1,k=5,S=0;s=function(){return e.unstable_now()>=S},u=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<t?Math.floor(1e3/t):5};var E=new MessageChannel,C=E.port2;E.port1.onmessage=function(){if(null!==b){var t=e.unstable_now();S=t+k;try{b(!0,t)?C.postMessage(null):(_=!1,b=null)}catch(n){throw C.postMessage(null),n}}else _=!1},i=function(t){b=t,_||(_=!0,C.postMessage(null))},o=function(t,n){w=m((function(){t(e.unstable_now())}),n)},a=function(){g(w),w=-1}}function x(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<T(i,e)))break t;t[r]=e,t[n]=i,n=r}}function D(t){return void 0===(t=t[0])?null:t}function A(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],s=o+1,u=t[s];if(void 0!==a&&0>T(a,n))void 0!==u&&0>T(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==u&&0>T(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function T(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var M=[],L=[],O=1,I=null,P=3,R=!1,N=!1,F=!1;function j(t){for(var e=D(L);null!==e;){if(null===e.callback)A(L);else{if(!(e.startTime<=t))break;A(L),e.sortIndex=e.expirationTime,x(M,e)}e=D(L)}}function B(t){if(F=!1,j(t),!N)if(null!==D(M))N=!0,i(Y);else{var e=D(L);null!==e&&o(B,e.startTime-t)}}function Y(t,n){N=!1,F&&(F=!1,a()),R=!0;var r=P;try{for(j(n),I=D(M);null!==I&&(!(I.expirationTime>n)||t&&!s());){var i=I.callback;if(null!==i){I.callback=null,P=I.priorityLevel;var u=i(I.expirationTime<=n);n=e.unstable_now(),"function"===typeof u?I.callback=u:I===D(M)&&A(M),j(n)}else A(M);I=D(M)}if(null!==I)var l=!0;else{var c=D(L);null!==c&&o(B,c.startTime-n),l=!1}return l}finally{I=null,P=r,R=!1}}function H(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=u;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){N||R||(N=!0,i(Y))},e.unstable_getCurrentPriorityLevel=function(){return P},e.unstable_getFirstCallbackNode=function(){return D(M)},e.unstable_next=function(t){switch(P){case 1:case 2:case 3:var e=3;break;default:e=P}var n=P;P=e;try{return t()}finally{P=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=z,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=P;P=t;try{return e()}finally{P=n}},e.unstable_scheduleCallback=function(t,n,s){var u=e.unstable_now();if("object"===r(s)&&null!==s){var l=s.delay;l="number"===typeof l&&0<l?u+l:u,s="number"===typeof s.timeout?s.timeout:H(t)}else s=H(t),l=u;return t={id:O++,callback:n,priorityLevel:t,startTime:l,expirationTime:s=l+s,sortIndex:-1},l>u?(t.sortIndex=l,x(L,t),null===D(M)&&t===D(L)&&(F?a():F=!0,o(B,l-u))):(t.sortIndex=s,x(M,t),N||R||(N=!0,i(Y))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();j(t);var n=D(M);return n!==I&&null!==I&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<I.expirationTime||s()},e.unstable_wrapCallback=function(t){var e=P;return function(){var n=P;P=e;try{return t.apply(this,arguments)}finally{P=n}}}},function(t,e,n){"use strict";t.exports=n(601)},function(t,e,n){"use strict";function r(t){return r="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},r(t)}var i=n(272),o=n(4);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s="function"===typeof Symbol&&Symbol.for,u=s?Symbol.for("react.portal"):60106,l=s?Symbol.for("react.fragment"):60107,c=s?Symbol.for("react.strict_mode"):60108,d=s?Symbol.for("react.profiler"):60114,h=s?Symbol.for("react.provider"):60109,f=s?Symbol.for("react.context"):60110,p=s?Symbol.for("react.concurrent_mode"):60111,m=s?Symbol.for("react.forward_ref"):60112,g=s?Symbol.for("react.suspense"):60113,y=s?Symbol.for("react.suspense_list"):60120,v=s?Symbol.for("react.memo"):60115,_=s?Symbol.for("react.lazy"):60116,b=s?Symbol.for("react.block"):60121,w=s?Symbol.for("react.fundamental"):60117,k=s?Symbol.for("react.scope"):60119;function S(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case l:return"Fragment";case u:return"Portal";case d:return"Profiler";case c:return"StrictMode";case g:return"Suspense";case y:return"SuspenseList"}if("object"===r(t))switch(t.$$typeof){case f:return"Context.Consumer";case h:return"Context.Provider";case m:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case v:return S(t.type);case b:return S(t.render);case _:if(t=1===t._status?t._result:null)return S(t)}return null}var E=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;E.hasOwnProperty("ReactCurrentDispatcher")||(E.ReactCurrentDispatcher={current:null}),E.hasOwnProperty("ReactCurrentBatchConfig")||(E.ReactCurrentBatchConfig={suspense:null});var C={};function x(t,e){for(var n=0|t._threadCount;n<=e;n++)t[n]=t._currentValue2,t._threadCount=n+1}for(var D=new Uint16Array(16),A=0;15>A;A++)D[A]=A+1;D[15]=0;var T=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,M=Object.prototype.hasOwnProperty,L={},O={};function I(t){return!!M.call(O,t)||!M.call(L,t)&&(T.test(t)?O[t]=!0:(L[t]=!0,!1))}function P(t,e,n,i){if(null===e||"undefined"===typeof e||function(t,e,n,i){if(null!==n&&0===n.type)return!1;switch(r(e)){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function R(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){N[t]=new R(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];N[e]=new R(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){N[t]=new R(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){N[t]=new R(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){N[t]=new R(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){N[t]=new R(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){N[t]=new R(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){N[t]=new R(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){N[t]=new R(t,5,!1,t.toLowerCase(),null,!1)}));var F=/[\-:]([a-z])/g;function j(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(F,j);N[e]=new R(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(F,j);N[e]=new R(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(F,j);N[e]=new R(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){N[t]=new R(t,1,!1,t.toLowerCase(),null,!1)})),N.xlinkHref=new R("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){N[t]=new R(t,1,!1,t.toLowerCase(),null,!0)}));var B=/["'&<>]/;function Y(t){if("boolean"===typeof t||"number"===typeof t)return""+t;t=""+t;var e=B.exec(t);if(e){var n,r="",i=0;for(n=e.index;n<t.length;n++){switch(t.charCodeAt(n)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#x27;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}i!==n&&(r+=t.substring(i,n)),i=n+1,r+=e}t=i!==n?r+t.substring(i,n):r}return t}function H(t,e){var n,r=N.hasOwnProperty(t)?N[t]:null;return(n="style"!==t)&&(n=null!==r?0===r.type:2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])),n||P(t,e,r,!1)?"":null!==r?(t=r.attributeName,3===(n=r.type)||4===n&&!0===e?t+'=""':(r.sanitizeURL&&(e=""+e),t+'="'+Y(e)+'"')):I(t)?t+'="'+Y(e)+'"':""}var z="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},W=null,V=null,U=null,q=!1,G=!1,$=null,K=0;function Z(){if(null===W)throw Error(a(321));return W}function X(){if(0<K)throw Error(a(312));return{memoizedState:null,queue:null,next:null}}function J(){return null===U?null===V?(q=!1,V=U=X()):(q=!0,U=V):null===U.next?(q=!1,U=U.next=X()):(q=!0,U=U.next),U}function Q(t,e,n,r){for(;G;)G=!1,K+=1,U=null,n=t(e,r);return V=W=null,K=0,U=$=null,n}function tt(t,e){return"function"===typeof e?e(t):e}function et(t,e,n){if(W=Z(),U=J(),q){var r=U.queue;if(e=r.dispatch,null!==$&&void 0!==(n=$.get(r))){$.delete(r),r=U.memoizedState;do{r=t(r,n.action),n=n.next}while(null!==n);return U.memoizedState=r,[r,e]}return[U.memoizedState,e]}return t=t===tt?"function"===typeof e?e():e:void 0!==n?n(e):e,U.memoizedState=t,t=(t=U.queue={last:null,dispatch:null}).dispatch=nt.bind(null,W,t),[U.memoizedState,t]}function nt(t,e,n){if(!(25>K))throw Error(a(301));if(t===W)if(G=!0,t={action:n,next:null},null===$&&($=new Map),void 0===(n=$.get(e)))$.set(e,t);else{for(e=n;null!==e.next;)e=e.next;e.next=t}}function rt(){}var it=0,ot={readContext:function(t){var e=it;return x(t,e),t[e]},useContext:function(t){Z();var e=it;return x(t,e),t[e]},useMemo:function(t,e){if(W=Z(),e=void 0===e?null:e,null!==(U=J())){var n=U.memoizedState;if(null!==n&&null!==e){t:{var r=n[1];if(null===r)r=!1;else{for(var i=0;i<r.length&&i<e.length;i++)if(!z(e[i],r[i])){r=!1;break t}r=!0}}if(r)return n[0]}}return t=t(),U.memoizedState=[t,e],t},useReducer:et,useRef:function(t){W=Z();var e=(U=J()).memoizedState;return null===e?(t={current:t},U.memoizedState=t):e},useState:function(t){return et(tt,t)},useLayoutEffect:function(){},useCallback:function(t){return t},useImperativeHandle:rt,useEffect:rt,useDebugValue:rt,useResponder:function(t,e){return{props:e,responder:t}},useDeferredValue:function(t){return Z(),t},useTransition:function(){return Z(),[function(t){t()},!1]}},at="http://www.w3.org/1999/xhtml";function st(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var ut={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},lt=i({menuitem:!0},ut),ct={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},dt=["Webkit","ms","Moz","O"];Object.keys(ct).forEach((function(t){dt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ct[e]=ct[t]}))}));var ht=/([A-Z])/g,ft=/^ms-/,pt=o.Children.toArray,mt=E.ReactCurrentDispatcher,gt={listing:!0,pre:!0,textarea:!0},yt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,vt={},_t={};var bt=Object.prototype.hasOwnProperty,wt={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function kt(t,e){if(void 0===t)throw Error(a(152,S(e)||"Component"))}function St(t,e,n){function s(o,s){var u=s.prototype&&s.prototype.isReactComponent,l=function(t,e,n,i){if(i&&"object"===r(i=t.contextType)&&null!==i)return x(i,n),i[n];if(t=t.contextTypes){for(var o in n={},t)n[o]=e[o];e=n}else e=C;return e}(s,e,n,u),c=[],d=!1,h={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===c)return null},enqueueReplaceState:function(t,e){d=!0,c=[e]},enqueueSetState:function(t,e){if(null===c)return null;c.push(e)}};if(u){if(u=new s(o.props,l,h),"function"===typeof s.getDerivedStateFromProps){var f=s.getDerivedStateFromProps.call(null,o.props,u.state);null!=f&&(u.state=i({},u.state,f))}}else if(W={},u=s(o.props,l,h),null==(u=Q(s,o.props,u,l))||null==u.render)return void kt(t=u,s);if(u.props=o.props,u.context=l,u.updater=h,void 0===(h=u.state)&&(u.state=h=null),"function"===typeof u.UNSAFE_componentWillMount||"function"===typeof u.componentWillMount)if("function"===typeof u.componentWillMount&&"function"!==typeof s.getDerivedStateFromProps&&u.componentWillMount(),"function"===typeof u.UNSAFE_componentWillMount&&"function"!==typeof s.getDerivedStateFromProps&&u.UNSAFE_componentWillMount(),c.length){h=c;var p=d;if(c=null,d=!1,p&&1===h.length)u.state=h[0];else{f=p?h[0]:u.state;var m=!0;for(p=p?1:0;p<h.length;p++){var g=h[p];null!=(g="function"===typeof g?g.call(u,f,o.props,l):g)&&(m?(m=!1,f=i({},f,g)):i(f,g))}u.state=f}}else c=null;if(kt(t=u.render(),s),"function"===typeof u.getChildContext&&"object"===r(o=s.childContextTypes)){var y=u.getChildContext();for(var v in y)if(!(v in o))throw Error(a(108,S(s)||"Unknown",v))}y&&(e=i({},e,y))}for(;o.isValidElement(t);){var u=t,l=u.type;if("function"!==typeof l)break;s(u,l)}return{child:t,context:e}}var Et=function(){function t(t,e){o.isValidElement(t)?t.type!==l?t=[t]:(t=t.props.children,t=o.isValidElement(t)?[t]:pt(t)):t=pt(t),t={type:null,domNamespace:at,children:t,childIndex:0,context:C,footer:""};var n=D[0];if(0===n){var r=D,i=2*(n=r.length);if(!(65536>=i))throw Error(a(304));var s=new Uint16Array(i);for(s.set(r),(D=s)[0]=n+1,r=n;r<i-1;r++)D[r]=r+1;D[i-1]=0}else D[0]=D[n];this.threadID=n,this.stack=[t],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=e,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var e=t.prototype;return e.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var t=this.threadID;D[t]=D[0],D[0]=t}},e.pushProvider=function(t){var e=++this.contextIndex,n=t.type._context,r=this.threadID;x(n,r);var i=n[r];this.contextStack[e]=n,this.contextValueStack[e]=i,n[r]=t.props.value},e.popProvider=function(){var t=this.contextIndex,e=this.contextStack[t],n=this.contextValueStack[t];this.contextStack[t]=null,this.contextValueStack[t]=null,this.contextIndex--,e[this.threadID]=n},e.clearProviders=function(){for(var t=this.contextIndex;0<=t;t--)this.contextStack[t][this.threadID]=this.contextValueStack[t]},e.read=function(t){if(this.exhausted)return null;var e=it;it=this.threadID;var n=mt.current;mt.current=ot;try{for(var r=[""],i=!1;r[0].length<t;){if(0===this.stack.length){this.exhausted=!0;var o=this.threadID;D[o]=D[0],D[0]=o;break}var s=this.stack[this.stack.length-1];if(i||s.childIndex>=s.children.length){var u=s.footer;if(""!==u&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===h)this.popProvider(s.type);else if(s.type===g){this.suspenseDepth--;var l=r.pop();if(i){i=!1;var c=s.fallbackFrame;if(!c)throw Error(a(303));this.stack.push(c),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=l}r[this.suspenseDepth]+=u}else{var d=s.children[s.childIndex++],f="";try{f+=this.render(d,s.context,s.domNamespace)}catch(p){if(null!=p&&"function"===typeof p.then)throw Error(a(294));throw p}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=f}}return r[0]}finally{mt.current=n,it=e}},e.render=function(t,e,n){if("string"===typeof t||"number"===typeof t)return""===(n=""+t)?"":this.makeStaticMarkup?Y(n):this.previousWasTextNode?"\x3c!-- --\x3e"+Y(n):(this.previousWasTextNode=!0,Y(n));if(t=(e=St(t,e,this.threadID)).child,e=e.context,null===t||!1===t)return"";if(!o.isValidElement(t)){if(null!=t&&null!=t.$$typeof){if((n=t.$$typeof)===u)throw Error(a(257));throw Error(a(258,n.toString()))}return t=pt(t),this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),""}var s=t.type;if("string"===typeof s)return this.renderDOM(t,e,n);switch(s){case c:case p:case d:case y:case l:return t=pt(t.props.children),this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case g:throw Error(a(294))}if("object"===r(s)&&null!==s)switch(s.$$typeof){case m:W={};var b=s.render(t.props,t.ref);return b=Q(s.render,t.props,b,t.ref),b=pt(b),this.stack.push({type:null,domNamespace:n,children:b,childIndex:0,context:e,footer:""}),"";case v:return t=[o.createElement(s.type,i({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case h:return n={type:t,domNamespace:n,children:s=pt(t.props.children),childIndex:0,context:e,footer:""},this.pushProvider(t),this.stack.push(n),"";case f:s=t.type,b=t.props;var S=this.threadID;return x(s,S),s=pt(b.children(s[S])),this.stack.push({type:t,domNamespace:n,children:s,childIndex:0,context:e,footer:""}),"";case w:throw Error(a(338));case _:switch(function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(s=t.type),s._status){case 1:return t=[o.createElement(s._result,i({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case 2:throw s._result;default:throw Error(a(295))}case k:throw Error(a(343))}throw Error(a(130,null==s?s:r(s),""))},e.renderDOM=function(t,e,n){var s=t.type.toLowerCase();if(n===at&&st(s),!vt.hasOwnProperty(s)){if(!yt.test(s))throw Error(a(65,s));vt[s]=!0}var u=t.props;if("input"===s)u=i({type:void 0},u,{defaultChecked:void 0,defaultValue:void 0,value:null!=u.value?u.value:u.defaultValue,checked:null!=u.checked?u.checked:u.defaultChecked});else if("textarea"===s){var l=u.value;if(null==l){l=u.defaultValue;var c=u.children;if(null!=c){if(null!=l)throw Error(a(92));if(Array.isArray(c)){if(!(1>=c.length))throw Error(a(93));c=c[0]}l=""+c}null==l&&(l="")}u=i({},u,{value:void 0,children:""+l})}else if("select"===s)this.currentSelectValue=null!=u.value?u.value:u.defaultValue,u=i({},u,{value:void 0});else if("option"===s){c=this.currentSelectValue;var d=function(t){if(void 0===t||null===t)return t;var e="";return o.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(u.children);if(null!=c){var h=null!=u.value?u.value+"":d;if(l=!1,Array.isArray(c)){for(var f=0;f<c.length;f++)if(""+c[f]===h){l=!0;break}}else l=""+c===h;u=i({selected:void 0,children:void 0},u,{selected:l,children:d})}}if(l=u){if(lt[s]&&(null!=l.children||null!=l.dangerouslySetInnerHTML))throw Error(a(137,s,""));if(null!=l.dangerouslySetInnerHTML){if(null!=l.children)throw Error(a(60));if("object"!==r(l.dangerouslySetInnerHTML)||!("__html"in l.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=l.style&&"object"!==r(l.style))throw Error(a(62,""))}for(w in l=u,c=this.makeStaticMarkup,d=1===this.stack.length,h="<"+t.type,l)if(bt.call(l,w)){var p=l[w];if(null!=p){if("style"===w){f=void 0;var m="",g="";for(f in p)if(p.hasOwnProperty(f)){var y=0===f.indexOf("--"),v=p[f];if(null!=v){if(y)var _=f;else if(_=f,_t.hasOwnProperty(_))_=_t[_];else{var b=_.replace(ht,"-$1").toLowerCase().replace(ft,"-ms-");_=_t[_]=b}m+=g+_+":",g=f,m+=y=null==v||"boolean"===typeof v||""===v?"":y||"number"!==typeof v||0===v||ct.hasOwnProperty(g)&&ct[g]?(""+v).trim():v+"px",g=";"}}p=m||null}f=null;t:if(y=s,v=l,-1===y.indexOf("-"))y="string"===typeof v.is;else switch(y){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":y=!1;break t;default:y=!0}y?wt.hasOwnProperty(w)||(f=I(f=w)&&null!=p?f+'="'+Y(p)+'"':""):f=H(w,p),f&&(h+=" "+f)}}c||d&&(h+=' data-reactroot=""');var w=h;l="",ut.hasOwnProperty(s)?w+="/>":(w+=">",l="</"+t.type+">");t:{if(null!=(c=u.dangerouslySetInnerHTML)){if(null!=c.__html){c=c.__html;break t}}else if("string"===typeof(c=u.children)||"number"===typeof c){c=Y(c);break t}c=null}return null!=c?(u=[],gt.hasOwnProperty(s)&&"\n"===c.charAt(0)&&(w+="\n"),w+=c):u=pt(u.children),t=t.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?st(t):"http://www.w3.org/2000/svg"===n&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:s,children:u,childIndex:0,context:e,footer:l}),this.previousWasTextNode=!1,w},t}(),Ct={renderToString:function(t){t=new Et(t,!1);try{return t.read(1/0)}finally{t.destroy()}},renderToStaticMarkup:function(t){t=new Et(t,!0);try{return t.read(1/0)}finally{t.destroy()}},renderToNodeStream:function(){throw Error(a(207))},renderToStaticNodeStream:function(){throw Error(a(208))},version:"16.14.0"};t.exports=Ct.default||Ct},function(t,e,n){(function(e){var r=n(603),i=n(604),o=n(605),a=n(606),s=n(607);t.exports=function(t){t.handleEvent&&("undefined"!==typeof Turbolinks&&"undefined"!==typeof Turbolinks.EVENTS&&s.teardown(t),o.teardown(t),a.teardown(t),i.teardown(t),r.teardown(t)),"addEventListener"in window?(t.handleEvent=function(t,e){document.addEventListener(t,e)},t.removeEvent=function(t,e){document.removeEventListener(t,e)}):(t.handleEvent=function(t,e){window.attachEvent(t,e)},t.removeEvent=function(t,e){window.detachEvent(t,e)}),"undefined"!==typeof Turbolinks&&Turbolinks.supported?"undefined"!==typeof Turbolinks.EVENTS?s.setup(t):"undefined"!==typeof Turbolinks.controller?o.setup(t):a.setup(t):"undefined"!==typeof e&&"function"===typeof e.pjax?i.setup(t):r.setup(t)}}).call(this,n(15))},function(t,e){t.exports={setup:function(t){"addEventListener"in window?t.handleEvent("DOMContentLoaded",t.handleMount):t.handleEvent("onload",t.handleMount)},teardown:function(t){t.removeEvent("DOMContentLoaded",t.handleMount),t.removeEvent("onload",t.handleMount)}}},function(t,e){t.exports={setup:function(t){t.handleEvent("ready",t.handleMount),t.handleEvent("pjax:end",t.handleMount),t.handleEvent("pjax:beforeReplace",t.handleUnmount)},teardown:function(t){t.removeEvent("ready",t.handleMount),t.removeEvent("pjax:end",t.handleMount),t.removeEvent("pjax:beforeReplace",t.handleUnmount)}}},function(t,e){t.exports={setup:function(t){t.handleEvent("turbolinks:load",t.handleMount)},teardown:function(t){t.removeEvent("turbolinks:load",t.handleMount)}}},function(t,e){t.exports={setup:function(t){Turbolinks.pagesCached(0),t.handleEvent("page:change",t.handleMount),t.handleEvent("page:receive",t.handleUnmount)},teardown:function(t){t.removeEvent("page:change",t.handleMount),t.removeEvent("page:receive",t.handleUnmount)}}},function(t,e){t.exports={setup:function(t){t.handleEvent(Turbolinks.EVENTS.CHANGE,t.handleMount),t.handleEvent(Turbolinks.EVENTS.BEFORE_UNLOAD,t.handleUnmount)},teardown:function(t){t.removeEvent(Turbolinks.EVENTS.CHANGE,t.handleMount),t.removeEvent(Turbolinks.EVENTS.BEFORE_UNLOAD,t.handleUnmount)}}},function(t,e,n){var r=n(273),i=n(274);t.exports=function(t){var e=i(t);return function(t){var n;try{n=e(t)}catch(i){try{n=r(t)}catch(o){console.error(i),console.error(o)}}return n}}},function(t,e,n){var r=n(273),i=n(274);t.exports=function(t){var e=t.map((function(t){return i(t)}));return function(t){var n;try{var i,o,a=0;do{i=e[a];try{n=i(t)}catch(s){o||(o=s)}a+=1}while(a<e.length);if(!n)throw o}catch(o){try{n=r(t)}catch(u){console.error(o),console.error(u)}}return n}}},function(t,e,n){"use strict";(function(t,e,r){n(611),n(612),n(613),n(614),n(615),n(616),n(617),n(618),n(619);var i=n(64);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}window.initializeTimepointRow=i.e,window.initializeTimepointBarcodeField=i.d,window.clearTimepointBarcodeField=i.a,window.initializeTimepickers=i.c,t.configure({showSpinner:!1,ease:"ease",speed:500}),function(t){t.fn.inputFilter=function(t){return this.on("input keydown keyup mousedown mouseup select contextmenu drop",(function(){t(this.value)?(this.oldValue=this.value,this.oldSelectionStart=this.selectionStart,this.oldSelectionEnd=this.selectionEnd):this.hasOwnProperty("oldValue")?(this.value=this.oldValue,this.setSelectionRange(this.oldSelectionStart,this.oldSelectionEnd)):this.value=""}))}}(e),document.addEventListener("turbo:before-fetch-request",(function(){t.start()})),document.addEventListener("turbo:frame-render",(function(){t.done(),t.remove()})),document.addEventListener("turbo:before-stream-render",(function(){t.done(),t.remove()})),r(document).on("turbo:render",(function(){t.done(),t.remove()})),document.addEventListener("turbo:before-fetch-request",(function(t){t.detail.fetchOptions.headers["Turbo-Referrer"]=window.location.href,t.detail.fetchOptions.headers["X-Turbo-Nonce"]=r("meta[name='csp-nonce']").prop("content")})),document.addEventListener("turbo:before-cache",(function(){o(document.querySelectorAll("script[nonce]")).forEach((function(t){t.setAttribute("nonce",t.nonce)}))})),document.addEventListener("turbo:load",(function(){r("#version-icon").dblclick((function(){r('[data-toggle="tooltip"]').tooltip("dispose"),r(this).html('<i class="fas fa-alien" data-toggle="tooltip" title="GET SLOPED"></i> v1.24.3'),r('[data-toggle="tooltip"]').tooltip()})),r("#sidebar").mCustomScrollbar({theme:"minimal"}),r("#sidebarCollapse").on("click",(function(){r("#sidebar, #content").toggleClass("active"),r(".collapse.in").toggleClass("in"),r(".sidebar-collapse-toggle[aria-expanded=true]").attr("aria-expanded","false")})),gtag("config","",{page_path:window.location.pathname}),r.extend(r.fn.datepicker.defaults,{orientation:"auto auto",todayHighlight:!0,format:"dd-M-yyyy",assumeNearbyYear:!0}),r(".datepicker").datepicker(),r(".timepicker").timepicker({showMeridian:!1,showSeconds:!0,minuteStep:10,secondStep:10,icons:{up:"fas fa-chevron-up",down:"fas fa-chevron-down"}}),r(".best_in_place").best_in_place(),r('[data-toggle="tooltip"]').tooltip({trigger:"hover"}),r('[data-toggle="popover"]').popover(),r('[data-toggle="tooltip"]').on("click",(function(){r(this).tooltip("hide")})),r(".multi-select").checkboxes("range",!0),r('#item-table-tabs a[data-toggle="tab"]').on("show.bs.tab",(function(t){var e=r("#items_info").data("resource-id"),n=r(t.target).data("state"),i=r("#items_info").data("context"),o=r("#items_info").data("redirect-path"),a=r("#items_info").data("params"),s=r(t.target).data("loaded"),u={id:e,state:n,context:i,redirect_path:"".concat(o,"?state=").concat(n)},l=n+"_page";u[l]=a[l],a.inventory_type&&(u.inventory_type=a.inventory_type),a.workspace_id&&(u.workspace_id=a.workspace_id),n&&!s&&(r("#"+n).spin({top:"60%"}),r.ajax({type:"GET",url:"/items/fetch",data:u,dataType:"script"}).done((function(){r("#"+n).spin(!1),r(t.target).data("loaded",!0)})))})),r('a[data-toggle="tab"]').on("click",(function(t){history.replaceState({turbo:!0},null,r(this).attr("href"))})),""!==location.hash&&r('a[href="'+location.hash+'"]').tab("show"),r(".items-table-manage").hide(),r(".items-table-transition").hide(),r(".items-table-uncheck-all").hide(),r("body").on("click",".disabled",(function(t){t.preventDefault()}));function n(t,e,n,i,o){if(r(n).hasClass("disabled"))e.preventDefault();else{e.preventDefault();var a=r("<input>").attr("type","hidden").attr("name","transition_action").val(t),s=r("<input>").attr("type","hidden").attr("name","can_transition_reserved").val(o);i.append(r(a)),i.append(r(s)),i.submit()}}function o(t){"Clinical Trial"==t?(r("#protocol-clinical-trial-attribute-fields").show(),r("#protocol-clinical-trial-attribute-fields #protocol_name").prop("disabled",!1),r("#protocol-supplies-attribute-fields").hide(),r("#protocol-supplies-attribute-fields #protocol_name").prop("disabled",!0)):(r("#protocol-supplies-attribute-fields").show(),r("#protocol-supplies-attribute-fields #protocol_name").prop("disabled",!1),r("#protocol-clinical-trial-attribute-fields").hide(),r("#protocol-clinical-trial-attribute-fields #protocol_name").prop("disabled",!0))}function a(t,e,n){if(r(n).hasClass("disabled"))e.preventDefault();else{var i=r("<input>").attr("type","hidden").attr("name","transition_action").val(t);r("#edit_multiple_stock_form").append(r(i)),r("#edit_multiple_stock_form").submit()}}if(r(".tab-pane, .handle_edit_multiples").on("change",'.multi-select input[type="checkbox"]',(function(){var t=r(this).parents("tbody").find("tr").has("input[type=checkbox]:checked"),e=r(this).parents("form").find(".row-actions-button, .disable-when-checked"),n=r(this).parents("form").find("a.disable-when-checked"),i=r(this).parents("form").find(".actions-button-wrapper");t.length>0?(e.attr("disabled",!0),function(t){t.each((function(){r(this).removeAttr("href")}))}(n),i.attr("data-toggle","tooltip"),i.attr("data-placement","left"),i.attr("title","Click on the \u201cActions for checked items\u201d button"),i.tooltip(),i.tooltip("enable"),r("#page-entries-info").hide(),r(this).parents("form").find("#edit-multiple-controls").children(".items-table-manage").show(),r(this).parents("form").find("#edit-multiple-controls").children(".items-table-uncheck-all").show(),r(this).parents("form").find("#edit-multiple-controls").children(".items-table-check-all").hide(),r(this).parents("form").find("#edit-multiple-controls").children(".items-table-transition").show(),r(this).parents("form").find("#checked_item_count").text(t.length)):(e.attr("disabled",!1),function(t){t.each((function(){r(this).attr("href",r(this).attr("data-href"))}))}(n),i.tooltip("disable"),r("#page-entries-info").show(),r(this).parents("form").find("#edit-multiple-controls").children(".items-table-manage").hide(),r(this).parents("form").find("#edit-multiple-controls").children(".items-table-uncheck-all").hide(),r(this).parents("form").find("#edit-multiple-controls").children(".items-table-transition").hide(),r(this).parents("form").find("#edit-multiple-controls").children(".items-table-check-all").show());var o=r(this).parents("form").find(".delete_multiple_button"),a=r(this).parents("form").find(".delete_multiple_button_wrapper");t.filter((function(e){return!t[e].getAttribute("class").includes("can-delete")})).length>0?o.hasClass("disabled")||(o.toggleClass("disabled",!0),o.attr("disabled",!0),a.attr("data-toggle","tooltip"),a.attr("data-placement","bottom"),a.attr("title","One or more selected items cannot be deleted."),a.tooltip(),a.tooltip("enable")):o.hasClass("disabled")&&(o.toggleClass("disabled",!1),o.attr("disabled",!1),a.tooltip("disable"))})),r(".nav-item").on("click",(function(){r(".tab-pane").find(".actions-button-wrapper").tooltip("hide")})),r(".tab-pane").on("change",":checkbox",(function(){r(this).closest("tr").toggleClass("active",this.checked)})),r(".tab-pane").on("click",'[id="edit_multiple"]',(function(t){r(".tab-pane.active #edit_multiple_form").submit()})),r(".tab-pane").on("click",'[id="delete_multiple"]',(function(t){if(confirm("Are you sure?")){t.preventDefault();var e=r("<input>").attr("type","hidden").attr("name","item_action").val("delete");r(".tab-pane.active #edit_multiple_form").append(r(e)),r(".tab-pane.active #edit_multiple_form").submit()}else t.preventDefault()})),r(".tab-pane").on("click",".transition_multiple_items",(function(t){n(r(this).attr("data-action"),t,this,r(this).parents("form"),!1)})),r(".tab-pane").on("click",'[id="subject_visit_use_multiple"]',(function(t){r(this).parents("form").find("input#item_ids_:checked").parents("tr").find("td[id$='_state']").html('<i class="fas fa-spinner fa-spin"></i> Updating'),n("use",t,this,r(this).parents("form"),!0)})),r(".tab-pane").on("click",'[id="subject_visit_reset_multiple"]',(function(t){r(this).parents("form").find("input#item_ids_:checked").parents("tr").find("td[id$='_state']").html('<i class="fas fa-spinner fa-spin"></i> Updating'),n("reset",t,this,r(this).parents("form"),!0)})),r("#edit_multiple_form").on("click",'[id="add_to_shipment_multiple"]',(function(t){var e=r("<input>").attr("type","hidden").attr("name","shipment_action").val("add_multiple");r("#edit_multiple_form").append(r(e)),r("#edit_multiple_form").submit()})),"site_admin"==r("#invitation_role_select").val()?(r("#invitation_workspaces_list").hide(),r("#invitation_staff_accesss_list").hide()):"site_staff"==r("#invitation_role_select").val()&&(r("#invitation_workspaces_list").show(),r("#invitation_staff_accesss_list").show()),r("#invitation_role_select").change((function(){var t=r(this).val();"site_admin"==t?(r("#invitation_workspaces_list").hide(),r("#invitation_staff_accesss_list").hide()):"site_staff"==t&&(r("#invitation_staff_accesss_list").show(),r("#invitation_workspaces_list").show())})),"organization_admin"==r("#invitation_role_select").val()?r("#invitation_protocols_list").hide():"organization_staff"==r("#invitation_role_select").val()&&r("#invitation_protocols_list").show(),r("#invitation_role_select").change((function(){var t=r(this).val();"organization_admin"==t?r("#invitation_protocols_list").hide():"organization_staff"==t&&r("#invitation_protocols_list").show()})),"sponsor_admin"==r("#invitation_role_select").val()?(r("#invitation_protocols_list").hide(),r("#invitation_labs_list").hide()):"sponsor_staff"==r("#invitation_role_select").val()&&(r("#invitation_protocols_list").show(),r("#invitation_labs_list").show()),r("#invitation_role_select").change((function(){var t=r(this).val();"sponsor_admin"==t?(r("#invitation_protocols_list").hide(),r("#invitation_labs_list").hide()):"sponsor_staff"==t&&(r("#invitation_protocols_list").show(),r("#invitation_labs_list").show())})),"supplier_admin"==r("#invitation_role_select").val()?(r("#invitation_protocols_list").hide(),r("#invitation_depots_list").hide(),r("#invitation_labs_list").hide()):"supplier_staff"==r("#invitation_role_select").val()&&(r("#invitation_protocols_list").show(),r("#invitation_depots_list").show(),r("#invitation_labs_list").show()),r("#invitation_role_select").change((function(){var t=r(this).val();"supplier_admin"==t?(r("#invitation_protocols_list").hide(),r("#invitation_depots_list").hide(),r("#invitation_labs_list").hide()):"supplier_staff"==t&&(r("#invitation_protocols_list").show(),r("#invitation_depots_list").show(),r("#invitation_labs_list").show())})),r("#help_center_link").click((function(t){ahoy.track("Help center link clicked",t.target.dataset)})),r("#referral_link").click((function(t){ahoy.track("Referral link copied",t.target.dataset)})),r("#referral_share_email").click((function(t){ahoy.track("Share referral button clicked",{channel:"email"})})),r("#referral_share_facebook").click((function(t){t.preventDefault(),ahoy.track("Share referral button clicked",{channel:"facebook"})})),r("#referral_share_linkedin").click((function(t){t.preventDefault(),ahoy.track("Share referral button clicked",{channel:"linkedin"})})),r("input[type='number']").not(".no-input-spinner").not("stimulus-spinner").inputSpinner(),r("input[type=number]").on("mousewheel",(function(t){r(t.target).blur()})),r("#inventory_inventory_type").on("change",(function(t){"Drug"==r(this).val()?(r("#add-parts-fields").show(),r("#inventory-temperature-requirements").show()):(r("#add-parts-fields").hide(),r("#inventory-temperature-requirements").hide())})),r("#inventory_template_inventory_type").on("change",(function(t){"Drug"==r(this).val()?r("#add-parts-fields").show():r("#add-parts-fields").hide()})),r("#has-parts-box").on("change",(function(t){r(this).prop("checked")?(r("#parts-details-fields").show(),r("#part-name-field").attr("disabled",!1),r("#part-name-field").attr("required",!0),r("#part-quantity-field").attr("disabled",!1),r("#part-quantity-field").attr("required",!0)):(r("#parts-details-fields").hide(),r("#part-name-field").attr("disabled",!0),r("#part-name-field").attr("required",!1),r("#part-quantity-field").attr("disabled",!0),r("#part-quantity-field").attr("required",!1))})),r("#has-no-parts-box").on("change",(function(t){r(this).prop("checked")?(r("#parts-details-fields").hide(),r("#part-name-field").attr("disabled",!0),r("#part-name-field").attr("required",!1),r("#part-quantity-field").attr("disabled",!0),r("#part-quantity-field").attr("required",!1)):(r("#parts-details-fields").show(),r("#part-name-field").attr("disabled",!1),r("#part-name-field").attr("required",!0),r("#part-quantity-field").attr("disabled",!1),r("#part-quantity-field").attr("required",!0))})),o(r("#protocol_workspace_type").val()),r("#protocol_workspace_type").change((function(){o(r(this).val())})),r(".wrapper").on("click","#close_workspace_modal",(function(t){t.preventDefault();var e=t.target.dataset.workspaceId,n=t.target.dataset.closeLink;r.ajax({type:"GET",url:"/workspaces/confirm_close_workspace_modal?id="+e,success:function(t){r(".workspace-close-modal-space").replaceWith(t),r(".workspace-close-modal-space").find("form").attr("action",n),r(".workspace-close-modal-space").modal("show")}})})),r(".wrapper").on("click","#cannot_close_site_modal",(function(t){t.preventDefault();var e=t.target.dataset.siteId;r.ajax({type:"GET",url:"/sites/"+e+"/cannot_close_site_modal",success:function(t){r(".cannot-close-site-modal").replaceWith(t),r(".cannot-close-site-modal").modal("show")}})})),r("#close_modal").on("show.bs.modal",(function(t){var e=r(t.relatedTarget),n=e.data("name"),i=e.data("title"),o=e.data("close-link"),a=e.data("button-text"),s=e.data("form-method"),u=e.data("modal-body-content"),l=r(this);l.find(".modal_body_content").html(u),l.find(".modal-title").text(i),l.find("form").attr("action",o),l.find(".btn.btn-danger").val(a),l.find(".btn.btn-danger").attr("data-disable-with",a),"delete"==s&&l.find("form").append('<input type="hidden" name="_method" value="delete">'),r('#close_modal input[type="text"]').keyup((function(){r(this).val()==n?l.find(".btn.btn-danger").removeProp("disabled"):l.find(".btn.btn-danger").prop("disabled","disabled")}))})),r("#close_modal").on("hidden.bs.modal",(function(t){r('#close_modal input[type="text"]').val("")})),r(".selectpicker").each((function(t,e){r(e).parent().hasClass("bootstrap-select")||r(e).selectpicker("refresh")})),r("body").tooltip({selector:".items-table-transition-link"}),r("#rename-used-state-checkbox").on("change",":checkbox",(function(){r("#rename-used-state-fields").toggle()})),r(".stocks-table-manage").hide(),r(".stocks-table-transition").hide(),r(".stocks-table-uncheck-all").hide(),r("#edit_multiple_stock_form").on("change",'.multi-select input[type="checkbox"]',(function(){r(this).parents("tbody").find("tr").has("input[type=checkbox]:checked").length>1?(r(this).parents("form").find("#edit-multiple-controls").children(".stocks-table-manage").show(),r(this).parents("form").find("#edit-multiple-controls").children(".stocks-table-uncheck-all").show(),r(this).parents("form").find("#edit-multiple-controls").children(".stocks-table-transition").show()):(r(this).parents("form").find("#edit-multiple-controls").children(".stocks-table-manage").hide(),r(this).parents("form").find("#edit-multiple-controls").children(".stocks-table-uncheck-all").hide(),r(this).parents("form").find("#edit-multiple-controls").children(".stocks-table-transition").hide())})),r("#edit_multiple_stock_form").on("change",":checkbox",(function(){r(this).closest("tr").toggleClass("active",this.checked)})),r("#edit_multiple_stock_form").on("click",'[id="edit_multiple"]',(function(t){r("#edit_multiple_stock_form").submit()})),r("#edit_multiple_stock_form").on("click",'[id="delete_multiple"]',(function(t){if(confirm("Are you sure?")){var e=r("<input>").attr("type","hidden").attr("name","stock_action").val("delete");r("#edit_multiple_stock_form").append(r(e)),r("#edit_multiple_stock_form").submit()}else t.preventDefault()})),r("#edit_multiple_stock_form").on("click",'[id="transfer_multiple"]',(function(t){var e=r("<input>").attr("type","hidden").attr("name","stock_action").val("transfer");r("#edit_multiple_stock_form").append(r(e)),r("#edit_multiple_stock_form").submit()})),r("#edit_multiple_stock_form").on("click",'[id="expire_multiple"]',(function(t){a("expire",t,this)})),r("#edit_multiple_stock_form").on("click",'[id="damage_multiple"]',(function(t){a("damage",t,this)})),r("#edit_multiple_stock_form").on("click",'[id="lost_multiple"]',(function(t){a("lost",t,this)})),r("#edit_multiple_stock_form").on("click",'[id="return_multiple"]',(function(t){a("return",t,this)})),r("#edit_multiple_stock_form").on("click",'[id="dispose_multiple"]',(function(t){a("dispose",t,this)})),r("#edit_multiple_stock_form").on("click",'[id="reset_multiple"]',(function(t){a("reset",t,this)})),r("#edit_multiple_stock_form").on("click",'[id="add_to_shipment_multiple"]',(function(t){var e=r("<input>").attr("type","hidden").attr("name","shipment_action").val("add_multiple");r("#edit_multiple_stock_form").append(r(e)),r("#edit_multiple_stock_form").submit()})),r("#shipment_sponsor_form_protocol_id").on("change",(function(t){r("#shipment_sponsor_form_destination_id").prop("disabled",!0),r("#shipment_sponsor_form_destination_id_label").html('Site <i class="fas fa-spinner fa-spin"></i>'),r("#shipment_sponsor_form_inventory_template_id").prop("disabled",!0),r("#shipment_sponsor_form_inventory_template_id_label").html('Inventory template <i class="fas fa-spinner fa-spin"></i>');var e={protocol_id:r(this).val(),stock_id:r("#stock_ids_").val()};r.ajax({type:"GET",url:"/shipments/fetch_destinations",data:e,dataType:"script"}).done((function(){r("#shipment_sponsor_form_destination_id").prop("disabled",!1),r("#shipment_sponsor_form_destination_id_label").html("Site"),r("#shipment_sponsor_form_inventory_template_id").prop("disabled",!1),r("#shipment_sponsor_form_inventory_template_id_label").html("Inventory template")}))})),r(".manifests-table-manage").hide(),r(".manifests-table-uncheck-all").hide(),r("#edit_multiple_manifests_form").on("change",'.multi-select input[type="checkbox"]',(function(){r(this).parents("tbody").find("tr").has("input[type=checkbox]:checked").length>1?(r(this).parents("form").find("#edit-multiple-controls").children(".manifests-table-manage").show(),r(this).parents("form").find("#edit-multiple-controls").children(".manifests-table-uncheck-all").show()):(r(this).parents("form").find("#edit-multiple-controls").children(".manifests-table-manage").hide(),r(this).parents("form").find("#edit-multiple-controls").children(".manifests-table-uncheck-all").hide())})),r("#edit_multiple_manifests_form").on("change",":checkbox",(function(){r(this).closest("tr").toggleClass("active",this.checked)})),r("#edit_multiple_manifests_form").on("click",'[id="delete_multiple"]',(function(t){if(confirm("Are you sure?")){var e=r("<input>").attr("type","hidden").attr("name","manifest_action").val("delete");r("#edit_multiple_manifests_form").append(r(e)),r("#edit_multiple_manifests_form").submit()}else t.preventDefault()})),r("#edit_multiple_manifests_form").on("click",'[id="receive_multiple"]',(function(t){var e=r("<input>").attr("type","hidden").attr("name","manifest_action").val("receive");r("#edit_multiple_manifests_form").append(r(e)),r("#edit_multiple_manifests_form").submit()})),r("#edit_multiple_manifests_form").on("click",'[id="report_problem_multiple"]',(function(t){var e=r("<input>").attr("type","hidden").attr("name","manifest_action").val("report_problem");r("#edit_multiple_manifests_form").append(r(e)),r("#edit_multiple_manifests_form").submit()})),r("#edit_multiple_manifests_form").on("click",'[id="reset_multiple"]',(function(t){var e=r("<input>").attr("type","hidden").attr("name","manifest_action").val("reset");r("#edit_multiple_manifests_form").append(r(e)),r("#edit_multiple_manifests_form").submit()})),r("#manifest_form_inventory_template_id").on("change",(function(t){r("#manifest_form_available_quantity").html('<i class="fas fa-spinner fa-spin"></i>');var e=r("#depot_id").data("depot-id"),n={inventory_template_id:r(this).val(),depot_id:e};r.ajax({type:"GET",url:"/manifests/fetch_available_quantity",data:n,dataType:"script"})})),r("#manifest_form_sku_id").on("change",(function(t){r("#manifest_form_available_quantity").html('<i class="fas fa-spinner fa-spin"></i>');var e=r("#depot_id").data("depot-id"),n={sku_id:r(this).val(),depot_id:e};r.ajax({type:"GET",url:"/manifests/fetch_available_quantity_from_supplier",data:n,dataType:"script"})})),r("#shipment_form_depot_id").on("change",(function(t){r("#shipment_form_available_quantity").html('<i class="fas fa-spinner fa-spin"></i>');var e=r("#inventory_template_id").data("inventory-template-id"),n=r("#needed_quantity").data("needed-quantity"),i={depot_id:r(this).val(),inventory_template_id:e,needed_quantity:n};r.ajax({type:"GET",url:"/shipments/fetch_available_quantity",data:i,dataType:"script"})})),r("#supplier_shipment_form_depot_id").on("change",(function(t){r("#supplier_shipment_form_available_quantity").html('<i class="fas fa-spinner fa-spin"></i>');var e=r("#sku_id").data("sku-id"),n=r("#needed_quantity").data("needed-quantity"),i={depot_id:r(this).val(),sku_id:e,needed_quantity:n};r.ajax({type:"GET",url:"/shipments/fetch_available_quantity_for_order",data:i,dataType:"script"})})),r("#self-admin-checkbox").on("change",":checkbox",(function(){r("#site-admin-email").toggle()})),r(".best_in_place_order_quantity").bind("ajax:error",(function(t,e,n,i){r(this).click(),r(this).effect("shake",{distance:3})})),r("body.shipments-shipment_events").length){var s=L.map("shipment_events_map").setView([51.505,-.09],13);L.tileLayer("https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}",{attribution:'&copy; <a href="https://www.mapbox.com/about/maps/">Mapbox</a> &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> <strong><a href="https://www.mapbox.com/map-feedback/" target="_blank">Improve this map</a></strong>',tileSize:512,maxZoom:18,zoomOffset:-1,id:"mapbox/streets-v11",accessToken:"pk.eyJ1Ijoic2xvcGVpbyIsImEiOiJjbGR1Y3hsNm8wNGp6M3ZvNzhoNnBjNDVuIn0.zB2KtJfyYIxNdUEjtDI71A"}).addTo(s);for(var u=r("#shipment-events").data("shipment-events"),l=r("#origin").data("origin"),c=r("#origin-address").data("origin-address"),d=r("#destination").data("destination"),h=r("#destination-address").data("destination-address"),f=(r("#shipment").data("shipment"),L.latLngBounds()),p=[],m=0;m<u.length;m++){var g=u[m];if(g.lat&&g.lon){for(var y=null,v=L.latLng(g.lat,g.lon),_=0;_<p.length;_++){var b=p[_];if(v.equals(b.getLatLng())){y=b;break}}if(y){var w=y.getPopup(),k=w.getContent();w.setContent(k+"<br>"+g.status_details),g.marker_index=p.indexOf(y)}else{var S=L.ExtraMarkers.icon({icon:"fa-number",number:(p.length+1).toString(),markerColor:"blue",shape:"square",prefix:"fa",extraClasses:"number-marker"});b=L.marker(v,{icon:S}).addTo(s);p.push(b),f.extend(v),b.bindPopup(g.status_details),g.marker_index=p.indexOf(b)}}}for(var E=0;E<p.length-1;E++){var C=[p[E].getLatLng(),p[E+1].getLatLng()];L.polyline(C,{color:"blue"}).addTo(s)}s.fitBounds(f);var x=p[p.length-1];x.openPopup();var D=L.ExtraMarkers.icon({icon:"fa-warehouse",markerColor:"green",shape:"square",prefix:"fa"}),A=L.marker([c.lat,c.lon],{icon:D}).addTo(s);A.bindPopup("<p>"+l.name+"</p><p>"+c.address_line_1+"<br>"+c.city+", "+c.state_province_region+" "+c.zip_postal_code+"<br>"+c.country+"</p>"),L.polyline([A.getLatLng(),p[0].getLatLng()],{color:"blue",dashArray:"10"}).addTo(s);var T=L.ExtraMarkers.icon({icon:"fa-hospital",markerColor:"red",shape:"square",prefix:"fa"}),M=L.marker([h.lat,h.lon],{icon:T}).addTo(s);M.bindPopup("<p>"+d.name+"</p><p>"+h.address_line_1+"<br>"+h.city+", "+h.state_province_region+" "+h.zip_postal_code+"<br>"+h.country+"</p>"),"DELIVERED"==u[u.length-1].status&&L.polyline([x.getLatLng(),M.getLatLng()],{color:"blue",dashArray:"10"}).addTo(s),r(".shipment-event-row").click((function(){var t=r(this).data("id"),e=u.find((function(e){return e.id==t}));selected_marker=p[e.marker_index],s.flyTo(selected_marker.getLatLng(),13,{animate:!0,duration:1}),selected_marker.openPopup()})),r(".origin-address").click((function(){s.flyTo(A.getLatLng(),13,{animate:!0,duration:1}),A.openPopup()})),r(".destination-address").click((function(){s.flyTo(M.getLatLng(),13,{animate:!0,duration:1}),M.openPopup()}))}if(r(".pharmacy-address-checkbox").on("change",":checkbox",(function(){r(".pharmacy-address-fields").toggle()})),r("#sortable").length>0)return r("#sortable").sortable({axis:"y",items:".item",cancel:".item-unsortable",cursor:"move",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(t,e){var n=e.item.data("subject-visit-template-id"),i=e.item.index();return r.ajax({type:"POST",url:"/subject_visit_templates/update_row_order",dataType:"json",data:{subject_visit_template:{subject_visit_template_id:n,row_order_position:i}}})}});if(r("#barcode-schema-templates-sortable").length>0)return r("#barcode-schema-templates-sortable").sortable({axis:"y",items:".item",cursor:"move",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(t,e){var n=e.item.data("barcode-schema-template-id"),i=e.item.index();return r.ajax({type:"POST",url:"/barcode_schema_templates/update_row_order",dataType:"json",data:{barcode_schema_template:{barcode_schema_template_id:n,row_order_position:i}}})}});if(r("#barcode_schema_data_source").on("change",(function(){"Static Value"==r("#barcode_schema_data_source").val()?r("#barcode_static_value_field").show():r("#barcode_static_value_field").hide()})),r("#requisition-schema-templates-sortable").length>0)return r("#requisition-schema-templates-sortable").sortable({axis:"y",items:".item",cursor:"move",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(t,e){var n=e.item.data("requisition-schema-template-id"),i=e.item.index();return r.ajax({type:"POST",url:"/requisition_schema_templates/update_row_order",dataType:"json",data:{requisition_schema_template:{requisition_schema_template_id:n,row_order_position:i}}})}});function O(t,e,n){if(r(n).hasClass("disabled"))e.preventDefault();else{var i=r("<input>").attr("type","hidden").attr("name","transition_action").val(t);r("#edit_multiple_order_form").append(r(i)),r("#edit_multiple_order_form").submit()}}r("#requisition_schema_data_source").on("change",(function(){"Static Value"==r("#requisition_schema_data_source").val()?r("#requisition_static_value_field").show():r("#requisition_static_value_field").hide()})),r("#schedule-start-checkbox").on("change",":checkbox",(function(){r("#offset-fields").toggle()})),r("#enroll-subject-checkbox").on("change",":checkbox",(function(){r("#enroll-subject-fields").toggle()})),r("#subject_visit_schedule_id").on("change",(function(t){r("#subject-visit-fields").html('<i class="fas fa-spinner fa-spin"></i>');var e={subject_visit_schedule_id:r(this).val()};r.ajax({type:"GET",url:"/subjects/fetch_subject_visit_templates",data:e,dataType:"script"})})),r(".tab-pane").on("click",".subject-visit-use-link",(function(){r(this).parents(".dropdown").find("button.dropdown-toggle").dropdown("toggle"),r(this).parents("tr").find("td[id$='_state']").html('<i class="fas fa-spinner fa-spin"></i> Updating')})),function(t){if(""==r("#subject_visit_template_shortname").val()){if("Screening"==t)var e="SCRN";else if("Randomization"==t)e="RND";else if("Baseline"==t)e="BSLN";else if("Visit"==t)e="V";else if("Follow up"==t)e="FUP";else if("End of Treatment"==t)e="EOT";r("#subject_visit_template_shortname").val(e)}}(r("#subject_visit_template_visit_type").val()),r("#subject_visit_template_visit_type").change((function(){if(selected=r(this).val(),"Screening"==selected)var t="SCRN";else if("Randomization"==selected)t="RND";else if("Baseline"==selected)t="BSLN";else if("Visit"==selected)t="V";else if("Follow up"==selected)t="FUP";else if("End of Treatment"==selected)t="EOT";r("#subject_visit_template_shortname").val(t)})),r(".orders-table-transition").hide(),r(".orders-table-uncheck-all").hide(),r("#edit_multiple_order_form").on("change",'.multi-select input[type="checkbox"]',(function(){r(this).parents("tbody").find("tr").has("input[type=checkbox]:checked").length>1?(r(this).parents("form").find("#edit-multiple-controls").children(".orders-table-uncheck-all").show(),r(this).parents("form").find("#edit-multiple-controls").children(".orders-table-transition").show()):(r(this).parents("form").find("#edit-multiple-controls").children(".orders-table-uncheck-all").hide(),r(this).parents("form").find("#edit-multiple-controls").children(".orders-table-transition").hide())})),r("#edit_multiple_order_form").on("change",":checkbox",(function(){r(this).closest("tr").toggleClass("active",this.checked)})),r("#edit_multiple_order_form").on("click",'[id="edit_multiple"]',(function(t){r("#edit_multiple_order_form").submit()})),r("#edit_multiple_order_form").on("click",'[id="approve_multiple"]',(function(t){O("approve",t,this)})),r("#edit_multiple_order_form").on("click",'[id="cancel_multiple"]',(function(t){O("cancel",t,this)})),r("#edit_multiple_order_form").on("click",'[id="acknowledge_multiple"]',(function(t){O("acknowledge",t,this)})),r("#edit_multiple_order_form").on("click",'[id="start_processing_multiple"]',(function(t){O("start_processing_multiple",t,this)})),r("#edit_multiple_order_form").on("click",'[id="sponsor_reset_multiple"]',(function(t){O("sponsor_reset",t,this)})),r("#edit_multiple_order_form").on("click",'[id="supplier_reset_multiple"]',(function(t){O("supplier_reset",t,this)})),r("#link_to_schedule_subject_visit_schedule_id").on("change",(function(t){r("#visit_template_fields").html('<i class="fas fa-spinner fa-spin"></i>');var e=r("#inventory_id").val(),n={subject_visit_schedule_id:r(this).val()};r.ajax({type:"GET",url:"/inventories/"+e+"/fetch_subject_visit_templates",data:n,dataType:"script"})})),r("#visit_template_fields").on("change",":checkbox",(function(){var t=r(this).prop("checked"),e=r(this).parents("#visit_template_row").find(".inventory_demand_template_quantity");t?(e.attr("disabled",!1),e.val(0)):(e.attr("disabled",!0),e.val(""))})),r(".samples-table-transition").hide(),r(".samples-table-uncheck-all").hide(),r("#edit_multiple_samples_form").on("change",'.multi-select input[type="checkbox"]',(function(){r(this).parents("tbody").find("tr").has("input[type=checkbox]:checked").length>1?(r(this).parents("form").find("#edit-multiple-controls").children(".samples-table-uncheck-all").show(),r(this).parents("form").find("#edit-multiple-controls").children(".samples-table-transition").show()):(r(this).parents("form").find("#edit-multiple-controls").children(".samples-table-uncheck-all").hide(),r(this).parents("form").find("#edit-multiple-controls").children(".samples-table-transition").hide())})),r("#edit_multiple_samples_form").on("change",":checkbox",(function(){r(this).closest("tr").toggleClass("active",this.checked)})),r("#edit_multiple_samples_form").on("click",'[id="add_to_shipment_multiple"]',(function(t){var e=r("<input>").attr("type","hidden").attr("name","shipment_action").val("add_multiple");r("#edit_multiple_samples_form").append(r(e)),r("#edit_multiple_samples_form").submit()})),r(".numeric").inputFilter((function(t){return/^\d*$/.test(t)}));var I={autoFocus:!0,placeholder:"Scan or begin typing a barcode",adjustWidth:!1,getValue:"value",url:function(t){return"fetch_barcodes?v="+t},listLocation:"barcodes",list:{maxNumberOfElements:20,match:{enabled:!0},onChooseEvent:function(){var t={v:r("#sample_barcode_value").val(),sample_group_id:r("#sample_group_id").data("sample-group-id")};r.ajax({type:"GET",url:"/fetch_barcode_status",data:t,dataType:"script"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};r("#sample_barcode_value").focus((function(){r(this).select()})),r("#sample_barcode_value").easyAutocomplete(I),r("#sample_barcode_value").focus(),r("#sample_barcode_value").on("keypress",(function(t){if(""==r(this).val()&&(r("#barcode_spinner").hide(),r("#barcode_match").fadeOut("fast"),r("#barcode_match_fields").fadeOut("fast"),r("#barcode_no_match").fadeOut("fast"),r("#barcode_extra").fadeOut("fast")),13==t.keyCode){t.preventDefault(),r("#barcode_match").fadeOut("fast"),r("#barcode_match_fields").fadeOut("fast"),r("#barcode_no_match").fadeOut("fast"),r("#barcode_extra").fadeOut("fast"),r("#barcode_spinner").show();var e={v:r("#sample_barcode_value").val(),sample_group_id:r("#sample_group_id").data("sample-group-id")};r.ajax({type:"GET",url:"/fetch_barcode_status",data:e,dataType:"script"})}})),r("#sample_barcode_value").closest(".input-group").each((function(t,e){r(e).removeClass("input-group");var n=r(e).find(".easy-autocomplete");r(e).find(".input-group-append").appendTo(n),n.addClass("input-group")})),r("#clear_sample_barcode_button").on("click",(function(){r("#sample_barcode_value").val(""),r("#sample_new_subject_identifier").val(""),r("#barcode_match").fadeOut("fast"),r("#barcode_match_fields").fadeOut("fast"),r("#barcode_no_match").fadeOut("fast"),r("#barcode_extra").fadeOut("fast"),r("#sample_barcode_value").focus()})),r("#sample_new_subject_identifier").closest(".input-group").each((function(t,e){r(e).removeClass("input-group");var n=r(e).find(".easy-autocomplete");r(e).find(".input-group-prepend").prependTo(n),n.addClass("input-group")})),r("#sample_new_subject_identifier.numeric").inputFilter((function(t){return/^\d*$/.test(t)}));I={autoFocus:!0,placeholder:"Scan or begin typing a barcode",adjustWidth:!1,getValue:"value",url:function(t){return r("#shipment_id").data("shipment-id")+"/fetch_site_sample_barcodes?v="+t},listLocation:"barcodes",list:{match:{enabled:!0},onChooseEvent:function(){var t={v:r("#sample_shipment_barcode_value").val(),sample_group_id:r("#sample_group_id").data("sample-group-id"),shipment_id:r("#shipment_id").data("shipment-id")};r.ajax({type:"GET",url:"/samples/add_to_shipment_by_barcode",data:t,dataType:"script"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};r("#sample_shipment_barcode_value").focus((function(){r(this).select()})),r("#sample_shipment_barcode_value").easyAutocomplete(I),r("#sample_shipment_barcode_value").focus();I={autoFocus:!0,placeholder:"Scan or begin typing a barcode",adjustWidth:!1,getValue:"value",url:function(t){return r("#shipment_id").data("shipment-id")+"/fetch_lab_sample_barcodes?v="+t},listLocation:"barcodes",list:{match:{enabled:!0},onChooseEvent:function(){var t={v:r("#supplier_sample_shipment_barcode_value").val(),sample_group_id:r("#sample_group_id").data("sample-group-id"),shipment_id:r("#shipment_id").data("shipment-id")};r.ajax({type:"GET",url:"/samples/add_to_lab_shipment_by_barcode",data:t,dataType:"script"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};r("#supplier_sample_shipment_barcode_value").focus((function(){r(this).select()})),r("#supplier_sample_shipment_barcode_value").easyAutocomplete(I),r("#supplier_sample_shipment_barcode_value").focus(),r("#sample_shipment_barcode_value").closest(".input-group").each((function(t,e){r(e).removeClass("input-group");var n=r(e).find(".easy-autocomplete");r(e).find(".input-group-append").appendTo(n),n.addClass("input-group")})),r("#supplier_sample_shipment_barcode_value").closest(".input-group").each((function(t,e){r(e).removeClass("input-group");var n=r(e).find(".easy-autocomplete");r(e).find(".input-group-append").appendTo(n),n.addClass("input-group")})),r("#clear_sample_shipment_barcode_button").on("click",(function(){r("#sample_shipment_barcode_value").val(""),r("#barcode_match").fadeOut("fast"),r("#barcode_no_match").fadeOut("fast"),r("#barcode_already_scanned").fadeOut("fast"),r("#sample_mismatch").fadeOut("fast"),r("#sample_shipment_barcode_value").focus()})),r("#sample_shipment_barcode_value").on("keypress",(function(t){if(13==t.keyCode){t.preventDefault(),r("#barcode_match").fadeOut("fast"),r("#barcode_no_match").fadeOut("fast"),r("#barcode_already_scanned").fadeOut("fast"),r("#sample_mismatch").fadeOut("fast"),r("#barcode_spinner").show();var e={v:r("#sample_shipment_barcode_value").val(),sample_group_id:r("#sample_group_id").data("sample-group-id"),shipment_id:r("#shipment_id").data("shipment-id")};r.ajax({type:"GET",url:"/samples/add_to_shipment_by_barcode",data:e,dataType:"script"})}})),r("#supplier_sample_shipment_barcode_value").on("keypress",(function(t){if(13==t.keyCode){t.preventDefault(),r("#barcode_match").fadeOut("fast"),r("#barcode_no_match").fadeOut("fast"),r("#barcode_already_scanned").fadeOut("fast"),r("#sample_mismatch").fadeOut("fast"),r("#barcode_spinner").show();var e={v:r("#supplier_sample_shipment_barcode_value").val(),sample_group_id:r("#sample_group_id").data("sample-group-id"),shipment_id:r("#shipment_id").data("shipment-id")};r.ajax({type:"GET",url:"/samples/add_to_lab_shipment_by_barcode",data:e,dataType:"script"})}})),r("#sample_shipment_barcode_value").on("keyup",(function(t){""==r(this).val()&&(r("#barcode_spinner").hide(),r("#barcode_match").fadeOut("fast"),r("#barcode_no_match").fadeOut("fast"),r("#barcode_already_scanned").fadeOut("fast"),r("#sample_mismatch").fadeOut("fast"))})),r("#supplier_sample_shipment_barcode_value").on("keyup",(function(t){""==r(this).val()&&(r("#barcode_spinner").hide(),r("#barcode_match").fadeOut("fast"),r("#barcode_no_match").fadeOut("fast"),r("#barcode_already_scanned").fadeOut("fast"),r("#sample_mismatch").fadeOut("fast"))})),r("#supplier_shipment_barcode_value").on("keyup",(function(t){var e={barcode_value:r(this).val(),shipment_id:r("#shipment_id").data("shipment-id")};r.ajax({type:"GET",url:"/stocks/check_barcode",data:e,dataType:"script"})})),r("#print_manifest_button").on("click",(function(t){window.print(),t.preventDefault()})),r("#print_timepoint_link").on("click",(function(t){window.print(),t.preventDefault()})),r("#print_blank_form_button").on("click",(function(t){window.print(),t.preventDefault()})),r("#tracking_number_modal_button").on("click",(function(t){t.preventDefault(),r("#tracking_number_modal").modal()})),r("#tracking_number_modal").on("shown.bs.modal",(function(t){r("#tracking_number_value").focus()})),r("#tracking_number_value").focus((function(){r(this).select()})),r(".autocomplete-barcode-field").each(i.d),r("form input[type=submit]").click((function(){r("input[type=submit]",r(this).parents("form")).removeAttr("clicked"),r(this).attr("clicked","true")})),Object(i.f)(),Object(i.c)(),r("#supplier-orders-protocol-id").change((function(){r("#supplier-orders-site-id").append('<option value="loading" selected="selected">Loading...</option>'),r("#supplier-orders-filter-button").prop("disabled",!0);var t=r(this).val(),e=r(".supplier_id").data("supplier-id");r.post("/suppliers/"+e+"/fetch_sites_for_protocol","&protocol_id="+t)})),r(".purchase_order_modal_button").on("click",(function(t){t.preventDefault();var e=r("#supplier_id").data("supplier-id"),n={order_id:r(this).data("order-id")};r.ajax({type:"GET",url:"/suppliers/"+e+"/fetch_processing_purchase_orders",data:n,dataType:"script"})})),r(".dropdown-menu a.dropdown-toggle").on("click",(function(t){return r(this).next().hasClass("show")||r(this).parents(".dropdown-menu").first().find(".show").removeClass("show"),r(this).next(".dropdown-menu").toggleClass("show"),r(this).parents(".dropdown.show").on("hidden.bs.dropdown",(function(t){r(".dropdown-submenu .show").removeClass("show")})),!1}));I={adjustWidth:!1,getValue:"name",url:function(t){return"/sponsors/fetch_active?v="+t},listLocation:"sponsors",list:{maxNumberOfElements:20,match:{enabled:!0},onChooseEvent:function(){},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};r("#workspace_sponsor_name").easyAutocomplete(I),r(".sponsor_merge_modal_button").on("click",(function(t){t.preventDefault();var e={sponsor_id:r(this).data("sponsor-id")};r.ajax({type:"GET",url:"/admin/fetch_sponsor_merge_options",data:e,dataType:"script"})})),r(".protocol_merge_modal_button").on("click",(function(t){t.preventDefault();var e=r("#sponsor_id").data("sponsor-id"),n={protocol_id:r(this).data("protocol-id")};r.ajax({type:"GET",url:"/sponsors/"+e+"/fetch_protocol_merge_options",data:n,dataType:"script"})})),r("#login-form .alert.alert-danger.alert-dismissable").text().match(/Invalid Email or password/)&&r("#login-form .col").delay(250).effect("shake",{distance:15,times:3},750),r("#login-form .alert.alert-danger.alert-dismissable").text().match(/You have one more attempt before your account is locked/)&&r("#login-form .col").delay(250).effect("shake",{distance:30,times:9},3e3),r("#donation_link").click((function(t){ahoy.track("Site donation button clicked")}));var P={adjustWidth:!1,getValue:"name",url:function(t){return"/products/fetch_active?v="+t},listLocation:"products",list:{maxNumberOfElements:20,match:{enabled:!0},onChooseEvent:function(){var t={v:r("#product_name").val()};r.ajax({type:"GET",url:"/products/fetch_product",data:t,dataType:"script"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};r("#product_name").easyAutocomplete(P),r("#product_name").on("keyup",(function(t){""==r("#product_name").val()&&(r("#product_mpn").val(""),r("#product_mpn").prop("readonly",!1))}));var R={adjustWidth:!1,getValue:"name",url:function(t){return"fetch_active_skus?v="+t},listLocation:"skus",list:{maxNumberOfElements:20,match:{enabled:!0},onChooseEvent:function(){var t={v:r("#sku_number").val()};r.ajax({type:"GET",url:"fetch_sku",data:t,dataType:"script"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};r("#sku_number").easyAutocomplete(R),r("#sku_number").on("keyup",(function(t){""==r("#sku_number").val()&&(r("#sku_name").val(""),r("#sku_name").prop("readonly",!1))}));var N={adjustWidth:!1,getValue:"name",url:function(t){return"/vendors/fetch_active?v="+t},listLocation:"vendors",list:{maxNumberOfElements:20,match:{enabled:!0},onChooseEvent:function(){var t={v:r("#vendor_name").val()};r.ajax({type:"GET",url:"/vendors/fetch_vendor",data:t,dataType:"script"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};if(r("#vendor_name").easyAutocomplete(N),r("#procurement_vendor_name").easyAutocomplete(N),r("#vendor_name").on("keyup",(function(t){""==r("#vendor_name").val()&&(r("#vendor_url").val(""),r("#vendor_url").prop("readonly",!1))})),r(".receive_materials_modal_button").on("click",(function(t){t.preventDefault();var e=r(this).data("manifest-id");r.ajax({type:"GET",url:"/manifests/"+e+"/receive_material/",dataType:"script"})})),r(".order_depot_selection_modal_button").on("click",(function(t){t.preventDefault();var e=r("#supplier_id").data("supplier-id"),n=[];r("#orders-table input:checked").each((function(){n.push(r(this).attr("value"))}));var i={order_id:r(this).data("order-id"),order_ids:n};r.ajax({type:"GET",url:"/suppliers/"+e+"/fetch_depots_for_order_dispatch",data:i,dataType:"script"})})),r("#workspace_shipping_contact_user_id").change((function(){""==r(this).val()?(r("#workspace_override_default_shipping_address_fields").show(),r("#workspace_override_default_shipping_address_fields").prop("disabled",!1),r("#workspace_address_attributes_country").prop("disabled",!1),r(".selectpicker").selectpicker("refresh")):(r("#workspace_override_default_shipping_address_fields").prop("disabled",!0),r("#workspace_address_attributes_country").prop("disabled",!0),r("#workspace_override_default_shipping_address_fields").hide(),r(".selectpicker").selectpicker("refresh"))})),r("#workspace_pharmacy_shipping_contact_user_id").change((function(){""==r(this).val()?(r("#workspace_override_pharmacy_shipping_address_fields").show(),r("#workspace_override_pharmacy_shipping_address_fields").prop("disabled",!1),r("#workspace_pharmacy_address_attributes_country").prop("disabled",!1),r(".selectpicker").selectpicker("refresh")):(r("#workspace_override_pharmacy_shipping_address_fields").hide(),r("#workspace_override_pharmacy_shipping_address_fields").prop("disabled",!0),r("#workspace_pharmacy_address_attributes_country").prop("disabled",!0),r(".selectpicker").selectpicker("refresh"))})),r("#subject-cohorts-sortable").length>0)return r("#subject-cohorts-sortable").sortable({axis:"y",items:".item",cursor:"move",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(t,e){var n=e.item.data("subject-cohort-id"),i=e.item.index();return r.ajax({type:"POST",url:"/subject_cohorts/update_row_order",dataType:"json",data:{subject_cohort:{subject_cohort_id:n,row_order_position:i}}})}});if(r("#subject-groups-sortable").length>0)return r("#subject-groups-sortable").sortable({axis:"y",items:".item",cursor:"move",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(t,e){var n=e.item.data("subject-group-id"),i=e.item.index();return r.ajax({type:"POST",url:"/subject_groups/update_row_order",dataType:"json",data:{subject_group:{subject_group_id:n,row_order_position:i}}})}});r(".request_label_modal_button").on("click",(function(t){t.preventDefault();var e=r(this).data("shipment-id"),n=r(this).data("redirect-to");r.ajax({type:"GET",url:"/shipments/"+e+"/request_label/",data:{redirect_to:n},dataType:"script"})})),r(".print_label_modal_button").on("click",(function(t){t.preventDefault();var e=r(this).data("shipment-id"),n=r(this).data("redirect-to");r.ajax({type:"GET",url:"/shipments/"+e+"/print_label/",data:{redirect_to:n},dataType:"script"})}));var F={adjustWidth:!1,getValue:"name",url:function(t){return"/manufacturers/fetch_active?m="+t},listLocation:"manufacturers",list:{maxNumberOfElements:20,match:{enabled:!0},onChooseEvent:function(){var t={m:r("#manufacturer_name").val()};r.ajax({type:"GET",url:"/manufacturers/fetch_manufacturer",data:t,dataType:"script"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};r("#manufacturer_name").easyAutocomplete(F),r("#procurement_manufacturer_name").easyAutocomplete(F);var j={adjustWidth:!1,getValue:"mpn",url:function(t){return"/products/"+r("#product_id").val()+"/fetch_manufacturers?mpn="+t+"&m="+r("#procurement_manufacturer_name").val()},listLocation:"product_manufacturers",list:{maxNumberOfElements:20,match:{enabled:!0},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};r("#procurement_manufacturer_mpn").easyAutocomplete(j),r(".add-order-to-shipment-button").on("click",(function(t){t.preventDefault();var e=r(this).data("order-id");r.ajax({type:"GET",url:"/orders/"+e+"/add_to_shipment/",dataType:"script"})}));var B=r("#protocol_push_email");I={placeholder:"Find or invite user",adjustWidth:!1,getValue:"email",url:function(t){return"fetch_users?email="+t},listLocation:"users",list:{maxNumberOfElements:10,match:{enabled:!0},onChooseEvent:function(){t.done(),t.remove();var e={s:r("#protocol_push_email").val()};r.ajax({type:"GET",url:"fetch_user_sites",data:e,dataType:"script"})},showAnimation:{type:"slide",time:150,callback:function(){}},hideAnimation:{type:"slide",time:150,callback:function(){}}},theme:"bootstrap",requestDelay:500};if(B.easyAutocomplete(I),B.on("keyup",(function(t){if(""==r(this).val())r("#protocol_existing_user_fields").hide(),r("#protocol_site_name").show();else if(r(this).val().length>=1){var e={s:r("#protocol_push_email").val()};r.ajax({type:"GET",url:"fetch_user_sites",data:e,dataType:"script"})}if(13==t.keyCode){t.preventDefault();e={s:r("#protocol_push_email").val()};r.ajax({type:"GET",url:"fetch_user_sites",data:e,dataType:"script"})}})),B.on("keypress",(function(t){if(""==r(this).val()&&(r("#protocol_existing_user_fields").hide(),r("#protocol_site_name").show()),13==t.keyCode){t.preventDefault();var e={s:r("#protocol_push_email").val()};r.ajax({type:"GET",url:"fetch_user_sites",data:e,dataType:"script"})}})),r("#subject-visit-schedules-sortable").length>0)return r("#subject-visit-schedules-sortable").sortable({axis:"y",items:".item",cursor:"move",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(t,e){var n=e.item.data("subject-visit-schedule-id"),i=e.item.index();return r.ajax({type:"POST",url:"/subject_visit_schedules/update_row_order",dataType:"json",data:{subject_visit_schedule:{subject_visit_schedule_id:n,row_order_position:i}}})}});r("#drug_recipient_identifier").closest(".input-group").each((function(t,e){r(e).removeClass("input-group");var n=r(e).find(".easy-autocomplete");r(e).find(".input-group-prepend").prependTo(n),n.addClass("input-group")}));var Y=function(t){var e=r("#organization-catalog-protocol-id").val(),n=r("#organization-catalog-workspace-id").val(),i=r("#organization-catalog-shipment-type").val(),o=r("#organization-catalog-site-id").val();r.ajax({type:"GET",url:"fetch_shipment_filters",data:{protocol_id:e,workspace_id:n,shipment_type:i,site_id:o},dataType:"script"})};if(r("#filter_block").on("change","#organization-catalog-protocol-id",Y),r("#filter_block").on("change","#organization-catalog-workspace-id",Y),r("#filter_block").on("change","#organization-catalog-shipment-type",Y),r("#filter_block").on("change","#organization-catalog-site-id",Y),"Fisher CSV"==r("#requisition_file_uploader").val()?r("#requisition_schema_file_attributes").hide():"PDF"==r("#requisition_file_uploader").val()&&r("#requisition_schema_file_attributes").show(),r("#requisition_file_uploader").change((function(){var t=r(this).val();"Fisher CSV"==t?r("#requisition_schema_file_attributes").hide():"PDF"==t&&r("#requisition_schema_file_attributes").show()})),r("#component-substitutes-sortable").length>0)return r("#component-substitutes-sortable").sortable({axis:"y",items:".item",cursor:"move",sort:function(t,e){return e.item.addClass("active-item-shadow")},stop:function(t,e){return e.item.removeClass("active-item-shadow"),e.item.children("td").effect("highlight",{},1e3)},update:function(t,e){var n=e.item.data("component-substitute-id"),i=e.item.index();return r.ajax({type:"POST",url:"/component_substitutes/update_row_order",dataType:"json",data:{component_substitute:{component_substitute_id:n,row_order_position:i}}})}});r(".journey_bip_field").bind("ajax:success",(function(t,n,i,o){var a=e.parseJSON(n).journey_manifest_id,s=r(this).data("supplierId"),u=r(this).data("sponsorId"),l=r(this).data("siteId");r.ajax({type:"GET",url:"/manifests/"+a+"/redraw_manifest_actions_button/?supplier_id="+s+"&sponsor_id="+u+"&site_id="+l,dataType:"script"})}));r(".destroy_modal_trigger_wrapper").on("click",".confirm_destroy_modal_button",(function(t){if(t.preventDefault(),!r(this).hasClass("disabled")&&!r("#destroy_modal").is(":visible")){if(r(this).data("delete-multiple")){var e=r(this).parents("form").find("input[type=checkbox]:checked"),n=[];e.each((function(t){return n.push(e[t].value)}))}var i={resource_id:r(this).data("resource-id"),collection_ids:n},o="/"+r(this).data("controller")+"/confirm_destroy_modal";r.ajax({type:"GET",url:o,data:i,dataType:"script"})}})),r("#show-notes").on("click",(function(t){r("#show-notes").hide(),r("#study-notes").show()})),r("#hide-notes").on("click",(function(t){r("#show-notes").show(),r("#study-notes").hide()})),r(".side-scroll").each((function(t,e){e.addEventListener("wheel",(function(t){e.clientWidth<e.scrollWidth&&(t.preventDefault(),e.scrollLeft+=t.deltaY+t.deltaX)}))})),ReactRailsUJS.mountComponents()})),r(document).on("click",".use_drug_modal_button",(function(t){t.preventDefault();var e=r(this).data("item-id"),n=r(this).data("drug-action"),i=r(this).data("drug-redirect-path"),o=r(this).data("context");r.ajax({type:"GET",url:"/items/"+e+"/use_drug/?drug_action="+n+"&drug_redirect_path="+i+"&modal_context="+o,dataType:"script"})})),r(document).on("click",".use_dispense_drug_modal_button",(function(t){t.preventDefault();var e=r(this).data("item-id"),n=r(this).data("drug-action"),i=r(this).data("drug-redirect-path"),o=r(this).data("context");r.ajax({type:"GET",url:"/items/"+e+"/use_dispense_drug/?drug_action="+n+"&drug_redirect_path="+i+"&modal_context="+o,dataType:"script"})})),r(document).on("click",".use_reclaim_drug_modal_button",(function(t){t.preventDefault();var e=r(this).data("item-id"),n=r(this).data("drug-action"),i=r(this).data("drug-redirect-path"),o=r(this).data("context"),a=r(this).data("already-reclaimed");r.ajax({type:"GET",url:"/items/"+e+"/use_reclaim_drug/?drug_action="+n+"&drug_redirect_path="+i+"&modal_context="+o+"&already_reclaimed="+a,dataType:"script"})})),r(document).on("click","#edit_reclaim_form",(function(t){t.preventDefault(),r("#storage_area_identifier").attr("readonly",!1),r("#reclaimed_count_field").attr("readonly",!1),r("#notes").attr("readonly",!1),r("#edit_reclaim_form").addClass("disabled"),r("#edit_reclaim_form").attr("aria-disabled",!0),r("#reclaim_submit").removeClass("disabled"),r("#reclaim_submit").attr("aria-disabled",!1)})),r(document).on("click",".receive_modal_button",(function(t){t.preventDefault();var e=r(this).data("manifest-id"),n=r(this).data("sponsor-id"),i=r(this).data("supplier-id");r.ajax({type:"GET",url:"/manifests/receive_samples_modal/?manifest_id="+e+"&sponsor_id="+n+"&supplier_id="+i,dataType:"script"})})),r(document).on("click",".receive_multiple_modal_button",(function(t){t.preventDefault();var e=[];r("#manifests-table input[type=checkbox]:checked").each((function(t){"confirm_extra"!=r("#manifests-table input[type=checkbox]:checked")[t].id&&e.push(r("#manifests-table input[type=checkbox]:checked")[t].value)}));var n=r(this).data("sponsor-id"),i=r(this).data("supplier-id");r.ajax({type:"GET",url:"/manifests/receive_samples_modal/?sponsor_id="+n+"&supplier_id="+i+"&manifest_ids="+e,dataType:"script"})})),r(document).on("click",".add_to_shipment_link",(function(t){t.preventDefault();r(this).data("sample-group-id");var e=r(this).data("sample-id");0==r("#sample-ids-in-modal").length||r("#sample-ids-in-modal")[0].value!==e?r.ajax({type:"GET",url:"/sample_shipments/fetch_pending_shipments/?sample_ids="+e,dataType:"script"}):r("#pending_shipments_modal").modal()})),r(document).on("click",".revert_samples_link",(function(t){t.preventDefault(),r("#revert_manifest_samples_modal").modal(),r("#revert_manifest_samples_modal_redirect_to")[0].value=location.href})),r(document).on("click",".change_sample_lab_link",(function(t){t.preventDefault();var e=r(this).data("sample-id"),n="#change_sample_lab_modal_".concat(e);console.log(n),r(n).modal()}))}).call(this,n(179),n(15),n(15))},function(t,e,n){var r,i,o;i=[n(15)],r=function(t,e){function n(){return new Date(Date.UTC.apply(Date,arguments))}function r(){var t=new Date;return n(t.getFullYear(),t.getMonth(),t.getDate())}function i(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function o(n,r){return function(){return r!==e&&t.fn.datepicker.deprecated(r),this[n].apply(this,arguments)}}function a(t){return t&&!isNaN(t.getTime())}var s,u=(s={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),n=0,r=this.length;n<r;n++)if(0<=this[n].valueOf()-e&&this[n].valueOf()-e<864e5)return n;return-1},remove:function(t){this.splice(t,1)},replace:function(e){e&&(t.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var t=new u;return t.replace(this),t}},function(){var e=[];return e.push.apply(e,arguments),t.extend(e,s),e}),l=function(e,n){t.data(e,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(n),this.dates=new u,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=t(v.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",(function(t,e){return Number(e)+1})),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};l.prototype={constructor:l,_resolveViewName:function(e){return t.each(v.viewModes,(function(n,r){if(e===n||-1!==t.inArray(e,r.names))return e=n,!1})),e},_resolveDaysOfWeek:function(e){return t.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(n){try{return n!==e&&""!==n&&((n.match(/[<>]/g)||[]).length<=0||t(n).length>0)}catch(r){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var i=this.o=t.extend({},this._o),o=i.language;y[o]||(o=o.split("-")[0],y[o]||(o=m.language)),i.language=o,i.startView=this._resolveViewName(i.startView),i.minViewMode=this._resolveViewName(i.minViewMode),i.maxViewMode=this._resolveViewName(i.maxViewMode),i.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,i.startView)),!0!==i.multidate&&(i.multidate=Number(i.multidate)||!1,!1!==i.multidate&&(i.multidate=Math.max(0,i.multidate))),i.multidateSeparator=String(i.multidateSeparator),i.weekStart%=7,i.weekEnd=(i.weekStart+6)%7;var a=v.parseFormat(i.format);i.startDate!==-1/0&&(i.startDate?i.startDate instanceof Date?i.startDate=this._local_to_utc(this._zero_time(i.startDate)):i.startDate=v.parseDate(i.startDate,a,i.language,i.assumeNearbyYear):i.startDate=-1/0),i.endDate!==1/0&&(i.endDate?i.endDate instanceof Date?i.endDate=this._local_to_utc(this._zero_time(i.endDate)):i.endDate=v.parseDate(i.endDate,a,i.language,i.assumeNearbyYear):i.endDate=1/0),i.daysOfWeekDisabled=this._resolveDaysOfWeek(i.daysOfWeekDisabled||[]),i.daysOfWeekHighlighted=this._resolveDaysOfWeek(i.daysOfWeekHighlighted||[]),i.datesDisabled=i.datesDisabled||[],t.isArray(i.datesDisabled)||(i.datesDisabled=i.datesDisabled.split(",")),i.datesDisabled=t.map(i.datesDisabled,(function(t){return v.parseDate(t,a,i.language,i.assumeNearbyYear)}));var s=String(i.orientation).toLowerCase().split(/\s+/g),u=i.orientation.toLowerCase();if(s=t.grep(s,(function(t){return/^auto|left|right|top|bottom$/.test(t)})),i.orientation={x:"auto",y:"auto"},u&&"auto"!==u)if(1===s.length)switch(s[0]){case"top":case"bottom":i.orientation.y=s[0];break;case"left":case"right":i.orientation.x=s[0]}else u=t.grep(s,(function(t){return/^left|right$/.test(t)})),i.orientation.x=u[0]||"auto",u=t.grep(s,(function(t){return/^top|bottom$/.test(t)})),i.orientation.y=u[0]||"auto";if(i.defaultViewDate instanceof Date||"string"===typeof i.defaultViewDate)i.defaultViewDate=v.parseDate(i.defaultViewDate,a,i.language,i.assumeNearbyYear);else if(i.defaultViewDate){var l=i.defaultViewDate.year||(new Date).getFullYear(),c=i.defaultViewDate.month||0,d=i.defaultViewDate.day||1;i.defaultViewDate=n(l,c,d)}else i.defaultViewDate=r()},_applyEvents:function(t){for(var n,r,i,o=0;o<t.length;o++)n=t[o][0],2===t[o].length?(r=e,i=t[o][1]):3===t[o].length&&(r=t[o][1],i=t[o][2]),n.on(i,r)},_unapplyEvents:function(t){for(var n,r,i,o=0;o<t.length;o++)n=t[o][0],2===t[o].length?(i=e,r=t[o][1]):3===t[o].length&&(i=t[o][1],r=t[o][2]),n.off(r,i)},_buildEvents:function(){var e={keyup:t.proxy((function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()}),this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};!0===this.o.showOnFocus&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.inputField.length?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy((function(t){this._focused_from=t.target}),this)}],[this.element,{blur:t.proxy((function(t){this._focused_from=t.target}),this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy((function(t){this.update(t.date)}),this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[this.picker,".prev, .next",{click:t.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:t.proxy(this.dayCellClick,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy((function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()}),this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,n){var r=n||this.dates.get(-1),i=this._utc_to_local(r);this.element.trigger({type:e,date:i,viewMode:this.viewMode,dates:t.map(this.dates,this._utc_to_local),format:t.proxy((function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"===typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var n=this.dates.get(t);return v.formatDate(n,e,this.o.language)}),this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")||(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide")),this},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var n;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))n=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;n=window.clipboardData.getData("Text")}this.setDate(n),this.update(),e.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&n(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,(function(t){return new Date(t)}))},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==e?new Date(t):null},clearDates:function(){this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:o("setDates"),setUTCDate:o("setUTCDates"),remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(n){n===e&&(n=this.o.format);var r=this.o.language;return t.map(this.dates,(function(t){return v.formatDate(t,n,r)})).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),n=this.picker.outerHeight(),r=10,i=t(this.o.container),o=i.width(),a="body"===this.o.container?t(document).scrollTop():i.scrollTop(),s=i.offset(),u=[0];this.element.parents().each((function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&u.push(Number(e))}));var l=Math.max.apply(Math,u)+this.o.zIndexOffset,c=this.component?this.component.parent().offset():this.element.offset(),d=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),h=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),f=c.left-s.left,p=c.top-s.top;"body"!==this.o.container&&(p+=a),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(f-=e-h)):c.left<0?(this.picker.addClass("datepicker-orient-left"),f-=c.left-r):f+e>o?(this.picker.addClass("datepicker-orient-right"),f+=h-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var m=this.o.orientation.y;if("auto"===m&&(m=-a+p-n<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+m),"top"===m?p-=n+parseInt(this.picker.css("padding-top")):p+=d,this.o.rtl){var g=o-(f+h);this.picker.css({top:p,right:g,zIndex:l})}else this.picker.css({top:p,left:f,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),n=[],r=!1;return arguments.length?(t.each(arguments,t.proxy((function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),n.push(e)}),this)),r=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=t.map(n,t.proxy((function(t){return v.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)}),this)),n=t.grep(n,t.proxy((function(t){return!this.dateWithinRange(t)||!t}),this),!0),this.dates.replace(n),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,n="<tr>";for(this.o.calendarWeeks&&(n+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)n+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(n+=" disabled"),n+='">'+y[this.o.language].daysMin[e++%7]+"</th>";n+="</tr>",this.picker.find(".datepicker-days thead").append(n)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",n=0;n<12;n++)e+='<span class="month'+(t&&t.getMonth()===n?" focused":"")+'">'+y[this.o.language].monthsShort[n]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(e){e&&e.length?this.range=t.map(e,(function(t){return t.valueOf()})):delete this.range,this.fill()},getClassNames:function(e){var n=[],o=this.viewDate.getUTCFullYear(),a=this.viewDate.getUTCMonth(),s=r();return e.getUTCFullYear()<o||e.getUTCFullYear()===o&&e.getUTCMonth()<a?n.push("old"):(e.getUTCFullYear()>o||e.getUTCFullYear()===o&&e.getUTCMonth()>a)&&n.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&i(e,s)&&n.push("today"),-1!==this.dates.contains(e)&&n.push("active"),this.dateWithinRange(e)||n.push("disabled"),this.dateIsDisabled(e)&&n.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&n.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&n.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&n.push("selected"),e.valueOf()===this.range[0]&&n.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&n.push("range-end")),n},_fill_yearsView:function(n,r,i,o,a,s,u){for(var l,c,d,h="",f=i/10,p=this.picker.find(n),m=Math.floor(o/i)*i,g=m+9*f,y=Math.floor(this.viewDate.getFullYear()/f)*f,v=t.map(this.dates,(function(t){return Math.floor(t.getUTCFullYear()/f)*f})),_=m-f;_<=g+f;_+=f)l=[r],c=null,_===m-f?l.push("old"):_===g+f&&l.push("new"),-1!==t.inArray(_,v)&&l.push("active"),(_<a||_>s)&&l.push("disabled"),_===y&&l.push("focused"),u!==t.noop&&((d=u(new Date(_,0,1)))===e?d={}:"boolean"===typeof d?d={enabled:d}:"string"===typeof d&&(d={classes:d}),!1===d.enabled&&l.push("disabled"),d.classes&&(l=l.concat(d.classes.split(/\s+/))),d.tooltip&&(c=d.tooltip)),h+='<span class="'+l.join(" ")+'"'+(c?' title="'+c+'"':"")+">"+_+"</span>";p.find(".datepicker-switch").text(m+"-"+g),p.find("td").html(h)},fill:function(){var i,o,a=new Date(this.viewDate),s=a.getUTCFullYear(),u=a.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,c=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,f=y[this.o.language].today||y.en.today||"",p=y[this.o.language].clear||y.en.clear||"",m=y[this.o.language].titleFormat||y.en.titleFormat,g=r(),_=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&g>=this.o.startDate&&g<=this.o.endDate&&!this.weekOfDateIsDisabled(g);if(!isNaN(s)&&!isNaN(u)){this.picker.find(".datepicker-days .datepicker-switch").text(v.formatDate(a,m,this.o.language)),this.picker.find("tfoot .today").text(f).css("display",_?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",!0===this.o.clearBtn?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"===typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var b=n(s,u,0),w=b.getUTCDate();b.setUTCDate(w-(b.getUTCDay()-this.o.weekStart+7)%7);var k=new Date(b);b.getUTCFullYear()<100&&k.setUTCFullYear(b.getUTCFullYear()),k.setUTCDate(k.getUTCDate()+42),k=k.valueOf();for(var S,E,C=[];b.valueOf()<k;){if((S=b.getUTCDay())===this.o.weekStart&&(C.push("<tr>"),this.o.calendarWeeks)){var x=new Date(+b+(this.o.weekStart-S-7)%7*864e5),D=new Date(Number(x)+(11-x.getUTCDay())%7*864e5),A=new Date(Number(A=n(D.getUTCFullYear(),0,1))+(11-A.getUTCDay())%7*864e5),T=(D-A)/864e5/7+1;C.push('<td class="cw">'+T+"</td>")}(E=this.getClassNames(b)).push("day");var M=b.getUTCDate();this.o.beforeShowDay!==t.noop&&((o=this.o.beforeShowDay(this._utc_to_local(b)))===e?o={}:"boolean"===typeof o?o={enabled:o}:"string"===typeof o&&(o={classes:o}),!1===o.enabled&&E.push("disabled"),o.classes&&(E=E.concat(o.classes.split(/\s+/))),o.tooltip&&(i=o.tooltip),o.content&&(M=o.content)),E=t.isFunction(t.uniqueSort)?t.uniqueSort(E):t.unique(E),C.push('<td class="'+E.join(" ")+'"'+(i?' title="'+i+'"':"")+' data-date="'+b.getTime().toString()+'">'+M+"</td>"),i=null,S===this.o.weekEnd&&C.push("</tr>"),b.setUTCDate(b.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(C.join(""));var L=y[this.o.language].monthsTitle||y.en.monthsTitle||"Months",O=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?L:s).end().find("tbody span").removeClass("active");if(t.each(this.dates,(function(t,e){e.getUTCFullYear()===s&&O.eq(e.getUTCMonth()).addClass("active")})),(s<l||s>d)&&O.addClass("disabled"),s===l&&O.slice(0,c).addClass("disabled"),s===d&&O.slice(h+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var I=this;t.each(O,(function(n,r){var i=new Date(s,n,1),o=I.o.beforeShowMonth(i);o===e?o={}:"boolean"===typeof o?o={enabled:o}:"string"===typeof o&&(o={classes:o}),!1!==o.enabled||t(r).hasClass("disabled")||t(r).addClass("disabled"),o.classes&&t(r).addClass(o.classes),o.tooltip&&t(r).prop("title",o.tooltip)}))}this._fill_yearsView(".datepicker-years","year",10,s,l,d,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,s,l,d,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,s,l,d,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t,e,n=new Date(this.viewDate),r=n.getUTCFullYear(),i=n.getUTCMonth(),o=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,a=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,s=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:t=Math.floor(r/l)*l<=o,e=Math.floor(r/l)*l+l>s;break;case 0:t=r<=o&&i<=a,e=r>=s&&i>=u}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){var i,o,a,s;e.preventDefault(),e.stopPropagation(),(i=t(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),i.hasClass("today")&&!i.hasClass("day")&&(this.setViewMode(0),this._setDate(r(),"linked"===this.o.todayBtn?null:"view")),i.hasClass("clear")&&this.clearDates(),i.hasClass("disabled")||(i.hasClass("month")||i.hasClass("year")||i.hasClass("decade")||i.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(s=i.parent().find("span").index(i),a=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(s)):(s=0,a=Number(i.text()),this.viewDate.setUTCFullYear(a)),this._trigger(v.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(n(a,s,o)):(this.setViewMode(this.viewMode-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var n=t(e.currentTarget).data("date"),r=new Date(n);this.o.updateViewDate&&(r.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),r.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(r)},navArrowsClick:function(e){var n=t(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*v.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(v.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"===typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||e&&"date"!==e||this.hide()},moveDay:function(t,e){var n=new Date(t);return n.setUTCDate(t.getUTCDate()+e),n},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!a(t))return this.o.defaultViewDate;if(!e)return t;var n,r,i=new Date(t.valueOf()),o=i.getUTCDate(),s=i.getUTCMonth(),u=Math.abs(e);if(e=e>0?1:-1,1===u)r=-1===e?function(){return i.getUTCMonth()===s}:function(){return i.getUTCMonth()!==n},n=s+e,i.setUTCMonth(n),n=(n+12)%12;else{for(var l=0;l<u;l++)i=this.moveMonth(i,e);n=i.getUTCMonth(),i.setUTCDate(o),r=function(){return n!==i.getUTCMonth()}}for(;r();)i.setUTCDate(--o),i.setUTCMonth(n);return i},moveYear:function(t,e){return this.moveMonth(t,12*e)},moveAvailableDate:function(t,e,n){do{if(t=this[n](t,e),!this.dateWithinRange(t))return!1;n="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,(function(t){return i(e,t)})).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,n,r=!1,i=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(n=this.moveAvailableDate(i,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(n=this.moveAvailableDate(i,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?n=this.moveAvailableDate(i,e,"moveDay"):this.weekOfDateIsDisabled(i)||(n=this.moveAvailableDate(i,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(i,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),n=this.moveAvailableDate(i,e,"moveYear")),n&&(this.focusDate=this.viewDate=n,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;i=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(i),r=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}r&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+v.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var c=function(e,n){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(n.inputs,(function(t){return t.jquery?t[0]:t})),delete n.inputs,this.keepEmptyValues=n.keepEmptyValues,delete n.keepEmptyValues,p.call(t(this.inputs),n).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,(function(e){return t.data(e,"datepicker")})),this.updateDates()};function d(e,n){var r=t(e).data(),i={},o=new RegExp("^"+n.toLowerCase()+"([A-Z])");function a(t,e){return e.toLowerCase()}for(var s in n=new RegExp("^"+n.toLowerCase()),r)n.test(s)&&(i[s.replace(o,a)]=r[s]);return i}function h(e){var n={};if(y[e]||(e=e.split("-")[0],y[e])){var r=y[e];return t.each(g,(function(t,e){e in r&&(n[e]=r[e])})),n}}c.prototype={updateDates:function(){this.dates=t.map(this.pickers,(function(t){return t.getUTCDate()})),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,(function(t){return t.valueOf()}));t.each(this.pickers,(function(t,n){n.setRange(e)}))},clearDates:function(){t.each(this.pickers,(function(t,e){e.clearDates()}))},dateUpdated:function(n){if(!this.updating){this.updating=!0;var r=t.data(n.target,"datepicker");if(r!==e){var i=r.getUTCDate(),o=this.keepEmptyValues,a=t.inArray(n.target,this.inputs),s=a-1,u=a+1,l=this.inputs.length;if(-1!==a){if(t.each(this.pickers,(function(t,e){e.getUTCDate()||e!==r&&o||e.setUTCDate(i)})),i<this.dates[s])for(;s>=0&&i<this.dates[s];)this.pickers[s--].setUTCDate(i);else if(i>this.dates[u])for(;u<l&&i>this.dates[u];)this.pickers[u++].setUTCDate(i);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,(function(t){t.destroy()})),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:o("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var f=t.fn.datepicker,p=function(n){var r,i=Array.apply(null,arguments);if(i.shift(),this.each((function(){var e=t(this),o=e.data("datepicker"),a="object"===typeof n&&n;if(!o){var s=d(this,"date"),u=h(t.extend({},m,s,a).language),f=t.extend({},m,u,s,a);e.hasClass("input-daterange")||f.inputs?(t.extend(f,{inputs:f.inputs||e.find("input").toArray()}),o=new c(this,f)):o=new l(this,f),e.data("datepicker",o)}"string"===typeof n&&"function"===typeof o[n]&&(r=o[n].apply(o,i))})),r===e||r instanceof l||r instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+n+" function)");return r};t.fn.datepicker=p;var m=t.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"dd-M-yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:'<i class="fa-regular fa-chevron-left"></i>',rightArrow:'<i class="fa-regular fa-chevron-right"></i>'},showWeekDays:!0},g=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=l;var y=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},v={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"===typeof t.toValue&&"function"===typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),n=t.match(this.validParts);if(!e||!e.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:e,parts:n}},parseDate:function(n,i,o,a){if(!n)return e;if(n instanceof Date)return n;if("string"===typeof i&&(i=v.parseFormat(i)),i.toValue)return i.toValue(n,i,o);var s,u,c,d,h,f={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},p={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(n in p&&(n=p[n]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(n)){for(s=n.match(/([\-+]\d+)([dmwy])/gi),n=new Date,d=0;d<s.length;d++)u=s[d].match(/([\-+]\d+)([dmwy])/i),c=Number(u[1]),h=f[u[2].toLowerCase()],n=l.prototype[h](n,c);return l.prototype._zero_utc_time(n)}function m(t,e){return!0===e&&(e=10),t<100&&(t+=2e3)>(new Date).getFullYear()+e&&(t-=100),t}s=n&&n.match(this.nonpunctuation)||[];var g,_,b={},w=["yyyy","yy","M","MM","m","mm","d","dd"],k={yyyy:function(t,e){return t.setUTCFullYear(a?m(e,a):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};k.yy=k.yyyy,k.M=k.MM=k.mm=k.m,k.dd=k.d,n=r();var S=i.parts.slice();function E(){var t=this.slice(0,s[d].length),e=s[d].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(s.length!==S.length&&(S=t(S).filter((function(e,n){return-1!==t.inArray(n,w)})).toArray()),s.length===S.length){var C,x,D;for(d=0,C=S.length;d<C;d++){if(g=parseInt(s[d],10),u=S[d],isNaN(g))switch(u){case"MM":_=t(y[o].months).filter(E),g=t.inArray(_[0],y[o].months)+1;break;case"M":_=t(y[o].monthsShort).filter(E),g=t.inArray(_[0],y[o].monthsShort)+1}b[u]=g}for(d=0;d<w.length;d++)(D=w[d])in b&&!isNaN(b[D])&&(x=new Date(n),k[D](x,b[D]),isNaN(x)||(n=x))}return n},formatDate:function(e,n,r){if(!e)return"";if("string"===typeof n&&(n=v.parseFormat(n)),n.toDisplay)return n.toDisplay(e,n,r);var i={d:e.getUTCDate(),D:y[r].daysShort[e.getUTCDay()],DD:y[r].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:y[r].monthsShort[e.getUTCMonth()],MM:y[r].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};i.dd=(i.d<10?"0":"")+i.d,i.mm=(i.m<10?"0":"")+i.m,e=[];for(var o=t.extend([],n.separators),a=0,s=n.parts.length;a<=s;a++)o.length&&e.push(o.shift()),e.push(i[n.parts[a]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+m.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+m.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};v.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+v.headTemplate+"<tbody></tbody>"+v.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+v.headTemplate+v.contTemplate+v.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=v,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=f,this},t.fn.datepicker.version="1.9.0",t.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(e){var n=t(this);n.data("datepicker")||(e.preventDefault(),p.call(n,"show"))})),t((function(){p.call(t('[data-provide="datepicker-inline"]'))}))},void 0===(o="function"===typeof r?r.apply(e,i):r)||(t.exports=o)},function(t,e,n){"use strict";var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();!function(t){var e=function(){function e(t){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e),this.$context=t}return r(e,[{key:"check",value:function(){this.$context.find(":checkbox").filter(":not(:disabled)").filter(":visible").prop("checked",!0).trigger("change")}},{key:"uncheck",value:function(){this.$context.find(":checkbox:visible").filter(":not(:disabled)").prop("checked",!1).trigger("change")}},{key:"toggle",value:function(){this.$context.find(":checkbox:visible").filter(":not(:disabled)").each((function(e,n){var r=t(n);r.prop("checked",!r.is(":checked"))})).trigger("change")}},{key:"max",value:function(t){var e=this;t>0?function(){var n=e;e.$context.on("click.checkboxes.max",":checkbox",(function(){n.$context.find(":checked").length===t?n.$context.find(":checkbox:not(:checked)").prop("disabled",!0):n.$context.find(":checkbox:not(:checked)").prop("disabled",!1)}))}():this.$context.off("click.checkboxes.max")}},{key:"range",value:function(e){var n=this;e?function(){var e=n;n.$context.on("click.checkboxes.range",":checkbox",(function(n){var r=t(n.target);if(n.shiftKey&&e.$last){var i=e.$context.find(":checkbox:visible"),o=i.index(e.$last),a=i.index(r),s=Math.min(o,a),u=Math.max(o,a)+1;i.slice(s,u).filter(":not(:disabled)").prop("checked",r.prop("checked")).trigger("change")}e.$last=r}))}():this.$context.off("click.checkboxes.range")}}]),e}(),n=t.fn.checkboxes;t.fn.checkboxes=function(n){var r=Array.prototype.slice.call(arguments,1);return this.each((function(i,o){var a=t(o),s=a.data("checkboxes");s||a.data("checkboxes",s=new e(a)),"string"==typeof n&&s[n]&&s[n].apply(s,r)}))},t.fn.checkboxes.Constructor=e,t.fn.checkboxes.noConflict=function(){return t.fn.checkboxes=n,this};t(document).on("click.checkboxes.data-api","[data-toggle^=checkboxes]",(function(e){var n=t(e.target),r=n.attr("href"),i=t(n.data("context")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),o=n.data("action");i&&o&&(n.is(":checkbox")||e.preventDefault(),i.checkboxes(o))})),t(document).on("ready.checkboxes.data-api",(function(){t("[data-toggle^=checkboxes]").each((function(){var e=t(this),n=e.data();for(var r in delete n.toggle,n)e.checkboxes(r,n[r])}))}))}(window.jQuery)},function(t,e,n){(function(t,e){var n,r=function(e){return e.main=function(n,r){var i,o=new e.Constants,a=new e.Configuration(r),s=new e.Logger,u=new e.Template(r.template),l=new e.ListBuilderService(a,e.proccess),c=a.equals,d=n,h="",f=[],p=-1;function m(){var e;function n(t,e){return a.get("highlightPhrase")&&""!==e?function(t,e){var n=(r=e,r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));var r;return(t+"").replace(new RegExp("("+n+")","gi"),"<b>$1</b>")}(t,e):t}d.parent().hasClass(o.getValue("WRAPPER_CSS_CLASS"))&&(d.next("."+o.getValue("CONTAINER_CLASS")).remove(),d.unwrap()),function(){var e=t("<div>"),n=o.getValue("WRAPPER_CSS_CLASS");a.get("theme")&&""!==a.get("theme")&&(n+=" eac-"+a.get("theme"));a.get("cssClasses")&&""!==a.get("cssClasses")&&(n+=" "+a.get("cssClasses"));""!==u.getTemplateClass()&&(n+=" "+u.getTemplateClass());e.addClass(n),d.wrap(e),!0===a.get("adjustWidth")&&(r=d.outerWidth(),d.parent().css("width",r));var r}(),(e=t("<div>").addClass(o.getValue("CONTAINER_CLASS"))).attr("id",g()).prepend(t("<ul>")),e.on("show.eac",(function(){if(d.is(":focus")){switch(a.get("list").showAnimation.type){case"slide":var t=a.get("list").showAnimation.time,n=a.get("list").showAnimation.callback;e.find("ul").slideDown(t,n);break;case"fade":t=a.get("list").showAnimation.time,n=a.get("list").showAnimation.callback,e.find("ul").fadeIn(t);break;default:e.find("ul").show()}a.get("list").onShowListEvent()}})).on("hide.eac",(function(){switch(a.get("list").hideAnimation.type){case"slide":var t=a.get("list").hideAnimation.time,n=a.get("list").hideAnimation.callback;e.find("ul").slideUp(t,n);break;case"fade":t=a.get("list").hideAnimation.time,n=a.get("list").hideAnimation.callback,e.find("ul").fadeOut(t,n);break;default:e.find("ul").hide()}a.get("list").onHideListEvent()})).on("selectElement.eac",(function(){e.find("ul li").removeClass("selected"),e.find("ul li").eq(p).addClass("selected"),a.get("list").onSelectItemEvent()})).on("loadElements.eac",(function(r,i,o){var s="",l=e.find("ul");l.empty().detach(),f=[];for(var c=0,h=0,m=i.length;h<m;h+=1){var g=i[h].data;if(0!==g.length){void 0!==i[h].header&&i[h].header.length>0&&l.append("<div class='eac-category' >"+i[h].header+"</div>");for(var y=0,v=g.length;y<v&&c<i[h].maxListSize;y+=1)s=t("<li><div class='eac-item'></div></li>"),function(){var t=y,e=c,r=i[h].getValue(g[t]);s.find(" > div").on("click",(function(){d.val(r).trigger("change"),d.val(r)[0].dispatchEvent(new Event("keyup")),p=e,_(e),a.get("list").onClickEvent(),a.get("list").onChooseEvent()})).mouseover((function(){p=e,_(e),a.get("list").onMouseOverEvent()})).mouseout((function(){a.get("list").onMouseOutEvent()})).html(u.build(n(r,o),g[t]))}(),l.append(s),f.push(g[y]),c+=1}}e.append(l),a.get("list").onLoadEvent()})),d.after(e),h=t("#"+g()),a.get("placeholder")&&d.attr("placeholder",a.get("placeholder"))}function g(){var t=d.attr("id");return t=o.getValue("CONTAINER_ID")+t}function y(){h.trigger("show.eac")}function v(){h.trigger("hide.eac")}function _(t){h.trigger("selectElement.eac",t)}function b(t,e){h.trigger("loadElements.eac",[t,e])}e.consts=o,this.getConstants=function(){return o},this.getConfiguration=function(){return a},this.getContainer=function(){return h},this.getSelectedItemIndex=function(){return p},this.getItems=function(){return f},this.getItemData=function(t){return f.length<t||void 0===f[t]?-1:f[t]},this.getSelectedItemData=function(){return this.getItemData(p)},this.build=function(){m()},this.init=function(){!function(){if(0===d.length)return void s.error("Input field doesn't exist.");if(!a.checkDataUrlProperties())return void s.error("One of options variables 'data' or 'url' must be defined.");if(!a.checkRequiredProperties())return void s.error("Will not work without mentioned properties.");m(),function(){function e(){c("autocompleteOff",!0)&&g(),n(),r(),o(),u(),h(),m()}function n(){d.focusout((function(){var t,e=d.val();a.get("list").match.caseSensitive||(e=e.toLowerCase());for(var n=0,r=f.length;n<r;n+=1)if(t=a.get("getValue")(f[n]),a.get("list").match.caseSensitive||(t=t.toLowerCase()),t===e)return void _(p=n)}))}function r(){d.off("keyup").keyup((function(e){switch(e.keyCode){case 27:v(),d.trigger("blur");break;case 38:e.preventDefault(),f.length>0&&p>0&&(p-=1,d.val(a.get("getValue")(f[p])),_(p));break;case 40:e.preventDefault(),f.length>0&&p<f.length-1&&(p+=1,d.val(a.get("getValue")(f[p])),_(p));break;default:if(e.keyCode>40||8===e.keyCode||0===e.keyCode){var n=d.val();!0!==a.get("list").hideOnEmptyPhrase||8!==e.keyCode||""!==n?a.get("requestDelay")>0?(void 0!==i&&clearTimeout(i),i=setTimeout((function(){r(n)}),a.get("requestDelay"))):r(n):v()}}function r(e){if(!(e.length<a.get("minCharNumber"))){if("list-required"!==a.get("data")){var n=a.get("data"),r=l.init(n);r=l.updateCategories(r,n),b(r=l.processData(r,e),e),d.parent().find("li").length>0?y():v()}var i=o();void 0!==i.url&&""!==i.url||(i.url=a.get("url")),void 0!==i.dataType&&""!==i.dataType||(i.dataType=a.get("dataType")),void 0!==i.url&&"list-required"!==i.url&&(i.url=i.url(e),i.data=a.get("preparePostData")(i.data,e),t.ajax(i).done((function(t){var n=l.init(t);n=l.updateCategories(n,t),n=l.convertXml(n),u(e,t)&&b(n=l.processData(n,e),e),l.checkIfDataExists(n)&&d.parent().find("li").length>0?y():v(),a.get("ajaxCallback")()})).fail((function(){s.warning("Fail to load response data")})).always((function(){})))}function o(){var t={},e=a.get("ajaxSettings")||{};for(var n in e)t[n]=e[n];return t}function u(t,e){return!1===a.get("matchResponseProperty")||("string"===typeof a.get("matchResponseProperty")?e[a.get("matchResponseProperty")]===t:"function"!==typeof a.get("matchResponseProperty")||a.get("matchResponseProperty")(e)===t)}}}))}function o(){d.on("keydown",(function(t){if(38===(t=t||window.event).keyCode)return suppressKeypress=!0,!1})).keydown((function(t){13===t.keyCode&&p>-1&&(d.val(a.get("getValue")(f[p])),a.get("list").onKeyEnterEvent(),a.get("list").onChooseEvent(),p=-1,v(),t.preventDefault())}))}function u(){d.off("keypress")}function h(){d.focus((function(){""!==d.val()&&f.length>0&&(p=-1,y())}))}function m(){d.blur((function(){setTimeout((function(){p=-1,v()}),250)}))}function g(){d.attr("autocomplete","off")}e()}()}()}},e.eacHandles=[],e.getHandle=function(t){return e.eacHandles[t]},e.inputHasId=function(e){return void 0!==t(e).attr("id")&&t(e).attr("id").length>0},e.assignRandomId=function(n){var r="";do{r="eac-"+Math.floor(1e4*Math.random())}while(0!==t("#"+r).length);elementId=e.consts.getValue("CONTAINER_ID")+r,t(n).attr("id",r)},e.setHandle=function(t,n){e.eacHandles[n]=t},e}((r=function(t){return t.Template=function(t){var e={basic:{type:"basic",method:function(t){return t},cssClass:""},description:{type:"description",fields:{description:"description"},method:function(t){return t+" - description"},cssClass:"eac-description"},iconLeft:{type:"iconLeft",fields:{icon:""},method:function(t){return t},cssClass:"eac-icon-left"},iconRight:{type:"iconRight",fields:{iconSrc:""},method:function(t){return t},cssClass:"eac-icon-right"},links:{type:"links",fields:{link:""},method:function(t){return t},cssClass:""},custom:{type:"custom",method:function(){},cssClass:""}};this.getTemplateClass=function(t){var n,r=function(){return""};return t&&t.type&&t.type&&e[t.type]?(n=e[t.type].cssClass,function(){return n}):r}(t),this.build=function(t){return t&&t.type&&t.type&&e[t.type]?(i=(n=t).fields,"description"===n.type?(r=e.description.method,"string"===typeof i.description?r=function(t,e){return t+" - <span>"+e[i.description]+"</span>"}:"function"===typeof i.description&&(r=function(t,e){return t+" - <span>"+i.description(e)+"</span>"}),r):"iconRight"===n.type?("string"===typeof i.iconSrc?r=function(t,e){return t+"<img class='eac-icon' src='"+e[i.iconSrc]+"' />"}:"function"===typeof i.iconSrc&&(r=function(t,e){return t+"<img class='eac-icon' src='"+i.iconSrc(e)+"' />"}),r):"iconLeft"===n.type?("string"===typeof i.iconSrc?r=function(t,e){return"<img class='eac-icon' src='"+e[i.iconSrc]+"' />"+t}:"function"===typeof i.iconSrc&&(r=function(t,e){return"<img class='eac-icon' src='"+i.iconSrc(e)+"' />"+t}),r):"links"===n.type?("string"===typeof i.link?r=function(t,e){return"<a href='"+e[i.link]+"' >"+t+"</a>"}:"function"===typeof i.link&&(r=function(t,e){return"<a href='"+i.link(e)+"' >"+t+"</a>"}),r):"custom"===n.type?n.method:e.basic.method):e.basic.method;var n,r,i}(t)},t}((r=function(t){return t.proccess=function(e,n,r){t.proccess.match=o;var i=n.data;return i=function(t,n){var r=[];if(e.get("list").match.enabled)for(var i=0,a=t.length;i<a;i+=1)o(e.get("getValue")(t[i]),n)&&r.push(t[i]);else r=t;return r}(i,r),i=function(t){e.get("list").sort.enabled&&t.sort(e.get("list").sort.method);return t}(i=function(t){void 0!==n.maxNumberOfElements&&t.length>n.maxNumberOfElements&&(t=t.slice(0,n.maxNumberOfElements));return t}(i));function o(t,n){return e.get("list").match.caseSensitive||("string"===typeof t&&(t=t.toLowerCase()),n=n.toLowerCase()),e.get("list").match.method(t,n)}},t}((r=function(e){return e.ListBuilderService=function(e,n){function r(n,r){var i={};if(i="XML"===e.get("dataType").toUpperCase()?function(){var i,o={};void 0!==n.xmlElementName&&(o.xmlElementName=n.xmlElementName);void 0!==n.listLocation?i=n.listLocation:void 0!==e.get("listLocation")&&(i=e.get("listLocation"));void 0!==i?"string"===typeof i?o.data=t(r).find(i):"function"===typeof i&&(o.data=i(r)):o.data=r;return o}():function(){var t={};void 0!==n.listLocation?"string"===typeof n.listLocation?t.data=r[n.listLocation]:"function"===typeof n.listLocation&&(t.data=n.listLocation(r)):t.data=r;return t}(),void 0!==n.header&&(i.header=n.header),void 0!==n.maxNumberOfElements&&(i.maxNumberOfElements=n.maxNumberOfElements),void 0!==e.get("list").maxNumberOfElements&&(i.maxListSize=e.get("list").maxNumberOfElements),void 0!==n.getValue)if("string"===typeof n.getValue){var o=n.getValue;i.getValue=function(t){return t[o]}}else"function"===typeof n.getValue&&(i.getValue=n.getValue);else i.getValue=e.get("getValue");return i}function i(n){var r=[];return void 0===n.xmlElementName&&(n.xmlElementName=e.get("xmlElementName")),t(n.data).find(n.xmlElementName).each((function(){r.push(this)})),r}this.init=function(t){var n=[],r={};return r.data=e.get("listLocation")(t),r.getValue=e.get("getValue"),r.maxListSize=e.get("list").maxNumberOfElements,n.push(r),n},this.updateCategories=function(t,n){if(e.get("categoriesAssigned")){t=[];for(var i=0;i<e.get("categories").length;i+=1){var o=r(e.get("categories")[i],n);t.push(o)}}return t},this.convertXml=function(t){if("XML"===e.get("dataType").toUpperCase())for(var n=0;n<t.length;n+=1)t[n].data=i(t[n]);return t},this.processData=function(t,r){for(var i=0,o=t.length;i<o;i+=1)t[i].data=n(e,t[i],r);return t},this.checkIfDataExists=function(t){for(var e=0,n=t.length;e<n;e+=1)if(void 0!==t[e].data&&t[e].data instanceof Array&&t[e].data.length>0)return!0;return!1}},e}((r=function(t){return t.Constants=function(){var t={CONTAINER_CLASS:"easy-autocomplete-container",CONTAINER_ID:"eac-container-",WRAPPER_CSS_CLASS:"easy-autocomplete"};this.getValue=function(e){return t[e]}},t}((r=function(t){return t.Logger=function(){this.error=function(t){console.log("ERROR: "+t)},this.warning=function(t){console.log("WARNING: "+t)}},t}((r=((n=r||{}).Configuration=function(e){var n={data:"list-required",url:"list-required",dataType:"json",listLocation:function(t){return t},xmlElementName:"",getValue:function(t){return t},autocompleteOff:!0,placeholder:!1,ajaxCallback:function(){},matchResponseProperty:!1,list:{sort:{enabled:!1,method:function(t,e){return(t=n.getValue(t))<(e=n.getValue(e))?-1:t>e?1:0}},maxNumberOfElements:6,hideOnEmptyPhrase:!0,match:{enabled:!1,caseSensitive:!1,method:function(t,e){return t.search(e)>-1}},showAnimation:{type:"normal",time:400,callback:function(){}},hideAnimation:{type:"normal",time:400,callback:function(){}},onClickEvent:function(){},onSelectItemEvent:function(){},onLoadEvent:function(){},onChooseEvent:function(){},onKeyEnterEvent:function(){},onMouseOverEvent:function(){},onMouseOutEvent:function(){},onShowListEvent:function(){},onHideListEvent:function(){}},highlightPhrase:!0,theme:"",cssClasses:"",minCharNumber:0,requestDelay:0,adjustWidth:!0,ajaxSettings:{},preparePostData:function(t,e){return t},loggerEnabled:!0,template:"",categoriesAssigned:!1,categories:[{maxNumberOfElements:4}]},r=["ajaxSettings","template"];function i(e,i){!function n(i,o){for(var a in o)void 0===i[a]&&e.log("Property '"+a+"' does not exist in EasyAutocomplete options API."),"object"===typeof i[a]&&-1===t.inArray(a,r)&&n(i[a],o[a])}(n,i)}this.get=function(t){return n[t]},this.equals=function(t,e){return!(!function(t){return void 0!==n[t]&&null!==n[t]}(t)||n[t]!==e)},this.checkDataUrlProperties=function(){return!("list-required"===n.url&&"list-required"===n.data)},this.checkRequiredProperties=function(){for(var t in n)if("required"===n[t])return logger.error("Option "+t+" must be defined"),!1;return!0},this.printPropertiesThatDoesntExist=function(t,e){i(t,e)},function(){if("xml"===e.dataType&&(e.getValue||(e.getValue=function(e){return t(e).text()}),e.list||(e.list={}),e.list.sort||(e.list.sort={}),e.list.sort.method=function(t,n){return(t=e.getValue(t))<(n=e.getValue(n))?-1:t>n?1:0},e.list.match||(e.list.match={}),e.list.match.method=function(t,e){return t.search(e)>-1}),void 0!==e.categories&&e.categories instanceof Array){for(var r=[],i=0,o=e.categories.length;i<o;i+=1){var a=e.categories[i];for(var s in n.categories[0])void 0===a[s]&&(a[s]=n.categories[0][s]);r.push(a)}e.categories=r}}(),!0===(n=function t(e,n){var r=e||{};for(var i in e)void 0!==n[i]&&null!==n[i]&&("object"!==typeof n[i]||n[i]instanceof Array?r[i]=n[i]:t(e[i],n[i]));return void 0!==n.data&&null!==n.data&&"object"===typeof n.data&&(r.data=n.data),r}(n,e)).loggerEnabled&&i(console,e),void 0!==e.ajaxSettings&&"object"===typeof e.ajaxSettings?n.ajaxSettings=e.ajaxSettings:n.ajaxSettings={},function(){if("list-required"!==n.url&&"function"!==typeof n.url){var r=n.url;n.url=function(){return r}}if(void 0!==n.ajaxSettings.url&&"function"!==typeof n.ajaxSettings.url&&(r=n.ajaxSettings.url,n.ajaxSettings.url=function(){return r}),"string"===typeof n.listLocation){var i=n.listLocation;"XML"===n.dataType.toUpperCase()?n.listLocation=function(e){return t(e).find(i)}:n.listLocation=function(t){return t[i]}}if("string"===typeof n.getValue){var o=n.getValue;n.getValue=function(t){return t[o]}}void 0!==e.categories&&(n.categoriesAssigned=!0)}()},n))||{}))||{}))||{}))||{}))||{}))||{});!function(t){t.fn.easyAutocomplete=function(e){return this.each((function(){var n=t(this),i=new r.main(n,e);r.inputHasId(n)||r.assignRandomId(n),i.init(),r.setHandle(i,n.attr("id"))}))},t.fn.getSelectedItemIndex=function(){var e=t(this).attr("id");return void 0!==e?r.getHandle(e).getSelectedItemIndex():-1},t.fn.getItems=function(){var e=t(this).attr("id");return void 0!==e?r.getHandle(e).getItems():-1},t.fn.getItemData=function(e){var n=t(this).attr("id");return void 0!==n&&e>-1?r.getHandle(n).getItemData(e):-1},t.fn.getSelectedItemData=function(){var e=t(this).attr("id");return void 0!==e?r.getHandle(e).getSelectedItemData():-1}}(e)}).call(this,n(15),n(15))},function(t,e,n){(function(t){var e;Date.now||(Date.now=function(){return(new Date).getTime()}),function(){"use strict";for(var t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e){var n=t[e];window.requestAnimationFrame=window[n+"RequestAnimationFrame"],window.cancelAnimationFrame=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var r=0;window.requestAnimationFrame=function(t){var e=Date.now(),n=Math.max(r+16,e);return setTimeout((function(){t(r=n)}),n-e)},window.cancelAnimationFrame=clearTimeout}}(),(e=t).snowfall=function(t,n){var r=[],i={flakeCount:35,flakeColor:"#ffffff",flakePosition:"absolute",flakeIndex:999999,minSize:1,maxSize:2,minSpeed:1,maxSpeed:5,round:!1,shadow:!1,collection:!1,collectionHeight:40,deviceorientation:!1},o=(n=e.extend(i,n),function(t,e){return Math.round(t+Math.random()*(e-t))});function a(r,a,s,d){this.x=r,this.y=a,this.size=s,this.speed=d,this.step=0,this.stepSize=o(1,10)/100,n.collection&&(this.target=f[o(0,f.length-1)]);var h=null;n.image?(h=document.createElement("img")).src=n.image:(h=document.createElement("div"),e(h).css({background:n.flakeColor})),e(h).attr({class:"snowfall-flakes"}).css({width:this.size,height:this.size,position:n.flakePosition,top:this.y,left:this.x,fontSize:0,zIndex:n.flakeIndex}),e(t).get(0).tagName===e(document).get(0).tagName?(e("body").append(e(h)),t=e("body")):e(t).append(e(h)),this.element=h,this.update=function(){if(this.y+=this.speed,this.y>u-(this.size+6)&&this.reset(),this.element.style.top=this.y+"px",this.element.style.left=this.x+"px",this.step+=this.stepSize,this.x+=!1===b?Math.cos(this.step):b+Math.cos(this.step),n.collection&&this.x>this.target.x&&this.x<this.target.width+this.target.x&&this.y>this.target.y&&this.y<this.target.height+this.target.y){var t=this.target.element.getContext("2d"),e=this.x-this.target.x,r=this.y-this.target.y,o=this.target.colData;if(void 0!==o[parseInt(e)][parseInt(r+this.speed+this.size)]||r+this.speed+this.size>this.target.height)if(r+this.speed+this.size>this.target.height){for(;r+this.speed+this.size>this.target.height&&this.speed>0;)this.speed*=.5;t.fillStyle=i.flakeColor,void 0==o[parseInt(e)][parseInt(r+this.speed+this.size)]?(o[parseInt(e)][parseInt(r+this.speed+this.size)]=1,t.fillRect(e,r+this.speed+this.size,this.size,this.size)):(o[parseInt(e)][parseInt(r+this.speed)]=1,t.fillRect(e,r+this.speed,this.size,this.size)),this.reset()}else this.speed=1,this.stepSize=0,parseInt(e)+1<this.target.width&&void 0==o[parseInt(e)+1][parseInt(r)+1]?this.x++:parseInt(e)-1>0&&void 0==o[parseInt(e)-1][parseInt(r)+1]?this.x--:(t.fillStyle=i.flakeColor,t.fillRect(e,r,this.size,this.size),o[parseInt(e)][parseInt(r)]=1,this.reset())}(this.x+this.size>l-c||this.x<c)&&this.reset()},this.reset=function(){this.y=0,this.x=o(c,l-c),this.stepSize=o(1,10)/100,this.size=o(100*n.minSize,100*n.maxSize)/100,this.element.style.width=this.size+"px",this.element.style.height=this.size+"px",this.speed=o(n.minSpeed,n.maxSpeed)}}e(t).data("snowfall",this);var s=0,u=e(t).height(),l=e(t).width(),c=0,d=0;if(!1!==n.collection){var h=document.createElement("canvas");if(h.getContext&&h.getContext("2d")){var f=[],p=e(n.collection),m=n.collectionHeight;for(s=0;s<p.length;s++){var g=p[s].getBoundingClientRect(),y=e("<canvas/>",{class:"snowfall-canvas"}),v=[];if(g.top-m>0){e("body").append(y),y.css({position:n.flakePosition,left:g.left+"px",top:g.top-m+"px"}).prop({width:g.width,height:m});for(var _=0;_<g.width;_++)v[_]=[];f.push({element:y.get(0),x:g.left,y:g.top-m,width:g.width,height:m,colData:v})}}}else n.collection=!1}for(e(t).get(0).tagName===e(document).get(0).tagName&&(c=25),e(window).bind("resize",(function(){u=e(t)[0].clientHeight,l=e(t)[0].offsetWidth})),s=0;s<n.flakeCount;s+=1)r.push(new a(o(c,l-c),o(0,u),o(100*n.minSize,100*n.maxSize)/100,o(n.minSpeed,n.maxSpeed)));n.round&&e(".snowfall-flakes").css({"-moz-border-radius":n.maxSize,"-webkit-border-radius":n.maxSize,"border-radius":n.maxSize}),n.shadow&&e(".snowfall-flakes").css({"-moz-box-shadow":"1px 1px 1px #555","-webkit-box-shadow":"1px 1px 1px #555","box-shadow":"1px 1px 1px #555"});var b=!1;n.deviceorientation&&e(window).bind("deviceorientation",(function(t){b=.1*t.originalEvent.gamma})),function t(){for(s=0;s<r.length;s+=1)r[s].update();d=requestAnimationFrame((function(){t()}))}(),this.clear=function(){e(".snowfall-canvas").remove(),e(t).children(".snowfall-flakes").remove(),cancelAnimationFrame(d)}},e.fn.snowfall=function(t){return"object"==typeof t||void 0==t?this.each((function(n){new e.snowfall(this,t)})):"string"==typeof t?this.each((function(t){var n=e(this).data("snowfall");n&&n.clear()})):void 0}}).call(this,n(15))},function(t,e,n){(function(e){t.exports=function(){"use strict";var t,n=["webkit","Moz","ms","O"],r={};function i(t,e){var n,r=document.createElement(t||"div");for(n in e)r[n]=e[n];return r}function o(t){for(var e=1,n=arguments.length;e<n;e++)t.appendChild(arguments[e]);return t}var a,s=(a=i("style",{type:"text/css"}),o(document.getElementsByTagName("head")[0],a),a.sheet||a.styleSheet);function u(e,n,i,o){var a=["opacity",n,~~(100*e),i,o].join("-"),u=.01+i/o*100,l=Math.max(1-(1-e)/n*(100-u),e),c=t.substring(0,t.indexOf("Animation")).toLowerCase(),d=c&&"-"+c+"-"||"";return r[a]||(s.insertRule("@"+d+"keyframes "+a+"{0%{opacity:"+l+"}"+u+"%{opacity:"+e+"}"+(u+.01)+"%{opacity:1}"+(u+n)%100+"%{opacity:"+e+"}100%{opacity:"+l+"}}",s.cssRules.length),r[a]=1),a}function l(t,e){var r,i,o=t.style;for(e=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<n.length;i++)if(void 0!==o[r=n[i]+e])return r;if(void 0!==o[e])return e}function c(t,e){for(var n in e)t.style[l(t,n)||n]=e[n];return t}function d(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)void 0===t[r]&&(t[r]=n[r])}return t}function h(t,e){return"string"==typeof t?t:t[e%t.length]}var f={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:1/4,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};function p(t){this.opts=d(t||{},p.defaults,f)}function m(){function t(t,e){return i("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',e)}s.addRule(".spin-vml","behavior:url(#default#VML)"),p.prototype.lines=function(e,n){var r=n.length+n.width,i=2*r;function a(){return c(t("group",{coordsize:i+" "+i,coordorigin:-r+" "+-r}),{width:i,height:i})}var s,u=2*-(n.width+n.length)+"px",l=c(a(),{position:"absolute",top:u,left:u});function d(e,i,s){o(l,o(c(a(),{rotation:360/n.lines*e+"deg",left:~~i}),o(c(t("roundrect",{arcsize:n.corners}),{width:r,height:n.width,left:n.radius,top:-n.width>>1,filter:s}),t("fill",{color:h(n.color,e),opacity:n.opacity}),t("stroke",{opacity:0}))))}if(n.shadow)for(s=1;s<=n.lines;s++)d(s,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(s=1;s<=n.lines;s++)d(s);return o(e,l)},p.prototype.opacity=function(t,e,n,r){var i=t.firstChild;r=r.shadow&&r.lines||0,i&&e+r<i.childNodes.length&&(i=(i=(i=i.childNodes[e+r])&&i.firstChild)&&i.firstChild)&&(i.opacity=n)}}p.defaults={},d(p.prototype,{spin:function(e){this.stop();var n=this,r=n.opts,o=n.el=c(i(0,{className:r.className}),{position:r.position,width:0,zIndex:r.zIndex});if(r.radius,r.length,r.width,c(o,{left:r.left,top:r.top}),e&&e.insertBefore(o,e.firstChild||null),o.setAttribute("role","progressbar"),n.lines(o,n.opts),!t){var a,s=0,u=(r.lines-1)*(1-r.direction)/2,l=r.fps,d=l/r.speed,h=(1-r.opacity)/(d*r.trail/100),f=d/r.lines;!function t(){s++;for(var e=0;e<r.lines;e++)a=Math.max(1-(s+(r.lines-e)*f)%d*h,r.opacity),n.opacity(o,e*r.direction+u,a,r);n.timeout=n.el&&setTimeout(t,~~(1e3/l))}()}return n},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(e,n){var r,a=0,s=(n.lines-1)*(1-n.direction)/2;function l(t,e){return c(i(),{position:"absolute",width:n.length+n.width+"px",height:n.width+"px",background:t,boxShadow:e,transformOrigin:"left",transform:"rotate("+~~(360/n.lines*a+n.rotate)+"deg) translate("+n.radius+"px,0)",borderRadius:(n.corners*n.width>>1)+"px"})}for(;a<n.lines;a++)r=c(i(),{position:"absolute",top:1+~(n.width/2)+"px",transform:n.hwaccel?"translate3d(0,0,0)":"",opacity:n.opacity,animation:t&&u(n.opacity,n.trail,s+a*n.direction,n.lines)+" "+1/n.speed+"s linear infinite"}),n.shadow&&o(r,c(l("#000","0 0 4px #000"),{top:"2px"})),o(e,o(r,l(h(n.color,a),"0 0 1px rgba(0,0,0,.1)")));return e},opacity:function(t,e,n){e<t.childNodes.length&&(t.childNodes[e].style.opacity=n)}});var g=c(i("group"),{behavior:"url(#default#VML)"});return!l(g,"transform")&&g.adj?m():t=l(g,"animation"),e.fn.spin=function(t,n){return this.each((function(){var r=e(this),i=r.data();i.spinner&&(i.spinner.stop(),delete i.spinner),!1!==t&&(t=e.extend({color:n||r.css("color")},e.fn.spin.presets[t]||t),i.spinner=new p(t).spin(this))}))},e.fn.spin.presets={tiny:{lines:8,length:2,width:2,radius:3},small:{lines:8,length:4,width:3,radius:5},large:{lines:10,length:8,width:4,radius:8}},p}()}).call(this,n(15))},function(t,e,n){(function(t,e){function n(e){"use strict";this.element=e,this.initOptions(),this.bindForm(),this.initPlaceHolder(),t(this.activator).bind("click",{editor:this},this.clickHandler)}n.prototype={activate:function(){"use strict";var e;if(this.isPlaceHolder())e="";else if(this.original_content)e=this.original_content;else switch(this.formType){case"input":case"textarea":if(this.display_raw)e=this.element.html().replace(/&amp;/gi,"&");else{var n=this.element.data("bipValue");e="undefined"===typeof n?"":"string"===typeof n?this.element.data("bipValue").replace(/&amp;/gi,"&"):this.element.data("bipValue")}break;case"select":e=this.element.html()}this.oldValue=this.isPlaceHolder()?"":this.element.html(),this.display_value=e,t(this.activator).unbind("click",this.clickHandler),this.activateForm(),this.element.trigger(t.Event("best_in_place:activate"))},abort:function(){"use strict";this.activateText(this.oldValue),t(this.activator).bind("click",{editor:this},this.clickHandler),this.element.trigger(t.Event("best_in_place:abort")),this.element.trigger(t.Event("best_in_place:deactivate"))},abortIfConfirm:function(){"use strict";this.useConfirm?confirm(n.defaults.locales[""].confirmMessage)&&this.abort():this.abort()},update:function(){"use strict";this.element.trigger(t.Event("best_in_place:before-update"));var r=this,i=this.getValue();if(this.formType in{input:1,textarea:1,date:1}&&i===this.oldValue)return this.abort(),!0;switch(r.ajax({type:this.requestMethod(),dataType:n.defaults.ajaxDataType,data:r.requestData(),success:function(t,e,n){r.loadSuccessCallback(t,e,n)},error:function(t,e){r.loadErrorCallback(t,e)}}),this.formType){case"select":this.previousCollectionValue=i,e.each(this.values,(function(t,e){String(e[0])===String(i)&&r.element.html(e[1])}));break;case"checkbox":e.each(this.values,(function(t,e){String(e[0])===String(i)&&r.element.html(e[1])}));break;default:""!==i?this.display_raw?r.element.html(i):r.element.text(i):r.element.html(this.placeHolder)}r.element.data("bipValue",i),r.element.attr("data-bip-value",i),r.element.trigger(t.Event("best_in_place:update"))},activateForm:function(){"use strict";alert(n.defaults.locales[""].uninitializedForm)},activateText:function(t){"use strict";this.element.html(t),this.isPlaceHolder()&&this.element.html(this.placeHolder)},initOptions:function(){"use strict";var e=this;e.element.parents().each((function(){var n=t(this);e.url=e.url||n.data("bipUrl"),e.activator=e.activator||n.data("bipActivator"),e.okButton=e.okButton||n.data("bipOkButton"),e.okButtonClass=e.okButtonClass||n.data("bipOkButtonClass"),e.cancelButton=e.cancelButton||n.data("bipCancelButton"),e.cancelButtonClass=e.cancelButtonClass||n.data("bipCancelButtonClass"),e.skipBlur=e.skipBlur||n.data("bipSkipBlur")})),e.url=e.element.data("bipUrl")||e.url||document.location.pathname,e.collection=e.element.data("bipCollection")||e.collection,e.formType=e.element.data("bipType")||"input",e.objectName=e.element.data("bipObject")||e.objectName,e.attributeName=e.element.data("bipAttribute")||e.attributeName,e.activator=e.element.data("bipActivator")||e.element,e.okButton=e.element.data("bipOkButton")||e.okButton,e.okButtonClass=e.element.data("bipOkButtonClass")||e.okButtonClass||n.defaults.okButtonClass,e.cancelButton=e.element.data("bipCancelButton")||e.cancelButton,e.cancelButtonClass=e.element.data("bipCancelButtonClass")||e.cancelButtonClass||n.defaults.cancelButtonClass,e.skipBlur=e.element.data("bipSkipBlur")||e.skipBlur||n.defaults.skipBlur,e.isNewObject=e.element.data("bipNewObject"),e.dataExtraPayload=e.element.data("bipExtraPayload"),null==e.element.data("bipPlaceholder")?e.placeHolder=n.defaults.locales[""].placeHolder:e.placeHolder=e.element.data("bipPlaceholder"),e.inner_class=e.element.data("bipInnerClass"),e.html_attrs=e.element.data("bipHtmlAttrs"),e.original_content=e.element.data("bipOriginalContent")||e.original_content,e.display_raw=e.element.data("bip-raw"),e.useConfirm=e.element.data("bip-confirm"),"select"!==e.formType&&"checkbox"!==e.formType||(e.values=e.collection,e.collectionValue=e.element.data("bipValue")||e.collectionValue)},bindForm:function(){"use strict";this.activateForm=n.forms[this.formType].activateForm,this.getValue=n.forms[this.formType].getValue},initPlaceHolder:function(){"use strict";""===this.element.html()&&(this.element.addClass("bip-placeholder"),this.element.html(this.placeHolder))},isPlaceHolder:function(){"use strict";return""===this.element.html()||this.element.html()===this.placeHolder},getValue:function(){"use strict";alert(n.defaults.locales[""].uninitializedForm)},sanitizeValue:function(e){"use strict";return t.trim(e)},requestMethod:function(){"use strict";return this.isNewObject?"post":n.defaults.ajaxMethod},requestData:function(){"use strict";var e=t("meta[name=csrf-token]").attr("content"),n=t("meta[name=csrf-param]").attr("content"),r={};return r._method=this.requestMethod(),r[this.objectName]=this.dataExtraPayload||{},r[this.objectName][this.attributeName]=this.getValue(),void 0!==n&&void 0!==e&&(r[n]=e),t.param(r)},ajax:function(e){"use strict";return e.url=this.url,e.beforeSend=function(t){t.setRequestHeader("Accept","application/json")},t.ajax(e)},loadSuccessCallback:function(e,n,r){"use strict";if(e=t.trim(e),this.display_raw?this.original_content=this.element.html():this.original_content=this.element.text(),e&&""!==e){var i=t.parseJSON(e);null!==i&&i.hasOwnProperty("display_as")&&(this.element.data("bip-original-content",this.element.text()),this.element.html(i.display_as)),this.isNewObject&&i&&i[this.objectName]&&i[this.objectName].id&&(this.isNewObject=!1,this.url+="/"+i[this.objectName].id)}this.element.toggleClass("bip-placeholder",this.isPlaceHolder()),this.element.trigger(t.Event("best_in_place:success"),[e,n,r]),this.element.trigger(t.Event("ajax:success"),[e,n,r]),t(this.activator).bind("click",{editor:this},this.clickHandler),this.element.trigger(t.Event("best_in_place:deactivate")),null!==this.collectionValue&&"select"===this.formType&&(this.collectionValue=this.previousCollectionValue,this.previousCollectionValue=null)},loadErrorCallback:function(e,n){"use strict";this.activateText(this.oldValue),this.element.trigger(t.Event("best_in_place:error"),[e,n]),this.element.trigger(t.Event("ajax:error"),e,n),t(this.activator).bind("click",{editor:this},this.clickHandler),this.element.trigger(t.Event("best_in_place:deactivate"))},clickHandler:function(t){"use strict";t.preventDefault(),t.data.editor.activate()},setHtmlAttributes:function(){"use strict";var t=this.element.find(this.formType);if(this.html_attrs){var n=this.html_attrs;e.each(n,(function(e,n){t.attr(e,n)}))}},placeButtons:function(e,n){"use strict";n.okButton&&e.append(t(document.createElement("input")).attr("type","submit").attr("class",n.okButtonClass).attr("value",n.okButton)),n.cancelButton&&e.append(t(document.createElement("input")).attr("type","button").attr("class",n.cancelButtonClass).attr("value",n.cancelButton))}},n.forms={input:{activateForm:function(){"use strict";var e=t(document.createElement("form")).addClass("form_in_place").attr("action","javascript:void(0);").attr("style","display:inline"),r=t(document.createElement("input")).attr("type","text").attr("name",this.attributeName).val(this.display_value);this.inner_class&&r.addClass(this.inner_class),e.append(r),this.placeButtons(e,this),this.element.html(e),this.setHtmlAttributes(),this.element.find("input[type='text']")[0].select(),this.element.find("form").bind("submit",{editor:this},n.forms.input.submitHandler),this.cancelButton&&this.element.find("input[type='button']").bind("click",{editor:this},n.forms.input.cancelButtonHandler),this.okButton||this.element.find("input[type='text']").bind("blur",{editor:this},n.forms.input.inputBlurHandler),this.element.find("input[type='text']").bind("keyup",{editor:this},n.forms.input.keyupHandler),this.blurTimer=null,this.userClicked=!1},getValue:function(){"use strict";return this.sanitizeValue(this.element.find("input").val())},inputBlurHandler:function(t){"use strict";t.data.editor.okButton?t.data.editor.blurTimer=setTimeout((function(){t.data.editor.userClicked||t.data.editor.abort()}),500):t.data.editor.cancelButton?t.data.editor.blurTimer=setTimeout((function(){t.data.editor.userClicked||t.data.editor.update()}),500):t.data.editor.update()},submitHandler:function(t){"use strict";t.data.editor.userClicked=!0,clearTimeout(t.data.editor.blurTimer),t.data.editor.update()},cancelButtonHandler:function(t){"use strict";t.data.editor.userClicked=!0,clearTimeout(t.data.editor.blurTimer),t.data.editor.abort(),t.stopPropagation()},keyupHandler:function(t){"use strict";27===t.keyCode&&(t.data.editor.abort(),t.stopImmediatePropagation())}},select:{activateForm:function(){"use strict";var r,i,o=t(document.createElement("form")).attr("action","javascript:void(0)").attr("style","display:inline"),a=t(document.createElement("select")).attr("class",null!==this.inner_class?this.inner_class:""),s=this.collectionValue,u=this.values;e.each(u,(function(e,n){r=n[0],i=n[1];var o=t(document.createElement("option")).val(r).html(i);s&&String(r)===String(s)&&o.attr("selected","selected"),a.append(o)})),o.append(a),this.element.html(o),this.setHtmlAttributes(),this.element.find("select").bind("change",{editor:this},n.forms.select.blurHandler),this.element.find("select").bind("blur",{editor:this},n.forms.select.blurHandler),this.element.find("select").bind("keyup",{editor:this},n.forms.select.keyupHandler),this.element.find("select")[0].focus();try{var l=document.createEvent("MouseEvents");l.initMouseEvent("mousedown",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.element.find("select")[0].dispatchEvent(l)}catch(l){}},getValue:function(){"use strict";return this.sanitizeValue(this.element.find("select").val())},blurHandler:function(t){"use strict";t.data.editor.update()},keyupHandler:function(t){"use strict";27===t.keyCode&&t.data.editor.abort()}},checkbox:{activateForm:function(){"use strict";this.collectionValue=!this.getValue(),this.setHtmlAttributes(),this.update()},getValue:function(){"use strict";return this.collectionValue}},textarea:{activateForm:function(){"use strict";var e=this.element.css("width"),r=this.element.css("height"),i=t(document.createElement("form")).addClass("form_in_place").attr("action","javascript:void(0);").attr("style","display:inline"),o=t(document.createElement("textarea")).attr("name",this.attributeName).val(this.sanitizeValue(this.display_value));null!==this.inner_class&&o.addClass(this.inner_class),i.append(o),this.placeButtons(i,this),this.element.html(i),this.setHtmlAttributes(),t(this.element.find("textarea")[0]).css({"min-width":e,"min-height":r}),t(this.element.find("textarea")[0]).autosize(),this.element.find("textarea")[0].focus(),this.element.find("form").bind("submit",{editor:this},n.forms.textarea.submitHandler),this.cancelButton&&this.element.find("input[type='button']").bind("click",{editor:this},n.forms.textarea.cancelButtonHandler),this.skipBlur||this.element.find("textarea").bind("blur",{editor:this},n.forms.textarea.blurHandler),this.element.find("textarea").bind("keyup",{editor:this},n.forms.textarea.keyupHandler),this.blurTimer=null,this.userClicked=!1},getValue:function(){"use strict";return this.sanitizeValue(this.element.find("textarea").val())},blurHandler:function(t){"use strict";t.data.editor.okButton?t.data.editor.blurTimer=setTimeout((function(){t.data.editor.userClicked||t.data.editor.abortIfConfirm()}),500):t.data.editor.cancelButton?t.data.editor.blurTimer=setTimeout((function(){t.data.editor.userClicked||t.data.editor.update()}),500):t.data.editor.update()},submitHandler:function(t){"use strict";t.data.editor.userClicked=!0,clearTimeout(t.data.editor.blurTimer),t.data.editor.update()},cancelButtonHandler:function(t){"use strict";t.data.editor.userClicked=!0,clearTimeout(t.data.editor.blurTimer),t.data.editor.abortIfConfirm(),t.stopPropagation()},keyupHandler:function(t){"use strict";27===t.keyCode&&t.data.editor.abortIfConfirm()}},date:{activateForm:function(){"use strict";var e=t(document.createElement("form")).addClass("form_in_place").attr("action","javascript:void(0);").attr("style","display:inline"),r=t(document.createElement("input")).attr("type","text").attr("name",this.attributeName).attr("value",this.sanitizeValue(this.display_value));null!==this.inner_class&&r.addClass(this.inner_class),e.append(r),this.element.html(e),this.setHtmlAttributes(),this.element.find("input")[0].select(),this.element.find("form").bind("submit",{editor:this},n.forms.input.submitHandler),this.element.find("input").bind("keyup",{editor:this},n.forms.input.keyupHandler),this.element.trigger(t.Event("best_in_place:datepicker"),[this,this.element])},getValue:function(){"use strict";return this.sanitizeValue(this.element.find("input").val())},submitHandler:function(t){"use strict";t.data.editor.update()},keyupHandler:function(t){"use strict";27===t.keyCode&&t.data.editor.abort()}}},n.defaults={locales:{},ajaxMethod:"put",ajaxDataType:"text",okButtonClass:"",cancelButtonClass:"",skipBlur:!1},n.defaults.locales[""]={confirmMessage:"Are you sure you want to discard your changes?",uninitializedForm:"The form was not properly initialized. getValue is unbound",placeHolder:"-"},t.fn.best_in_place=function(){"use strict";function e(t){if(!t.data("bestInPlaceEditor"))return t.data("bestInPlaceEditor",new n(t)),!0}return t(this.context).delegate(this.selector,"click",(function(){var n=t(this);e(n)&&n.click()})),this.each((function(){e(t(this))})),this}}).call(this,n(15),n(15))},function(t,e,n){(function(t,e){t(document).on("best_in_place:datepicker",(function(n,r,i){t(i).find("input").datepicker().on("hide",(function(){r.update()})).on("changeDate",(function(){e(this).datepicker("hide")})).datepicker("show")}))}).call(this,n(15),n(15))},function(t,e,n){(function(t){document.addEventListener("turbolinks:load",(function(){document.addEventListener("keydown",(function(e){"ArrowLeft"==e.key&&(e.preventDefault(),t(".carousel").carousel("prev")),"ArrowRight"==e.key&&(e.preventDefault(),t(".carousel").carousel("next"))}))}))}).call(this,n(15))},function(t,e,n){"use strict";(function(t){n(41);!function(t){var e=function(t,e){var n=t.locale||"en-US";this.parse=function(t){var e=new Intl.NumberFormat(n).format(1.1).replace(/1/g,"");return parseFloat(t.replace(new RegExp(" ","g"),"").replace(new RegExp("\\"+e),"."))},this.render=function(t){if(0===parseInt(e.getAttribute("decimals")))return new Intl.NumberFormat(n,{maximumFractionDigits:0,minimumFractionDigits:0,useGrouping:!1}).format(t);var r=parseInt(e.getAttribute("decimals"))||a(e.getAttribute("step"))||Math.min(8,a(t))||0;return new Intl.NumberFormat(n,{minimumFractionDigits:r,maximumFractionDigits:o(e),useGrouping:!1}).format(t)}},n=!1,r=t.fn.val;function i(t,e){t.addEventListener("mousedown",(function(t){0===t.button&&(t.preventDefault(),e(t))})),t.addEventListener("touchstart",(function(t){t.cancelable&&t.preventDefault(),e(t)})),t.addEventListener("keydown",(function(t){32!==t.keyCode&&13!==t.keyCode||n||(n=!0,e(t))}))}function o(t){return null!=t.getAttribute("decimals")?parseInt(t.getAttribute("decimals")):8}t.fn.val=function(t){if(arguments.length>=1)for(var e=0;e<this.length;e++)this[e]["bootstrap-input-spinner"]&&this[e].setValue&&this[e].setValue(t);return r.apply(this,arguments)},t.fn.inputSpinner=function(r){if("destroy"===r)return this.each((function(){this["bootstrap-input-spinner"]?this.destroyInputSpinner():console.warn("element",this,"is no bootstrap-input-spinner")})),this;var o={decrementButton:"<strong>&minus;</strong>",incrementButton:"<strong>&plus;</strong>",groupClass:"",buttonsClass:"btn-outline-secondary",buttonsWidth:"2.5rem",textAlign:"left",autoDelay:500,autoInterval:50,buttonsOnly:!1,keyboardStepping:!0,locale:navigator.language,editor:e,template:'<div class="input-group ${groupClass}"><input type="number" inputmode="decimal" style="text-align: ${textAlign}; border-width: 1px 0px 1px 1px;" class="form-control form-control-text-input" bootstrap-input-spinner="true"/><button style="min-width: ${buttonsWidth}; border-radius: 0px 0px 0px 0px;" class="btn btn-decrement ${buttonsClass} btn-minus" type="button">${decrementButton}</button><button style="min-width: ${buttonsWidth}; border-radius: 0px 5px 5px 0px; border-width: 1px 1px 1px 0px;" class="btn btn-increment ${buttonsClass} btn-plus" type="button">${incrementButton}</button></div>'};for(var s in r)o[s]=r[s];return this.each((function(){if(this.getAttribute("bootstrap-input-spinner"))console.warn("element",this,"is already a bootstrap-input-spinner");else{var e=t(this);if(e.attr("step")&&"any"==e.attr("step"))return;e[0]["bootstrap-input-spinner"]=!0,e[0].setAttribute("bootstrap-input-spinner","true"),e[0].inputSpinnerEditor=new o.editor(o,this);var r=o.template,s=e.attr("data-groupClass")||"",u=r.replace(/\${groupClass}/g,s).replace(/\${buttonsWidth}/g,o.buttonsWidth).replace(/\${buttonsClass}/g,o.buttonsClass).replace(/\${decrementButton}/g,o.decrementButton).replace(/\${incrementButton}/g,o.incrementButton).replace(/\${textAlign}/g,o.textAlign),l=null,c=null,d=t(u),h=d.find(".btn-decrement"),f=d.find(".btn-increment"),p=d.find("input"),m=t("label[for='"+e.attr("id")+"']");m[0]||(m=e.closest("label"));var g=null,y=null,v=null;I();var _=parseFloat(e[0].value),b=!1,w=e.attr("data-prefix")||"",k=e.attr("data-suffix")||"";if(w){var S=t('<div class="input-group-prepend" data-toggle="tooltip" title="" data-original-title="'+w+'"><span class="input-group-text text-truncate">'+w+"</span></div>");d.find("input").before(S)}if(k){var E=t('<span class="input-group-text">'+k+"</span>");d.find("input").after(E)}e[0].setValue=function(t){A(t)},e[0].destroyInputSpinner=function(){console.log("SELF DESTRUCT"),e.prop("required",p.prop("required")),C.disconnect(),O(),p.off("paste input change focusout"),d.remove(),e.show(),e[0]["bootstrap-input-spinner"]=void 0,m[0]&&m.attr("for",e.attr("id"))};var C=new MutationObserver((function(){I(),A(_,!0)}));C.observe(e[0],{attributes:!0}),e.after(d),A(_),p.on("paste input change focusout",(function(t){var n=p[0].value,r="focusout"===t.type;A(n=e[0].inputSpinnerEditor.parse(n),r),T(e,t.type)})).on("keydown",(function(t){o.keyboardStepping&&(38===t.which?(t.preventDefault(),h.prop("disabled")||M(v)):40===t.which&&(t.preventDefault(),f.prop("disabled")||M(-v)))})).on("keyup",(function(t){!o.keyboardStepping||38!==t.which&&40!==t.which||(t.preventDefault(),O())})).on("focus",(function(t){t.target.select()})),i(h[0],(function(){h.prop("disabled")||(b=!0,M(-v))})),i(f[0],(function(){f.prop("disabled")||(b=!0,M(v))})),x=document.body,D=function(){!0===b&&(O(),T(e,"change"),b=!1)},x.addEventListener("mouseup",(function(t){D(t)})),x.addEventListener("touchend",(function(t){D(t)})),x.addEventListener("keyup",(function(t){32!==t.keyCode&&13!==t.keyCode||(n=!1,D(t))})),e.remove()}var x,D;function A(t,n){void 0===n&&(n=!0),isNaN(t)||""===t?(e[0].value="",n&&(p[0].value=""),_=NaN):(t=parseFloat(t),t=Math.min(Math.max(t,g),y),e[0].value=t,n&&(p[0].value=e[0].inputSpinnerEditor.render(t),p[0].dispatchEvent(new Event("change")),p[0].dispatchEvent(new Event("keyup"))),a(t)>8&&(t=parseFloat(t).toPrecision(8)),_=t)}function T(t,e){e&&setTimeout((function(){var n;"function"===typeof Event?n=new Event(e,{bubbles:!0}):(n=document.createEvent("Event")).initEvent(e,!0,!0),t[0].dispatchEvent(n)}))}function M(t){L(t),O(),void 0!==o.autoInterval&&(l=setTimeout((function(){c=setInterval((function(){L(t)}),o.autoInterval)}),o.autoDelay))}function L(t){isNaN(_)&&(_=0),A(Math.round(_/t)*t+t),T(e,"input")}function O(){clearTimeout(l),clearTimeout(c)}function I(){e.prop("required")&&(p.prop("required",e.prop("required")),e.removeAttr("required")),p.prop("placeholder",e.prop("placeholder")),p.attr("inputmode",e.attr("inputmode")||"decimal");var t=e.prop("disabled"),n=e.prop("readonly");p.prop("disabled",t),p.prop("readonly",n||o.buttonsOnly),f.prop("disabled",t||n),h.prop("disabled",t||n),(t||n)&&O();var r=e.prop("class"),i="";/form-control-sm/g.test(r)?i="input-group-sm":/form-control-lg/g.test(r)&&(i="input-group-lg");var a=r.replace(/form-control(-(sm|lg))?/g,"");d.prop("class","input-group "+i+" "+o.groupClass),p.prop("class","form-control "+a),g=isNaN(e.prop("min"))||""===e.prop("min")?-1/0:parseFloat(e.prop("min")),y=isNaN(e.prop("max"))||""===e.prop("max")?1/0:parseFloat(e.prop("max")),v=parseFloat(e.prop("step"))||1,e.attr("hidden")?d.attr("hidden",e.attr("hidden")):d.removeAttr("hidden"),e.attr("id")&&(p.attr("id",e.attr("id")),m[0]&&m.attr("for",p.attr("id"))),e.attr("name")&&p.attr("name",e.attr("name")),e.attr("step")&&p.attr("step",e.attr("step"))}})),this};var a=function(t){return null!==t&&(Math.floor(t)===t?0:t.toString().split(".")[1].length||0)}}(t)}).call(this,n(15))},function(t,e,n){var r={"./Slope-Blk-Stacked":564,"./Slope-Blk-Stacked.png":564,"./Slope-Trademark":565,"./Slope-Trademark.png":565,"./Slope-Wht-Horizontal":566,"./Slope-Wht-Horizontal.png":566,"./Slope-Wht-Stacked":567,"./Slope-Wht-Stacked.png":567,"./brandmark_red":568,"./brandmark_red.svg":568,"./dynamicbg":569,"./dynamicbg.jpg":569,"./favicon.ico":621,"./lockup-h color black":570,"./lockup-h color black.png":570,"./slope-inverse":571,"./slope-inverse.png":571,"./slope-modern":572,"./slope-modern.png":572,"./sort_asc":573,"./sort_asc.png":573,"./sort_asc_disabled":574,"./sort_asc_disabled.png":574,"./sort_both":575,"./sort_both.png":575,"./sort_desc":576,"./sort_desc.png":576,"./sort_desc_disabled":577,"./sort_desc_disabled.png":577};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=620},function(t,e,n){t.exports=n.p+"media/images/favicon-7745b560.ico"},function(t,e,n){"use strict";n.r(e),n.d(e,"supportsHydration",(function(){return s})),n.d(e,"reactHydrate",(function(){return u})),n.d(e,"createReactRootLike",(function(){return l}));var r=n(154),i=n.n(r),o=i.a;if("undefined"!=typeof i.a&&(i.a.version.split(".")[0]||16)>=18)try{o=n(!function(){var t=new Error("Cannot find module 'react-dom/client'");throw t.code="MODULE_NOT_FOUND",t}())}catch(c){o=i.a}var a=o;function s(){return"function"===typeof a.hydrate||"function"===typeof a.hydrateRoot}function u(t,e){return"function"===typeof a.hydrateRoot?a.hydrateRoot(t,e):a.hydrate(e,t)}function l(t){return a.createRoot?a.createRoot(t):function(t){var e={render:function(e){return a.render(e,t)}};return e}(t)}},,,function(t,e,n){"use strict";n.r(e);var r=n(579),i=n.n(r),o=(n(46),n(15),n(584),n(626),n(585),n(586),n(587),n(588),n(589),n(179),n(591),n(592),n(593),n(578),n(276)),a=n.n(o);n(610),n(627);Turbo.session.drive=!0;var s=n(594);a.a.useContext(s),i.a.start(),a.a.detectEvents(),n(275).start();n(620)},function(t,e,n){var r,i,o,a;function s(t){return s="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},s(t)}a=function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){o(t,e,n[e])}))}return t}e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n;var u=function(t){var e="transitionend";function n(e){var n=this,i=!1;return t(this).one(r.TRANSITION_END,(function(){i=!0})),setTimeout((function(){i||r.triggerTransitionEnd(n)}),e),this}var r={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");e&&"#"!==e||(e=t.getAttribute("href")||"");try{return document.querySelector(e)?e:null}catch(n){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var n=t(e).css("transition-duration");return parseFloat(n)?(n=n.split(",")[0],1e3*parseFloat(n)):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(n){t(n).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],a=e[i],s=a&&r.isElement(a)?"element":(u=a,{}.toString.call(u).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var u}};return t.fn.emulateTransitionEnd=n,t.event.special[r.TRANSITION_END]={bindType:e,delegateType:e,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}},r}(e),l=function(t){var e="alert",n="bs.alert",r="."+n,o=t.fn[e],a={CLOSE:"close"+r,CLOSED:"closed"+r,CLICK_DATA_API:"click"+r+".data-api"},s="alert",l="fade",c="show",d=function(){function e(t){this._element=t}var r=e.prototype;return r.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},r.dispose=function(){t.removeData(this._element,n),this._element=null},r._getRootElement=function(e){var n=u.getSelectorFromElement(e),r=!1;return n&&(r=document.querySelector(n)),r||(r=t(e).closest("."+s)[0]),r},r._triggerCloseEvent=function(e){var n=t.Event(a.CLOSE);return t(e).trigger(n),n},r._removeElement=function(e){var n=this;if(t(e).removeClass(c),t(e).hasClass(l)){var r=u.getTransitionDurationFromElement(e);t(e).one(u.TRANSITION_END,(function(t){return n._destroyElement(e,t)})).emulateTransitionEnd(r)}else this._destroyElement(e)},r._destroyElement=function(e){t(e).detach().trigger(a.CLOSED).remove()},e._jQueryInterface=function(r){return this.each((function(){var i=t(this),o=i.data(n);o||(o=new e(this),i.data(n,o)),"close"===r&&o[r](this)}))},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},i(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}();return t(document).on(a.CLICK_DATA_API,'[data-dismiss="alert"]',d._handleDismiss(new d)),t.fn[e]=d._jQueryInterface,t.fn[e].Constructor=d,t.fn[e].noConflict=function(){return t.fn[e]=o,d._jQueryInterface},d}(e),c=function(t){var e="button",n="bs.button",r="."+n,o=".data-api",a=t.fn[e],s="active",u="btn",l="focus",c='[data-toggle^="button"]',d='[data-toggle="buttons"]',h="input",f=".active",p=".btn",m={CLICK_DATA_API:"click"+r+o,FOCUS_BLUR_DATA_API:"focus"+r+o+" blur"+r+o},g=function(){function e(t){this._element=t}var r=e.prototype;return r.toggle=function(){var e=!0,n=!0,r=t(this._element).closest(d)[0];if(r){var i=this._element.querySelector(h);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(s))e=!1;else{var o=r.querySelector(f);o&&t(o).removeClass(s)}if(e){if(i.hasAttribute("disabled")||r.hasAttribute("disabled")||i.classList.contains("disabled")||r.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(s),t(i).trigger("change")}i.focus(),n=!1}}n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(s)),e&&t(this._element).toggleClass(s)},r.dispose=function(){t.removeData(this._element,n),this._element=null},e._jQueryInterface=function(r){return this.each((function(){var i=t(this).data(n);i||(i=new e(this),t(this).data(n,i)),"toggle"===r&&i[r]()}))},i(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}();return t(document).on(m.CLICK_DATA_API,c,(function(e){e.preventDefault();var n=e.target;t(n).hasClass(u)||(n=t(n).closest(p)),g._jQueryInterface.call(t(n),"toggle")})).on(m.FOCUS_BLUR_DATA_API,c,(function(e){var n=t(e.target).closest(p)[0];t(n).toggleClass(l,/^focus(in)?$/.test(e.type))})),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=a,g._jQueryInterface},g}(e),d=function(t){var e="carousel",n="bs.carousel",r="."+n,o=".data-api",l=t.fn[e],c={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},d={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},h="next",f="prev",p="left",m="right",g={SLIDE:"slide"+r,SLID:"slid"+r,KEYDOWN:"keydown"+r,MOUSEENTER:"mouseenter"+r,MOUSELEAVE:"mouseleave"+r,TOUCHEND:"touchend"+r,LOAD_DATA_API:"load"+r+o,CLICK_DATA_API:"click"+r+o},y="carousel",v="active",_="slide",b="carousel-item-right",w="carousel-item-left",k="carousel-item-next",S="carousel-item-prev",E=".active",C=".active.carousel-item",x=".carousel-item",D=".carousel-item-next, .carousel-item-prev",A=".carousel-indicators",T="[data-slide], [data-slide-to]",M='[data-ride="carousel"]',L=function(){function o(e,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=t(e)[0],this._indicatorsElement=this._element.querySelector(A),this._addEventListeners()}var l=o.prototype;return l.next=function(){this._isSliding||this._slide(h)},l.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},l.prev=function(){this._isSliding||this._slide(f)},l.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(D)&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},l.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},l.to=function(e){var n=this;this._activeElement=this._element.querySelector(C);var r=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(g.SLID,(function(){return n.to(e)}));else{if(r===e)return this.pause(),void this.cycle();var i=e>r?h:f;this._slide(i,this._items[e])}},l.dispose=function(){t(this._element).off(r),t.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},l._getConfig=function(t){return t=a({},c,t),u.typeCheckConfig(e,t,d),t},l._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(g.KEYDOWN,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(t(this._element).on(g.MOUSEENTER,(function(t){return e.pause(t)})).on(g.MOUSELEAVE,(function(t){return e.cycle(t)})),"ontouchstart"in document.documentElement&&t(this._element).on(g.TOUCHEND,(function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval)})))},l._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()}},l._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(x)):[],this._items.indexOf(t)},l._getItemByDirection=function(t,e){var n=t===h,r=t===f,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===f?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},l._triggerSlideEvent=function(e,n){var r=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(C)),o=t.Event(g.SLIDE,{relatedTarget:e,direction:n,from:i,to:r});return t(this._element).trigger(o),o},l._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(E));t(n).removeClass(v);var r=this._indicatorsElement.children[this._getItemIndex(e)];r&&t(r).addClass(v)}},l._slide=function(e,n){var r,i,o,a=this,s=this._element.querySelector(C),l=this._getItemIndex(s),c=n||s&&this._getItemByDirection(e,s),d=this._getItemIndex(c),f=Boolean(this._interval);if(e===h?(r=w,i=k,o=p):(r=b,i=S,o=m),c&&t(c).hasClass(v))this._isSliding=!1;else if(!this._triggerSlideEvent(c,o).isDefaultPrevented()&&s&&c){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(c);var y=t.Event(g.SLID,{relatedTarget:c,direction:o,from:l,to:d});if(t(this._element).hasClass(_)){t(c).addClass(i),u.reflow(c),t(s).addClass(r),t(c).addClass(r);var E=u.getTransitionDurationFromElement(s);t(s).one(u.TRANSITION_END,(function(){t(c).removeClass(r+" "+i).addClass(v),t(s).removeClass(v+" "+i+" "+r),a._isSliding=!1,setTimeout((function(){return t(a._element).trigger(y)}),0)})).emulateTransitionEnd(E)}else t(s).removeClass(v),t(c).addClass(v),this._isSliding=!1,t(this._element).trigger(y);f&&this.cycle()}},o._jQueryInterface=function(e){return this.each((function(){var r=t(this).data(n),i=a({},c,t(this).data());"object"===s(e)&&(i=a({},i,e));var u="string"===typeof e?e:i.slide;if(r||(r=new o(this,i),t(this).data(n,r)),"number"===typeof e)r.to(e);else if("string"===typeof u){if("undefined"===typeof r[u])throw new TypeError('No method named "'+u+'"');r[u]()}else i.interval&&(r.pause(),r.cycle())}))},o._dataApiClickHandler=function(e){var r=u.getSelectorFromElement(this);if(r){var i=t(r)[0];if(i&&t(i).hasClass(y)){var s=a({},t(i).data(),t(this).data()),l=this.getAttribute("data-slide-to");l&&(s.interval=!1),o._jQueryInterface.call(t(i),s),l&&t(i).data(n).to(l),e.preventDefault()}}},i(o,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return c}}]),o}();return t(document).on(g.CLICK_DATA_API,T,L._dataApiClickHandler),t(window).on(g.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(M)),n=0,r=e.length;n<r;n++){var i=t(e[n]);L._jQueryInterface.call(i,i.data())}})),t.fn[e]=L._jQueryInterface,t.fn[e].Constructor=L,t.fn[e].noConflict=function(){return t.fn[e]=l,L._jQueryInterface},L}(e),h=function(t){var e="collapse",n="bs.collapse",r="."+n,o=t.fn[e],l={toggle:!0,parent:""},c={toggle:"boolean",parent:"(string|element)"},d={SHOW:"show"+r,SHOWN:"shown"+r,HIDE:"hide"+r,HIDDEN:"hidden"+r,CLICK_DATA_API:"click"+r+".data-api"},h="show",f="collapse",p="collapsing",m="collapsed",g="width",y="height",v=".show, .collapsing",_='[data-toggle="collapse"]',b=function(){function r(e,n){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var r=[].slice.call(document.querySelectorAll(_)),i=0,o=r.length;i<o;i++){var a=r[i],s=u.getSelectorFromElement(a),l=[].slice.call(document.querySelectorAll(s)).filter((function(t){return t===e}));null!==s&&l.length>0&&(this._selector=s,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var o=r.prototype;return o.toggle=function(){t(this._element).hasClass(h)?this.hide():this.show()},o.show=function(){var e,i,o=this;if(!this._isTransitioning&&!t(this._element).hasClass(h)&&(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(v)).filter((function(t){return t.getAttribute("data-parent")===o._config.parent}))).length&&(e=null),!(e&&(i=t(e).not(this._selector).data(n))&&i._isTransitioning))){var a=t.Event(d.SHOW);if(t(this._element).trigger(a),!a.isDefaultPrevented()){e&&(r._jQueryInterface.call(t(e).not(this._selector),"hide"),i||t(e).data(n,null));var s=this._getDimension();t(this._element).removeClass(f).addClass(p),this._element.style[s]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(m).attr("aria-expanded",!0),this.setTransitioning(!0);var l="scroll"+(s[0].toUpperCase()+s.slice(1)),c=u.getTransitionDurationFromElement(this._element);t(this._element).one(u.TRANSITION_END,(function(){t(o._element).removeClass(p).addClass(f).addClass(h),o._element.style[s]="",o.setTransitioning(!1),t(o._element).trigger(d.SHOWN)})).emulateTransitionEnd(c),this._element.style[s]=this._element[l]+"px"}}},o.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(h)){var n=t.Event(d.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",u.reflow(this._element),t(this._element).addClass(p).removeClass(f).removeClass(h);var i=this._triggerArray.length;if(i>0)for(var o=0;o<i;o++){var a=this._triggerArray[o],s=u.getSelectorFromElement(a);null!==s&&(t([].slice.call(document.querySelectorAll(s))).hasClass(h)||t(a).addClass(m).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[r]="";var l=u.getTransitionDurationFromElement(this._element);t(this._element).one(u.TRANSITION_END,(function(){e.setTransitioning(!1),t(e._element).removeClass(p).addClass(f).trigger(d.HIDDEN)})).emulateTransitionEnd(l)}}},o.setTransitioning=function(t){this._isTransitioning=t},o.dispose=function(){t.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},o._getConfig=function(t){return(t=a({},l,t)).toggle=Boolean(t.toggle),u.typeCheckConfig(e,t,c),t},o._getDimension=function(){return t(this._element).hasClass(g)?g:y},o._getParent=function(){var e=this,n=null;u.isElement(this._config.parent)?(n=this._config.parent,"undefined"!==typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(n.querySelectorAll(i));return t(o).each((function(t,n){e._addAriaAndCollapsedClass(r._getTargetFromElement(n),[n])})),n},o._addAriaAndCollapsedClass=function(e,n){if(e){var r=t(e).hasClass(h);n.length&&t(n).toggleClass(m,!r).attr("aria-expanded",r)}},r._getTargetFromElement=function(t){var e=u.getSelectorFromElement(t);return e?document.querySelector(e):null},r._jQueryInterface=function(e){return this.each((function(){var i=t(this),o=i.data(n),u=a({},l,i.data(),"object"===s(e)&&e?e:{});if(!o&&u.toggle&&/show|hide/.test(e)&&(u.toggle=!1),o||(o=new r(this,u),i.data(n,o)),"string"===typeof e){if("undefined"===typeof o[e])throw new TypeError('No method named "'+e+'"');o[e]()}}))},i(r,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return l}}]),r}();return t(document).on(d.CLICK_DATA_API,_,(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var r=t(this),i=u.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(i));t(o).each((function(){var e=t(this),i=e.data(n)?"toggle":r.data();b._jQueryInterface.call(e,i)}))})),t.fn[e]=b._jQueryInterface,t.fn[e].Constructor=b,t.fn[e].noConflict=function(){return t.fn[e]=o,b._jQueryInterface},b}(e),f=function(t){var e="dropdown",r="bs.dropdown",o="."+r,l=".data-api",c=t.fn[e],d=new RegExp("38|40|27"),h={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK:"click"+o,CLICK_DATA_API:"click"+o+l,KEYDOWN_DATA_API:"keydown"+o+l,KEYUP_DATA_API:"keyup"+o+l},f="disabled",p="show",m="dropup",g="dropright",y="dropleft",v="dropdown-menu-right",_="position-static",b='[data-toggle="dropdown"]',w=".dropdown form",k=".dropdown-menu",S=".navbar-nav",E=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",C="top-start",x="top-end",D="bottom-start",A="bottom-end",T="right-start",M="left-start",L={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},O={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},I=function(){function l(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var c=l.prototype;return c.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(f)){var e=l._getParentFromElement(this._element),r=t(this._menu).hasClass(p);if(l._clearMenus(),!r){var i={relatedTarget:this._element},o=t.Event(h.SHOW,i);if(t(e).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar){if("undefined"===typeof n)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=e:u.isElement(this._config.reference)&&(a=this._config.reference,"undefined"!==typeof this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(e).addClass(_),this._popper=new n(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(e).closest(S).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(p),t(e).toggleClass(p).trigger(t.Event(h.SHOWN,i))}}}},c.dispose=function(){t.removeData(this._element,r),t(this._element).off(o),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},c.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},c._addEventListeners=function(){var e=this;t(this._element).on(h.CLICK,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},c._getConfig=function(n){return n=a({},this.constructor.Default,t(this._element).data(),n),u.typeCheckConfig(e,n,this.constructor.DefaultType),n},c._getMenuElement=function(){if(!this._menu){var t=l._getParentFromElement(this._element);t&&(this._menu=t.querySelector(k))}return this._menu},c._getPlacement=function(){var e=t(this._element.parentNode),n=D;return e.hasClass(m)?(n=C,t(this._menu).hasClass(v)&&(n=x)):e.hasClass(g)?n=T:e.hasClass(y)?n=M:t(this._menu).hasClass(v)&&(n=A),n},c._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},c._getPopperConfig=function(){var t=this,e={};"function"===typeof this._config.offset?e.fn=function(e){return e.offsets=a({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},l._jQueryInterface=function(e){return this.each((function(){var n=t(this).data(r),i="object"===s(e)?e:null;if(n||(n=new l(this,i),t(this).data(r,n)),"string"===typeof e){if("undefined"===typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},l._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll(b)),i=0,o=n.length;i<o;i++){var a=l._getParentFromElement(n[i]),s=t(n[i]).data(r),u={relatedTarget:n[i]};if(e&&"click"===e.type&&(u.clickEvent=e),s){var c=s._menu;if(t(a).hasClass(p)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&t.contains(a,e.target))){var d=t.Event(h.HIDE,u);t(a).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),n[i].setAttribute("aria-expanded","false"),t(c).removeClass(p),t(a).removeClass(p).trigger(t.Event(h.HIDDEN,u)))}}}},l._getParentFromElement=function(t){var e,n=u.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},l._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||t(e.target).closest(k).length):!d.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!t(this).hasClass(f))){var n=l._getParentFromElement(this),r=t(n).hasClass(p);if((r||27===e.which&&32===e.which)&&(!r||27!==e.which&&32!==e.which)){var i=[].slice.call(n.querySelectorAll(E));if(0!==i.length){var o=i.indexOf(e.target);38===e.which&&o>0&&o--,40===e.which&&o<i.length-1&&o++,o<0&&(o=0),i[o].focus()}}else{if(27===e.which){var a=n.querySelector(b);t(a).trigger("focus")}t(this).trigger("click")}}},i(l,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return L}},{key:"DefaultType",get:function(){return O}}]),l}();return t(document).on(h.KEYDOWN_DATA_API,b,I._dataApiKeydownHandler).on(h.KEYDOWN_DATA_API,k,I._dataApiKeydownHandler).on(h.CLICK_DATA_API+" "+h.KEYUP_DATA_API,I._clearMenus).on(h.CLICK_DATA_API,b,(function(e){e.preventDefault(),e.stopPropagation(),I._jQueryInterface.call(t(this),"toggle")})).on(h.CLICK_DATA_API,w,(function(t){t.stopPropagation()})),t.fn[e]=I._jQueryInterface,t.fn[e].Constructor=I,t.fn[e].noConflict=function(){return t.fn[e]=c,I._jQueryInterface},I}(e),p=function(t){var e="modal",n="bs.modal",r="."+n,o=t.fn[e],l={backdrop:!0,keyboard:!0,focus:!0,show:!0},c={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},d={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,FOCUSIN:"focusin"+r,RESIZE:"resize"+r,CLICK_DISMISS:"click.dismiss"+r,KEYDOWN_DISMISS:"keydown.dismiss"+r,MOUSEUP_DISMISS:"mouseup.dismiss"+r,MOUSEDOWN_DISMISS:"mousedown.dismiss"+r,CLICK_DATA_API:"click"+r+".data-api"},h="modal-scrollbar-measure",f="modal-backdrop",p="modal-open",m="fade",g="show",y=".modal-dialog",v='[data-toggle="modal"]',_='[data-dismiss="modal"]',b=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",w=".sticky-top",k=function(){function o(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(y),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var v=o.prototype;return v.toggle=function(t){return this._isShown?this.hide():this.show(t)},v.show=function(e){var n=this;if(!this._isTransitioning&&!this._isShown){t(this._element).hasClass(m)&&(this._isTransitioning=!0);var r=t.Event(d.SHOW,{relatedTarget:e});t(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),t(document.body).addClass(p),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(d.CLICK_DISMISS,_,(function(t){return n.hide(t)})),t(this._dialog).on(d.MOUSEDOWN_DISMISS,(function(){t(n._element).one(d.MOUSEUP_DISMISS,(function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return n._showElement(e)})))}},v.hide=function(e){var n=this;if(e&&e.preventDefault(),!this._isTransitioning&&this._isShown){var r=t.Event(d.HIDE);if(t(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented()){this._isShown=!1;var i=t(this._element).hasClass(m);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(d.FOCUSIN),t(this._element).removeClass(g),t(this._element).off(d.CLICK_DISMISS),t(this._dialog).off(d.MOUSEDOWN_DISMISS),i){var o=u.getTransitionDurationFromElement(this._element);t(this._element).one(u.TRANSITION_END,(function(t){return n._hideModal(t)})).emulateTransitionEnd(o)}else this._hideModal()}}},v.dispose=function(){t.removeData(this._element,n),t(window,document,this._element,this._backdrop).off(r),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},v.handleUpdate=function(){this._adjustDialog()},v._getConfig=function(t){return t=a({},l,t),u.typeCheckConfig(e,t,c),t},v._showElement=function(e){var n=this,r=t(this._element).hasClass(m);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.scrollTop=0,r&&u.reflow(this._element),t(this._element).addClass(g),this._config.focus&&this._enforceFocus();var i=t.Event(d.SHOWN,{relatedTarget:e}),o=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(i)};if(r){var a=u.getTransitionDurationFromElement(this._element);t(this._dialog).one(u.TRANSITION_END,o).emulateTransitionEnd(a)}else o()},v._enforceFocus=function(){var e=this;t(document).off(d.FOCUSIN).on(d.FOCUSIN,(function(n){document!==n.target&&e._element!==n.target&&0===t(e._element).has(n.target).length&&e._element.focus()}))},v._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(d.KEYDOWN_DISMISS,(function(t){27===t.which&&(t.preventDefault(),e.hide())})):this._isShown||t(this._element).off(d.KEYDOWN_DISMISS)},v._setResizeEvent=function(){var e=this;this._isShown?t(window).on(d.RESIZE,(function(t){return e.handleUpdate(t)})):t(window).off(d.RESIZE)},v._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop((function(){t(document.body).removeClass(p),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(d.HIDDEN)}))},v._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},v._showBackdrop=function(e){var n=this,r=t(this._element).hasClass(m)?m:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=f,r&&this._backdrop.classList.add(r),t(this._backdrop).appendTo(document.body),t(this._element).on(d.CLICK_DISMISS,(function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())})),r&&u.reflow(this._backdrop),t(this._backdrop).addClass(g),!e)return;if(!r)return void e();var i=u.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(u.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(g);var o=function(){n._removeBackdrop(),e&&e()};if(t(this._element).hasClass(m)){var a=u.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(u.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else e&&e()},v._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")},v._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},v._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},v._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(b)),r=[].slice.call(document.querySelectorAll(w));t(n).each((function(n,r){var i=r.style.paddingRight,o=t(r).css("padding-right");t(r).data("padding-right",i).css("padding-right",parseFloat(o)+e._scrollbarWidth+"px")})),t(r).each((function(n,r){var i=r.style.marginRight,o=t(r).css("margin-right");t(r).data("margin-right",i).css("margin-right",parseFloat(o)-e._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,o=t(document.body).css("padding-right");t(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}},v._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(b));t(e).each((function(e,n){var r=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=r||""}));var n=[].slice.call(document.querySelectorAll(""+w));t(n).each((function(e,n){var r=t(n).data("margin-right");"undefined"!==typeof r&&t(n).css("margin-right",r).removeData("margin-right")}));var r=t(document.body).data("padding-right");t(document.body).removeData("padding-right"),document.body.style.paddingRight=r||""},v._getScrollbarWidth=function(){var t=document.createElement("div");t.className=h,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(e,r){return this.each((function(){var i=t(this).data(n),u=a({},l,t(this).data(),"object"===s(e)&&e?e:{});if(i||(i=new o(this,u),t(this).data(n,i)),"string"===typeof e){if("undefined"===typeof i[e])throw new TypeError('No method named "'+e+'"');i[e](r)}else u.show&&i.show(r)}))},i(o,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return l}}]),o}();return t(document).on(d.CLICK_DATA_API,v,(function(e){var r,i=this,o=u.getSelectorFromElement(this);o&&(r=document.querySelector(o));var s=t(r).data(n)?"toggle":a({},t(r).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var l=t(r).one(d.SHOW,(function(e){e.isDefaultPrevented()||l.one(d.HIDDEN,(function(){t(i).is(":visible")&&i.focus()}))}));k._jQueryInterface.call(t(r),s,this)})),t.fn[e]=k._jQueryInterface,t.fn[e].Constructor=k,t.fn[e].noConflict=function(){return t.fn[e]=o,k._jQueryInterface},k}(e),m=function(t){var e="tooltip",r="bs.tooltip",o="."+r,l=t.fn[e],c="bs-tooltip",d=new RegExp("(^|\\s)"+c+"\\S+","g"),h={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},f={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},p={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},m="show",g="out",y={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,INSERTED:"inserted"+o,CLICK:"click"+o,FOCUSIN:"focusin"+o,FOCUSOUT:"focusout"+o,MOUSEENTER:"mouseenter"+o,MOUSELEAVE:"mouseleave"+o},v="fade",_="show",b=".tooltip-inner",w=".arrow",k="hover",S="focus",E="click",C="manual",x=function(){function l(t,e){if("undefined"===typeof n)throw new TypeError("Bootstrap tooltips require Popper.js (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 x=l.prototype;return x.enable=function(){this._isEnabled=!0},x.disable=function(){this._isEnabled=!1},x.toggleEnabled=function(){this._isEnabled=!this._isEnabled},x.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(_))return void this._leave(null,this);this._enter(null,this)}},x.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},x.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var r=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(r);var i=t.contains(this.element.ownerDocument.documentElement,this.element);if(r.isDefaultPrevented()||!i)return;var o=this.getTipElement(),a=u.getUID(this.constructor.NAME);o.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&t(o).addClass(v);var s="function"===typeof this.config.placement?this.config.placement.call(this,o,this.element):this.config.placement,l=this._getAttachment(s);this.addAttachmentClass(l);var c=!1===this.config.container?document.body:t(document).find(this.config.container);t(o).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(o).appendTo(c),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,o,{placement:l,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:w},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),t(o).addClass(_),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var d=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===g&&e._leave(null,e)};if(t(this.tip).hasClass(v)){var h=u.getTransitionDurationFromElement(this.tip);t(this.tip).one(u.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},x.hide=function(e){var n=this,r=this.getTipElement(),i=t.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==m&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(i),!i.isDefaultPrevented()){if(t(r).removeClass(_),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[E]=!1,this._activeTrigger[S]=!1,this._activeTrigger[k]=!1,t(this.tip).hasClass(v)){var a=u.getTransitionDurationFromElement(r);t(r).one(u.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},x.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},x.isWithContent=function(){return Boolean(this.getTitle())},x.addAttachmentClass=function(e){t(this.getTipElement()).addClass(c+"-"+e)},x.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},x.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(b)),this.getTitle()),t(e).removeClass(v+" "+_)},x.setElementContent=function(e,n){var r=this.config.html;"object"===s(n)&&(n.nodeType||n.jquery)?r?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[r?"html":"text"](n)},x.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},x._getAttachment=function(t){return f[t.toUpperCase()]},x._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(n!==C){var r=n===k?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i=n===k?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,(function(t){return e._enter(t)})).on(i,e.config.selector,(function(t){return e._leave(t)}))}t(e.element).closest(".modal").on("hide.bs.modal",(function(){return e.hide()}))})),this.config.selector?this.config=a({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},x._fixTitle=function(){var t=s(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",""))},x._enter=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?S:k]=!0),t(n.getTipElement()).hasClass(_)||n._hoverState===m?n._hoverState=m:(clearTimeout(n._timeout),n._hoverState=m,n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){n._hoverState===m&&n.show()}),n.config.delay.show):n.show())},x._leave=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?S:k]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=g,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){n._hoverState===g&&n.hide()}),n.config.delay.hide):n.hide())},x._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},x._getConfig=function(n){return"number"===typeof(n=a({},this.constructor.Default,t(this.element).data(),"object"===s(n)&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"===typeof n.title&&(n.title=n.title.toString()),"number"===typeof n.content&&(n.content=n.content.toString()),u.typeCheckConfig(e,n,this.constructor.DefaultType),n},x._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},x._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(d);null!==n&&n.length&&e.removeClass(n.join(""))},x._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},x._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(v),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},l._jQueryInterface=function(e){return this.each((function(){var n=t(this).data(r),i="object"===s(e)&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new l(this,i),t(this).data(r,n)),"string"===typeof e)){if("undefined"===typeof n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},i(l,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return p}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return y}},{key:"EVENT_KEY",get:function(){return o}},{key:"DefaultType",get:function(){return h}}]),l}();return t.fn[e]=x._jQueryInterface,t.fn[e].Constructor=x,t.fn[e].noConflict=function(){return t.fn[e]=l,x._jQueryInterface},x}(e),g=function(t){var e="popover",n="bs.popover",r="."+n,o=t.fn[e],u="bs-popover",l=new RegExp("(^|\\s)"+u+"\\S+","g"),c=a({},m.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),d=a({},m.DefaultType,{content:"(string|element|function)"}),h="fade",f="show",p=".popover-header",g=".popover-body",y={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,INSERTED:"inserted"+r,CLICK:"click"+r,FOCUSIN:"focusin"+r,FOCUSOUT:"focusout"+r,MOUSEENTER:"mouseenter"+r,MOUSELEAVE:"mouseleave"+r},v=function(o){var a,m;function v(){return o.apply(this,arguments)||this}m=o,(a=v).prototype=Object.create(m.prototype),a.prototype.constructor=a,a.__proto__=m;var _=v.prototype;return _.isWithContent=function(){return this.getTitle()||this._getContent()},_.addAttachmentClass=function(e){t(this.getTipElement()).addClass(u+"-"+e)},_.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},_.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(p),this.getTitle());var n=this._getContent();"function"===typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(g),n),e.removeClass(h+" "+f)},_._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},_._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(l);null!==n&&n.length>0&&e.removeClass(n.join(""))},v._jQueryInterface=function(e){return this.each((function(){var r=t(this).data(n),i="object"===s(e)?e:null;if((r||!/destroy|hide/.test(e))&&(r||(r=new v(this,i),t(this).data(n,r)),"string"===typeof e)){if("undefined"===typeof r[e])throw new TypeError('No method named "'+e+'"');r[e]()}}))},i(v,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return c}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return y}},{key:"EVENT_KEY",get:function(){return r}},{key:"DefaultType",get:function(){return d}}]),v}(m);return t.fn[e]=v._jQueryInterface,t.fn[e].Constructor=v,t.fn[e].noConflict=function(){return t.fn[e]=o,v._jQueryInterface},v}(e),y=function(t){var e="scrollspy",n="bs.scrollspy",r="."+n,o=t.fn[e],l={offset:10,method:"auto",target:""},c={offset:"number",method:"string",target:"(string|element)"},d={ACTIVATE:"activate"+r,SCROLL:"scroll"+r,LOAD_DATA_API:"load"+r+".data-api"},h="dropdown-item",f="active",p='[data-spy="scroll"]',m=".active",g=".nav, .list-group",y=".nav-link",v=".nav-item",_=".list-group-item",b=".dropdown",w=".dropdown-item",k=".dropdown-toggle",S="offset",E="position",C=function(){function o(e,n){var r=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+y+","+this._config.target+" "+_+","+this._config.target+" "+w,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(d.SCROLL,(function(t){return r._process(t)})),this.refresh(),this._process()}var p=o.prototype;return p.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?S:E,r="auto"===this._config.method?n:this._config.method,i=r===E?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var n,o=u.getSelectorFromElement(e);if(o&&(n=document.querySelector(o)),n){var a=n.getBoundingClientRect();if(a.width||a.height)return[t(n)[r]().top+i,o]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},p.dispose=function(){t.removeData(this._element,n),t(this._scrollElement).off(r),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},p._getConfig=function(n){if("string"!==typeof(n=a({},l,"object"===s(n)&&n?n:{})).target){var r=t(n.target).attr("id");r||(r=u.getUID(e),t(n.target).attr("id",r)),n.target="#"+r}return u.typeCheckConfig(e,n,c),n},p._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},p._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},p._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},p._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&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&("undefined"===typeof this._offsets[i+1]||t<this._offsets[i+1])&&this._activate(this._targets[i])}},p._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",");n=n.map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}));var r=t([].slice.call(document.querySelectorAll(n.join(","))));r.hasClass(h)?(r.closest(b).find(k).addClass(f),r.addClass(f)):(r.addClass(f),r.parents(g).prev(y+", "+_).addClass(f),r.parents(g).prev(v).children(y).addClass(f)),t(this._scrollElement).trigger(d.ACTIVATE,{relatedTarget:e})},p._clear=function(){var e=[].slice.call(document.querySelectorAll(this._selector));t(e).filter(m).removeClass(f)},o._jQueryInterface=function(e){return this.each((function(){var r=t(this).data(n),i="object"===s(e)&&e;if(r||(r=new o(this,i),t(this).data(n,r)),"string"===typeof e){if("undefined"===typeof r[e])throw new TypeError('No method named "'+e+'"');r[e]()}}))},i(o,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return l}}]),o}();return t(window).on(d.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(p)),n=e.length;n--;){var r=t(e[n]);C._jQueryInterface.call(r,r.data())}})),t.fn[e]=C._jQueryInterface,t.fn[e].Constructor=C,t.fn[e].noConflict=function(){return t.fn[e]=o,C._jQueryInterface},C}(e),v=function(t){var e="tab",n="bs.tab",r="."+n,o=t.fn[e],a={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,CLICK_DATA_API:"click"+r+".data-api"},s="dropdown-menu",l="active",c="disabled",d="fade",h="show",f=".dropdown",p=".nav, .list-group",m=".active",g="> li > .active",y='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',v=".dropdown-toggle",_="> .dropdown-menu .active",b=function(){function e(t){this._element=t}var r=e.prototype;return r.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(l)||t(this._element).hasClass(c))){var n,r,i=t(this._element).closest(p)[0],o=u.getSelectorFromElement(this._element);if(i){var s="UL"===i.nodeName?g:m;r=(r=t.makeArray(t(i).find(s)))[r.length-1]}var d=t.Event(a.HIDE,{relatedTarget:this._element}),h=t.Event(a.SHOW,{relatedTarget:r});if(r&&t(r).trigger(d),t(this._element).trigger(h),!h.isDefaultPrevented()&&!d.isDefaultPrevented()){o&&(n=document.querySelector(o)),this._activate(this._element,i);var f=function(){var n=t.Event(a.HIDDEN,{relatedTarget:e._element}),i=t.Event(a.SHOWN,{relatedTarget:r});t(r).trigger(n),t(e._element).trigger(i)};n?this._activate(n,n.parentNode,f):f()}}},r.dispose=function(){t.removeData(this._element,n),this._element=null},r._activate=function(e,n,r){var i=this,o=("UL"===n.nodeName?t(n).find(g):t(n).children(m))[0],a=r&&o&&t(o).hasClass(d),s=function(){return i._transitionComplete(e,o,r)};if(o&&a){var l=u.getTransitionDurationFromElement(o);t(o).one(u.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},r._transitionComplete=function(e,n,r){if(n){t(n).removeClass(h+" "+l);var i=t(n.parentNode).find(_)[0];i&&t(i).removeClass(l),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(l),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),u.reflow(e),t(e).addClass(h),e.parentNode&&t(e.parentNode).hasClass(s)){var o=t(e).closest(f)[0];if(o){var a=[].slice.call(o.querySelectorAll(v));t(a).addClass(l)}e.setAttribute("aria-expanded",!0)}r&&r()},e._jQueryInterface=function(r){return this.each((function(){var i=t(this),o=i.data(n);if(o||(o=new e(this),i.data(n,o)),"string"===typeof r){if("undefined"===typeof o[r])throw new TypeError('No method named "'+r+'"');o[r]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),e}();return t(document).on(a.CLICK_DATA_API,y,(function(e){e.preventDefault(),b._jQueryInterface.call(t(this),"show")})),t.fn[e]=b._jQueryInterface,t.fn[e].Constructor=b,t.fn[e].noConflict=function(){return t.fn[e]=o,b._jQueryInterface},b}(e);!function(t){if("undefined"===typeof t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=u,t.Alert=l,t.Button=c,t.Carousel=d,t.Collapse=h,t.Dropdown=f,t.Modal=p,t.Popover=g,t.Scrollspy=y,t.Tab=v,t.Tooltip=m,Object.defineProperty(t,"__esModule",{value:!0})},"object"===s(e)&&"undefined"!==typeof t?a(e,n(15),n(178)):(i=[e,n(15),n(178)],void 0===(o="function"===typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){}]);
//# sourceMappingURL=application-e85d270367d83858eb11.js.map