From d6fed6efeeba056bec61c0ae35bccec2e94eb03b Mon Sep 17 00:00:00 2001 From: Dario Rekowski on RockPI Date: Mon, 10 Feb 2020 10:18:52 +0000 Subject: [PATCH] update transfer view, adding missing js --- src/Controller/TransactionCreationsController.php | 7 ++++++- src/Form/CreationForm.php | 2 +- src/Form/TransferForm.php | 2 +- src/Model/Transactions/Transaction.php | 2 +- src/Model/Transactions/TransactionCreation.php | 9 ++++++--- src/Template/TransactionCreations/index.ctp | 8 +++++--- src/Template/TransactionSendCoins/create.ctp | 4 ++-- webroot/js/core.js | 1 + webroot/js/vendor.addons.js | 1 + 9 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 webroot/js/core.js create mode 100644 webroot/js/vendor.addons.js diff --git a/src/Controller/TransactionCreationsController.php b/src/Controller/TransactionCreationsController.php index 25b751a10..6e477a6c8 100644 --- a/src/Controller/TransactionCreationsController.php +++ b/src/Controller/TransactionCreationsController.php @@ -43,8 +43,13 @@ class TransactionCreationsController extends AppController 'contain' => ['Transactions', 'StateUsers'] ]; $transactionCreations = $this->paginate($this->TransactionCreations); + $identHashes = []; + foreach($transactionCreations as $creation) { + $identHash = TransactionCreation::DRMakeStringHash($creation->state_user->email); + $identHashes[$creation->state_user->id] = $identHash; + } - $this->set(compact('transactionCreations')); + $this->set(compact('transactionCreations', 'identHashes')); } /** diff --git a/src/Form/CreationForm.php b/src/Form/CreationForm.php index 8a80d7a18..6d54817c2 100644 --- a/src/Form/CreationForm.php +++ b/src/Form/CreationForm.php @@ -15,7 +15,7 @@ class CreationForm extends Form //->addField('receiver_pubkey_hex', ['type' => 'string']) ->addField('receiver', ['type' => 'select']) ->addField('amount', ['type' => 'decimal', 'precision' => 2]) - ->addField('memo', ['type' =>'text', 'default' => '', 'rows' => 5, 'maxlength' => 150]); + ->addField('memo', ['type' =>'text', 'default' => '', 'rows' => 3, 'maxlength' => 150]); } function validationDefault(Validator $validator) diff --git a/src/Form/TransferForm.php b/src/Form/TransferForm.php index 3919c177a..7cb978733 100644 --- a/src/Form/TransferForm.php +++ b/src/Form/TransferForm.php @@ -14,7 +14,7 @@ class TransferForm extends Form return $schema ->addField('email', ['type' => 'string']) ->addField('amount', ['type' => 'decimal', 'precision' => 2]) - ->addField('memo', ['type' =>'text', 'default' => '', 'rows' => 5, 'maxlength' => 150]); + ->addField('memo', ['type' =>'text', 'default' => '', 'rows' => 3, 'maxlength' => 150]); } function validationDefault(Validator $validator) diff --git a/src/Model/Transactions/Transaction.php b/src/Model/Transactions/Transaction.php index 71e9039b1..7312712f6 100644 --- a/src/Model/Transactions/Transaction.php +++ b/src/Model/Transactions/Transaction.php @@ -192,7 +192,7 @@ class Transaction extends TransactionBase { if(is_array($body)) { return ['state' => 'error', 'msg' => 'error creating body transaction', 'details' => $body]; } - //$protoTransaction->setBodyBytes($body->serializeToString()); + $protoTransaction->setBodyBytes($body->serializeToString()); return $protoTransaction; } diff --git a/src/Model/Transactions/TransactionCreation.php b/src/Model/Transactions/TransactionCreation.php index 7627fb1c8..2864a4266 100644 --- a/src/Model/Transactions/TransactionCreation.php +++ b/src/Model/Transactions/TransactionCreation.php @@ -122,7 +122,7 @@ class TransactionCreation extends TransactionBase { } } if($newSum > 10000000) { - $this->addError('TransactionCreation::validate', 'Creation more than 1000 gr per Month not allowed'); + $this->addError('TransactionCreation::validate', 'Creation more than 1.000 GDD per Month not allowed'); return false; } //die("\n"); @@ -204,8 +204,11 @@ class TransactionCreation extends TransactionBase { $protoCreation->setReceiverAmount($receiverAmount); //echo "receiver amount: check
"; - $identHashBytes = stream_get_contents($transactionCreationEntity->ident_hash); - $protoCreation->setIdentHash(intval($identHashBytes)); + //$identHashBytes = stream_get_contents($transactionCreationEntity->ident_hash); + + // intval + //$protoCreation->setIdentHash(intval($identHashBytes)); + $protoCreation->setIdentHash(self::DRMakeStringHash($stateUser->email)); return new TransactionCreation($protoCreation); } } diff --git a/src/Template/TransactionCreations/index.ctp b/src/Template/TransactionCreations/index.ctp index e85bacdfd..484091741 100644 --- a/src/Template/TransactionCreations/index.ctp +++ b/src/Template/TransactionCreations/index.ctp @@ -16,13 +16,14 @@

- +
+ @@ -31,8 +32,9 @@ - - + + + ";for(this.o.calendarWeeks&&(e+='');t";e+="",this.picker.find(".datepicker-days thead").append(e)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",i=0;i<12;i++)e+=''+A[this.o.language].monthsShort[i]+"";this.picker.find(".datepicker-months td").html(e)},setRange:function(t){t&&t.length?this.range=D.map(t,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var e=[],i=this.viewDate.getUTCFullYear(),n=this.viewDate.getUTCMonth(),r=w();return t.getUTCFullYear()i||t.getUTCFullYear()===i&&t.getUTCMonth()>n)&&e.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&e.push("focused"),this.o.todayHighlight&&s(t,r)&&e.push("today"),-1!==this.dates.contains(t)&&e.push("active"),this.dateWithinRange(t)||e.push("disabled"),this.dateIsDisabled(t)&&e.push("disabled","disabled-date"),-1!==D.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&e.push("highlighted"),this.range&&(t>this.range[0]&&t"+v+"";d.find(".datepicker-switch").text(p+"-"+f),d.find("td").html(u)},fill:function(){var t,e,i=new Date(this.viewDate),r=i.getUTCFullYear(),n=i.getUTCMonth(),s=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,a=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,o=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,h=A[this.o.language].today||A.en.today||"",u=A[this.o.language].clear||A.en.clear||"",c=A[this.o.language].titleFormat||A.en.titleFormat;if(!isNaN(r)&&!isNaN(n)){this.picker.find(".datepicker-days .datepicker-switch").text(E.formatDate(i,c,this.o.language)),this.picker.find("tfoot .today").text(h).css("display",!0===this.o.todayBtn||"linked"===this.o.todayBtn?"table-cell":"none"),this.picker.find("tfoot .clear").text(u).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 d=M(r,n,0),p=d.getUTCDate();d.setUTCDate(p-(d.getUTCDay()-this.o.weekStart+7)%7);var f=new Date(d);d.getUTCFullYear()<100&&f.setUTCFullYear(d.getUTCFullYear()),f.setUTCDate(f.getUTCDate()+42),f=f.valueOf();for(var g,m,v=[];d.valueOf()"),this.o.calendarWeeks)){var y=new Date(+d+(this.o.weekStart-g-7)%7*864e5),b=new Date(Number(y)+(11-y.getUTCDay())%7*864e5),x=new Date(Number(x=M(b.getUTCFullYear(),0,1))+(11-x.getUTCDay())%7*864e5),w=(b-x)/864e5/7+1;v.push('")}(m=this.getClassNames(d)).push("day");var _=d.getUTCDate();this.o.beforeShowDay!==D.noop&&((e=this.o.beforeShowDay(this._utc_to_local(d)))===T?e={}:"boolean"==typeof e?e={enabled:e}:"string"==typeof e&&(e={classes:e}),!1===e.enabled&&m.push("disabled"),e.classes&&(m=m.concat(e.classes.split(/\s+/))),e.tooltip&&(t=e.tooltip),e.content&&(_=e.content)),m=D.isFunction(D.uniqueSort)?D.uniqueSort(m):D.unique(m),v.push('"),t=null,g===this.o.weekEnd&&v.push(""),d.setUTCDate(d.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(v.join(""));var S=A[this.o.language].monthsTitle||A.en.monthsTitle||"Months",C=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?S:r).end().find("tbody span").removeClass("active");if(D.each(this.dates,function(t,e){e.getUTCFullYear()===r&&C.eq(e.getUTCMonth()).addClass("active")}),(ro;break;case 0:t=n<=s&&rthis.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 i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!(i=t)||isNaN(i.getTime()))return this.o.defaultViewDate;var i;if(!e)return t;var n,r,s=new Date(t.valueOf()),a=s.getUTCDate(),o=s.getUTCMonth(),l=Math.abs(e);if(e=0=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,i,n=!1,r=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?(i=this.moveAvailableDate(r,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(i=this.moveAvailableDate(r,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?i=this.moveAvailableDate(r,e,"moveDay"):this.weekOfDateIsDisabled(r)||(i=this.moveAvailableDate(r,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(r,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(r,e,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),n=!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()}n&&(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-"+E.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var h=function(t,e){D.data(t,"datepicker",this),this.element=D(t),this.inputs=D.map(e.inputs,function(t){return t.jquery?t[0]:t}),delete e.inputs,this.keepEmptyValues=e.keepEmptyValues,delete e.keepEmptyValues,r.call(D(this.inputs),e).on("changeDate",D.proxy(this.dateUpdated,this)),this.pickers=D.map(this.inputs,function(t){return D.data(t,"datepicker")}),this.updateDates()};h.prototype={updateDates:function(){this.dates=D.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var i=D.map(this.dates,function(t){return t.valueOf()});D.each(this.pickers,function(t,e){e.setRange(i)})},clearDates:function(){D.each(this.pickers,function(t,e){e.clearDates()})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var i=D.data(t.target,"datepicker");if(i!==T){var n=i.getUTCDate(),r=this.keepEmptyValues,e=D.inArray(t.target,this.inputs),s=e-1,a=e+1,o=this.inputs.length;if(-1!==e){if(D.each(this.pickers,function(t,e){e.getUTCDate()||e!==i&&r||e.setUTCDate(n)}),nthis.dates[a])for(;athis.dates[a];)this.pickers[a++].setUTCDate(n);this.updateDates(),delete this.updating}}}},destroy:function(){D.map(this.pickers,function(t){t.destroy()}),D(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:t("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var n=D.fn.datepicker,r=function(a){var o,l=Array.apply(null,arguments);if(l.shift(),this.each(function(){var t=D(this),e=t.data("datepicker"),i="object"==typeof a&&a;if(!e){var n=function(t,e){function i(t,e){return e.toLowerCase()}var n=D(t).data(),r={},s=new RegExp("^"+e.toLowerCase()+"([A-Z])");for(var a in e=new RegExp("^"+e.toLowerCase()),n)e.test(a)&&(r[a.replace(s,i)]=n[a]);return r}(this,"date"),r=function(t){var i={};if(A[t]||(t=t.split("-")[0],A[t])){var n=A[t];return D.each(c,function(t,e){e in n&&(i[e]=n[e])}),i}}(D.extend({},u,n,i).language),s=D.extend({},u,r,n,i);e=t.hasClass("input-daterange")||s.inputs?(D.extend(s,{inputs:s.inputs||t.find("input").toArray()}),new h(this,s)):new _(this,s),t.data("datepicker",e)}"string"==typeof a&&"function"==typeof e[a]&&(o=e[a].apply(e,l))}),o===T||o instanceof _||o instanceof h)return this;if(1(new Date).getFullYear()+n&&(i-=100),i):e);var i,n},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)}};m.yy=m.yyyy,m.M=m.MM=m.mm=m.m,m.dd=m.d,t=w();var v=e.parts.slice();if(s.length!==v.length&&(v=D(v).filter(function(t,e){return-1!==D.inArray(e,g)}).toArray()),s.length===v.length){var y,b,x;for(l=0,y=v.length;l",contTemplate:'',footTemplate:''};E.template='
Paginator->sort('id') ?> Paginator->sort('transaction_id') ?> Paginator->sort('state_user_id') ?> Paginator->sort('amount') ?>Paginator->sort('ident_hash ') ?>
Number->format($transactionCreation->id) ?> has('transaction') ? $this->Html->link($transactionCreation->transaction->id, ['controller' => 'Transactions', 'action' => 'view', $transactionCreation->transaction->id]) : '' ?>has('state_user') ? $this->Html->link($transactionCreation->state_user->id, ['controller' => 'StateUsers', 'action' => 'view', $transactionCreation->state_user->id]) : '' ?>Number->format($transactionCreation->amount) ?>has('state_user') ? $this->Html->link($transactionCreation->state_user->getEmailWithName(), ['controller' => 'StateUsers', 'action' => 'view', $transactionCreation->state_user->id]) : '' ?>element('printGradido', ['number' => $transactionCreation->amount]) ?>ident_hash) ?> Html->link(__('View'), ['action' => 'view', $transactionCreation->id]) ?> Html->link(__('Edit'), ['action' => 'edit', $transactionCreation->id]) ?> diff --git a/src/Template/TransactionSendCoins/create.ctp b/src/Template/TransactionSendCoins/create.ctp index 6a8870674..ee981112a 100644 --- a/src/Template/TransactionSendCoins/create.ctp +++ b/src/Template/TransactionSendCoins/create.ctp @@ -26,9 +26,9 @@ $this->loadHelper('Form', [
Form->create($transferForm) ?> - Form->control('amount', ['label' => __('Betrag in GDD')]) ?> - Form->control('memo', ['label' => __('Verwendungszweck')]) ?> Form->control('email', ['label' => __('Empfänger'), 'placeholder' => 'E-Mail']) ?> + Form->control('memo', ['label' => __('Verwendungszweck'), 'rows' => 3]) ?> + Form->control('amount', ['label' => __('Betrag in GDD')]) ?> Form->button(__('Transaktion abschließen'), ['name' => 'next', 'class' => 'btn btn-sm btn-primary']) ?> Form->end() ?> diff --git a/webroot/js/core.js b/webroot/js/core.js new file mode 100644 index 000000000..9678001c2 --- /dev/null +++ b/webroot/js/core.js @@ -0,0 +1 @@ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(T,e){"use strict";var t=[],x=T.document,i=Object.getPrototypeOf,a=t.slice,g=t.concat,l=t.push,r=t.indexOf,n={},o=n.toString,m=n.hasOwnProperty,s=m.toString,u=s.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},_=function(e){return null!=e&&e===e.window},c={type:!0,src:!0,noModule:!0};function b(e,t,n){var i,r=(t=t||x).createElement("script");if(r.text=e,n)for(i in c)n[i]&&(r[i]=n[i]);t.head.appendChild(r).parentNode.removeChild(r)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var C=function(e,t){return new C.fn.init(e,t)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function h(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!y(e)&&!_(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+P+")"+P+"*"),K=new RegExp("="+P+"*([^\\]'\"]*?)"+P+"*\\]","g"),$=new RegExp(F),Q=new RegExp("^"+q+"$"),V={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},z=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){E()},re=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{O.apply(t=j.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(n){O={apply:t.length?function(e,t){k.apply(e,j.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,n,i){var r,o,s,a,l,u,c,f=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!i&&((t?t.ownerDocument||t:y)!==T&&E(t),t=t||T,x)){if(11!==h&&(l=G.exec(e)))if(r=l[1]){if(9===h){if(!(s=t.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(f&&(s=f.getElementById(r))&&v(t,s)&&s.id===r)return n.push(s),n}else{if(l[2])return O.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&d.getElementsByClassName&&t.getElementsByClassName)return O.apply(n,t.getElementsByClassName(r)),n}if(d.qsa&&!D[e+" "]&&(!m||!m.test(e))){if(1!==h)f=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(te,ne):t.setAttribute("id",a=C),o=(u=p(e)).length;o--;)u[o]="#"+a+" "+ve(u[o]);c=u.join(","),f=J.test(e)&&ge(t.parentNode)||t}if(c)try{return O.apply(n,f.querySelectorAll(c)),n}catch(e){}finally{a===C&&t.removeAttribute("id")}}}return g(e.replace(W,"$1"),t,n,i)}function se(){var i=[];return function e(t,n){return i.push(t+" ")>b.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function ae(e){return e[C]=!0,e}function le(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)b.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function de(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&re(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pe(s){return ae(function(o){return o=+o,ae(function(e,t){for(var n,i=s([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=oe.support={},r=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},E=oe.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:y;return i!==T&&9===i.nodeType&&i.documentElement&&(s=(T=i).documentElement,x=!r(T),y!==T&&(n=T.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ie,!1):n.attachEvent&&n.attachEvent("onunload",ie)),d.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=le(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=X.test(T.getElementsByClassName),d.getById=le(function(e){return s.appendChild(e).id=C,!T.getElementsByName||!T.getElementsByName(C).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&x){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(Z,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&x){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},b.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&x)return t.getElementsByClassName(e)},a=[],m=[],(d.qsa=X.test(T.querySelectorAll))&&(le(function(e){s.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+P+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+P+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+C+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+C+"+*").length||m.push(".#.+[+~]")}),le(function(e){e.innerHTML="";var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+P+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),s.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(d.matchesSelector=X.test(c=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&le(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),a.push("!=",F)}),m=m.length&&new RegExp(m.join("|")),a=a.length&&new RegExp(a.join("|")),t=X.test(s.compareDocumentPosition),v=t||X.test(s.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},A=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument===y&&v(y,e)?-1:t===T||t.ownerDocument===y&&v(y,t)?1:l?L(l,e)-L(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e===T?-1:t===T?1:r?-1:o?1:l?L(l,e)-L(l,t):0;if(r===o)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ce(s[i],a[i]):s[i]===y?-1:a[i]===y?1:0}),T},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&E(e),t=t.replace(K,"='$1']"),d.matchesSelector&&x&&!D[t+" "]&&(!a||!a.test(t))&&(!m||!m.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=h[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&h(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=oe.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function N(e,n,i){return y(n)?C.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?C.grep(e,function(e){return e===n!==i}):"string"!=typeof n?C.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||I,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:k.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),A.test(i[1])&&C.isPlainObject(t))for(i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=x.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=C.fn,I=C(x);var O=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]+)/i,ce=/^$|^module$|\/(?:java|ecma)script/i,fe={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function he(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?C.merge([e],n):n}function de(e,t){for(var n=0,i=e.length;nx",v.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var ye=x.documentElement,_e=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,we=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Te(){return!1}function xe(){try{return x.activeElement}catch(e){}}function Ce(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Ce(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Te;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return C().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=C.guid++)),e.each(function(){C.event.add(this,t,r,i,n)})}C.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,u,c,f,h,d,p,g,m=Y.get(t);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&C.find.matchesSelector(ye,r),n.guid||(n.guid=C.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(H)||[""]).length;u--;)d=g=(a=we.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),d&&(f=C.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,f=C.event.special[d]||{},c=C.extend({type:d,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&C.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[d])||((h=l[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(d,s)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),C.event.global[d]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,u,c,f,h,d,p,g,m=Y.hasData(e)&&Y.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(H)||[""]).length;u--;)if(d=g=(a=we.exec(t[u])||[])[1],p=(a[2]||"").split(".").sort(),d){for(f=C.event.special[d]||{},h=l[d=(i?f.delegateType:f.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)c=h[o],!r&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(e,c));s&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,p,m.handle)||C.removeEvent(e,d,m.handle),delete l[d])}else for(d in l)C.event.remove(e,d+t[u],n,i,!0);C.isEmptyObject(l)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=C.event.fix(e),l=new Array(arguments.length),u=(Y.get(this,"events")||{})[a.type]||[],c=C.event.special[a.type]||{};for(l[0]=a,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,De=/\s*$/g;function Ie(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function ke(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function je(e,t){var n,i,r,o,s,a,l,u;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.access(e),s=Y.set(t,o),u=o.events))for(r in delete s.handle,s.events={},u)for(n=0,i=u[r].length;n")},clone:function(e,t,n){var i,r,o,s,a,l,u,c=e.cloneNode(!0),f=C.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(s=he(c),i=0,r=(o=he(e)).length;i").prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),x.head.appendChild(i[0])},abort:function(){r&&r()}}});var Bt,Ut=[],Kt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||C.expando+"_"+bt++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,s=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Kt,"$1"+i):!1!==e.jsonp&&(e.url+=(wt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||C.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=T[i],T[i]=function(){o=arguments},n.always(function(){void 0===r?C(T).removeProp(i):T[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Ut.push(i)),o&&y(r)&&r(o[0]),o=r=void 0}),"script"}),v.createHTMLDocument=((Bt=x.implementation.createHTMLDocument("").body).innerHTML="
",2===Bt.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((i=(t=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,t.head.appendChild(i)):t=x),o=!n&&[],(r=A.exec(e))?[t.createElement(r[1])]:(r=ve([e],t,o),o&&o.length&&C(o).remove(),C.merge([],r.childNodes)));var i,r,o},C.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return-1").append(C.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.pseudos.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,u=C.css(e,"position"),c=C(e),f={};"static"===u&&(e.style.position="relative"),a=c.offset(),o=C.css(e,"top"),l=C.css(e,"left"),r=("absolute"===u||"fixed"===u)&&-1<(o+l).indexOf("auto")?(s=(i=c.position()).top,i.left):(s=parseFloat(o)||0,parseFloat(l)||0),y(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+r),"using"in t?t.using.call(e,f):c.css(f)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===C.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),r.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-C.css(i,"marginTop",!0),left:t.left-r.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||ye})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;C.fn[t]=function(e){return B(this,function(e,t,n){var i;if(_(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[r]:e[t];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),C.each(["top","left"],function(e,n){C.cssHooks[n]=Me(v.pixelPosition,function(e,t){if(t)return t=Fe(e,n),Pe.test(t)?C(e).position()[n]+"px":t})}),C.each({Height:"height",Width:"width"},function(s,a){C.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,o){C.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return B(this,function(e,t,n){var i;return _(e)?0===o.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+s],i["scroll"+s],e.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?C.css(e,t,r):C.style(e,t,n,r)},a,n?e:void 0,n)}})}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){C.fn[n]=function(e,t){return 0=i.clientWidth&&n>=i.clientHeight}),c=0l[e]&&!i.escapeWithReference&&(n=I(c[t],l[e]-("right"===e?c.width:c.height))),Q({},t,n)}};return u.forEach(function(e){var t=-1===["left","top"].indexOf(e)?"secondary":"primary";c=V({},c,f[t](e))}),e.offsets.popper=c,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=P,s=-1!==["top","bottom"].indexOf(r),a=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return n[a]o(i[a])&&(e.offsets.popper[l]=o(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!A(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,s=o.popper,a=o.reference,l=-1!==["left","right"].indexOf(r),u=l?"height":"width",c=l?"Top":"Left",f=c.toLowerCase(),h=l?"left":"top",d=l?"bottom":"right",p=T(i)[u];a[d]-ps[d]&&(e.offsets.popper[f]+=a[f]+p-s[d]),e.offsets.popper=w(e.offsets.popper);var g=a[f]+a[u]/2-p/2,m=b(e.instance.popper),v=parseFloat(m["margin"+c],10),y=parseFloat(m["border"+c+"Width"],10),_=g-e.offsets.popper[f]-v-y;return _=k(I(s[u]-p,_),0),e.arrowElement=i,e.offsets.arrow=(Q(n={},f,q(_)),Q(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(p,g){if(e(p.instance.modifiers,"inner"))return p;if(p.flipped&&p.placement===p.originalPlacement)return p;var m=h(p.instance.popper,p.instance.reference,g.padding,g.boundariesElement,p.positionFixed),v=p.placement.split("-")[0],y=x(v),_=p.placement.split("-")[1]||"",b=[];switch(g.behavior){case G:b=[v,y];break;case J:b=i(v);break;case Z:b=i(v,!0);break;default:b=g.behavior}return b.forEach(function(e,t){if(v!==e||b.length===t+1)return p;v=p.placement.split("-")[0],y=x(v);var n,i=p.offsets.popper,r=p.offsets.reference,o=P,s="left"===v&&o(i.right)>o(r.left)||"right"===v&&o(i.left)o(r.top)||"bottom"===v&&o(i.top)o(m.right),u=o(i.top)o(m.bottom),f="left"===v&&a||"right"===v&&l||"top"===v&&u||"bottom"===v&&c,h=-1!==["top","bottom"].indexOf(v),d=!!g.flipVariations&&(h&&"start"===_&&a||h&&"end"===_&&l||!h&&"start"===_&&u||!h&&"end"===_&&c);(s||f||d)&&(p.flipped=!0,(s||f)&&(v=b[t+1]),d&&(_="end"===(n=_)?"start":"start"===n?"end":n),p.placement=v+(_?"-"+_:""),p.offsets.popper=V({},p.offsets.popper,C(p.instance.popper,p.offsets.reference,p.placement)),p=S(p.instance.modifiers,p,"flip"))}),p},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[s?"left":"top"]=o[n]-(a?r[s?"width":"height"]:0),e.placement=x(t),e.offsets.popper=w(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!A(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=L(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.rightthis._items.length-1||e<0))if(this._isSliding)p(this._element).one(O.SLID,function(){return t.to(e)});else{if(n===e)return this.pause(),void this.cycle();var i=ndocument.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},Re="show",Fe={HIDE:"hide"+Ie,HIDDEN:"hidden"+Ie,SHOW:"show"+Ie,SHOWN:"shown"+Ie,INSERTED:"inserted"+Ie,CLICK:"click"+Ie,FOCUSIN:"focusin"+Ie,FOCUSOUT:"focusout"+Ie,MOUSEENTER:"mouseenter"+Ie,MOUSELEAVE:"mouseleave"+Ie},Me="fade",We="show",Be="hover",Ue="focus",Ke=function(){function i(e,t){if(void 0===f)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var e=i.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,n=p(e.currentTarget).data(t);n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(t,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(p(this.getTipElement()).hasClass(We))return void this._leave(null,this);this._enter(null,this)}},e.dispose=function(){clearTimeout(this._timeout),p.removeData(this.element,this.constructor.DATA_KEY),p(this.element).off(this.constructor.EVENT_KEY),p(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&p(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var t=this;if("none"===p(this.element).css("display"))throw new Error("Please use show on visible elements");var e=p.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){p(this.element).trigger(e);var n=g.findShadowRoot(this.element),i=p.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!i)return;var r=this.getTipElement(),o=g.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&p(r).addClass(Me);var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,a=this._getAttachment(s);this.addAttachmentClass(a);var l=this._getContainer();p(r).data(this.constructor.DATA_KEY,this),p.contains(this.element.ownerDocument.documentElement,this.tip)||p(r).appendTo(l),p(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new f(this.element,r,{placement:a,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}}),p(r).addClass(We),"ontouchstart"in document.documentElement&&p(document.body).children().on("mouseover",null,p.noop);var u=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,p(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(p(this.tip).hasClass(Me)){var c=g.getTransitionDurationFromElement(this.tip);p(this.tip).one(g.TRANSITION_END,u).emulateTransitionEnd(c)}else u()}},e.hide=function(e){var t=this,n=this.getTipElement(),i=p.Event(this.constructor.Event.HIDE),r=function(){t._hoverState!==Re&&n.parentNode&&n.parentNode.removeChild(n),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),p(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(p(this.element).trigger(i),!i.isDefaultPrevented()){if(p(n).removeClass(We),"ontouchstart"in document.documentElement&&p(document.body).children().off("mouseover",null,p.noop),this._activeTrigger.click=!1,this._activeTrigger[Ue]=!1,this._activeTrigger[Be]=!1,p(this.tip).hasClass(Me)){var o=g.getTransitionDurationFromElement(n);p(n).one(g.TRANSITION_END,r).emulateTransitionEnd(o)}else r();this._hoverState=""}},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return Boolean(this.getTitle())},e.addAttachmentClass=function(e){p(this.getTipElement()).addClass(Oe+"-"+e)},e.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},e.setContent=function(){var e=this.getTipElement();this.setElementContent(p(e.querySelectorAll(".tooltip-inner")),this.getTitle()),p(e).removeClass(Me+" "+We)},e.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=De(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?p(t).parent().is(e)||e.empty().append(t):e.text(p(t).text())},e.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},e._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},e._getContainer=function(){return!1===this.config.container?document.body:g.isElement(this.config.container)?p(this.config.container):p(document).find(this.config.container)},e._getAttachment=function(e){return Pe[e.toUpperCase()]},e._setListeners=function(){var i=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)p(i.element).on(i.constructor.Event.CLICK,i.config.selector,function(e){return i.toggle(e)});else if("manual"!==e){var t=e===Be?i.constructor.Event.MOUSEENTER:i.constructor.Event.FOCUSIN,n=e===Be?i.constructor.Event.MOUSELEAVE:i.constructor.Event.FOCUSOUT;p(i.element).on(t,i.config.selector,function(e){return i._enter(e)}).on(n,i.config.selector,function(e){return i._leave(e)})}}),p(this.element).closest(".modal").on("hide.bs.modal",function(){i.element&&i.hide()}),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusin"===e.type?Ue:Be]=!0),p(t.getTipElement()).hasClass(We)||t._hoverState===Re?t._hoverState=Re:(clearTimeout(t._timeout),t._hoverState=Re,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===Re&&t.show()},t.config.delay.show):t.show())},e._leave=function(e,t){var n=this.constructor.DATA_KEY;(t=t||p(e.currentTarget).data(n))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),p(e.currentTarget).data(n,t)),e&&(t._activeTrigger["focusout"===e.type?Ue:Be]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){"out"===t._hoverState&&t.hide()},t.config.delay.hide):t.hide())},e._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},e._getConfig=function(e){var t=p(this.element).data();return Object.keys(t).forEach(function(e){-1!==Le.indexOf(e)&&delete t[e]}),"number"==typeof(e=l({},this.constructor.Default,t,"object"==typeof 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()),g.typeCheckConfig(Ae,e,this.constructor.DefaultType),e.sanitize&&(e.template=De(e.template,e.whiteList,e.sanitizeFn)),e},e._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},e._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(je);null!==t&&t.length&&e.removeClass(t.join(""))},e._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},e._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(p(e).removeClass(Me),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},i._jQueryInterface=function(n){return this.each(function(){var e=p(this).data(Ne),t="object"==typeof n&&n;if((e||!/dispose|hide/.test(n))&&(e||(e=new i(this,t),p(this).data(Ne,e)),"string"==typeof n)){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"Default",get:function(){return qe}},{key:"NAME",get:function(){return Ae}},{key:"DATA_KEY",get:function(){return Ne}},{key:"Event",get:function(){return Fe}},{key:"EVENT_KEY",get:function(){return Ie}},{key:"DefaultType",get:function(){return He}}]),i}();p.fn[Ae]=Ke._jQueryInterface,p.fn[Ae].Constructor=Ke,p.fn[Ae].noConflict=function(){return p.fn[Ae]=ke,Ke._jQueryInterface};var $e="popover",Qe="bs.popover",Ve="."+Qe,ze=p.fn[$e],Ye="bs-popover",Xe=new RegExp("(^|\\s)"+Ye+"\\S+","g"),Ge=l({},Ke.Default,{placement:"right",trigger:"click",content:"",template:''}),Je=l({},Ke.DefaultType,{content:"(string|element|function)"}),Ze={HIDE:"hide"+Ve,HIDDEN:"hidden"+Ve,SHOW:"show"+Ve,SHOWN:"shown"+Ve,INSERTED:"inserted"+Ve,CLICK:"click"+Ve,FOCUSIN:"focusin"+Ve,FOCUSOUT:"focusout"+Ve,MOUSEENTER:"mouseenter"+Ve,MOUSELEAVE:"mouseleave"+Ve},et=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var r=i.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(e){p(this.getTipElement()).addClass(Ye+"-"+e)},r.getTipElement=function(){return this.tip=this.tip||p(this.config.template)[0],this.tip},r.setContent=function(){var e=p(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var e=p(this.getTipElement()),t=e.attr("class").match(Xe);null!==t&&0=this._offsets[r]&&(void 0===this._offsets[r+1]||e li > .active",wt=function(){function i(e){this._element=e}var e=i.prototype;return e.show=function(){var n=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&p(this._element).hasClass(yt)||p(this._element).hasClass("disabled"))){var e,i,t=p(this._element).closest(".nav, .list-group")[0],r=g.getSelectorFromElement(this._element);if(t){var o="UL"===t.nodeName||"OL"===t.nodeName?bt:_t;i=(i=p.makeArray(p(t).find(o)))[i.length-1]}var s=p.Event(vt.HIDE,{relatedTarget:this._element}),a=p.Event(vt.SHOW,{relatedTarget:i});if(i&&p(i).trigger(s),p(this._element).trigger(a),!a.isDefaultPrevented()&&!s.isDefaultPrevented()){r&&(e=document.querySelector(r)),this._activate(this._element,t);var l=function(){var e=p.Event(vt.HIDDEN,{relatedTarget:n._element}),t=p.Event(vt.SHOWN,{relatedTarget:i});p(i).trigger(e),p(n._element).trigger(t)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function(){p.removeData(this._element,pt),this._element=null},e._activate=function(e,t,n){var i=this,r=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?p(t).children(_t):p(t).find(bt))[0],o=n&&r&&p(r).hasClass("fade"),s=function(){return i._transitionComplete(e,r,n)};if(r&&o){var a=g.getTransitionDurationFromElement(r);p(r).removeClass("show").one(g.TRANSITION_END,s).emulateTransitionEnd(a)}else s()},e._transitionComplete=function(e,t,n){if(t){p(t).removeClass(yt);var i=p(t.parentNode).find("> .dropdown-menu .active")[0];i&&p(i).removeClass(yt),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(p(e).addClass(yt),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),g.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&p(e.parentNode).hasClass("dropdown-menu")){var r=p(e).closest(".dropdown")[0];if(r){var o=[].slice.call(r.querySelectorAll(".dropdown-toggle"));p(o).addClass(yt)}e.setAttribute("aria-expanded",!0)}n&&n()},i._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(pt);if(t||(t=new i(this),e.data(pt,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}}]),i}();p(document).on(vt.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),wt._jQueryInterface.call(p(this),"show")}),p.fn.tab=wt._jQueryInterface,p.fn.tab.Constructor=wt,p.fn.tab.noConflict=function(){return p.fn.tab=mt,wt._jQueryInterface};var Et="toast",Tt="bs.toast",xt="."+Tt,Ct=p.fn[Et],St={CLICK_DISMISS:"click.dismiss"+xt,HIDE:"hide"+xt,HIDDEN:"hidden"+xt,SHOW:"show"+xt,SHOWN:"shown"+xt},Dt="show",At="showing",Nt={animation:"boolean",autohide:"boolean",delay:"number"},It={animation:!0,autohide:!0,delay:500},kt=function(){function i(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var e=i.prototype;return e.show=function(){var e=this;p(this._element).trigger(St.SHOW),this._config.animation&&this._element.classList.add("fade");var t=function(){e._element.classList.remove(At),e._element.classList.add(Dt),p(e._element).trigger(St.SHOWN),e._config.autohide&&e.hide()};if(this._element.classList.remove("hide"),this._element.classList.add(At),this._config.animation){var n=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},e.hide=function(e){var t=this;this._element.classList.contains(Dt)&&(p(this._element).trigger(St.HIDE),e?this._close():this._timeout=setTimeout(function(){t._close()},this._config.delay))},e.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Dt)&&this._element.classList.remove(Dt),p(this._element).off(St.CLICK_DISMISS),p.removeData(this._element,Tt),this._element=null,this._config=null},e._getConfig=function(e){return e=l({},It,p(this._element).data(),"object"==typeof e&&e?e:{}),g.typeCheckConfig(Et,e,this.constructor.DefaultType),e},e._setListeners=function(){var e=this;p(this._element).on(St.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return e.hide(!0)})},e._close=function(){var e=this,t=function(){e._element.classList.add("hide"),p(e._element).trigger(St.HIDDEN)};if(this._element.classList.remove(Dt),this._config.animation){var n=g.getTransitionDurationFromElement(this._element);p(this._element).one(g.TRANSITION_END,t).emulateTransitionEnd(n)}else t()},i._jQueryInterface=function(n){return this.each(function(){var e=p(this),t=e.data(Tt);if(t||(t=new i(this,"object"==typeof n&&n),e.data(Tt,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](this)}})},s(i,null,[{key:"VERSION",get:function(){return"4.3.1"}},{key:"DefaultType",get:function(){return Nt}},{key:"Default",get:function(){return It}}]),i}();p.fn[Et]=kt._jQueryInterface,p.fn[Et].Constructor=kt,p.fn[Et].noConflict=function(){return p.fn[Et]=Ct,kt._jQueryInterface},function(){if(void 0===p)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=p.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(),e.Util=g,e.Alert=c,e.Button=E,e.Carousel=P,e.Collapse=Y,e.Dropdown=ce,e.Modal=Te,e.Popover=et,e.Scrollspy=dt,e.Tab=wt,e.Toast=kt,e.Tooltip=Ke,Object.defineProperty(e,"__esModule",{value:!0})}); \ No newline at end of file diff --git a/webroot/js/vendor.addons.js b/webroot/js/vendor.addons.js new file mode 100644 index 000000000..4bb799c23 --- /dev/null +++ b/webroot/js/vendor.addons.js @@ -0,0 +1 @@ +function require(t,e,i){var n=require.resolve(t);if(null==n){i=i||t,e=e||"root";var r=new Error('Failed to require "'+i+'" from "'+e+'"');throw r.path=i,r.parent=e,r.require=!0,r}var s=require.modules[n];if(!s._resolving&&!s.exports){var a={exports:{}};a.client=a.component=!0,s._resolving=!0,s.call(this,a.exports,require.relative(n),a),delete s._resolving,s.exports=a.exports}return s.exports}!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Raphael=e():t.Raphael=e()}(this,function(){return function(i){function n(t){if(r[t])return r[t].exports;var e=r[t]={exports:{},id:t,loaded:!1};return i[t].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var r={};return n.m=i,n.c=r,n.p="",n(0)}([function(t,e,i){var n,r;n=[i(1),i(3),i(4)],void 0===(r=function(t){return t}.apply(e,n))||(t.exports=r)},function(t,e,i){var n,r;n=[i(2)],void 0===(r=function(R){function I(t){if(I.is(t,"function"))return n?t():R.on("raphael.DOMload",t);if(I.is(t,E))return I._engine.create[x](I,t.splice(0,3+I.is(t[0],z))).add(t);var e=Array.prototype.slice.call(arguments,0);if(I.is(e[e.length-1],"function")){var i=e.pop();return n?i.call(I._engine.create[x](I,e)):R.on("raphael.DOMload",function(){i.call(I._engine.create[x](I,e))})}return I._engine.create[x](I,arguments)}function v(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[N](i)&&(e[i]=v(t[i]));return e}function W(s,a,o){return function t(){var e=Array.prototype.slice.call(arguments,0),i=e.join("␀"),n=t.cache=t.cache||{},r=t.count=t.count||[];return n[N](i)?function(t,e){for(var i=0,n=t.length;iT(r,a)||T(e,n)T(s,o))){var l=(t-i)*(s-o)-(e-n)*(r-a);if(l){var h=((t*n-e*i)*(r-a)-(t-i)*(r*o-s*a))/l,u=((t*n-e*i)*(s-o)-(e-n)*(r*o-s*a))/l,c=+h.toFixed(2),d=+u.toFixed(2);if(!(c<+M(t,i).toFixed(2)||c>+T(t,i).toFixed(2)||c<+M(r,a).toFixed(2)||c>+T(r,a).toFixed(2)||d<+M(e,n).toFixed(2)||d>+T(e,n).toFixed(2)||d<+M(s,o).toFixed(2)||d>+T(s,o).toFixed(2)))return{x:h,y:u}}}}function S(t,e,i){var n=I.bezierBBox(t),r=I.bezierBBox(e);if(!I.isBBoxIntersect(n,r))return i?0:[];for(var s=k.apply(0,t),a=k.apply(0,e),o=T(~~(s/5),1),l=T(~~(a/5),1),h=[],u=[],c={},d=i?0:[],p=0;pn*t.top){i=t.percents[v],u=t.percents[v-1]||0,d=d/t.top*(i-u),h=t.percents[v+1],a=t.anim[i];break}n&&e.attr(t.anim[t.percents[v]])}if(a){if(o)o.initstatus=n,o.start=new Date-o.ms*n;else{for(var b in a)if(a[N](b)&&(K[N](b)||e.paper.customAttributes[N](b)))switch(p[b]=e.attr(b),null==p[b]&&(p[b]=J[b]),f[b]=a[b],K[b]){case z:g[b]=(f[b]-p[b])/d;break;case"colour":p[b]=I.getRGB(p[b]);var x=I.getRGB(f[b]);g[b]={r:(x.r-p[b].r)/d,g:(x.g-p[b].g)/d,b:(x.b-p[b].b)/d};break;case"path":var w=Pt(p[b],f[b]),_=w[1];for(p[b]=w[0],g[b]=[],v=0,y=p[b].length;v',(pt=ft.firstChild).style.behavior="url(#default#VML)",!pt||"object"!=typeof pt.adj)return I.type="";ft=null}I.svg=!(I.vml="VML"==I.type),I._Paper=d,I.fn=e=d.prototype=I.prototype,I._id=0,I.is=function(t,e){return"finite"==(e=w.call(e))?!O[N](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||P.call(t).slice(8,-1).toLowerCase()==e},I.angle=function(t,e,i,n,r,s){if(null!=r)return I.angle(t,e,r,s)-I.angle(i,n,r,s);var a=t-i,o=e-n;return a||o?(180+180*q.atan2(-o,-a)/G+360)%360:0},I.rad=function(t){return t%360*G/180},I.deg=function(t){return Math.round(180*t/G%360*1e3)/1e3},I.snapTo=function(t,e,i){if(i=I.is(i,"finite")?i:10,I.is(t,E)){for(var n=t.length;n--;)if(V(t[n]-e)<=i)return t[n]}else{var r=e%(t=+t);if(r"),e.close(),i=e.body}catch(t){i=createPopup().document.body}var r=i.createTextRange();gt=W(function(t){try{i.style.color=H(t).replace(n,"");var e=r.queryCommandValue("ForeColor");return"#"+("000000"+(e=(255&e)<<16|65280&e|(16711680&e)>>>16).toString(16)).slice(-6)}catch(t){return"none"}})}else{var s=f.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",f.doc.body.appendChild(s),gt=W(function(t){return s.style.color=t,f.doc.defaultView.getComputedStyle(s,"").getPropertyValue("color")})}return gt(t)},mt=function(){return"hsb("+[this.h,this.s,this.b]+")"},vt=function(){return"hsl("+[this.h,this.s,this.l]+")"},yt=function(){return this.hex},bt=function(t,e,i){if(null==e&&I.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,e=t.g,t=t.r),null==e&&I.is(t,C)){var n=I.getRGB(t);t=n.r,e=n.g,i=n.b}return(1=s[r]&&(a.push([e][U](n.splice(0,s[r]))),s[r]););}),a.toString=I._path2string,e.arr=St(a),a},I.parseTransformString=W(function(t){if(!t)return null;var r=[];return I.is(t,E)&&I.is(t[0],E)&&(r=St(t)),r.length||H(t).replace(rt,function(t,e,i){var n=[];w.call(e),i.replace(st,function(t,e){e&&n.push(+e)}),r.push([e][U](n))}),r.toString=I._path2string,r});var wt=function(e){var i=wt.ps=wt.ps||{};return i[e]?i[e].sleep=100:i[e]={sleep:100},setTimeout(function(){for(var t in i)i[N](t)&&t!=e&&(i[t].sleep--,!i[t].sleep&&delete i[t])}),i[e]};I.findDotsAtSegment=function(t,e,i,n,r,s,a,o,l){var h=1-l,u=A(h,3),c=A(h,2),d=l*l,p=d*l,f=u*t+3*c*l*i+3*h*l*l*r+p*a,g=u*e+3*c*l*n+3*h*l*l*s+p*o,m=t+2*l*(i-t)+d*(r-2*i+t),v=e+2*l*(n-e)+d*(s-2*n+e),y=i+2*l*(r-i)+d*(a-2*r+i),b=n+2*l*(s-n)+d*(o-2*s+n),x=h*t+l*i,w=h*e+l*n,_=h*r+l*a,S=h*s+l*o,C=90-180*q.atan2(m-y,v-b)/G;return(y=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},I.isBBoxIntersect=function(t,e){var i=I.isPointInsideBBox;return i(e,t.x,t.y)||i(e,t.x2,t.y)||i(e,t.x,t.y2)||i(e,t.x2,t.y2)||i(t,e.x,e.y)||i(t,e.x2,e.y)||i(t,e.x,e.y2)||i(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},I.pathIntersection=function(t,e){return r(t,e)},I.pathIntersectionNumber=function(t,e){return r(t,e,1)},I.isPointInsidePath=function(t,e,i){var n=I.pathBBox(t);return I.isPointInsideBBox(n,e,i)&&r(t,[["M",e,i],["H",n.x2+10]],1)%2==1},I._removedFactory=function(t){return function(){R("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var _t=I.pathBBox=function(t){var e=wt(t);if(e.bbox)return v(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,n=0,r=0,s=[],a=[],o=0,l=(t=Pt(t)).length;oc){var D=C,T=o,M=l;C=S+c*(a&&S":function(t){return A(t,.48)},"<>":function(t){var e=.48-t/1.04,i=q.sqrt(.1734+e*e),n=i-e,r=-i-e,s=A(V(n),1/3)*(n<0?-1:1)+A(V(r),1/3)*(r<0?-1:1)+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},elastic:function(t){return t==!!t?t:A(2,-10*t)*q.sin(2*G*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375}};te.easeIn=te["ease-in"]=te["<"],te.easeOut=te["ease-out"]=te[">"],te.easeInOut=te["ease-in-out"]=te["<>"],te["back-in"]=te.backIn,te["back-out"]=te.backOut;var ee=[],ie=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},ne=function(){for(var t=+new Date,e=0;e"));var M=D.getBoundingClientRect();o.W=n.w=(M.right-M.left)/100,o.H=n.h=(M.bottom-M.top)/100,o.X=n.x,o.Y=n.y+o.H/2,("x"in e||"y"in e)&&(o.path.v=L.format("m{0},{1}l{2},{1}",F(n.x*Y),F(n.y*Y),F(n.x*Y)+1));for(var A=["x","y","text","font","font-family","font-weight","font-style","font-size"],E=0,P=A.length;E')}}catch(t){X=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},L._engine.initWin(L._g.win),L._engine.create=function(){var t=L._getContainer.apply(0,arguments),e=t.container,i=t.height,n=t.width,r=t.x,s=t.y;if(!e)throw new Error("VML container not found.");var a=new L._Paper,o=a.canvas=L._g.doc.createElement("div"),l=o.style;return r=r||0,s=s||0,n=n||512,i=i||342,(a.width=n)==+n&&(n+="px"),(a.height=i)==+i&&(i+="px"),a.coordsize=216e5+B+216e5,a.coordorigin="0 0",a.span=L._g.doc.createElement("span"),a.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",o.appendChild(a.span),l.cssText=L.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",n,i),1==e?(L._g.doc.body.appendChild(o),l.left=r+"px",l.top=s+"px",l.position="absolute"):e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o),a.renderfix=function(){},a},L.prototype.clear=function(){L.eve("raphael.clear",this),this.canvas.innerHTML="",this.span=L._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},L.prototype.remove=function(){for(var t in L.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?L._removedFactory(t):null;return!0};var e=L.st;for(var i in t)t[O](i)&&!e[O](i)&&(e[i]=function(i){return function(){var e=arguments;return this.forEach(function(t){t[i].apply(t,e)})}}(i))}}.apply(e,n))||(t.exports=r)}])}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var t,r;function y(){return t.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function l(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function h(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function c(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var i,n=[];for(i=0;i>>0,n=0;n_t(t)?(s=t+1,o-_t(t)):(s=t,o),{year:s,dayOfYear:a}}function Bt(t,e,i){var n,r,s=Ht(t.year(),e,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+$t(r=t.year()-1,e,i):a>$t(t.year(),e,i)?(n=a-$t(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function $t(t,e,i){var n=Ht(t,e,i),r=Ht(t+1,e,i);return(_t(t)-n+r)/7}function Wt(t,e){return t.slice(e,7).concat(t.slice(0,e))}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),F("week",5),F("isoWeek",5),lt("w",Z),lt("ww",Z,q),lt("W",Z),lt("WW",Z,q),dt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=C(t)}),$("d",0,"do","day"),$("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),$("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),$("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),lt("d",Z),lt("e",Z),lt("E",Z),lt("dd",function(t,e){return e.weekdaysMinRegex(t)}),lt("ddd",function(t,e){return e.weekdaysShortRegex(t)}),lt("dddd",function(t,e){return e.weekdaysRegex(t)}),dt(["dd","ddd","dddd"],function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:x(i).invalidWeekday=t}),dt(["d","e","E"],function(t,e,i,n){e[n]=C(t)});var Ut="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Yt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vt=at,Gt=at,Xt=at;function Zt(){function t(t,e){return e.length-t.length}var e,i,n,r,s,a=[],o=[],l=[],h=[];for(e=0;e<7;e++)i=f([2e3,1]).day(e),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),s=this.weekdays(i,""),a.push(n),o.push(r),l.push(s),h.push(n),h.push(r),h.push(s);for(a.sort(t),o.sort(t),l.sort(t),h.sort(t),e=0;e<7;e++)o[e]=ht(o[e]),l[e]=ht(l[e]),h[e]=ht(h[e]);this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qt(){return this.hours()%12||12}function Jt(t,e){$(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Kt(t,e){return e._meridiemParse}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Qt),$("k",["kk",2],0,function(){return this.hours()||24}),$("hmm",0,0,function(){return""+Qt.apply(this)+j(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Qt.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+j(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),L("hour","h"),F("hour",13),lt("a",Kt),lt("A",Kt),lt("H",Z),lt("h",Z),lt("k",Z),lt("HH",Z,q),lt("hh",Z,q),lt("kk",Z,q),lt("hmm",Q),lt("hmmss",J),lt("Hmm",Q),lt("Hmmss",J),ct(["H","HH"],mt),ct(["k","kk"],function(t,e,i){var n=C(t);e[mt]=24===n?0:n}),ct(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),ct(["h","hh"],function(t,e,i){e[mt]=C(t),x(i).bigHour=!0}),ct("hmm",function(t,e,i){var n=t.length-2;e[mt]=C(t.substr(0,n)),e[vt]=C(t.substr(n)),x(i).bigHour=!0}),ct("hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[mt]=C(t.substr(0,n)),e[vt]=C(t.substr(n,2)),e[yt]=C(t.substr(r)),x(i).bigHour=!0}),ct("Hmm",function(t,e,i){var n=t.length-2;e[mt]=C(t.substr(0,n)),e[vt]=C(t.substr(n))}),ct("Hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[mt]=C(t.substr(0,n)),e[vt]=C(t.substr(n,2)),e[yt]=C(t.substr(r))});var te,ee=Dt("Hours",!0),ie={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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pt,monthsShort:Lt,week:{dow:0,doy:6},weekdays:Ut,weekdaysMin:qt,weekdaysShort:Yt,meridiemParse:/[ap]\.?m?\.?/i},ne={},re={};function se(t){return t?t.toLowerCase().replace("_","-"):t}function ae(t){var e=null;if(!ne[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=te._abbr,require("./locale/"+t),oe(e)}catch(t){}return ne[t]}function oe(t,e){var i;return t&&((i=h(e)?he(t):le(t,e))?te=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),te._abbr}function le(t,e){if(null===e)return delete ne[t],null;var i,n=ie;if(e.abbr=t,null!=ne[t])T("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."),n=ne[t]._config;else if(null!=e.parentLocale)if(null!=ne[e.parentLocale])n=ne[e.parentLocale]._config;else{if(null==(i=ae(e.parentLocale)))return re[e.parentLocale]||(re[e.parentLocale]=[]),re[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ne[t]=new E(A(n,e)),re[t]&&re[t].forEach(function(t){le(t.name,t.config)}),oe(t),ne[t]}function he(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return te;if(!o(t)){if(e=ae(t))return e;t=[t]}return function(t){for(var e,i,n,r,s=0;s=e&&a(r,i,!0)>=e-1)break;e--}s++}return te}(t)}function ue(t){var e,i=t._a;return i&&-2===x(t).overflow&&(e=i[ft]<0||11At(i[pt],i[ft])?gt:i[mt]<0||24$t(i,s,a)?x(t)._overflowWeeks=!0:null!=l?x(t)._overflowWeekday=!0:(o=zt(i,n,r,s,a),t._a[pt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=ce(t._a[pt],n[pt]),(t._dayOfYear>_t(s)||0===t._dayOfYear)&&(x(t)._overflowDayOfYear=!0),i=Nt(s,0,t._dayOfYear),t._a[ft]=i.getUTCMonth(),t._a[gt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[mt]&&0===t._a[vt]&&0===t._a[yt]&&0===t._a[bt]&&(t._nextDay=!0,t._a[mt]=0),t._d=(t._useUTC?Nt:function(t,e,i,n,r,s,a){var o;return t<100&&0<=t?(o=new Date(t+400,e,i,n,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,i,n,r,s,a),o}).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[mt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(x(t).weekdayMismatch=!0)}}var pe=/^\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)?)?$/,fe=/^\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)?)?$/,ge=/Z|[+-]\d\d(?::?\d\d)?/,me=[["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}/]],ve=[["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/]],ye=/^\/?Date\((\-?\d+)/i;function be(t){var e,i,n,r,s,a,o=t._i,l=pe.exec(o)||fe.exec(o);if(l){for(x(t).iso=!0,e=0,i=me.length;ei.valueOf():i.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ci.isLocal=function(){return!!this.isValid()&&!this._isUTC},ci.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ci.isUtc=He,ci.isUTC=He,ci.zoneAbbr=function(){return this._isUTC?"UTC":""},ci.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ci.dates=i("dates accessor is deprecated. Use date instead.",si),ci.months=i("months accessor is deprecated. Use month instead",Rt),ci.years=i("years accessor is deprecated. Use year instead",kt),ci.zone=i("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()}),ci.isDSTShifted=i("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!h(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=Ce(t))._a){var e=t._isUTC?f(t._a):De(t._a);this._isDSTShifted=this.isValid()&&0":">",'"':""","'":"'"},g.serialize=function(t){return null==t?t:("number"==typeof t?t=""+t:"object"==typeof t&&(t=JSON.stringify({data:t})),Object.keys(g.escapingMap).reduce(function(t,e){return g.replaceAll(t,e,g.escapingMap[e])},t))},g.deserialize=function(t){if("string"!=typeof t)return t;t=Object.keys(g.escapingMap).reduce(function(t,e){return g.replaceAll(t,g.escapingMap[e],e)},t);try{t=void 0!==(t=JSON.parse(t)).data?t.data:t}catch(t){}return t},g.createSvg=function(e,t,i,n){var r;return t=t||"100%",i=i||"100%",Array.prototype.slice.call(e.querySelectorAll("svg")).filter(function(t){return t.getAttributeNS(g.namespaces.xmlns,"ct")}).forEach(function(t){e.removeChild(t)}),(r=new g.Svg("svg").attr({width:t,height:i}).addClass(n))._node.style.width=t,r._node.style.height=i,e.appendChild(r._node),r},g.normalizeData=function(t,e,i){var n,r={raw:t,normalized:{}};return r.normalized.series=g.getDataArray({series:t.series||[]},e,i),n=r.normalized.series.every(function(t){return t instanceof Array})?Math.max.apply(null,r.normalized.series.map(function(t){return t.length})):r.normalized.series.length,r.normalized.labels=(t.labels||[]).slice(),Array.prototype.push.apply(r.normalized.labels,g.times(Math.max(0,n-r.normalized.labels.length)).map(function(){return""})),e&&g.reverseData(r.normalized),r},g.safeHasProperty=function(t,e){return null!==t&&"object"==typeof t&&t.hasOwnProperty(e)},g.isDataHoleValue=function(t){return null==t||"number"==typeof t&&isNaN(t)},g.reverseData=function(t){t.labels.reverse(),t.series.reverse();for(var e=0;es.high&&(s.high=n),o&&n=i)h.step=1;else if(n&&c=i)h.step=c;else for(;;){if(u&&g.projectLength(t,h.step,h)<=i)h.step*=2;else{if(u||!(g.projectLength(t,h.step/2,h)>=i))break;if(h.step/=2,n&&h.step%1!=0){h.step*=2;break}}if(1e3=h.high;)o=r(o,-h.step);h.min=a,h.max=o,h.range=h.max-h.min;var p=[];for(s=h.min;s<=h.max;s=r(s,h.step)){var f=g.roundWithPrecision(s);f!==p[p.length-1]&&p.push(f)}return h.values=p,h},g.polarToCartesian=function(t,e,i,n){var r=(n-90)*Math.PI/180;return{x:t+i*Math.cos(r),y:e+i*Math.sin(r)}},g.createChartRect=function(t,e,i){var n=!(!e.axisX&&!e.axisY),r=n?e.axisY.offset:0,s=n?e.axisX.offset:0,a=t.width()||g.quantity(e.width).value||0,o=t.height()||g.quantity(e.height).value||0,l=g.normalizePadding(e.chartPadding,i);a=Math.max(a,r+l.left+l.right),o=Math.max(o,s+l.top+l.bottom);var h={padding:l,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return n?("start"===e.axisX.position?(h.y2=l.top+s,h.y1=Math.max(o-l.bottom,h.y2+1)):(h.y2=l.top,h.y1=Math.max(o-l.bottom-s,h.y2+1)),"start"===e.axisY.position?(h.x1=l.left+r,h.x2=Math.max(a-l.right,h.x1+1)):(h.x1=l.left,h.x2=Math.max(a-l.right-r,h.x1+1))):(h.x1=l.left,h.x2=Math.max(a-l.right,h.x1+1),h.y2=l.top,h.y1=Math.max(o-l.bottom,h.y2+1)),h},g.createGrid=function(t,e,i,n,r,s,a,o){var l={};l[i.units.pos+"1"]=t,l[i.units.pos+"2"]=t,l[i.counterUnits.pos+"1"]=n,l[i.counterUnits.pos+"2"]=n+r;var h=s.elem("line",l,a.join(" "));o.emit("draw",g.extend({type:"grid",axis:i,index:e,group:s,element:h},l))},g.createGridBackground=function(t,e,i,n){var r=t.elem("rect",{x:e.x1,y:e.y2,width:e.width(),height:e.height()},i,!0);n.emit("draw",{type:"gridBackground",group:t,element:r})},g.createLabel=function(t,e,i,n,r,s,a,o,l,h,u){var c,d={};if(d[r.units.pos]=t+a[r.units.pos],d[r.counterUnits.pos]=a[r.counterUnits.pos],d[r.units.len]=e,d[r.counterUnits.len]=Math.max(0,s-10),h){var p=f.createElement("span");p.className=l.join(" "),p.setAttribute("xmlns",g.namespaces.xhtml),p.innerText=n[i],p.style[r.units.len]=Math.round(d[r.units.len])+"px",p.style[r.counterUnits.len]=Math.round(d[r.counterUnits.len])+"px",c=o.foreignObject(p,g.extend({style:"overflow: visible;"},d))}else c=o.elem("text",d,l.join(" ")).text(n[i]);u.emit("draw",g.extend({type:"label",axis:r,index:i,group:o,element:c,text:n[i]},d))},g.getSeriesOption=function(t,e,i){if(t.name&&e.series&&e.series[t.name]){var n=e.series[t.name];return n.hasOwnProperty(i)?n[i]:e[i]}return e[i]},g.optionsProvider=function(t,i,n){function e(t){var e=r;if(r=g.extend({},a),i)for(s=0;st.x;return n&&"explode"===i||!n&&"implode"===i?"start":n&&"implode"===i||!n&&"explode"===i?"end":"middle"}var r={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",sliceDonutSolid:"ct-slice-donut-solid",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutSolid:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:T.noop,labelDirection:"neutral",reverseData:!1,ignoreEmptyValues:!1};T.Pie=T.Base.extend({constructor:function(t,e,i,n){T.Pie.super.constructor.call(this,t,e,r,T.extend({},r,i),n)},createChart:function(m){var v,t,y,b,x,w=T.normalizeData(this.data),_=[],S=m.startAngle;this.svg=T.createSvg(this.container,m.width,m.height,m.donut?m.classNames.chartDonut:m.classNames.chartPie),t=T.createChartRect(this.svg,m,r.padding),y=Math.min(t.width()/2,t.height()/2),x=m.total||w.normalized.series.reduce(function(t,e){return t+e},0);var C=T.quantity(m.donutWidth);"%"===C.unit&&(C.value*=y/100),y-=m.donut&&!m.donutSolid?C.value/2:0,b="outside"===m.labelPosition||m.donut&&!m.donutSolid?y:"center"===m.labelPosition?0:m.donutSolid?y-C.value/2:y/2,b+=m.labelOffset;var k={x:t.x1+t.width()/2,y:t.y2+t.height()/2},D=1===w.raw.series.filter(function(t){return t.hasOwnProperty("value")?0!==t.value:0!==t}).length;w.raw.series.forEach(function(t,e){_[e]=this.svg.elem("g",null,null)}.bind(this)),m.showLabel&&(v=this.svg.elem("g",null,null)),w.raw.series.forEach(function(t,e){if(0!==w.normalized.series[e]||!m.ignoreEmptyValues){_[e].attr({"ct:series-name":t.name}),_[e].addClass([m.classNames.series,t.className||m.classNames.series+"-"+T.alphaNumerate(e)].join(" "));var i=0i.length&&(n+=r.slice(i.length)),n):"-"},_.pad2=function(t){return(t<10?"0":"")+t},_.Grid=function(t){function e(t){this.resizeHandler=u(this.resizeHandler,this);var s=this;if(this.el="string"==typeof t.element?m(document.getElementById(t.element)):m(t.element),null==this.el||0===this.el.length)throw new Error("Graph container element not found");"static"===this.el.css("position")&&this.el.css("position","relative"),this.options=m.extend({},this.gridDefaults,this.defaults||{},t),"string"==typeof this.options.units&&(this.options.postUnits=t.units),this.raphael=new Raphael(this.el[0]),this.elementWidth=null,this.elementHeight=null,this.dirty=!1,this.selectFrom=null,this.init&&this.init(),this.setData(this.options.data),this.el.bind("mousemove",function(t){var e,i,n,r;return i=s.el.offset(),r=t.pageX-i.left,s.selectFrom?(e=s.data[s.hitTest(Math.min(r,s.selectFrom))]._x,n=s.data[s.hitTest(Math.max(r,s.selectFrom))]._x-e,s.selectionRect.attr({x:e,width:n})):s.fire("hovermove",r,t.pageY-i.top)}),this.el.bind("mouseleave",function(){return s.selectFrom&&(s.selectionRect.hide(),s.selectFrom=null),s.fire("hoverout")}),this.el.bind("touchstart touchmove touchend",function(t){var e,i;return i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],e=s.el.offset(),s.fire("hovermove",i.pageX-e.left,i.pageY-e.top)}),this.el.bind("click",function(t){var e;return e=s.el.offset(),s.fire("gridclick",t.pageX-e.left,t.pageY-e.top)}),this.options.rangeSelect&&(this.selectionRect=this.raphael.rect(0,0,0,this.el.innerHeight()).attr({fill:this.options.rangeSelectColor,stroke:!1}).toBack().hide(),this.el.bind("mousedown",function(t){var e;return e=s.el.offset(),s.startRange(t.pageX-e.left)}),this.el.bind("mouseup",function(t){var e;return e=s.el.offset(),s.endRange(t.pageX-e.left),s.fire("hovermove",t.pageX-e.left,t.pageY-e.top)})),this.options.resize&&m(window).bind("resize",function(){return null!=s.timeoutId&&window.clearTimeout(s.timeoutId),s.timeoutId=window.setTimeout(s.resizeHandler,100)}),this.el.css("-webkit-tap-highlight-color","rgba(0,0,0,0)"),this.postInit&&this.postInit()}return s(e,t),e.prototype.gridDefaults={dateFormat:null,axes:!0,grid:!0,gridLineColor:"#aaa",gridStrokeWidth:.5,gridTextColor:"#888",gridTextSize:12,gridTextFamily:"sans-serif",gridTextWeight:"normal",hideHover:!1,yLabelFormat:null,xLabelAngle:0,numLines:5,padding:25,parseTime:!0,postUnits:"",preUnits:"",ymax:"auto",ymin:"auto 0",goals:[],goalStrokeWidth:1,goalLineColors:["#666633","#999966","#cc6666","#663333"],events:[],eventStrokeWidth:1,eventLineColors:["#005a04","#ccffbb","#3a5f0b","#005502"],rangeSelect:null,rangeSelectColor:"#eef",resize:!1},e.prototype.setData=function(n,t){var r,s,a,e,i,o,l,h,u,c,d,p,f,g,m;return null==t&&(t=!0),null==(this.options.data=n)||0===n.length?(this.data=[],this.raphael.clear(),void(null!=this.hover&&this.hover.hide())):(p=this.cumulative?0:null,f=this.cumulative?0:null,0e.x)-(e.x>t.x)})),this.xmin=this.data[0].x,this.xmax=this.data[this.data.length-1].x,this.events=[],0
"),this.el.hide(),this.options.parent.append(this.el)}return t.defaults={class:"morris-hover morris-default-style"},t.prototype.update=function(t,e,i){return t?(this.html(t),this.show(),this.moveTo(e,i)):this.hide()},t.prototype.html=function(t){return this.el.html(t)},t.prototype.moveTo=function(t,e){var i,n,r,s,a,o;return a=this.options.parent.innerWidth(),s=this.options.parent.innerHeight(),n=this.el.outerWidth(),i=this.el.outerHeight(),r=Math.min(Math.max(0,t-n/2),a-n),null!=e?(o=e-i-10)<0&&s<(o=e+10)+i&&(o=s/2-i/2):o=s/2-i/2,this.el.css({left:r+"px",top:parseInt(o)+"px"})},t.prototype.show=function(){return this.el.show()},t.prototype.hide=function(){return this.el.hide()},t}(),_.Line=function(t){function e(t){return this.hilight=u(this.hilight,this),this.onHoverOut=u(this.onHoverOut,this),this.onHoverMove=u(this.onHoverMove,this),this.onGridClick=u(this.onGridClick,this),this instanceof _.Line?void e.__super__.constructor.call(this,t):new _.Line(t)}return s(e,t),e.prototype.init=function(){return"always"!==this.options.hideHover?(this.hover=new _.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)):void 0},e.prototype.defaults={lineWidth:3,pointSize:4,lineColors:["#0b62a4","#7A92A3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],pointStrokeWidths:[1],pointStrokeColors:["#ffffff"],pointFillColors:[],smooth:!0,xLabels:"auto",xLabelFormat:null,xLabelMargin:24,hideHover:!1},e.prototype.calc=function(){return this.calcPoints(),this.generatePaths()},e.prototype.calcPoints=function(){var r,s,t,e,i,n;for(n=[],t=0,e=(i=this.data).length;t",i=s=0,a=(o=n.y).length;s\n "+this.options.labels[i]+":\n "+this.yLabelFormat(r)+"\n";return"function"==typeof this.options.hoverCallback&&(e=this.options.hoverCallback(t,this.options,e,n.src)),[e,n._x,n._ymax]},e.prototype.generatePaths=function(){var r,s,a,o;return this.paths=function(){var t,e,i,n;for(n=[],s=t=0,e=this.options.ykeys.length;0<=e?t=n.x+n.width||null!=o&&o>=n.x)&&0<=n.x&&n.x+n.width=(u=_.LABEL_SPECS[l]).span){c=u;break}for(void 0===c&&(c=_.LABEL_SPECS.second),r&&(c=m.extend({},c,{fmt:r})),s=c.start(a),h=[];(d=s.getTime())<=e;)t<=d&&h.push([c.fmt(s),d]),c.incr(s);return h},t=function(e){return{span:60*e*1e3,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours())},fmt:function(t){return _.pad2(t.getHours())+":"+_.pad2(t.getMinutes())},incr:function(t){return t.setUTCMinutes(t.getUTCMinutes()+e)}}},e=function(e){return{span:1e3*e,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes())},fmt:function(t){return _.pad2(t.getHours())+":"+_.pad2(t.getMinutes())+":"+_.pad2(t.getSeconds())},incr:function(t){return t.setUTCSeconds(t.getUTCSeconds()+e)}}},_.LABEL_SPECS={decade:{span:1728e8,start:function(t){return new Date(t.getFullYear()-t.getFullYear()%10,0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+10)}},year:{span:1728e7,start:function(t){return new Date(t.getFullYear(),0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+1)}},month:{span:24192e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),1)},fmt:function(t){return t.getFullYear()+"-"+_.pad2(t.getMonth()+1)},incr:function(t){return t.setMonth(t.getMonth()+1)}},week:{span:6048e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+_.pad2(t.getMonth()+1)+"-"+_.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+7)}},day:{span:864e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+_.pad2(t.getMonth()+1)+"-"+_.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+1)}},hour:t(60),"30min":t(30),"15min":t(15),"10min":t(10),"5min":t(5),minute:t(1),"30sec":e(30),"15sec":e(15),"10sec":e(10),"5sec":e(5),second:e(1)},_.AUTO_LABEL_ORDER=["decade","year","month","week","day","hour","30min","15min","10min","5min","minute","30sec","15sec","10sec","5sec","second"],_.Area=function(t){function i(t){var e;return this instanceof _.Area?(e=m.extend({},n,t),this.cumulative=!e.behaveLikeLine,"auto"===e.fillOpacity&&(e.fillOpacity=e.behaveLikeLine?.8:1),void i.__super__.constructor.call(this,e)):new _.Area(t)}var n;return s(i,t),n={fillOpacity:"auto",behaveLikeLine:!1},i.prototype.calcPoints=function(){var r,s,a,t,e,i,n;for(n=[],t=0,e=(i=this.data).length;t=i.x+i.width||null!=s&&s>=i.x)&&0<=i.x&&i.x+i.width",i=s=0,a=(o=n.y).length;s\n "+this.options.labels[i]+":\n "+this.yLabelFormat(r)+"\n";return"function"==typeof this.options.hoverCallback&&(e=this.options.hoverCallback(t,this.options,e,n.src)),[e,this.left+(t+.5)*this.width/this.data.length]},e.prototype.drawXAxisLabel=function(t,e,i){return this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},e.prototype.drawBar=function(t,e,i,n,r,s,a){var o;return(0===(o=Math.max.apply(Math,a))||nMath.PI?1:0,this.path=this.calcSegment(this.inner+3,this.inner+this.outer-5),this.selectedPath=this.calcSegment(this.inner+3,this.inner+this.outer),this.hilight=this.calcArc(this.inner)}return s(e,t),e.prototype.calcArcPoints=function(t){return[this.cx+t*this.sin_p0,this.cy+t*this.cos_p0,this.cx+t*this.sin_p1,this.cy+t*this.cos_p1]},e.prototype.calcSegment=function(t,e){var i,n,r,s,a,o,l,h,u,c;return i=(u=this.calcArcPoints(t))[0],r=u[1],n=u[2],s=u[3],a=(c=this.calcArcPoints(e))[0],l=c[1],o=c[2],h=c[3],"M"+i+","+r+"A"+t+","+t+",0,"+this.is_long+",0,"+n+","+s+"L"+o+","+h+"A"+e+","+e+",0,"+this.is_long+",1,"+a+","+l+"Z"},e.prototype.calcArc=function(t){var e,i,n,r,s;return e=(s=this.calcArcPoints(t))[0],n=s[1],i=s[2],r=s[3],"M"+e+","+n+"A"+t+","+t+",0,"+this.is_long+",0,"+i+","+r},e.prototype.render=function(){var t=this;return this.arc=this.drawDonutArc(this.hilight,this.color),this.seg=this.drawDonutSegment(this.path,this.color,this.backgroundColor,function(){return t.fire("hover",t.index)},function(){return t.fire("click",t.index)})},e.prototype.drawDonutArc=function(t,e){return this.raphael.path(t).attr({stroke:e,"stroke-width":2,opacity:0})},e.prototype.drawDonutSegment=function(t,e,i,n,r){return this.raphael.path(t).attr({fill:e,stroke:i,"stroke-width":3}).hover(n).click(r)},e.prototype.select=function(){return this.selected?void 0:(this.seg.animate({path:this.selectedPath},150,"<>"),this.arc.animate({opacity:1},150,"<>"),this.selected=!0)},e.prototype.deselect=function(){return this.selected?(this.seg.animate({path:this.path},150,"<>"),this.arc.animate({opacity:0},150,"<>"),this.selected=!1):void 0},e}(_.EventEmitter)}.call(this),function(h){var a=new Array,o=new Array;h.fn.doAutosize=function(t){var e=h(this).data("minwidth"),i=h(this).data("maxwidth"),n="",r=h(this),s=h("#"+h(this).data("tester_id"));if(n!==(n=r.val())){var a=n.replace(/&/g,"&").replace(/\s/g," ").replace(//g,">");s.html(a);var o=s.width(),l=o+t.comfortZone>=e?o+t.comfortZone:e;(l").css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:n.css("fontSize"),fontFamily:n.css("fontFamily"),fontWeight:n.css("fontWeight"),letterSpacing:n.css("letterSpacing"),whiteSpace:"nowrap"}),s=h(this).attr("id")+"_autosize_tester";0").addClass("tag").append(h("").text(r).append("  "),h("",{href:"#",title:"Removing tag",text:"x"}).click(function(){return h("#"+t).removeTag(escape(r))})).insertBefore("#"+t+"_addTag"),e.push(r),h("#"+t+"_tag").val(""),s.focus?h("#"+t+"_tag").focus():h("#"+t+"_tag").blur(),h.fn.tagsInput.updateTagsField(this,e),s.callback&&o[t]&&o[t].onAddTag&&o[t].onAddTag.call(this,r),o[t]&&o[t].onChange)){var n=e.length;o[t].onChange.call(this,h(this),e[n-1])}}),!1},h.fn.removeTag=function(n){return n=unescape(n),this.each(function(){var t=h(this).attr("id"),e=h(this).val().split(a[t]);for(h("#"+t+"_tagsinput .tag").remove(),str="",i=0;i
';if(r.interactive&&(e=e+''),h(e+='
').insertAfter(this),h(t.holder).css("width",r.width),h(t.holder).css("min-height",r.height),h(t.holder).css("height",r.height),""!=h(t.real_input).val()&&h.fn.tagsInput.importTags(h(t.real_input),h(t.real_input).val()),r.interactive){if(h(t.fake_input).val(h(t.fake_input).attr("data-default")),h(t.fake_input).css("color",r.placeholderColor),h(t.fake_input).resetAutosize(r),h(t.holder).bind("click",t,function(t){h(t.data.fake_input).focus()}),h(t.fake_input).bind("focus",t,function(t){h(t.data.fake_input).val()==h(t.data.fake_input).attr("data-default")&&h(t.data.fake_input).val(""),h(t.data.fake_input).css("color","#000000")}),null!=r.autocomplete_url){for(attrname in autocomplete_options={source:r.autocomplete_url},r.autocomplete)autocomplete_options[attrname]=r.autocomplete[attrname];void 0!==jQuery.Autocompleter?(h(t.fake_input).autocomplete(r.autocomplete_url,r.autocomplete),h(t.fake_input).bind("result",t,function(t,e,i){e&&h("#"+n).addTag(e[0]+"",{focus:!0,unique:r.unique})})):void 0!==jQuery.ui.autocomplete&&(h(t.fake_input).autocomplete(autocomplete_options),h(t.fake_input).bind("autocompleteselect",t,function(t,e){return h(t.data.real_input).addTag(e.item.value,{focus:!0,unique:r.unique}),!1}))}else h(t.fake_input).bind("blur",t,function(t){var e=h(this).attr("data-default");return""!=h(t.data.fake_input).val()&&h(t.data.fake_input).val()!=e?t.data.minChars<=h(t.data.fake_input).val().length&&(!t.data.maxChars||t.data.maxChars>=h(t.data.fake_input).val().length)&&h(t.data.real_input).addTag(h(t.data.fake_input).val(),{focus:!0,unique:r.unique}):(h(t.data.fake_input).val(h(t.data.fake_input).attr("data-default")),h(t.data.fake_input).css("color",r.placeholderColor)),!1});h(t.fake_input).bind("keypress",t,function(t){return s(t)?(t.preventDefault(),t.data.minChars<=h(t.data.fake_input).val().length&&(!t.data.maxChars||t.data.maxChars>=h(t.data.fake_input).val().length)&&h(t.data.real_input).addTag(h(t.data.fake_input).val(),{focus:!0,unique:r.unique}),h(t.data.fake_input).resetAutosize(r),!1):void(t.data.autosize&&h(t.data.fake_input).doAutosize(r))}),t.removeWithBackspace&&h(t.fake_input).bind("keydown",function(t){if(8==t.keyCode&&""==h(this).val()){t.preventDefault();var e=h(this).closest(".tagsinput").find(".tag:last").text(),i=h(this).attr("id").replace(/_tag$/,"");e=e.replace(/[\s]+x$/,""),h("#"+i).removeTag(escape(e)),h(this).trigger("focus")}}),h(t.fake_input).blur(),t.unique&&h(t.fake_input).keydown(function(t){(8==t.keyCode||String.fromCharCode(t.which).match(/\w+|[áéíóúÁÉÍÓÚñÑ,/]+/))&&h(this).removeClass("not_valid")})}}}),this},h.fn.tagsInput.updateTagsField=function(t,e){var i=h(t).attr("id");h(t).val(e.join(a[i]))},h.fn.tagsInput.importTags=function(t,e){h(t).val("");var n=h(t).attr("id"),r=e.split(a[n]);for(i=0;i]/g)||[]).length<=0||0this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),e?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&e&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var t=this.o.weekStart,e="
 
'+w+"'+_+"
'+u.templates.leftArrow+''+u.templates.rightArrow+"
'+E.headTemplate+""+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+'
'+E.headTemplate+E.contTemplate+E.footTemplate+"
",D.fn.datepicker.DPGlobal=E,D.fn.datepicker.noConflict=function(){return D.fn.datepicker=n,this},D.fn.datepicker.version="1.8.0",D.fn.datepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},D(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var e=D(this);e.data("datepicker")||(t.preventDefault(),r.call(e,"show"))}),D(function(){r.call(D('[data-provide="datepicker-inline"]'))})}),function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),i(e),e}:i(jQuery)}(function(i){var t=function(){if(i&&i.fn&&i.fn.select2&&i.fn.select2.amd)var t=i.fn.select2.amd;var e,r,h;return t&&t.requirejs||(t?r=t:t={},function(p){function f(t,e){return i.call(t,e)}function o(t,e){var i,n,r,s,a,o,l,h,u,c,d,p=e&&e.split("/"),f=S.map,g=f&&f["*"]||{};if(t){for(a=(t=t.split("/")).length-1,S.nodeIdCompat&&k.test(t[a])&&(t[a]=t[a].replace(k,"")),"."===t[0].charAt(0)&&p&&(t=p.slice(0,p.length-1).concat(t)),u=0;u":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},r.appendMany=function(t,e){if("1.7"===s.fn.jquery.substr(0,3)){var i=s();s.map(e,function(t){i=i.add(t)}),e=i}t.append(e)},r.__cache={};var i=0;return r.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&&(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++i),e=i.toString())),e},r.StoreData=function(t,e,i){var n=r.GetUniqueElementId(t);r.__cache[n]||(r.__cache[n]={}),r.__cache[n][e]=i},r.GetData=function(t,e){var i=r.GetUniqueElementId(t);return e?r.__cache[i]&&null!=r.__cache[i][e]?r.__cache[i][e]:s(t).data(e):r.__cache[i]},r.RemoveData=function(t){var e=r.GetUniqueElementId(t);null!=r.__cache[e]&&delete r.__cache[e]},r}),t.define("select2/results",["jquery","./utils"],function(d,p){function n(t,e,i){this.$element=t,this.data=i,this.options=e,n.__super__.constructor.call(this)}return p.Extend(n,p.Observable),n.prototype.render=function(){var t=d('');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var e=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=d('
  • '),n=this.options.get("translations").get(t.message);i.append(e(n(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var i=0;i",{class:"select2-results__options select2-results__options--nested"});c.append(o),s.append(a),s.append(c)}else this.template(t,e);return p.StoreData(e,"data",t),e},n.prototype.bind=function(e,t){var l=this,i=e.id+"-results";this.$results.attr("id",i),e.on("results:all",function(t){l.clear(),l.append(t.data),e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("results:append",function(t){l.append(t.data),e.isOpen()&&l.setClasses()}),e.on("query",function(t){l.hideMessages(),l.showLoading(t)}),e.on("select",function(){e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("unselect",function(){e.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),e.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),e.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=l.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t=l.getHighlightedResults();if(0!==t.length){var e=p.GetData(t[0],"data");"true"==t.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:e})}}),e.on("results:previous",function(){var t=l.getHighlightedResults(),e=l.$results.find("[aria-selected]"),i=e.index(t);if(!(i<=0)){var n=i-1;0===t.length&&(n=0);var r=e.eq(n);r.trigger("mouseenter");var s=l.$results.offset().top,a=r.offset().top,o=l.$results.scrollTop()+(a-s);0===n?l.$results.scrollTop(0):a-s<0&&l.$results.scrollTop(o)}}),e.on("results:next",function(){var t=l.getHighlightedResults(),e=l.$results.find("[aria-selected]"),i=e.index(t)+1;if(!(i>=e.length)){var n=e.eq(i);n.trigger("mouseenter");var r=l.$results.offset().top+l.$results.outerHeight(!1),s=n.offset().top+n.outerHeight(!1),a=l.$results.scrollTop()+s-r;0===i?l.$results.scrollTop(0):rthis.$results.outerHeight()||s<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(t,e){var i=this.options.get("templateResult"),n=this.options.get("escapeMarkup"),r=i(t,e);null==r?e.style.display="none":"string"==typeof r?e.innerHTML=n(r):d(e).append(r)},n}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(i,n,r){function s(t,e){this.$element=t,this.options=e,s.__super__.constructor.call(this)}return n.Extend(s,n.Observable),s.prototype.render=function(){var t=i('');return this._tabindex=0,null!=n.GetData(this.$element[0],"old-tabindex")?this._tabindex=n.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t},s.prototype.bind=function(t,e){var i=this,n=(t.id,t.id+"-results");this.container=t,this.$selection.on("focus",function(t){i.trigger("focus",t)}),this.$selection.on("blur",function(t){i._handleBlur(t)}),this.$selection.on("keydown",function(t){i.trigger("keypress",t),t.which===r.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){i.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){i.update(t.data)}),t.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",n),i._attachCloseHandler(t)}),t.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.focus(),window.setTimeout(function(){i.$selection.focus()},0),i._detachCloseHandler(t)}),t.on("enable",function(){i.$selection.attr("tabindex",i._tabindex)}),t.on("disable",function(){i.$selection.attr("tabindex","-1")})},s.prototype._handleBlur=function(t){var e=this;window.setTimeout(function(){document.activeElement==e.$selection[0]||i.contains(e.$selection[0],document.activeElement)||e.trigger("blur",t)},1)},s.prototype._attachCloseHandler=function(t){i(document.body).on("mousedown.select2."+t.id,function(t){var e=i(t.target).closest(".select2");i(".select2.select2-container--open").each(function(){i(this),this!=e[0]&&n.GetData(this,"element").select2("close")})})},s.prototype._detachCloseHandler=function(t){i(document.body).off("mousedown.select2."+t.id)},s.prototype.position=function(t,e){e.find(".selection").append(t)},s.prototype.destroy=function(){this._detachCloseHandler(this.container)},s.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},s}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,i,n){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html(''),t},r.prototype.bind=function(e,t){var i=this;r.__super__.bind.apply(this,arguments);var n=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),e.on("focus",function(t){e.isOpen()||i.$selection.focus()})},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},r.prototype.selectionContainer=function(){return t("")},r.prototype.update=function(t){if(0!==t.length){var e=t[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(e,i);i.empty().append(n),i.attr("title",e.title||e.text)}else this.clear()},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(r,t,o){function i(t,e){i.__super__.constructor.apply(this,arguments)}return o.Extend(i,t),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('
      '),t},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){n.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!n.options.get("disabled")){var e=r(this).parent(),i=o.GetData(e[0],"data");n.trigger("unselect",{originalEvent:t,data:i})}})},i.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},i.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},i.prototype.selectionContainer=function(){return r('
    • ×
    • ')},i.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],i=0;i×');o.StoreData(i[0],"data",e),this.$selection.find(".select2-selection__rendered").prepend(i)}},t}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(n,a,o){function t(t,e,i){t.call(this,e,i)}return t.prototype.render=function(t){var e=n('');this.$searchContainer=e,this.$search=e.find("input");var i=t.call(this);return this._transferTabIndex(),i},t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("open",function(){n.$search.trigger("focus")}),e.on("close",function(){n.$search.val(""),n.$search.removeAttr("aria-activedescendant"),n.$search.trigger("focus")}),e.on("enable",function(){n.$search.prop("disabled",!1),n._transferTabIndex()}),e.on("disable",function(){n.$search.prop("disabled",!0)}),e.on("focus",function(t){n.$search.trigger("focus")}),e.on("results:focus",function(t){n.$search.attr("aria-activedescendant",t.id)}),this.$selection.on("focusin",".select2-search--inline",function(t){n.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){n._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){if(t.stopPropagation(),n.trigger("keypress",t),n._keyUpPrevented=t.isDefaultPrevented(),t.which===o.BACKSPACE&&""===n.$search.val()){var e=n.$searchContainer.prev(".select2-selection__choice");if(0this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t}),t.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.query=function(i,n,r){var s=this;this.current(function(t){var e=null!=t?t.length:0;0=s.maximumSelectionLength?s.trigger("results:message",{message:"maximumSelected",args:{maximum:s.maximumSelectionLength}}):i.call(s,n,r)})},t}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('');return t.attr("dir",this.options.get("dir")),this.$dropdown=t},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(r,t){function e(){}return e.prototype.render=function(t){var e=t.call(this),i=r('');return this.$searchContainer=i,this.$search=i.find("input"),e.prepend(i),e},e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),this.$search.on("keydown",function(t){n.trigger("keypress",t),n._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(t){r(this).off("keyup")}),this.$search.on("keyup input",function(t){n.handleSearch(t)}),e.on("open",function(){n.$search.attr("tabindex",0),n.$search.focus(),window.setTimeout(function(){n.$search.focus()},0)}),e.on("close",function(){n.$search.attr("tabindex",-1),n.$search.val(""),n.$search.blur()}),e.on("focus",function(){e.isOpen()||n.$search.focus()}),e.on("results:all",function(t){null!=t.query.term&&""!==t.query.term||(n.showSearch(t)?n.$searchContainer.removeClass("select2-search--hide"):n.$searchContainer.addClass("select2-search--hide"))})},e.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.showSearch=function(t,e){return!0},e}),t.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;0<=n;n--){var r=e[n];this.placeholder.id===r.id&&i.splice(n,1)}return i},t}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(r){function t(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("query",function(t){n.lastParams=t,n.loading=!0}),e.on("query:append",function(t){n.lastParams=t,n.loading=!0}),this.$results.on("scroll",function(){var t=r.contains(document.documentElement,n.$loadingMore[0]);!n.loading&&t&&n.$results.offset().top+n.$results.outerHeight(!1)+50>=n.$loadingMore.offset().top+n.$loadingMore.outerHeight(!1)&&n.loadMore()})},t.prototype.loadMore=function(){this.loading=!0;var t=r.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},t.prototype.createLoadingMore=function(){var t=r('
    • '),e=this.options.get("translations").get("loadingMore");return t.html(e(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,o){function t(t,e,i){this.$dropdownParent=i.get("dropdownParent")||f(document.body),t.call(this,e,i)}return t.prototype.bind=function(t,e,i){var n=this,r=!1;t.call(this,e,i),e.on("open",function(){n._showDropdown(),n._attachPositioningHandler(e),r||(r=!0,e.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}))}),e.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},t.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},t.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},t.prototype.render=function(t){var e=f(""),i=t.call(this);return e.append(i),this.$dropdownContainer=e},t.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},t.prototype._attachPositioningHandler=function(t,e){var i=this,n="scroll.select2."+e.id,r="resize.select2."+e.id,s="orientationchange.select2."+e.id,a=this.$container.parents().filter(o.hasScroll);a.each(function(){o.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),a.on(n,function(t){var e=o.GetData(this,"select2-scroll-position");f(this).scrollTop(e.y)}),f(window).on(n+" "+r+" "+s,function(t){i._positionDropdown(),i._resizeDropdown()})},t.prototype._detachPositioningHandler=function(t,e){var i="scroll.select2."+e.id,n="resize.select2."+e.id,r="orientationchange.select2."+e.id;this.$container.parents().filter(o.hasScroll).off(i),f(window).off(i+" "+n+" "+r)},t.prototype._positionDropdown=function(){var t=f(window),e=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),n=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var a=this.$dropdown.outerHeight(!1),o=t.scrollTop(),l=t.scrollTop()+t.height(),h=or.bottom+a,c={left:r.left,top:s.bottom},d=this.$dropdownParent;"static"===d.css("position")&&(d=d.offsetParent());var p=d.offset();c.top-=p.top,c.left-=p.left,e||i||(n="below"),u||!h||e?!h&&u&&e&&(n="below"):n="above",("above"==n||e&&"below"!==n)&&(c.top=s.top-p.top-a),null!=n&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+n),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+n)),this.$dropdownContainer.css(c)},t.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},t.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},t}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var i=0,n=0;n');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(t[0],"element",this.$element),t},c}),t.define("jquery-mousewheel",["jquery"],function(t){return t}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(r,t,s,e,a){if(null==r.fn.select2){var o=["open","close","destroy"];r.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each(function(){var t=r.extend(!0,{},e);new s(r(this),t)}),this;if("string"!=typeof e)throw new Error("Invalid arguments for Select2: "+e);var i,n=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=a.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),i=t[e].apply(t,n)}),-1").attr("name",n.submitButton.name).val(u(n.submitButton).val()).appendTo(n.currentForm)),!(n.settings.submitHandler&&!n.settings.debug)||(e=n.settings.submitHandler.call(n,n.currentForm,i),t&&t.remove(),void 0!==e&&e)}return n.settings.debug&&i.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,t()):n.form()?n.pendingRequest?!(n.formSubmitted=!0):t():(n.focusInvalid(),!1)})),n)}t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,e,i;return u(this[0]).is("form")?t=this.validate().form():(i=[],t=!0,e=u(this[0].form).validate(),this.each(function(){(t=e.element(this)&&t)||(i=i.concat(e.errorList))}),e.errorList=i),t},rules:function(t,e){var i,n,r,s,a,o,l=this[0],h=void 0!==this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=l&&(!l.form&&h&&(l.form=this.closest("form")[0],l.name=this.attr("name")),null!=l.form)){if(t)switch(i=u.data(l.form,"validator").settings,n=i.rules,r=u.validator.staticRules(l),t){case"add":u.extend(r,u.validator.normalizeRule(e)),delete r.messages,n[l.name]=r,e.messages&&(i.messages[l.name]=u.extend(i.messages[l.name],e.messages));break;case"remove":return e?(o={},u.each(e.split(/\s/),function(t,e){o[e]=r[e],delete r[e]}),o):(delete n[l.name],r)}return(s=u.validator.normalizeRules(u.extend({},u.validator.classRules(l),u.validator.attributeRules(l),u.validator.dataRules(l),u.validator.staticRules(l)),l)).required&&(a=s.required,delete s.required,s=u.extend({required:a},s)),s.remote&&(a=s.remote,delete s.remote,s=u.extend(s,{remote:a})),s}}}),u.extend(u.expr.pseudos||u.expr[":"],{blank:function(t){return!u.trim(""+u(t).val())},filled:function(t){var e=u(t).val();return null!==e&&!!u.trim(""+e)},unchecked:function(t){return!u(t).prop("checked")}}),u.validator=function(t,e){this.settings=u.extend(!0,{},u.validator.defaults,t),this.currentForm=e,this.init()},u.validator.format=function(i,t){return 1===arguments.length?function(){var t=u.makeArray(arguments);return t.unshift(i),u.validator.format.apply(this,t)}:(void 0===t||(2Warning: No message defined for "+t.name+""),n=/\$?\{(\d+)\}/g;return"function"==typeof i?i=i.call(this,e.parameters,t):n.test(i)&&(i=u.validator.format(i.replace(n,"{$1}"),e.parameters)),i},formatAndAdd:function(t,e){var i=this.defaultMessage(t,e);this.errorList.push({message:i,element:t,method:e.method}),this.errorMap[t.name]=i,this.submitted[t.name]=i},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return u(this.errorList).map(function(){return this.element})},showLabel:function(t,e){var i,n,r,s,a=this.errorsFor(t),o=this.idOrName(t),l=u(t).attr("aria-describedby");a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),a.html(e)):(i=a=u("<"+this.settings.errorElement+">").attr("id",o+"-error").addClass(this.settings.errorClass).html(e||""),this.settings.wrapper&&(i=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(i):this.settings.errorPlacement?this.settings.errorPlacement.call(this,i,u(t)):i.insertAfter(t),a.is("label")?a.attr("for",o):0===a.parents("label[for='"+this.escapeCssMeta(o)+"']").length&&(r=a.attr("id"),l?l.match(new RegExp("\\b"+this.escapeCssMeta(r)+"\\b"))||(l+=" "+r):l=r,u(t).attr("aria-describedby",l),(n=this.groups[t.name])&&(s=this,u.each(s.groups,function(t,e){e===n&&u("[name='"+s.escapeCssMeta(t)+"']",s.currentForm).attr("aria-describedby",a.attr("id"))})))),!e&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,t)),this.toShow=this.toShow.add(a)},errorsFor:function(t){var e=this.escapeCssMeta(this.idOrName(t)),i=u(t).attr("aria-describedby"),n="label[for='"+e+"'], label[for='"+e+"'] *";return i&&(n=n+", #"+this.escapeCssMeta(i).replace(/\s+/g,", #")),this.errors().filter(n)},escapeCssMeta:function(t){return t.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),u(t).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(t){return u(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,e){switch(e.nodeName.toLowerCase()){case"select":return u("option:selected",e).length;case"input":if(this.checkable(e))return this.findByName(e.name).filter(":checked").length}return t.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(t,e){return!!u(t,e.form).length},function:function(t,e){return t(e)}},optional:function(t){var e=this.elementValue(t);return!u.validator.methods.required.call(this,e,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,u(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,e){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],u(t).removeClass(this.settings.pendingClass),e&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(u(this.currentForm).submit(),this.submitButton&&u("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!e&&0===this.pendingRequest&&this.formSubmitted&&(u(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,e){return e="string"==typeof e&&e||"remote",u.data(t,"previousValue")||u.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:e})})},destroy:function(){this.resetForm(),u(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,e){t.constructor===String?this.classRuleSettings[t]=e:u.extend(this.classRuleSettings,t)},classRules:function(t){var e={},i=u(t).attr("class");return i&&u.each(i.split(" "),function(){this in u.validator.classRuleSettings&&u.extend(e,u.validator.classRuleSettings[this])}),e},normalizeAttributeRule:function(t,e,i,n){/min|max|step/.test(i)&&(null===e||/number|range|text/.test(e))&&(n=Number(n),isNaN(n)&&(n=void 0)),n||0===n?t[i]=n:e===i&&"range"!==e&&(t[i]=!0)},attributeRules:function(t){var e,i,n={},r=u(t),s=t.getAttribute("type");for(e in u.validator.methods)i="required"===e?(""===(i=t.getAttribute(e))&&(i=!0),!!i):r.attr(e),this.normalizeAttributeRule(n,s,e,i);return n.maxlength&&/-1|2147483647|524288/.test(n.maxlength)&&delete n.maxlength,n},dataRules:function(t){var e,i,n={},r=u(t),s=t.getAttribute("type");for(e in u.validator.methods)""===(i=r.data("rule"+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()))&&(i=!0),this.normalizeAttributeRule(n,s,e,i);return n},staticRules:function(t){var e={},i=u.data(t.form,"validator");return i.settings.rules&&(e=u.validator.normalizeRule(i.settings.rules[t.name])||{}),e},normalizeRules:function(n,r){return u.each(n,function(t,e){if(!1!==e){if(e.param||e.depends){var i=!0;switch(typeof e.depends){case"string":i=!!u(e.depends,r.form).length;break;case"function":i=e.depends.call(r,r)}i?n[t]=void 0===e.param||e.param:(u.data(r.form,"validator").resetElements(u(r)),delete n[t])}}else delete n[t]}),u.each(n,function(t,e){n[t]=u.isFunction(e)&&"normalizer"!==t?e(r):e}),u.each(["minlength","maxlength"],function(){n[this]&&(n[this]=Number(n[this]))}),u.each(["rangelength","range"],function(){var t;n[this]&&(u.isArray(n[this])?n[this]=[Number(n[this][0]),Number(n[this][1])]:"string"==typeof n[this]&&(t=n[this].replace(/[\[\]]/g,"").split(/[\s,]+/),n[this]=[Number(t[0]),Number(t[1])]))}),u.validator.autoCreateRanges&&(null!=n.min&&null!=n.max&&(n.range=[n.min,n.max],delete n.min,delete n.max),null!=n.minlength&&null!=n.maxlength&&(n.rangelength=[n.minlength,n.maxlength],delete n.minlength,delete n.maxlength)),n},normalizeRule:function(t){if("string"==typeof t){var e={};u.each(t.split(/\s/),function(){e[this]=!0}),t=e}return t},addMethod:function(t,e,i){u.validator.methods[t]=e,u.validator.messages[t]=void 0!==i?i:u.validator.messages[t],e.length<3&&u.validator.addClassRules(t,u.validator.normalizeRule(t))},methods:{required:function(t,e,i){if(!this.depend(i,e))return"dependency-mismatch";if("select"!==e.nodeName.toLowerCase())return this.checkable(e)?0=i[0]&&n<=i[1]},min:function(t,e,i){return this.optional(e)||i<=t},max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},step:function(t,e,i){var n,r=u(e).attr("type"),s="Step attribute on input type "+r+" is not supported.",a=new RegExp("\\b"+r+"\\b"),o=function(t){var e=(""+t).match(/(?:\.(\d+))?$/);return e&&e[1]?e[1].length:0},l=function(t){return Math.round(t*Math.pow(10,n))},h=!0;if(r&&!a.test(["text","number","range"].join()))throw new Error(s);return n=o(i),(o(t)>n||l(t)%l(i)!=0)&&(h=!1),this.optional(e)||h},equalTo:function(t,e,i){var n=u(i);return this.settings.onfocusout&&n.not(".validate-equalTo-blur").length&&n.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){u(e).valid()}),t===n.val()},remote:function(s,a,t,o){if(this.optional(a))return"dependency-mismatch";o="string"==typeof o&&o||"remote";var l,e,i,h=this.previousValue(a,o);return this.settings.messages[a.name]||(this.settings.messages[a.name]={}),h.originalMessage=h.originalMessage||this.settings.messages[a.name][o],this.settings.messages[a.name][o]=h.message,t="string"==typeof t&&{url:t}||t,i=u.param(u.extend({data:s},t.data)),h.old===i?h.valid:(h.old=i,(l=this).startRequest(a),(e={})[a.name]=s,u.ajax(u.extend(!0,{mode:"abort",port:"validate"+a.name,dataType:"json",data:e,context:l.currentForm,success:function(t){var e,i,n,r=!0===t||"true"===t;l.settings.messages[a.name][o]=h.originalMessage,r?(n=l.formSubmitted,l.resetInternals(),l.toHide=l.errorsFor(a),l.formSubmitted=n,l.successList.push(a),l.invalid[a.name]=!1,l.showErrors()):(e={},i=t||l.defaultMessage(a,{method:o,parameters:s}),e[a.name]=h.message=i,l.invalid[a.name]=!0,l.showErrors(e)),h.valid=r,l.stopRequest(a,r)}},t)),"pending")}}});var n,r={};return u.ajaxPrefilter?u.ajaxPrefilter(function(t,e,i){var n=t.port;"abort"===t.mode&&(r[n]&&r[n].abort(),r[n]=i)}):(n=u.ajax,u.ajax=function(t){var e=("mode"in t?t:u.ajaxSettings).mode,i=("port"in t?t:u.ajaxSettings).port;return"abort"===e?(r[i]&&r[i].abort(),r[i]=n.apply(this,arguments),r[i]):n.apply(this,arguments)}),u}),function(v){"use strict";v.event.special.destroyed||(v.event.special.destroyed={remove:function(t){t.handler&&t.handler()}}),v.fn.extend({maxlength:function(u,t){function h(t){var e=t.val();return e=u.twoCharLinebreak?e.replace(/\r(?!\n)|\n(?!\r)/g,"\r\n"):e.replace(new RegExp("\r?\n","g"),"\n"),u.utf8?function(t){for(var e=0,i=0;ia&&(l=!1),l?d(e,n.removeClass(u.limitReachedClass).addClass(u.warningClass)):(r=e,n.css({display:"none"}),r.trigger("maxlength.hidden"))):d(e,n.removeClass(u.warningClass).addClass(u.limitReachedClass))),u.allowOverMax&&(t<0?e.addClass("overmax"):e.removeClass("overmax"))}function g(t,e){var i,n,r=(n=(i=t)[0],v.extend({},"function"==typeof n.getBoundingClientRect?n.getBoundingClientRect():{width:n.offsetWidth,height:n.offsetHeight},i.offset()));if("function"!==v.type(u.placement))if(v.isPlainObject(u.placement))!function(t,e){if(t&&e){var n={};v.each(["top","bottom","left","right","position"],function(t,e){var i=u.placement[e];void 0!==i&&(n[e]=i)}),e.css(n)}}(u.placement,e);else{var s=t.outerWidth(),a=e.outerWidth(),o=e.width(),l=e.height();switch(u.appendToParent&&(r.top-=t.parent().offset().top,r.left-=t.parent().offset().left),u.placement){case"bottom":e.css({top:r.top+r.height,left:r.left+r.width/2-o/2});break;case"top":e.css({top:r.top-l,left:r.left+r.width/2-o/2});break;case"left":e.css({top:r.top+r.height/2-l/2,left:r.left-o});break;case"right":e.css({top:r.top+r.height/2-l/2,left:r.left+r.width});break;case"bottom-right":e.css({top:r.top+r.height,left:r.left+r.width});break;case"top-right":e.css({top:r.top-l,left:r.left+s});break;case"top-left":e.css({top:r.top-l,left:r.left-a});break;case"bottom-left":e.css({top:r.top+t.outerHeight(),left:r.left-a});break;case"centered-right":e.css({top:r.top+l/2,left:r.left+s-a-3});break;case"bottom-right-inside":e.css({top:r.top+r.height,left:r.left+r.width-a});break;case"top-right-inside":e.css({top:r.top-l,left:r.left+s-a});break;case"top-left-inside":e.css({top:r.top-l,left:r.left});break;case"bottom-left-inside":e.css({top:r.top+t.outerHeight(),left:r.left})}}else u.placement(t,e,r)}function m(t){var e="maxlength";return u.allowOverMax&&(e="data-bs-mxl"),t.attr(e)||t.attr("size")}var e=v("body");return v.isFunction(u)&&!t&&(t=u,u={}),u=v.extend({showOnReady:!1,alwaysShow:!1,threshold:10,warningClass:"label label-success",limitReachedClass:"label label-important label-danger",separator:" / ",preText:"",postText:"",showMaxLength:!0,placement:"bottom",message:null,showCharsTyped:!0,validate:!1,utf8:!1,appendToParent:!1,twoCharLinebreak:!0,allowOverMax:!1},u),this.each(function(){function t(){var t=p(h.val(),o,"0");o=m(h),l||(l=v('').css({display:"none",position:"absolute",whiteSpace:"nowrap",zIndex:1099}).html(t)),h.is("textarea")&&(h.data("maxlenghtsizex",h.outerWidth()),h.data("maxlenghtsizey",h.outerHeight()),h.mouseup(function(){(h.outerWidth()!==h.data("maxlenghtsizex")||h.outerHeight()!==h.data("maxlenghtsizey"))&&g(h,l),h.data("maxlenghtsizex",h.outerWidth()),h.data("maxlenghtsizey",h.outerHeight())})),u.appendToParent?(h.parent().append(l),h.parent().css("position","relative")):e.append(l),f(c(h,m(h)),h,o,l),g(h,l)}var o,l,h=v(this);v(window).resize(function(){l&&g(h,l)}),u.allowOverMax&&(v(this).attr("data-bs-mxl",v(this).attr("maxlength")),v(this).removeAttr("maxlength")),u.showOnReady?h.ready(function(){t()}):h.focus(function(){t()}),h.on("maxlength.reposition",function(){g(h,l)}),h.on("destroyed",function(){l&&l.remove()}),h.on("blur",function(){l&&!u.showOnReady&&l.remove()}),h.on("input",function(){var t,e,i,n,r=m(h),s=c(h,r),a=!0;return u.validate&&s<0?(e=r,i=(t=h).val(),n=0,u.twoCharLinebreak&&"\n"===(i=i.replace(/\r(?!\n)|\n(?!\r)/g,"\r\n")).substr(i.length-1)&&i.length%2==1&&(n=1),t.val(i.substr(0,e-n)),a=!1):f(s,h,o,l),("bottom-right-inside"===u.placement||"top-right-inside"===u.placement)&&g(h,l),a})})}})}(jQuery),function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(t){return i(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t||(t=window),e||(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),i(e,t,t.document)}:i(jQuery,window,document)}(function($,M,y,W){"use strict";var f,b,e,t,T=function(S){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new b(t?se(this[f.iApiIndex]):this)},this.fnAddData=function(t,e){var i=this.api(!0),n=$.isArray(t)&&($.isArray(t[0])||$.isPlainObject(t[0]))?i.rows.add(t):i.row.add(t);return(e===W||e)&&i.draw(),n.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),i=e.settings()[0],n=i.oScroll;t===W||t?e.draw(!1):""===n.sX&&""===n.sY||Bt(i)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===W||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,i){var n=this.api(!0),r=n.rows(t),s=r.settings()[0],a=s.aoData[r[0][0]];return r.remove(),e&&e.call(this,s,a),(i===W||i)&&n.draw(),a},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,i,n,r,s){var a=this.api(!0);null===e||e===W?a.search(t,i,n,s):a.column(e).search(t,i,n,s),a.draw()},this.fnGetData=function(t,e){var i=this.api(!0);if(t===W)return i.data().toArray();var n=t.nodeName?t.nodeName.toLowerCase():"";return e!==W||"td"==n||"th"==n?i.cell(t,e).data():i.row(t).data()||null},this.fnGetNodes=function(t){var e=this.api(!0);return t!==W?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),i=t.nodeName.toUpperCase();if("TR"==i)return e.row(t).index();if("TD"!=i&&"TH"!=i)return null;var n=e.cell(t).index();return[n.row,n.columnVisible,n.column]},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,i){return this.api(!0).row(t).child(e,i).show().child()[0]},this.fnPageChange=function(t,e){var i=this.api(!0).page(t);(e===W||e)&&i.draw(!1)},this.fnSetColumnVis=function(t,e,i){var n=this.api(!0).column(t).visible(e);(i===W||i)&&n.columns.adjust().draw()},this.fnSettings=function(){return se(this[f.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,i){this.api(!0).order.listener(t,e,i)},this.fnUpdate=function(t,e,i,n,r){var s=this.api(!0);return i===W||null===i?s.row(e).data(t):s.cell(e,i).data(t),(r===W||r)&&s.columns.adjust(),(n===W||n)&&s.draw(),0},this.fnVersionCheck=f.fnVersionCheck;var C=this,k=S===W,D=this.length;for(var t in k&&(S={}),this.oApi=this.internal=f.internal,T.ext.internal)t&&(this[t]=Re(t));return this.each(function(){var s,a=1").appendTo(h)),c.nTHead=i[0];var n=h.children("tbody");0===n.length&&(n=$("").appendTo(h)),c.nTBody=n[0];var r=h.children("tfoot");if(0===r.length&&0").appendTo(h)),0===r.length||0===r.children().length?h.addClass(d.sNoFooter):0/g,s=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,a=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),o=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,l=function(t){return!t||!0===t||"-"===t},p=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},h=function(t,e){return i[e]||(i[e]=new RegExp(St(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(i[e],"."):t},u=function(t,e,i){var n="string"==typeof t;return!!l(t)||(e&&n&&(t=h(t,e)),i&&n&&(t=t.replace(o,"")),!isNaN(parseFloat(t))&&isFinite(t))},c=function(t,e,i){return!!l(t)||(l(n=t)||"string"==typeof n)&&!!u(d(t),e,i)||null;var n},U=function(t,e,i){var n=[],r=0,s=t.length;if(i!==W)for(;r").css({position:"fixed",top:0,left:-1*$(M).scrollLeft(),height:1,width:1,overflow:"hidden"}).append($("
      ").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append($("
      ").css({width:"100%",height:10}))).appendTo("body"),n=i.children(),r=n.children();e.barWidth=n[0].offsetWidth-n[0].clientWidth,e.bScrollOversize=100===r[0].offsetWidth&&100!==n[0].clientWidth,e.bScrollbarLeft=1!==Math.round(r.offset().left),e.bBounding=!!i[0].getBoundingClientRect().width,i.remove()}$.extend(t.oBrowser,T.__browser),t.oScroll.iBarWidth=T.__browser.barWidth}function S(t,e,i,n,r,s){var a,o=n,l=!1;for(i!==W&&(a=i,l=!0);o!==r;)t.hasOwnProperty(o)&&(a=l?e(a,t[o],o,t):t[o],l=!0,o+=s);return a}function R(t,e){var i=T.defaults.column,n=t.aoColumns.length,r=$.extend({},T.models.oColumn,i,{nTh:e||y.createElement("th"),sTitle:i.sTitle?i.sTitle:e?e.innerHTML:"",aDataSort:i.aDataSort?i.aDataSort:[n],mData:i.mData?i.mData:n,idx:n});t.aoColumns.push(r);var s=t.aoPreSearchCols;s[n]=$.extend({},T.models.oSearch,s[n]),I(t,n,$(e).data())}function I(t,e,i){var n=t.aoColumns[e],r=t.oClasses,s=$(n.nTh);if(!n.sWidthOrig){n.sWidthOrig=s.attr("width")||null;var a=(s.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);a&&(n.sWidthOrig=a[1])}i!==W&&null!==i&&(L(i),A(T.defaults.column,i),i.mDataProp===W||i.mData||(i.mData=i.mDataProp),i.sType&&(n._sManualType=i.sType),i.className&&!i.sClass&&(i.sClass=i.className),i.sClass&&s.addClass(i.sClass),$.extend(n,i),oe(n,i,"sWidth","sWidthOrig"),i.iDataSort!==W&&(n.aDataSort=[i.iDataSort]),oe(n,i,"aDataSort"));var o=n.mData,l=Z(o),h=n.mRender?Z(n.mRender):null,u=function(t){return"string"==typeof t&&-1!==t.indexOf("@")};n._bAttrSrc=$.isPlainObject(o)&&(u(o.sort)||u(o.type)||u(o.filter)),n._setter=null,n.fnGetData=function(t,e,i){var n=l(t,e,W,i);return h&&e?h(n,e,t,i):n},n.fnSetData=function(t,e,i){return Q(o)(t,e,i)},"number"!=typeof o&&(t._rowReadObject=!0),t.oFeatures.bSort||(n.bSortable=!1,s.addClass(r.sSortableNone));var c=-1!==$.inArray("asc",n.asSorting),d=-1!==$.inArray("desc",n.asSorting);n.bSortable&&(c||d)?n.sSortingClassJUI=c&&!d?(n.sSortingClass=r.sSortableAsc,r.sSortJUIAscAllowed):!c&&d?(n.sSortingClass=r.sSortableDesc,r.sSortJUIDescAllowed):(n.sSortingClass=r.sSortable,r.sSortJUI):(n.sSortingClass=r.sSortableNone,n.sSortingClassJUI="")}function Y(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;Ut(t);for(var i=0,n=e.length;ie&&t[r]--;-1!=n&&i===W&&t.splice(n,1)}function et(i,n,t,e){var r,s,a=i.aoData[n],o=function(t,e){for(;t.childNodes.length;)t.removeChild(t.firstChild);t.innerHTML=D(i,n,e,"display")};if("dom"!==t&&(t&&"auto"!==t||"dom"!==a.src)){var l=a.anCells;if(l)if(e!==W)o(l[e],e);else for(r=0,s=l.length;r").appendTo(a)),e=0,i=u.length;etr").attr("role","row"),$(a).find(">tr>th, >tr>td").addClass(h.sHeaderTH),$(o).find(">tr>th, >tr>td").addClass(h.sFooterTH),null!==o){var c=t.aoFooter[0];for(e=0,i=c.length;e=t.fnRecordsDisplay()?0:o,t.iInitDisplayStart=-1);var u=t._iDisplayStart,c=t.fnDisplayEnd();if(t.bDeferLoading)t.bDeferLoading=!1,t.iDraw++,Ht(t,!1);else if(l){if(!t.bDestroying&&!pt(t))return}else t.iDraw++;if(0!==h.length)for(var d=l?0:u,p=l?t.aoData.length:c,f=d;f",{class:s?r[0]:""}).append($("",{valign:"top",colSpan:F(t),class:t.oClasses.sRowEmpty}).html(b))[0]}ce(t,"aoHeaderCallback","header",[$(t.nTHead).children("tr")[0],J(t),u,c,h]),ce(t,"aoFooterCallback","footer",[$(t.nTFoot).children("tr")[0],J(t),u,c,h]);var x=$(t.nTBody);x.children().detach(),x.append($(i)),ce(t,"aoDrawCallback","draw",[t]),t.bSorted=!1,t.bFiltered=!1,t.bDrawing=!1}else Ht(t,!1)}function lt(t,e){var i=t.oFeatures,n=i.bSort,r=i.bFilter;n&&Qt(t),r?yt(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,ot(t),t._drawHold=!1}function ht(t){var e=t.oClasses,i=$(t.nTable),n=$("
      ").insertBefore(i),r=t.oFeatures,s=$("
      ",{id:t.sTableId+"_wrapper",class:e.sWrapper+(t.nTFoot?"":" "+e.sNoFooter)});t.nHolding=n[0],t.nTableWrapper=s[0],t.nTableReinsertBefore=t.nTable.nextSibling;for(var a,o,l,h,u,c,d=t.sDom.split(""),p=0;p")[0],"'"==(h=d[p+1])||'"'==h){for(u="",c=2;d[p+c]!=h;)u+=d[p+c],c++;if("H"==u?u=e.sJUIHeader:"F"==u&&(u=e.sJUIFooter),-1!=u.indexOf(".")){var f=u.split(".");l.id=f[0].substr(1,f[0].length-1),l.className=f[1]}else"#"==u.charAt(0)?l.id=u.substr(1,u.length-1):l.className=u;p+=c}s.append(l),s=$(l)}else if(">"==o)s=s.parent();else if("l"==o&&r.bPaginate&&r.bLengthChange)a=It(t);else if("f"==o&&r.bFilter)a=vt(t);else if("r"==o&&r.bProcessing)a=Nt(t);else if("t"==o)a=zt(t);else if("i"==o&&r.bInfo)a=At(t);else if("p"==o&&r.bPaginate)a=Ft(t);else if(0!==T.ext.feature.length)for(var g=T.ext.feature,m=0,v=g.length;m',o=n.sSearch;o=o.match(/_INPUT_/)?o.replace("_INPUT_",a):o+a;var l=$("
      ",{id:s.f?null:e+"_filter",class:t.sFilter}).append($("
      ").addClass(t.sLength);return n.aanFeatures.l||(u[0].id=e+"_length"),u.children().append(n.oLanguage.sLengthMenu.replace("_MENU_",o[0].outerHTML)),$("select",u).val(n._iDisplayLength).on("change.DT",function(t){Rt(n,$(this).val()),ot(n)}),$(n.nTable).on("length.dt.DT",function(t,e,i){n===e&&$("select",u).val(i)}),u[0]}function Ft(t){var e=t.sPaginationType,u=T.ext.pager[e],c="function"==typeof u,d=function(t){ot(t)},i=$("
      ").addClass(t.oClasses.sPaging+e)[0],p=t.aanFeatures;return c||u.fnInit(t,i,d),p.p||(i.id=t.sTableId+"_paginate",t.aoDrawCallback.push({fn:function(t){if(c){var e,i,n=t._iDisplayStart,r=t._iDisplayLength,s=t.fnRecordsDisplay(),a=-1===r,o=a?0:Math.ceil(n/r),l=a?1:Math.ceil(s/r),h=u(o,l);for(e=0,i=p.p.length;e",{id:t.aanFeatures.r?null:t.sTableId+"_processing",class:t.oClasses.sProcessing}).html(t.oLanguage.sProcessing).insertBefore(t.nTable)[0]}function Ht(t,e){t.oFeatures.bProcessing&&$(t.aanFeatures.r).css("display",e?"block":"none"),ce(t,null,"processing",[t,e])}function zt(t){var e=$(t.nTable);e.attr("role","grid");var i=t.oScroll;if(""===i.sX&&""===i.sY)return t.nTable;var n=i.sX,r=i.sY,s=t.oClasses,a=e.children("caption"),o=a.length?a[0]._captionSide:null,l=$(e[0].cloneNode(!1)),h=$(e[0].cloneNode(!1)),u=e.children("tfoot"),c="
      ",d=function(t){return t?Xt(t):null};u.length||(u=null);var p=$(c,{class:s.sScrollWrapper}).append($(c,{class:s.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:n?d(n):"100%"}).append($(c,{class:s.sScrollHeadInner}).css({"box-sizing":"content-box",width:i.sXInner||"100%"}).append(l.removeAttr("id").css("margin-left",0).append("top"===o?a:null).append(e.children("thead"))))).append($(c,{class:s.sScrollBody}).css({position:"relative",overflow:"auto",width:d(n)}).append(e));u&&p.append($(c,{class:s.sScrollFoot}).css({overflow:"hidden",border:0,width:n?d(n):"100%"}).append($(c,{class:s.sScrollFootInner}).append(h.removeAttr("id").css("margin-left",0).append("bottom"===o?a:null).append(e.children("tfoot")))));var f=p.children(),g=f[0],m=f[1],v=u?f[2]:null;return n&&$(m).on("scroll.DT",function(t){var e=this.scrollLeft;g.scrollLeft=e,u&&(v.scrollLeft=e)}),$(m).css(r&&i.bCollapse?"max-height":"height",r),t.nScrollHead=g,t.nScrollBody=m,t.nScrollFoot=v,t.aoDrawCallback.push({fn:Bt,sName:"scrolling"}),p[0]}function Bt(i){var t,e,n,r,s,a,o,l,h,u=i.oScroll,c=u.sX,d=u.sXInner,p=u.sY,f=u.iBarWidth,g=$(i.nScrollHead),m=g[0].style,v=g.children("div"),y=v[0].style,b=v.children("table"),x=i.nScrollBody,w=$(x),_=x.style,S=$(i.nScrollFoot).children("div"),C=S.children("table"),k=$(i.nTHead),D=$(i.nTable),T=D[0],M=T.style,A=i.nTFoot?$(i.nTFoot):null,E=i.oBrowser,P=E.bScrollOversize,L=U(i.aoColumns,"nTh"),O=[],R=[],I=[],F=[],j=function(t){var e=t.style;e.paddingTop="0",e.paddingBottom="0",e.borderTopWidth="0",e.borderBottomWidth="0",e.height=0},N=x.scrollHeight>x.clientHeight;if(i.scrollBarVis!==N&&i.scrollBarVis!==W)return i.scrollBarVis=N,void Y(i);i.scrollBarVis=N,D.children("thead, tfoot").remove(),A&&(a=A.clone().prependTo(D),e=A.find("tr"),r=a.find("tr")),s=k.clone().prependTo(D),t=k.find("tr"),n=s.find("tr"),s.find("th, td").removeAttr("tabindex"),c||(_.width="100%",g[0].style.width="100%"),$.each(ct(i,s),function(t,e){o=q(i,t),e.style.width=i.aoColumns[o].sWidth}),A&&$t(function(t){t.style.width=""},r),h=D.outerWidth(),""===c?(M.width="100%",P&&(D.find("tbody").height()>x.offsetHeight||"scroll"==w.css("overflow-y"))&&(M.width=Xt(D.outerWidth()-f)),h=D.outerWidth()):""!==d&&(M.width=Xt(d),h=D.outerWidth()),$t(j,n),$t(function(t){I.push(t.innerHTML),O.push(Xt($(t).css("width")))},n),$t(function(t,e){-1!==$.inArray(t,L)&&(t.style.width=O[e])},t),$(n).height(0),A&&($t(j,r),$t(function(t){F.push(t.innerHTML),R.push(Xt($(t).css("width")))},r),$t(function(t,e){t.style.width=R[e]},e),$(r).height(0)),$t(function(t,e){t.innerHTML='
      '+I[e]+"
      ",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=O[e]},n),A&&$t(function(t,e){t.innerHTML='
      '+F[e]+"
      ",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=R[e]},r),D.outerWidth()x.offsetHeight||"scroll"==w.css("overflow-y")?h+f:h,P&&(x.scrollHeight>x.offsetHeight||"scroll"==w.css("overflow-y"))&&(M.width=Xt(l-f)),""!==c&&""===d||ae(i,1,"Possible column misalignment",6)):l="100%",_.width=Xt(l),m.width=Xt(l),A&&(i.nScrollFoot.style.width=Xt(l)),p||P&&(_.height=Xt(T.offsetHeight+f));var H=D.outerWidth();b[0].style.width=Xt(H),y.width=Xt(H);var z=D.height()>x.clientHeight||"scroll"==w.css("overflow-y"),B="padding"+(E.bScrollbarLeft?"Left":"Right");y[B]=z?f+"px":"0px",A&&(C[0].style.width=Xt(H),S[0].style.width=Xt(H),S[0].style[B]=z?f+"px":"0px"),D.children("colgroup").insertBefore(D.children("thead")),w.scroll(),!i.bSorted&&!i.bFiltered||i._drawHold||(x.scrollTop=0)}function $t(t,e,i){for(var n,r,s=0,a=0,o=e.length;a/g;function Ut(t){var e,i,n,r=t.nTable,s=t.aoColumns,a=t.oScroll,o=a.sY,l=a.sX,h=a.sXInner,u=s.length,c=j(t,"bVisible"),d=$("th",t.nTHead),p=r.getAttribute("width"),f=r.parentNode,g=!1,m=t.oBrowser,v=m.bScrollOversize,y=r.style.width;for(y&&-1!==y.indexOf("%")&&(p=y),e=0;e").appendTo(x.find("tbody"));for(x.find("thead, tfoot").remove(),x.append($(t.nTHead).clone()).append($(t.nTFoot).clone()),x.find("tfoot th, tfoot td").css("width",""),d=ct(t,x.find("thead")[0]),e=0;e").css({width:i.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(t.aoData.length)for(e=0;e").css(l||o?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(x).appendTo(f);l&&h?x.width(h):l?(x.css("width","auto"),x.removeAttr("width"),x.width()").css("width",Xt(t)).appendTo(e||y.body),n=i[0].offsetWidth;return i.remove(),n}function Vt(t,e){var i=Gt(t,e);if(i<0)return null;var n=t.aoData[i];return n.nTr?n.anCells[e]:$("").html(D(t,i,e,"display"))[0]}function Gt(t,e){for(var i,n=-1,r=-1,s=0,a=t.aoData.length;sn&&(n=i.length,r=s);return r}function Xt(t){return null===t?"0px":"number"==typeof t?t<0?"0px":t+"px":t.match(/\d$/)?t+"px":t}function Zt(t){var e,i,n,r,s,a,o,l=[],h=t.aoColumns,u=t.aaSortingFixed,c=$.isPlainObject(u),d=[],p=function(t){t.length&&!$.isArray(t[0])?d.push(t):$.merge(d,t)};for($.isArray(u)&&p(u),c&&u.pre&&p(u.pre),p(t.aaSorting),c&&u.post&&p(u.post),e=0;e/g,""),u=o.nTh;u.removeAttribute("aria-sort"),e=o.bSortable?h+("asc"===(0=l.length?[0,e[1]]:e)})),t.search!==W&&$.extend(r.oPreviousSearch,Mt(t.search)),t.columns)for(a=0,o=t.columns.length;at?new b(e[t],this[t]):null},filter:function(t){var e=[];if(me.filter)e=me.filter.call(this,t,this);else for(var i=0,n=this.length;i").addClass(e);$("td",r).addClass(e).html(t)[0].colSpan=F(s),a.push(r[0])}})(t,e),i._details&&i._details.detach(),i._details=$(a),i._detailsShow&&i._details.insertAfter(i.nTr)),this)}),e([ke+".show()",De+".show()"],function(t){return Se(this,!0),this}),e([ke+".hide()",De+".hide()"],function(){return Se(this,!1),this}),e([ke+".remove()",De+".remove()"],function(){return _e(this),this}),e(ke+".isShown()",function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1});var Te=/^([^:]+):(name|visIdx|visible)$/,Me=function(t,e,i,n,r){for(var s=[],a=0,o=r.length;a").appendTo(t);v(a,r)}else{switch(c=null,d="",r){case"ellipsis":t.append('');break;case"first":c=f.sFirst,d=r+(0",{class:p.sPageButton+" "+d,"aria-controls":o.sTableId,"aria-label":g[r],"data-dt-idx":m,tabindex:o.iTabIndex,id:0===l&&"string"==typeof r?o.sTableId+"_"+r:null}).html(c).appendTo(t),{action:r},s),m++)}};try{i=$(t).find(y.activeElement).data("dt-idx")}catch(t){}v($(t).empty(),e),i!==W&&$(t).find("[data-dt-idx="+i+"]").focus()}}}),$.extend(T.ext.type.detect,[function(t,e){var i=e.oLanguage.sDecimal;return u(t,i)?"num"+i:null},function(t,e){if(t&&!(t instanceof Date)&&!s.test(t))return null;var i=Date.parse(t);return null!==i&&!isNaN(i)||l(t)?"date":null},function(t,e){var i=e.oLanguage.sDecimal;return u(t,i,!0)?"num-fmt"+i:null},function(t,e){var i=e.oLanguage.sDecimal;return c(t,i)?"html-num"+i:null},function(t,e){var i=e.oLanguage.sDecimal;return c(t,i,!0)?"html-num-fmt"+i:null},function(t,e){return l(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),$.extend(T.ext.type.search,{html:function(t){return l(t)?t:"string"==typeof t?t.replace(n," ").replace(r,""):""},string:function(t){return l(t)?t:"string"==typeof t?t.replace(n," "):t}});var Pe=function(t,e,i,n){return 0===t||t&&"-"!==t?(e&&(t=h(t,e)),t.replace&&(i&&(t=t.replace(i,"")),n&&(t=t.replace(n,""))),1*t):-1/0};function Le(i){$.each({num:function(t){return Pe(t,i)},"num-fmt":function(t){return Pe(t,i,o)},"html-num":function(t){return Pe(t,i,r)},"html-num-fmt":function(t){return Pe(t,i,r,o)}},function(t,e){f.type.order[t+i+"-pre"]=e,t.match(/^html\-/)&&(f.type.search[t+i]=f.type.search.html)})}$.extend(f.type.order,{"date-pre":function(t){var e=Date.parse(t);return isNaN(e)?-1/0:e},"html-pre":function(t){return l(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return l(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return t").addClass(l.sSortJUIWrapper).append(a.contents()).append($("").addClass(l.sSortIcon+" "+o.sSortingClassJUI)).appendTo(a),$(s.nTable).on("order.dt.DT",function(t,e,i,n){if(s===e){var r=o.idx;a.removeClass(l.sSortAsc+" "+l.sSortDesc).addClass("asc"==n[r]?l.sSortAsc:"desc"==n[r]?l.sSortDesc:o.sSortingClass),a.find("span."+l.sSortIcon).removeClass(l.sSortJUIAsc+" "+l.sSortJUIDesc+" "+l.sSortJUI+" "+l.sSortJUIAscAllowed+" "+l.sSortJUIDescAllowed).addClass("asc"==n[r]?l.sSortJUIAsc:"desc"==n[r]?l.sSortJUIDesc:o.sSortingClassJUI)}})}}});var Oe=function(t){return"string"==typeof t?t.replace(//g,">").replace(/"/g,"""):t};function Re(e){return function(){var t=[se(this[T.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return T.ext.internal[e].apply(this,t)}}return T.render={number:function(s,a,o,l,h){return{display:function(t){if("number"!=typeof t&&"string"!=typeof t)return t;var e=t<0?"-":"",i=parseFloat(t);if(isNaN(i))return Oe(t);i=i.toFixed(o),t=Math.abs(i);var n=parseInt(t,10),r=o?a+(t-n).toFixed(o).substring(2):"";return e+(l||"")+n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,s)+r+(h||"")}}},text:function(){return{display:Oe,filter:Oe}}},$.extend(T.ext.internal,{_fnExternApiFunc:Re,_fnBuildAjax:dt,_fnAjaxUpdate:pt,_fnAjaxParameters:ft,_fnAjaxUpdateDraw:gt,_fnAjaxDataSrc:mt,_fnAddColumn:R,_fnColumnOptions:I,_fnAdjustColumnSizing:Y,_fnVisibleToColumnIndex:q,_fnColumnIndexToVisible:C,_fnVisbleColumns:F,_fnGetColumns:j,_fnColumnTypes:k,_fnApplyColumnDefs:N,_fnHungarianMap:v,_fnCamelToHungarian:A,_fnLanguageCompat:E,_fnBrowserDetect:O,_fnAddData:H,_fnAddTr:z,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==W?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(t,e,i){return $.inArray(i,t.aoData[e].anCells)},_fnGetCellData:D,_fnSetCellData:B,_fnSplitObjNotation:X,_fnGetObjectDataFn:Z,_fnSetObjectDataFn:Q,_fnGetDataMaster:J,_fnClearTable:K,_fnDeleteIndex:tt,_fnInvalidate:et,_fnGetRowElements:it,_fnCreateTr:nt,_fnBuildHead:st,_fnDrawHead:at,_fnDraw:ot,_fnReDraw:lt,_fnAddOptionsHtml:ht,_fnDetectHeader:ut,_fnGetUniqueThs:ct,_fnFeatureHtmlFilter:vt,_fnFilterComplete:yt,_fnFilterCustom:bt,_fnFilterColumn:xt,_fnFilter:wt,_fnFilterCreateSearch:_t,_fnEscapeRegex:St,_fnFilterData:Dt,_fnFeatureHtmlInfo:At,_fnUpdateInfo:Et,_fnInfoMacros:Pt,_fnInitialise:Lt,_fnInitComplete:Ot,_fnLengthChange:Rt,_fnFeatureHtmlLength:It,_fnFeatureHtmlPaginate:Ft,_fnPageChange:jt,_fnFeatureHtmlProcessing:Nt,_fnProcessingDisplay:Ht,_fnFeatureHtmlTable:zt,_fnScrollDraw:Bt,_fnApplyToChildren:$t,_fnCalculateColumnWidths:Ut,_fnThrottle:Yt,_fnConvertToWidth:qt,_fnGetWidestNode:Vt,_fnGetMaxLenString:Gt,_fnStringToCss:Xt,_fnSortFlatten:Zt,_fnSort:Qt,_fnSortAria:Jt,_fnSortListener:Kt,_fnSortAttachListener:te,_fnSortingClasses:ee,_fnSortData:ie,_fnSaveState:ne,_fnLoadState:re,_fnSettingsFromNode:se,_fnLog:ae,_fnMap:oe,_fnBindAction:he,_fnCallbackReg:ue,_fnCallbackFire:ce,_fnLengthOverflow:de,_fnRenderer:pe,_fnDataSource:fe,_fnRowAttributes:rt,_fnExtend:le,_fnCalculateEnd:function(){}}),(($.fn.dataTable=T).$=$).fn.dataTableSettings=T.settings,$.fn.dataTableExt=T.ext,$.fn.DataTable=function(t){return $(this).dataTable(t).api()},$.each(T,function(t,e){$.fn.DataTable[t]=e}),$.fn.dataTable}),function(i){"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return i(t,window,document)}):"object"==typeof exports?module.exports=function(t,e){return t||(t=window),e&&e.fn.dataTable||(e=require("datatables.net")(t,e).$),i(e,t,t.document)}:i(jQuery,window,document)}(function(b,t,n,r){"use strict";var s=b.fn.dataTable;return b.extend(!0,s.defaults,{dom:"<'row'<'col-sm-12 col-md-6'l><'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",renderer:"bootstrap"}),b.extend(s.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"}),s.ext.renderer.pageButton.bootstrap=function(o,t,l,e,h,u){var c,d,i,p=new s.Api(o),f=o.oClasses,g=o.oLanguage.oPaginate,m=o.oLanguage.oAria.paginate||{},v=0,y=function(t,e){var i,n,r,s,a=function(t){t.preventDefault(),b(t.currentTarget).hasClass("disabled")||p.page()==t.data.action||p.page(t.data.action).draw("page")};for(i=0,n=e.length;i",{class:f.sPageButton+" "+d,id:0===l&&"string"==typeof s?o.sTableId+"_"+s:null}).append(b("",{href:"#","aria-controls":o.sTableId,"aria-label":m[s],"data-dt-idx":v,tabindex:o.iTabIndex,class:"page-link"}).html(c)).appendTo(t),o.oApi._fnBindAction(r,{action:s},a),v++)}};try{i=b(t).find(n.activeElement).data("dt-idx")}catch(t){}y(b(t).empty().html('
        ').children("ul"),e),i!==r&&b(t).find("[data-dt-idx="+i+"]").focus()},s}),"function"!=typeof Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),function(n,e,t,i){"use strict";var r={_positionClasses:["bottom-left","bottom-right","top-right","top-left","bottom-center","top-center","mid-center"],_defaultIcons:["success","error","info","warning"],init:function(t,e){this.prepareOptions(t,n.toast.options),this.process()},prepareOptions:function(t,e){var i={};"string"==typeof t||t instanceof Array?i.text=t:i=t,this.options=n.extend({},e,i)},process:function(){this.setup(),this.addToDom(),this.position(),this.bindToast(),this.animate()},setup:function(){var t="";if(this._toastEl=this._toastEl||n("
        ",{class:"jq-toast-single"}),t+='',this.options.allowToastClose&&(t+='×'),this.options.text instanceof Array){this.options.heading&&(t+='

        '+this.options.heading+"

        "),t+='
          ';for(var e=0;e'+this.options.text[e]+"";t+="
        "}else this.options.heading&&(t+='

        '+this.options.heading+"

        "),t+=this.options.text;this._toastEl.html(t),!1!==this.options.bgColor&&this._toastEl.css("background-color",this.options.bgColor),!1!==this.options.textColor&&this._toastEl.css("color",this.options.textColor),this.options.textAlign&&this._toastEl.css("text-align",this.options.textAlign),!1!==this.options.icon&&(this._toastEl.addClass("jq-has-icon"),-1!==n.inArray(this.options.icon,this._defaultIcons)&&this._toastEl.addClass("jq-icon-"+this.options.icon)),!1!==this.options.class&&this._toastEl.addClass(this.options.class)},position:function(){"string"==typeof this.options.position&&-1!==n.inArray(this.options.position,this._positionClasses)?"bottom-center"===this.options.position?this._container.css({left:n(e).outerWidth()/2-this._container.outerWidth()/2,bottom:20}):"top-center"===this.options.position?this._container.css({left:n(e).outerWidth()/2-this._container.outerWidth()/2,top:20}):"mid-center"===this.options.position?this._container.css({left:n(e).outerWidth()/2-this._container.outerWidth()/2,top:n(e).outerHeight()/2-this._container.outerHeight()/2}):this._container.addClass(this.options.position):"object"==typeof this.options.position?this._container.css({top:this.options.position.top?this.options.position.top:"auto",bottom:this.options.position.bottom?this.options.position.bottom:"auto",left:this.options.position.left?this.options.position.left:"auto",right:this.options.position.right?this.options.position.right:"auto"}):this._container.addClass("bottom-left")},bindToast:function(){var e=this;this._toastEl.on("afterShown",function(){e.processLoader()}),this._toastEl.find(".close-jq-toast-single").on("click",function(t){t.preventDefault(),"fade"===e.options.showHideTransition?(e._toastEl.trigger("beforeHide"),e._toastEl.fadeOut(function(){e._toastEl.trigger("afterHidden")})):"slide"===e.options.showHideTransition?(e._toastEl.trigger("beforeHide"),e._toastEl.slideUp(function(){e._toastEl.trigger("afterHidden")})):(e._toastEl.trigger("beforeHide"),e._toastEl.hide(function(){e._toastEl.trigger("afterHidden")}))}),"function"==typeof this.options.beforeShow&&this._toastEl.on("beforeShow",function(){e.options.beforeShow()}),"function"==typeof this.options.afterShown&&this._toastEl.on("afterShown",function(){e.options.afterShown()}),"function"==typeof this.options.beforeHide&&this._toastEl.on("beforeHide",function(){e.options.beforeHide()}),"function"==typeof this.options.afterHidden&&this._toastEl.on("afterHidden",function(){e.options.afterHidden()})},addToDom:function(){var t=n(".jq-toast-wrap");if(0===t.length?(t=n("
        ",{class:"jq-toast-wrap"}),n("body").append(t)):(!this.options.stack||isNaN(parseInt(this.options.stack,10)))&&t.empty(),t.find(".jq-toast-single:hidden").remove(),t.append(this._toastEl),this.options.stack&&!isNaN(parseInt(this.options.stack),10)){var e=t.find(".jq-toast-single").length-this.options.stack;0=e[i];)i+=1;return i}function s(t,e,i){var n;if("number"==typeof e&&(e=[e]),!Array.isArray(e))throw new Error("noUiSlider ("+V+"): 'range' contains invalid value.");if(!r(n="min"===t?0:"max"===t?100:parseFloat(t))||!r(e[0]))throw new Error("noUiSlider ("+V+"): 'range' value isn't numeric.");i.xPct.push(n),i.xVal.push(e[0]),n?i.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(i.xSteps[0]=e[1]),i.xHighestCompleteStep.push(0)}function a(t,e,i){if(!e)return!0;i.xSteps[t]=c([i.xVal[t],i.xVal[t+1]],e)/u(i.xPct[t],i.xPct[t+1]);var n=(i.xVal[t+1]-i.xVal[t])/i.xNumSteps[t],r=Math.ceil(Number(n.toFixed(3))-1),s=i.xVal[t]+i.xNumSteps[t]*r;i.xHighestCompleteStep[t]=s}function i(t,e,i){var n;this.xPct=[],this.xVal=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var r=[];for(n in t)t.hasOwnProperty(n)&&r.push([t[n],n]);for(r.length&&"object"==typeof r[0][0]?r.sort(function(t,e){return t[0][0]-e[0][0]}):r.sort(function(t,e){return t[0]-e[0]}),n=0;n=t.slice(-1)[0])return 100;var n,r,s=d(i,t),a=t[s-1],o=t[s],l=e[s-1],h=e[s];return l+(r=i,c(n=[a,o],n[0]<0?r+Math.abs(n[0]):r-n[0])/u(l,h))}(this.xVal,this.xPct,t)},i.prototype.fromStepping=function(t){return function(t,e,i){if(100<=i)return t.slice(-1)[0];var n,r=d(i,e),s=t[r-1],a=t[r],o=e[r-1];return n=[s,a],(i-o)*u(o,e[r])*(n[1]-n[0])/100+n[0]}(this.xVal,this.xPct,t)},i.prototype.getStep=function(t){return function(t,e,i,n){if(100===n)return n;var r,s,a=d(n,t),o=t[a-1],l=t[a];return i?(l-o)/2= 2) required for mode 'count'.");var n=e-1,r=100/n;for(e=[];n--;)e[n]=n*r;e.push(100),t="positions"}return"positions"===t?e.map(function(t){return S.fromStepping(i?S.getStep(t):t)}):"values"===t?i?e.map(function(t){return S.fromStepping(S.getStep(S.toStepping(t)))}):e:void 0}(n,t.values||!1,t.stepped||!1),o=(g=r,m=n,v=a,y={},e=S.xVal[0],i=S.xVal[S.xVal.length-1],x=b=!1,w=0,(v=v.slice().sort(function(t,e){return t-e}).filter(function(t){return!this[t]&&(this[t]=!0)},{}))[0]!==e&&(v.unshift(e),b=!0),v[v.length-1]!==i&&(v.push(i),x=!0),v.forEach(function(t,e){var i,n,r,s,a,o,l,h,u,c,d=t,p=v[e+1],f="steps"===m;if(f&&(i=S.xNumSteps[e]),i||(i=p-d),!1!==d&&void 0!==p)for(i=Math.max(i,1e-7),n=d;n<=p;n=(n+i).toFixed(7)/1){for(h=(a=(s=S.toStepping(n))-w)/g,c=a/(u=Math.round(h)),r=1;r<=u;r+=1)y[(o=w+r*c).toFixed(5)]=[S.fromStepping(o),0];l=-1i.stepAfter.startValue&&(r=i.stepAfter.startValue-n),s=n>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&n-i.stepBefore.highestStep,100===t?r=null:0===t&&(s=null);var a=S.countStepDecimals();return null!==r&&!1!==r&&(r=Number(r.toFixed(a))),null!==s&&!1!==s&&(s=Number(s.toFixed(a))),[s,r]})},on:i,off:function(t){var n=t&&t.split(".")[0],r=n&&t.substring(n.length);Object.keys(b).forEach(function(t){var e=t.split(".")[0],i=t.substring(e.length);n&&n!==e||r&&r!==i||delete b[t]})},get:q,set:Y,setHandle:function(t,e,i){var n=[];if(!(0<=(t=Number(t))&&t● {{prefix}}{{y}}{{suffix}}')},bar:{barColor:"#3366cc",negBarColor:"#f44",stackedBarColor:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],zeroColor:W,nullColor:W,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMax:W,chartRangeMin:W,chartRangeClip:!1,colorMap:W,tooltipFormat:new v(' {{prefix}}{{value}}{{suffix}}')},tristate:{barWidth:4,barSpacing:1,posBarColor:"#6f6",negBarColor:"#f44",zeroBarColor:"#999",colorMap:{},tooltipFormat:new v(' {{value:map}}'),tooltipValueLookups:{map:{"-1":"Loss",0:"Draw",1:"Win"}}},discrete:{lineHeight:"auto",thresholdColor:W,thresholdValue:0,chartRangeMax:W,chartRangeMin:W,chartRangeClip:!1,tooltipFormat:new v("{{prefix}}{{value}}{{suffix}}")},bullet:{targetColor:"#f33",targetWidth:3,performanceColor:"#33f",rangeColors:["#d3dafe","#a8b6ff","#7f94ff"],base:W,tooltipFormat:new v("{{fieldkey:fields}} - {{value}}"),tooltipValueLookups:{fields:{r:"Range",p:"Performance",t:"Target"}}},pie:{offset:0,sliceColors:["#3366cc","#dc3912","#ff9900","#109618","#66aa00","#dd4477","#0099c6","#990099"],borderWidth:0,borderColor:"#000",tooltipFormat:new v(' {{value}} ({{percent.1}}%)')},box:{raw:!1,boxLineColor:"#000",boxFillColor:"#cdf",whiskerColor:"#000",outlierLineColor:"#333",outlierFillColor:"#fff",medianColor:"#f00",showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:W,targetColor:"#4a2",chartRangeMax:W,chartRangeMin:W,tooltipFormat:new v("{{field:fields}}: {{value}}"),tooltipFormatFieldlistKey:"field",tooltipValueLookups:{fields:{lq:"Lower Quartile",med:"Median",uq:"Upper Quartile",lo:"Left Outlier",ro:"Right Outlier",lw:"Left Whisker",rw:"Right Whisker"}}}}},e=function(){var t,e;return t=function(){this.init.apply(this,arguments)},1=t)return i[2];return W}}),I.range_map=function(t){return new z(t)},d=e({init:function(t,e){var i=I(t);this.$el=i,this.options=e,this.currentPageX=0,this.currentPageY=0,this.el=t,this.splist=[],this.tooltip=null,this.over=!1,this.displayTooltips=!e.get("disableTooltips"),this.highlightEnabled=!e.get("disableHighlight")},registerSparkline:function(t){this.splist.push(t),this.over&&this.updateDisplay()},registerCanvas:function(t){var e=I(t.canvas);this.canvas=t,(this.$canvas=e).mouseenter(I.proxy(this.mouseenter,this)),e.mouseleave(I.proxy(this.mouseleave,this)),e.click(I.proxy(this.mouseclick,this))},reset:function(t){this.splist=[],this.tooltip&&t&&(this.tooltip.remove(),this.tooltip=W)},mouseclick:function(t){var e=I.Event("sparklineClick");e.originalEvent=t,e.sparklines=this.splist,this.$el.trigger(e)},mouseenter:function(t){I(C.body).unbind("mousemove.jqs"),I(C.body).bind("mousemove.jqs",I.proxy(this.mousemove,this)),this.over=!0,this.currentPageX=t.pageX,this.currentPageY=t.pageY,this.currentEl=t.target,!this.tooltip&&this.displayTooltips&&(this.tooltip=new n(this.options),this.tooltip.updatePosition(t.pageX,t.pageY)),this.updateDisplay()},mouseleave:function(){I(C.body).unbind("mousemove.jqs");var t,e=this.splist,i=e.length,n=!1;for(this.over=!1,this.currentEl=null,this.tooltip&&(this.tooltip.remove(),this.tooltip=null),t=0;t
      '),this.$input=v('').appendTo(this.$container),this.$element.before(this.$container),this.build(e),this.isInit=!1}function s(t,e){if("function"!=typeof t[e]){var i=t[e];t[e]=function(t){return t[i]}}}function o(t,e){if("function"!=typeof t[e]){var i=t[e];t[e]=function(){return i}}}function y(t){return t?e.text(t).html():""}function h(t){var e=0;if(document.selection){t.focus();var i=document.selection.createRange();i.moveStart("character",-t.value.length),e=i.text.length}else(t.selectionStart||"0"==t.selectionStart)&&(e=t.selectionStart);return e}var u={tagClass:function(t){return"label label-info"},itemValue:function(t){return t?t.toString():t},itemText:function(t){return this.itemValue(t)},itemTitle:function(t){return null},freeInput:!0,addOnBlur:!0,maxTags:void 0,maxChars:void 0,confirmKeys:[13,44],delimiter:",",delimiterRegex:null,cancelConfirmKeysOnEmpty:!1,onTagExists:function(t,e){e.hide().fadeIn()},trimValue:!1,allowDuplicates:!1};a.prototype={constructor:a,add:function(t,e,i){var n=this;if(!(n.options.maxTags&&n.itemsArray.length>=n.options.maxTags)&&(!1===t||t)){if("string"==typeof t&&n.options.trimValue&&(t=v.trim(t)),"object"==typeof t&&!n.objectItems)throw"Can't add objects when itemValue option is not set";if(!t.toString().match(/^\s*$/)){if(n.isSelect&&!n.multiple&&0n.options.maxInputLength)){var d=v.Event("beforeItemAdd",{item:t,cancel:!1,options:i});if(n.$element.trigger(d),!d.cancel){n.itemsArray.push(t);var p=v(''+y(l)+'');p.data("item",t),n.findInputWrapper().before(p),p.after(" ");var f=v('option[value="'+encodeURIComponent(o)+'"]',n.$element).length||v('option[value="'+y(o)+'"]',n.$element).length;if(n.isSelect&&!f){var g=v("");g.data("item",t),g.attr("value",o),n.$element.append(g)}e||n.pushVal(),(n.options.maxTags===n.itemsArray.length||n.items().toString().length===n.options.maxInputLength)&&n.$container.addClass("bootstrap-tagsinput-max"),v(".typeahead, .twitter-typeahead",n.$container).length&&n.$input.typeahead("val",""),this.isInit?n.$element.trigger(v.Event("itemAddedOnInit",{item:t,options:i})):n.$element.trigger(v.Event("itemAdded",{item:t,options:i}))}}}else if(n.options.onTagExists){var m=v(".tag",n.$container).filter(function(){return v(this).data("item")===c});n.options.onTagExists(t,m)}}}},remove:function(e,t,i){var n=this;if(n.objectItems&&(e=(e="object"==typeof e?v.grep(n.itemsArray,function(t){return n.options.itemValue(t)==n.options.itemValue(e)}):v.grep(n.itemsArray,function(t){return n.options.itemValue(t)==e}))[e.length-1]),e){var r=v.Event("beforeItemRemove",{item:e,cancel:!1,options:i});if(n.$element.trigger(r),r.cancel)return;v(".tag",n.$container).filter(function(){return v(this).data("item")===e}).remove(),v("option",n.$element).filter(function(){return v(this).data("item")===e}).remove(),-1!==v.inArray(e,n.itemsArray)&&n.itemsArray.splice(v.inArray(e,n.itemsArray),1)}t||n.pushVal(),n.options.maxTags>n.itemsArray.length&&n.$container.removeClass("bootstrap-tagsinput-max"),n.$element.trigger(v.Event("itemRemoved",{item:e,options:i}))},removeAll:function(){for(v(".tag",this.$container).remove(),v("option",this.$element).remove();0$1")}}))}if(l.options.typeaheadjs){var i,e=null,r=l.options.typeaheadjs;i=v.isArray(r)?(e=r[0],r[1]):r,l.$input.typeahead(e,i).on("typeahead:selected",v.proxy(function(t,e){i.valueKey?l.add(e[i.valueKey]):l.add(e),l.$input.typeahead("val","")},l))}l.$container.on("click",v.proxy(function(t){l.$element.attr("disabled")||l.$input.removeAttr("disabled"),l.$input.focus()},l)),l.options.addOnBlur&&l.options.freeInput&&l.$input.on("focusout",v.proxy(function(t){0===v(".typeahead, .twitter-typeahead",l.$container).length&&(l.add(l.$input.val()),l.$input.val(""))},l)),l.$container.on("keydown","input",v.proxy(function(t){var e=v(t.target),i=l.findInputWrapper();if(l.$element.attr("disabled"))l.$input.attr("disabled","disabled");else{switch(t.which){case 8:if(0===h(e[0])){var n=i.prev();n.length&&l.remove(n.data("item"))}break;case 46:if(0===h(e[0])){var r=i.next();r.length&&l.remove(r.data("item"))}break;case 37:var s=i.prev();0===e.val().length&&s[0]&&(s.before(i),e.focus());break;case 39:var a=i.next();0===e.val().length&&a[0]&&(a.after(i),e.focus())}var o=e.val().length;Math.ceil(o/5),e.attr("size",Math.max(this.inputSize,e.val().length))}},l)),l.$container.on("keypress","input",v.proxy(function(t){var e=v(t.target);if(l.$element.attr("disabled"))l.$input.attr("disabled","disabled");else{var s,i,a,n=e.val(),r=l.options.maxChars&&n.length>=l.options.maxChars;l.options.freeInput&&(s=t,i=l.options.confirmKeys,a=!1,v.each(i,function(t,e){if("number"==typeof e&&s.which===e)return!(a=!0);if(s.which===e.which){var i=!e.hasOwnProperty("altKey")||s.altKey===e.altKey,n=!e.hasOwnProperty("shiftKey")||s.shiftKey===e.shiftKey,r=!e.hasOwnProperty("ctrlKey")||s.ctrlKey===e.ctrlKey;if(i&&n&&r)return!(a=!0)}}),a||r)&&(0!==n.length&&(l.add(r?n.substr(0,l.options.maxChars):n),e.val("")),!1===l.options.cancelConfirmKeysOnEmpty&&t.preventDefault());var o=e.val().length;Math.ceil(o/5),e.attr("size",Math.max(this.inputSize,e.val().length))}},l)),l.$container.on("click","[data-role=remove]",v.proxy(function(t){l.$element.attr("disabled")||l.remove(v(t.target).closest(".tag").data("item"))},l)),l.options.itemValue===u.itemValue&&("INPUT"===l.$element[0].tagName?l.add(l.$element.val()):v("option",l.$element).each(function(){l.add(v(this).attr("value"),!0)}))},destroy:function(){this.$container.off("keypress","input"),this.$container.off("click","[role=remove]"),this.$container.remove(),this.$element.removeData("tagsinput"),this.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var t=this.$input[0],e=this.$container[0];t&&t.parentNode!==e;)t=t.parentNode;return v(t)}},v.fn.tagsinput=function(i,n,r){var s=[];return this.each(function(){var t=v(this).data("tagsinput");if(t)if(i||n){if(void 0!==t[i]){if(3===t[i].length&&void 0!==r)var e=t[i](n,null,r);else e=t[i](n);void 0!==e&&s.push(e)}}else s.push(t);else t=new a(this,i),v(this).data("tagsinput",t),s.push(t),"SELECT"===this.tagName&&v("option",v(this)).attr("selected","selected"),v(this).val(v(this).val())}),"string"==typeof i?1");v(function(){v("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput()})}(window.jQuery);var $jscomp={scope:{},findInternal:function(t,e,i){t instanceof String&&(t=String(t));for(var n=t.length,r=0;r a",this.nav),this.container=this.main.children("div"),this.pages=this.container.children("div"),this.current_index=null,this.options.toolbarSettings.toolbarButtonPosition="right"===this.options.toolbarSettings.toolbarButtonPosition?"end":this.options.toolbarSettings.toolbarButtonPosition,this.options.toolbarSettings.toolbarButtonPosition="left"===this.options.toolbarSettings.toolbarButtonPosition?"start":this.options.toolbarSettings.toolbarButtonPosition,this.options.theme=null===this.options.theme||""===this.options.theme?"default":this.options.theme,this.init()}var i={selected:0,keyNavigation:!0,autoAdjustHeight:!0,cycleSteps:!1,backButtonSupport:!0,useURLhash:!0,showStepURLhash:!0,lang:{next:"Next",previous:"Previous"},toolbarSettings:{toolbarPosition:"bottom",toolbarButtonPosition:"end",showNextButton:!0,showPreviousButton:!0,toolbarExtraButtons:[]},anchorSettings:{anchorClickable:!0,enableAllAnchors:!1,markDoneStep:!0,markAllPreviousStepsAsDone:!0,removeDoneStepOnNavigateBack:!1,enableAnchorOnDoneStep:!0},contentURL:null,contentCache:!0,ajaxSettings:{},disabledSteps:[],errorSteps:[],hiddenSteps:[],theme:"default",transitionEffect:"none",transitionSpeed:"400"};l.extend(n.prototype,{init:function(){this._setElements(),this._setToolbar(),this._setEvents();var t=this.options.selected;if(this.options.useURLhash){var e=r.location.hash;if(e&&0").text(this.options.lang.next).addClass("btn btn-secondary sw-btn-next").attr("type","button"):null,n=!1!==this.options.toolbarSettings.showPreviousButton?l("").text(this.options.lang.previous).addClass("btn btn-secondary sw-btn-prev").attr("type","button"):null,r=l("
      ").addClass("btn-group mr-2 sw-btn-group").attr("role","group").append(n,i),s=null;switch(this.options.toolbarSettings.toolbarExtraButtons&&0
      ").addClass("btn-group mr-2 sw-btn-group-extra").attr("role","group"),l.each(this.options.toolbarSettings.toolbarExtraButtons,function(t,e){s.append(e.clone(!0))})),this.options.toolbarSettings.toolbarPosition){case"top":(t=l("
      ").addClass("btn-toolbar sw-toolbar sw-toolbar-top justify-content-"+this.options.toolbarSettings.toolbarButtonPosition)).append(r),"start"===this.options.toolbarSettings.toolbarButtonPosition?t.prepend(s):t.append(s),this.container.before(t);break;case"bottom":(e=l("
      ").addClass("btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-"+this.options.toolbarSettings.toolbarButtonPosition)).append(r),"start"===this.options.toolbarSettings.toolbarButtonPosition?e.prepend(s):e.append(s),this.container.after(e);break;case"both":(t=l("
      ").addClass("btn-toolbar sw-toolbar sw-toolbar-top justify-content-"+this.options.toolbarSettings.toolbarButtonPosition)).append(r),"start"===this.options.toolbarSettings.toolbarButtonPosition?t.prepend(s):t.append(s),this.container.before(t),(e=l("
      ").addClass("btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-"+this.options.toolbarSettings.toolbarButtonPosition)).append(r.clone(!0)),null!==s&&("start"===this.options.toolbarSettings.toolbarButtonPosition?e.prepend(s.clone(!0)):e.append(s.clone(!0))),this.container.after(e);break;default:(e=l("
      ").addClass("btn-toolbar sw-toolbar sw-toolbar-bottom justify-content-"+this.options.toolbarSettings.toolbarButtonPosition)).append(r),this.options.toolbarSettings.toolbarButtonPosition,e.append(s),this.container.after(e)}return!0},_setEvents:function(){var i=this;return l(this.steps).on("click",function(t){if(t.preventDefault(),!1===i.options.anchorSettings.anchorClickable)return!0;var e=i.steps.index(this);if(!1===i.options.anchorSettings.enableAnchorOnDoneStep&&i.steps.eq(e).parent("li").hasClass("done"))return!0;e!==i.current_index&&(!1!==i.options.anchorSettings.enableAllAnchors&&!1!==i.options.anchorSettings.anchorClickable?i._showStep(e):i.steps.eq(e).parent("li").hasClass("done")&&i._showStep(e))}),l(".sw-btn-next",this.main).on("click",function(t){t.preventDefault(),i._showNext()}),l(".sw-btn-prev",this.main).on("click",function(t){t.preventDefault(),i._showPrevious()}),this.options.keyNavigation&&l(t).keyup(function(t){i._keyNav(t)}),this.options.backButtonSupport&&l(r).on("hashchange",function(t){if(!i.options.useURLhash)return!0;if(r.location.hash){var e=l("a[href*='"+r.location.hash+"']",i.nav);e&&0")["prepend"==this.insertMode?"prependTo":"appendTo"](this.el)[0]);var t=this.canvas;if(t.width=this.size,t.height=this.size,this.ctx=t.getContext("2d"),1")[0];t.width=i.size,t.height=i.size,t.getContext("2d").drawImage(e,0,0,s,s),i.arcFill=i.ctx.createPattern(t,"no-repeat"),i.drawFrame(i.lastFrameValue)}var e,i=this,n=this.fill,r=this.ctx,s=this.size;if(!n)throw Error("The fill is not specified!");if("string"==typeof n&&(n={color:n}),n.color&&(this.arcFill=n.color),n.gradient){var a=n.gradient;if(1==a.length)this.arcFill=a[0];else if(1n.oldScroll?n.forward:n.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s];if(null!==a.triggerPoint){var o=n.oldScroll=a.triggerPoint;(o&&l||!o&&!l)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?m.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?m.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var n=0,r=t.length;n=s.oldScroll,u=!l&&!h,!g&&l&&h?(c.queueTrigger(s.backward),n[c.group.id]=c.group):!g&&u?(c.queueTrigger(s.forward),n[c.group.id]=c.group):g&&s.oldScroll>=c.triggerPoint&&(c.queueTrigger(s.forward),n[c.group.id]=c.group)}}return m.requestAnimationFrame(function(){for(var t in n)n[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in n)n[t].refresh()},e.findByElement=function(t){return n[t.waypointContextKey]},window.onload=function(){t&&t(),e.refreshAll()},m.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}).call(window,t)},m.Context=e}(),function(){"use strict";function a(t,e){return t.triggerPoint-e.triggerPoint}function o(t,e){return e.triggerPoint-t.triggerPoint}function e(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}var i={vertical:{},horizontal:{}},n=window.Waypoint;e.prototype.add=function(t){this.waypoints.push(t)},e.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},e.prototype.flushTriggers=function(){for(var t in this.triggerQueues){var e=this.triggerQueues[t],i="up"===t||"left"===t;e.sort(i?o:a);for(var n=0,r=e.length;n