123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423 |
- !function(e){define("underscore",[],function(){return function(){
- // Underscore may be freely distributed under the MIT license.
- return function(){var e=this,t=e._,n={},i=Array.prototype,r=Object.prototype,o=Function.prototype,s=i.push,a=i.slice,u=i.concat,l=r.toString,c=r.hasOwnProperty,h=i.forEach,f=i.map,p=i.reduce,d=i.reduceRight,g=i.filter,v=i.every,m=i.some,y=i.indexOf,b=i.lastIndexOf,_=Array.isArray,w=Object.keys,x=o.bind,k=function(e){return e instanceof k?e:this instanceof k?void(this._wrapped=e):new k(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=k),exports._=k):e._=k,k.VERSION="1.5.2";var C=k.each=k.forEach=function(e,t,i){if(null!=e)if(h&&e.forEach===h)e.forEach(t,i);else if(e.length===+e.length){for(var r=0,o=e.length;o>r;r++)if(t.call(i,e[r],r,e)===n)return}else for(var s=k.keys(e),r=0,o=s.length;o>r;r++)if(t.call(i,e[s[r]],s[r],e)===n)return};k.map=k.collect=function(e,t,n){var i=[];return null==e?i:f&&e.map===f?e.map(t,n):(C(e,function(e,r,o){i.push(t.call(n,e,r,o))}),i)};var T="Reduce of empty array with no initial value";k.reduce=k.foldl=k.inject=function(e,t,n,i){var r=arguments.length>2;if(null==e&&(e=[]),p&&e.reduce===p)return i&&(t=k.bind(t,i)),r?e.reduce(t,n):e.reduce(t);if(C(e,function(e,o,s){r?n=t.call(i,n,e,o,s):(n=e,r=!0)}),!r)throw new TypeError(T);return n},k.reduceRight=k.foldr=function(e,t,n,i){var r=arguments.length>2;if(null==e&&(e=[]),d&&e.reduceRight===d)return i&&(t=k.bind(t,i)),r?e.reduceRight(t,n):e.reduceRight(t);var o=e.length;if(o!==+o){var s=k.keys(e);o=s.length}if(C(e,function(a,u,l){u=s?s[--o]:--o,r?n=t.call(i,n,e[u],u,l):(n=e[u],r=!0)}),!r)throw new TypeError(T);return n},k.find=k.detect=function(e,t,n){var i;return E(e,function(e,r,o){return t.call(n,e,r,o)?(i=e,!0):void 0}),i},k.filter=k.select=function(e,t,n){var i=[];return null==e?i:g&&e.filter===g?e.filter(t,n):(C(e,function(e,r,o){t.call(n,e,r,o)&&i.push(e)}),i)},k.reject=function(e,t,n){return k.filter(e,function(e,i,r){return!t.call(n,e,i,r)},n)},k.every=k.all=function(e,t,i){t||(t=k.identity);var r=!0;return null==e?r:v&&e.every===v?e.every(t,i):(C(e,function(e,o,s){return(r=r&&t.call(i,e,o,s))?void 0:n}),!!r)};var E=k.some=k.any=function(e,t,i){t||(t=k.identity);var r=!1;return null==e?r:m&&e.some===m?e.some(t,i):(C(e,function(e,o,s){return r||(r=t.call(i,e,o,s))?n:void 0}),!!r)};k.contains=k.include=function(e,t){return null==e?!1:y&&e.indexOf===y?-1!=e.indexOf(t):E(e,function(e){return e===t})},k.invoke=function(e,t){var n=a.call(arguments,2),i=k.isFunction(t);return k.map(e,function(e){return(i?t:e[t]).apply(e,n)})},k.pluck=function(e,t){return k.map(e,function(e){return e[t]})},k.where=function(e,t,n){return k.isEmpty(t)?n?void 0:[]:k[n?"find":"filter"](e,function(e){for(var n in t)if(t[n]!==e[n])return!1;return!0})},k.findWhere=function(e,t){return k.where(e,t,!0)},k.max=function(e,t,n){if(!t&&k.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);if(!t&&k.isEmpty(e))return-1/0;var i={computed:-1/0,value:-1/0};return C(e,function(e,r,o){var s=t?t.call(n,e,r,o):e;s>i.computed&&(i={value:e,computed:s})}),i.value},k.min=function(e,t,n){if(!t&&k.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.min.apply(Math,e);if(!t&&k.isEmpty(e))return 1/0;var i={computed:1/0,value:1/0};return C(e,function(e,r,o){var s=t?t.call(n,e,r,o):e;s<i.computed&&(i={value:e,computed:s})}),i.value},k.shuffle=function(e){var t,n=0,i=[];return C(e,function(e){t=k.random(n++),i[n-1]=i[t],i[t]=e}),i},k.sample=function(e,t,n){return arguments.length<2||n?e[k.random(e.length-1)]:k.shuffle(e).slice(0,Math.max(0,t))};var S=function(e){return k.isFunction(e)?e:function(t){return t[e]}};k.sortBy=function(e,t,n){var i=S(t);return k.pluck(k.map(e,function(e,t,r){return{value:e,index:t,criteria:i.call(n,e,t,r)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return e.index-t.index}),"value")};var D=function(e){return function(t,n,i){var r={},o=null==n?k.identity:S(n);return C(t,function(n,s){var a=o.call(i,n,s,t);e(r,a,n)}),r}};k.groupBy=D(function(e,t,n){(k.has(e,t)?e[t]:e[t]=[]).push(n)}),k.indexBy=D(function(e,t,n){e[t]=n}),k.countBy=D(function(e,t){k.has(e,t)?e[t]++:e[t]=1}),k.sortedIndex=function(e,t,n,i){n=null==n?k.identity:S(n);for(var r=n.call(i,t),o=0,s=e.length;s>o;){var a=o+s>>>1;n.call(i,e[a])<r?o=a+1:s=a}return o},k.toArray=function(e){return e?k.isArray(e)?a.call(e):e.length===+e.length?k.map(e,k.identity):k.values(e):[]},k.size=function(e){return null==e?0:e.length===+e.length?e.length:k.keys(e).length},k.first=k.head=k.take=function(e,t,n){return null==e?void 0:null==t||n?e[0]:a.call(e,0,t)},k.initial=function(e,t,n){return a.call(e,0,e.length-(null==t||n?1:t))},k.last=function(e,t,n){return null==e?void 0:null==t||n?e[e.length-1]:a.call(e,Math.max(e.length-t,0))},k.rest=k.tail=k.drop=function(e,t,n){return a.call(e,null==t||n?1:t)},k.compact=function(e){return k.filter(e,k.identity)};var O=function(e,t,n){return t&&k.every(e,k.isArray)?u.apply(n,e):(C(e,function(e){k.isArray(e)||k.isArguments(e)?t?s.apply(n,e):O(e,t,n):n.push(e)}),n)};k.flatten=function(e,t){return O(e,t,[])},k.without=function(e){return k.difference(e,a.call(arguments,1))},k.uniq=k.unique=function(e,t,n,i){k.isFunction(t)&&(i=n,n=t,t=!1);var r=n?k.map(e,n,i):e,o=[],s=[];return C(r,function(n,i){(t?i&&s[s.length-1]===n:k.contains(s,n))||(s.push(n),o.push(e[i]))}),o},k.union=function(){return k.uniq(k.flatten(arguments,!0))},k.intersection=function(e){var t=a.call(arguments,1);return k.filter(k.uniq(e),function(e){return k.every(t,function(t){return k.indexOf(t,e)>=0})})},k.difference=function(e){var t=u.apply(i,a.call(arguments,1));return k.filter(e,function(e){return!k.contains(t,e)})},k.zip=function(){for(var e=k.max(k.pluck(arguments,"length").concat(0)),t=new Array(e),n=0;e>n;n++)t[n]=k.pluck(arguments,""+n);return t},k.object=function(e,t){if(null==e)return{};for(var n={},i=0,r=e.length;r>i;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},k.indexOf=function(e,t,n){if(null==e)return-1;var i=0,r=e.length;if(n){if("number"!=typeof n)return i=k.sortedIndex(e,t),e[i]===t?i:-1;i=0>n?Math.max(0,r+n):n}if(y&&e.indexOf===y)return e.indexOf(t,n);for(;r>i;i++)if(e[i]===t)return i;return-1},k.lastIndexOf=function(e,t,n){if(null==e)return-1;var i=null!=n;if(b&&e.lastIndexOf===b)return i?e.lastIndexOf(t,n):e.lastIndexOf(t);for(var r=i?n:e.length;r--;)if(e[r]===t)return r;return-1},k.range=function(e,t,n){arguments.length<=1&&(t=e||0,e=0),n=arguments[2]||1;for(var i=Math.max(Math.ceil((t-e)/n),0),r=0,o=new Array(i);i>r;)o[r++]=e,e+=n;return o};var P=function(){};k.bind=function(e,t){var n,i;if(x&&e.bind===x)return x.apply(e,a.call(arguments,1));if(!k.isFunction(e))throw new TypeError;return n=a.call(arguments,2),i=function(){if(!(this instanceof i))return e.apply(t,n.concat(a.call(arguments)));P.prototype=e.prototype;var r=new P;P.prototype=null;var o=e.apply(r,n.concat(a.call(arguments)));return Object(o)===o?o:r}},k.partial=function(e){var t=a.call(arguments,1);return function(){return e.apply(this,t.concat(a.call(arguments)))}},k.bindAll=function(e){var t=a.call(arguments,1);if(0===t.length)throw new Error("bindAll must be passed function names");return C(t,function(t){e[t]=k.bind(e[t],e)}),e},k.memoize=function(e,t){var n={};return t||(t=k.identity),function(){var i=t.apply(this,arguments);return k.has(n,i)?n[i]:n[i]=e.apply(this,arguments)}},k.delay=function(e,t){var n=a.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},k.defer=function(e){return k.delay.apply(k,[e,1].concat(a.call(arguments,1)))},k.throttle=function(e,t,n){var i,r,o,s=null,a=0;n||(n={});var u=function(){a=n.leading===!1?0:new Date,s=null,o=e.apply(i,r)};return function(){var l=new Date;a||n.leading!==!1||(a=l);var c=t-(l-a);return i=this,r=arguments,0>=c?(clearTimeout(s),s=null,a=l,o=e.apply(i,r)):s||n.trailing===!1||(s=setTimeout(u,c)),o}},k.debounce=function(e,t,n){var i,r,o,s,a;return function(){o=this,r=arguments,s=new Date;var u=function(){var l=new Date-s;t>l?i=setTimeout(u,t-l):(i=null,n||(a=e.apply(o,r)))},l=n&&!i;return i||(i=setTimeout(u,t)),l&&(a=e.apply(o,r)),a}},k.once=function(e){var t,n=!1;return function(){return n?t:(n=!0,t=e.apply(this,arguments),e=null,t)}},k.wrap=function(e,t){return function(){var n=[e];return s.apply(n,arguments),t.apply(this,n)}},k.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length-1;n>=0;n--)t=[e[n].apply(this,t)];return t[0]}},k.after=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}},k.keys=w||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var n in e)k.has(e,n)&&t.push(n);return t},k.values=function(e){for(var t=k.keys(e),n=t.length,i=new Array(n),r=0;n>r;r++)i[r]=e[t[r]];return i},k.pairs=function(e){for(var t=k.keys(e),n=t.length,i=new Array(n),r=0;n>r;r++)i[r]=[t[r],e[t[r]]];return i},k.invert=function(e){for(var t={},n=k.keys(e),i=0,r=n.length;r>i;i++)t[e[n[i]]]=n[i];return t},k.functions=k.methods=function(e){var t=[];for(var n in e)k.isFunction(e[n])&&t.push(n);return t.sort()},k.extend=function(e){return C(a.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e},k.pick=function(e){var t={},n=u.apply(i,a.call(arguments,1));return C(n,function(n){n in e&&(t[n]=e[n])}),t},k.omit=function(e){var t={},n=u.apply(i,a.call(arguments,1));for(var r in e)k.contains(n,r)||(t[r]=e[r]);return t},k.defaults=function(e){return C(a.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e},k.clone=function(e){return k.isObject(e)?k.isArray(e)?e.slice():k.extend({},e):e},k.tap=function(e,t){return t(e),e};var A=function(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof k&&(e=e._wrapped),t instanceof k&&(t=t._wrapped);var r=l.call(e);if(r!=l.call(t))return!1;switch(r){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if("object"!=typeof e||"object"!=typeof t)return!1;for(var o=n.length;o--;)if(n[o]==e)return i[o]==t;var s=e.constructor,a=t.constructor;if(s!==a&&!(k.isFunction(s)&&s instanceof s&&k.isFunction(a)&&a instanceof a))return!1;n.push(e),i.push(t);var u=0,c=!0;if("[object Array]"==r){if(u=e.length,c=u==t.length)for(;u--&&(c=A(e[u],t[u],n,i)););}else{for(var h in e)if(k.has(e,h)&&(u++,!(c=k.has(t,h)&&A(e[h],t[h],n,i))))break;if(c){for(h in t)if(k.has(t,h)&&!u--)break;c=!u}}return n.pop(),i.pop(),c};k.isEqual=function(e,t){return A(e,t,[],[])},k.isEmpty=function(e){if(null==e)return!0;if(k.isArray(e)||k.isString(e))return 0===e.length;for(var t in e)if(k.has(e,t))return!1;return!0},k.isElement=function(e){return!(!e||1!==e.nodeType)},k.isArray=_||function(e){return"[object Array]"==l.call(e)},k.isObject=function(e){return e===Object(e)},C(["Arguments","Function","String","Number","Date","RegExp"],function(e){k["is"+e]=function(t){return l.call(t)=="[object "+e+"]"}}),k.isArguments(arguments)||(k.isArguments=function(e){return!(!e||!k.has(e,"callee"))}),"function"!=typeof/./&&(k.isFunction=function(e){return"function"==typeof e}),k.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},k.isNaN=function(e){return k.isNumber(e)&&e!=+e},k.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"==l.call(e)},k.isNull=function(e){return null===e},k.isUndefined=function(e){return void 0===e},k.has=function(e,t){return c.call(e,t)},k.noConflict=function(){return e._=t,this},k.identity=function(e){return e},k.times=function(e,t,n){for(var i=Array(Math.max(0,e)),r=0;e>r;r++)i[r]=t.call(n,r);return i},k.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))};var I={escape:{"&":"&","<":"<",">":">",'"':""","'":"'"}};I.unescape=k.invert(I.escape);var N={escape:new RegExp("["+k.keys(I.escape).join("")+"]","g"),unescape:new RegExp("("+k.keys(I.unescape).join("|")+")","g")};k.each(["escape","unescape"],function(e){k[e]=function(t){return null==t?"":(""+t).replace(N[e],function(t){return I[e][t]})}}),k.result=function(e,t){if(null!=e){var n=e[t];return k.isFunction(n)?n.call(e):n}},k.mixin=function(e){C(k.functions(e),function(t){var n=k[t]=e[t];k.prototype[t]=function(){var e=[this._wrapped];return s.apply(e,arguments),L.call(this,n.apply(k,e))}})};var j=0;k.uniqueId=function(e){var t=++j+"";return e?e+t:t},k.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var R=/(.)^/,M={"'":"'","\\":"\\","\r":"r","\n":"n"," ":"t","\u2028":"u2028","\u2029":"u2029"},F=/\\|'|\r|\n|\t|\u2028|\u2029/g;k.template=function(e,t,n){var i;n=k.defaults({},n,k.templateSettings);var r=new RegExp([(n.escape||R).source,(n.interpolate||R).source,(n.evaluate||R).source].join("|")+"|$","g"),o=0,s="__p+='";e.replace(r,function(t,n,i,r,a){return s+=e.slice(o,a).replace(F,function(e){return"\\"+M[e]}),n&&(s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'"),i&&(s+="'+\n((__t=("+i+"))==null?'':__t)+\n'"),r&&(s+="';\n"+r+"\n__p+='"),o=a+t.length,t}),s+="';\n",n.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{i=new Function(n.variable||"obj","_",s)}catch(a){throw a.source=s,a}if(t)return i(t,k);var u=function(e){return i.call(this,e,k)};return u.source="function("+(n.variable||"obj")+"){\n"+s+"}",u},k.chain=function(e){return k(e).chain()};var L=function(e){return this._chain?k(e).chain():e};k.mixin(k),C(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=i[e];k.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!=e&&"splice"!=e||0!==n.length||delete n[0],L.call(this,n)}}),C(["concat","join","slice"],function(e){var t=i[e];k.prototype[e]=function(){return L.call(this,t.apply(this._wrapped,arguments))}}),k.extend(k.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this),e._=_}.apply(e,arguments)})}(this),/*! Hammer.JS - v1.0.11 - 2014-05-20
- * http://eightmedia.github.io/hammer.js
- *
- * Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
- * Licensed under the MIT license */
- function(e,t){"use strict";function n(){i.READY||(y.determineEventTypes(),d.each(i.gestures,function(e){_.register(e)}),y.onTouch(i.DOCUMENT,f,_.detect),y.onTouch(i.DOCUMENT,p,_.detect),i.READY=!0)}var i=function(e,t){return new i.Instance(e,t||{})};i.VERSION="1.0.11",i.defaults={stop_browser_behavior:{userSelect:"none",touchAction:"pan-y",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},i.HAS_POINTEREVENTS=e.navigator.pointerEnabled||e.navigator.msPointerEnabled,i.HAS_TOUCHEVENTS="ontouchstart"in e,i.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android|silk/i,i.NO_MOUSEEVENTS=i.HAS_TOUCHEVENTS&&e.navigator.userAgent.match(i.MOBILE_REGEX),i.EVENT_TYPES={},i.UPDATE_VELOCITY_INTERVAL=16,i.DOCUMENT=e.document;var r=i.DIRECTION_DOWN="down",o=i.DIRECTION_LEFT="left",s=i.DIRECTION_UP="up",a=i.DIRECTION_RIGHT="right",u=i.POINTER_MOUSE="mouse",l=i.POINTER_TOUCH="touch",c=i.POINTER_PEN="pen",h=i.EVENT_START="start",f=i.EVENT_MOVE="move",p=i.EVENT_END="end";i.plugins=i.plugins||{},i.gestures=i.gestures||{},i.READY=!1;var d=i.utils={extend:function(e,n,i){for(var r in n)e[r]!==t&&i||(e[r]=n[r]);return e},each:function(e,n,i){var r,o;if("forEach"in e)e.forEach(n,i);else if(e.length!==t){for(r=-1;o=e[++r];)if(n.call(i,o,r,e)===!1)return}else for(r in e)if(e.hasOwnProperty(r)&&n.call(i,e[r],r,e)===!1)return},inStr:function(e,t){return e.indexOf(t)>-1},hasParent:function(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1},getCenter:function(e){var t=[],n=[],i=[],r=[],o=Math.min,s=Math.max;return 1===e.length?{pageX:e[0].pageX,pageY:e[0].pageY,clientX:e[0].clientX,clientY:e[0].clientY}:(d.each(e,function(e){t.push(e.pageX),n.push(e.pageY),i.push(e.clientX),r.push(e.clientY)}),{pageX:(o.apply(Math,t)+s.apply(Math,t))/2,pageY:(o.apply(Math,n)+s.apply(Math,n))/2,clientX:(o.apply(Math,i)+s.apply(Math,i))/2,clientY:(o.apply(Math,r)+s.apply(Math,r))/2})},getVelocity:function(e,t,n){return{x:Math.abs(t/e)||0,y:Math.abs(n/e)||0}},getAngle:function(e,t){var n=t.clientX-e.clientX,i=t.clientY-e.clientY;return 180*Math.atan2(i,n)/Math.PI},getDirection:function(e,t){var n=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return n>=i?e.clientX-t.clientX>0?o:a:e.clientY-t.clientY>0?s:r},getDistance:function(e,t){var n=t.clientX-e.clientX,i=t.clientY-e.clientY;return Math.sqrt(n*n+i*i)},getScale:function(e,t){return e.length>=2&&t.length>=2?this.getDistance(t[0],t[1])/this.getDistance(e[0],e[1]):1},getRotation:function(e,t){return e.length>=2&&t.length>=2?this.getAngle(t[1],t[0])-this.getAngle(e[1],e[0]):0},isVertical:function(e){return e==s||e==r},toggleDefaultBehavior:function(e,t,n){if(t&&e&&e.style){d.each(["webkit","moz","Moz","ms","o",""],function(i){d.each(t,function(t,r){i&&(r=i+r.substring(0,1).toUpperCase()+r.substring(1)),r in e.style&&(e.style[r]=!n&&t)})});var i=function(){return!1};"none"==t.userSelect&&(e.onselectstart=!n&&i),"none"==t.userDrag&&(e.ondragstart=!n&&i)}}};i.Instance=function(e,t){var r=this;return n(),this.element=e,this.enabled=!0,this.options=d.extend(d.extend({},i.defaults),t||{}),this.options.stop_browser_behavior&&d.toggleDefaultBehavior(this.element,this.options.stop_browser_behavior,!1),this.eventStartHandler=y.onTouch(e,h,function(e){r.enabled&&_.startDetect(r,e)}),this.eventHandlers=[],this},i.Instance.prototype={on:function(e,t){var n=e.split(" ");return d.each(n,function(e){this.element.addEventListener(e,t,!1),this.eventHandlers.push({gesture:e,handler:t})},this),this},off:function(e,t){var n,i,r=e.split(" ");return d.each(r,function(e){for(this.element.removeEventListener(e,t,!1),n=-1;i=this.eventHandlers[++n];)i.gesture===e&&i.handler===t&&this.eventHandlers.splice(n,1)},this),this},trigger:function(e,t){t||(t={});var n=i.DOCUMENT.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t;var r=this.element;return d.hasParent(t.target,r)&&(r=t.target),r.dispatchEvent(n),this},enable:function(e){return this.enabled=e,this},dispose:function(){var e,t;for(this.options.stop_browser_behavior&&d.toggleDefaultBehavior(this.element,this.options.stop_browser_behavior,!0),e=-1;t=this.eventHandlers[++e];)this.element.removeEventListener(t.gesture,t.handler,!1);return this.eventHandlers=[],y.unbindDom(this.element,i.EVENT_TYPES[h],this.eventStartHandler),null}};var g=null,v=!1,m=!1,y=i.event={bindDom:function(e,t,n){var i=t.split(" ");d.each(i,function(t){e.addEventListener(t,n,!1)})},unbindDom:function(e,t,n){var i=t.split(" ");d.each(i,function(t){e.removeEventListener(t,n,!1)})},onTouch:function(e,t,n){var r=this,o=function(o){var s=o.type.toLowerCase();if(!d.inStr(s,"mouse")||!m){d.inStr(s,"touch")||d.inStr(s,"pointerdown")||d.inStr(s,"mouse")&&1===o.which?v=!0:d.inStr(s,"mouse")&&!o.which&&(v=!1),(d.inStr(s,"touch")||d.inStr(s,"pointer"))&&(m=!0);var a=0;v&&(i.HAS_POINTEREVENTS&&t!=p?a=b.updatePointer(t,o):d.inStr(s,"touch")?a=o.touches.length:m||(a=d.inStr(s,"up")?0:1),a>0&&t==p?t=f:a||(t=p),(a||null===g)&&(g=o),n.call(_,r.collectEventData(e,t,r.getTouchList(g,t),o)),i.HAS_POINTEREVENTS&&t==p&&(a=b.updatePointer(t,o))),a||(g=null,v=!1,m=!1,b.reset())}};return this.bindDom(e,i.EVENT_TYPES[t],o),o},determineEventTypes:function(){var e;e=i.HAS_POINTEREVENTS?b.getEvents():i.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],i.EVENT_TYPES[h]=e[0],i.EVENT_TYPES[f]=e[1],i.EVENT_TYPES[p]=e[2]},getTouchList:function(e){return i.HAS_POINTEREVENTS?b.getTouchList():e.touches?e.touches:(e.identifier=1,[e])},collectEventData:function(e,t,n,i){var r=l;return(d.inStr(i.type,"mouse")||b.matchType(u,i))&&(r=u),{center:d.getCenter(n),timeStamp:Date.now(),target:i.target,touches:n,eventType:t,pointerType:r,srcEvent:i,preventDefault:function(){var e=this.srcEvent;e.preventManipulation&&e.preventManipulation(),e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return _.stopDetect()}}}},b=i.PointerEvent={pointers:{},getTouchList:function(){var e=[];return d.each(this.pointers,function(t){e.push(t)}),e},updatePointer:function(e,t){return e==p?delete this.pointers[t.pointerId]:(t.identifier=t.pointerId,this.pointers[t.pointerId]=t),Object.keys(this.pointers).length},matchType:function(e,t){if(!t.pointerType)return!1;var n=t.pointerType,i={};return i[u]=n===u,i[l]=n===l,i[c]=n===c,i[e]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}},_=i.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(e,t){this.current||(this.stopped=!1,this.current={inst:e,startEvent:d.extend({},t),lastEvent:!1,lastVelocityEvent:!1,velocity:!1,name:""},this.detect(t))},detect:function(e){if(this.current&&!this.stopped){e=this.extendEventData(e);var t=this.current.inst,n=t.options;return d.each(this.gestures,function(i){return this.stopped||n[i.name]===!1||t.enabled===!1||i.handler.call(i,e,t)!==!1?void 0:(this.stopDetect(),!1)},this),this.current&&(this.current.lastEvent=e),e.eventType==p&&!e.touches.length-1&&this.stopDetect(),e}},stopDetect:function(){this.previous=d.extend({},this.current),this.current=null,this.stopped=!0},getVelocityData:function(e,t,n,r){var o=this.current,s=o.lastVelocityEvent,a=o.velocity;s&&e.timeStamp-s.timeStamp>i.UPDATE_VELOCITY_INTERVAL?(a=d.getVelocity(e.timeStamp-s.timeStamp,e.center.clientX-s.center.clientX,e.center.clientY-s.center.clientY),o.lastVelocityEvent=e):o.velocity||(a=d.getVelocity(t,n,r),o.lastVelocityEvent=e),o.velocity=a,e.velocityX=a.x,e.velocityY=a.y},getInterimData:function(e){var t,n,i=this.current.lastEvent;e.eventType==p?(t=i&&i.interimAngle,n=i&&i.interimDirection):(t=i&&d.getAngle(i.center,e.center),n=i&&d.getDirection(i.center,e.center)),e.interimAngle=t,e.interimDirection=n},extendEventData:function(e){var t=this.current,n=t.startEvent;(e.touches.length!=n.touches.length||e.touches===n.touches)&&(n.touches=[],d.each(e.touches,function(e){n.touches.push(d.extend({},e))}));var i=e.timeStamp-n.timeStamp,r=e.center.clientX-n.center.clientX,o=e.center.clientY-n.center.clientY;return this.getVelocityData(e,i,r,o),this.getInterimData(e),d.extend(e,{startEvent:n,deltaTime:i,deltaX:r,deltaY:o,distance:d.getDistance(n.center,e.center),angle:d.getAngle(n.center,e.center),direction:d.getDirection(n.center,e.center),scale:d.getScale(n.touches,e.touches),rotation:d.getRotation(n.touches,e.touches)}),e},register:function(e){var n=e.defaults||{};return n[e.name]===t&&(n[e.name]=!0),d.extend(i.defaults,n,!0),e.index=e.index||1e3,this.gestures.push(e),this.gestures.sort(function(e,t){return e.index<t.index?-1:e.index>t.index?1:0}),this.gestures}};i.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:!0,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(e,t){var n=_.current;if(n.name!=this.name&&this.triggered)return t.trigger(this.name+"end",e),void(this.triggered=!1);if(!(t.options.drag_max_touches>0&&e.touches.length>t.options.drag_max_touches))switch(e.eventType){case h:this.triggered=!1;break;case f:if(e.distance<t.options.drag_min_distance&&n.name!=this.name)return;var i=n.startEvent.center;if(n.name!=this.name&&(n.name=this.name,t.options.correct_for_drag_min_distance&&e.distance>0)){var u=Math.abs(t.options.drag_min_distance/e.distance);i.pageX+=e.deltaX*u,i.pageY+=e.deltaY*u,i.clientX+=e.deltaX*u,i.clientY+=e.deltaY*u,e=_.extendEventData(e)}(n.lastEvent.drag_locked_to_axis||t.options.drag_lock_to_axis&&t.options.drag_lock_min_distance<=e.distance)&&(e.drag_locked_to_axis=!0);var l=n.lastEvent.direction;e.drag_locked_to_axis&&l!==e.direction&&(d.isVertical(l)?e.direction=e.deltaY<0?s:r:e.direction=e.deltaX<0?o:a),this.triggered||(t.trigger(this.name+"start",e),this.triggered=!0),t.trigger(this.name,e),t.trigger(this.name+e.direction,e);var c=d.isVertical(e.direction);(t.options.drag_block_vertical&&c||t.options.drag_block_horizontal&&!c)&&e.preventDefault();break;case p:this.triggered&&t.trigger(this.name+"end",e),this.triggered=!1}}},i.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:2},timer:null,handler:function(e,t){switch(e.eventType){case h:clearTimeout(this.timer),_.current.name=this.name,this.timer=setTimeout(function(){"hold"==_.current.name&&t.trigger("hold",e)},t.options.hold_timeout);break;case f:e.distance>t.options.hold_threshold&&clearTimeout(this.timer);break;case p:clearTimeout(this.timer)}}},i.gestures.Release={name:"release",index:1/0,handler:function(e,t){e.eventType==p&&t.trigger(this.name,e)}},i.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_min_touches:1,swipe_max_touches:1,swipe_velocity:.7},handler:function(e,t){if(e.eventType==p){if(e.touches.length<t.options.swipe_min_touches||e.touches.length>t.options.swipe_max_touches)return;(e.velocityX>t.options.swipe_velocity||e.velocityY>t.options.swipe_velocity)&&(t.trigger(this.name,e),t.trigger(this.name+e.direction,e))}}},i.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},has_moved:!1,handler:function(e,t){var n,i,r;e.eventType==h?this.has_moved=!1:e.eventType!=f||this.moved?e.eventType==p&&"touchcancel"!=e.srcEvent.type&&e.deltaTime<t.options.tap_max_touchtime&&!this.has_moved&&(n=_.previous,i=n&&n.lastEvent&&e.timeStamp-n.lastEvent.timeStamp,r=!1,n&&"tap"==n.name&&i&&i<t.options.doubletap_interval&&e.distance<t.options.doubletap_distance&&(t.trigger("doubletap",e),r=!0),(!r||t.options.tap_always)&&(_.current.name="tap",t.trigger(_.current.name,e))):this.has_moved=e.distance>t.options.tap_max_distance}},i.gestures.Touch={name:"touch",index:-(1/0),defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(e,t){return t.options.prevent_mouseevents&&e.pointerType==u?void e.stopDetect():(t.options.prevent_default&&e.preventDefault(),void(e.eventType==h&&t.trigger(this.name,e)))}},i.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1,transform_within_instance:!1},triggered:!1,handler:function(e,t){if(_.current.name!=this.name&&this.triggered)return t.trigger(this.name+"end",e),void(this.triggered=!1);if(!(e.touches.length<2)){if(t.options.transform_always_block&&e.preventDefault(),t.options.transform_within_instance)for(var n=-1;e.touches[++n];)if(!d.hasParent(e.touches[n].target,t.element))return;switch(e.eventType){case h:this.triggered=!1;break;case f:var i=Math.abs(1-e.scale),r=Math.abs(e.rotation);if(i<t.options.transform_min_scale&&r<t.options.transform_min_rotation)return;_.current.name=this.name,this.triggered||(t.trigger(this.name+"start",e),this.triggered=!0),t.trigger(this.name,e),r>t.options.transform_min_rotation&&t.trigger("rotate",e),i>t.options.transform_min_scale&&(t.trigger("pinch",e),t.trigger("pinch"+(e.scale<1?"in":"out"),e));break;case p:this.triggered&&t.trigger(this.name+"end",e),this.triggered=!1}}}},"function"==typeof define&&define.amd?define("hammerjs",[],function(){return i}):"object"==typeof module&&module.exports?module.exports=i:e.Hammer=i}(window),/*!
- * jQuery JavaScript Library v3.6.0
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright OpenJS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2021-03-02T17:08Z
- */
- 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(e,t){function n(e,t,n){n=n||we;var i,r,o=n.createElement("script");if(o.text=e,t)for(i in xe)r=t[i]||t.getAttribute&&t.getAttribute(i),r&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function i(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?pe[de.call(e)]||"object":typeof e}function r(e){var t=!!e&&"length"in e&&e.length,n=i(e);return be(e)||_e(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function o(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function s(e,t,n){return be(t)?Ce.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?Ce.grep(e,function(e){return e===t!==n}):"string"!=typeof t?Ce.grep(e,function(e){return fe.call(t,e)>-1!==n}):Ce.filter(t,e,n)}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function u(e){var t={};return Ce.each(e.match(Re)||[],function(e,n){t[n]=!0}),t}function l(e){return e}function c(e){throw e}function h(e,t,n,i){var r;try{e&&be(r=e.promise)?r.call(e).done(t).fail(n):e&&be(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}function f(){we.removeEventListener("DOMContentLoaded",f),e.removeEventListener("load",f),Ce.ready()}function p(e,t){return t.toUpperCase()}function d(e){return e.replace(He,"ms-").replace(ze,p)}function g(){this.expando=Ce.expando+g.uid++}function v(e){return"true"===e?!0:"false"===e?!1:"null"===e?null:e===+e+""?+e:Be.test(e)?JSON.parse(e):e}function m(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace($e,"-$&").toLowerCase(),n=e.getAttribute(i),"string"==typeof n){try{n=v(n)}catch(r){}We.set(e,t,n)}else n=void 0;return n}function y(e,t,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return Ce.css(e,t,"")},u=a(),l=n&&n[3]||(Ce.cssNumber[t]?"":"px"),c=e.nodeType&&(Ce.cssNumber[t]||"px"!==l&&+u)&&Ye.exec(Ce.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;s--;)Ce.style(e,t,c+l),(1-o)*(1-(o=a()/u||.5))<=0&&(s=0),c/=o;c=2*c,Ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=c,i.end=r)),r}function b(e){var t,n=e.ownerDocument,i=e.nodeName,r=Ze[i];return r?r:(t=n.body.appendChild(n.createElement(i)),r=Ce.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),Ze[i]=r,r)}function _(e,t){for(var n,i,r=[],o=0,s=e.length;s>o;o++)i=e[o],i.style&&(n=i.style.display,t?("none"===n&&(r[o]=Ue.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&Je(i)&&(r[o]=b(i))):"none"!==n&&(r[o]="none",Ue.set(i,"display",n)));for(o=0;s>o;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}function w(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&o(e,t)?Ce.merge([e],n):n}function x(e,t){for(var n=0,i=e.length;i>n;n++)Ue.set(e[n],"globalEval",!t||Ue.get(t[n],"globalEval"))}function k(e,t,n,r,o){for(var s,a,u,l,c,h,f=t.createDocumentFragment(),p=[],d=0,g=e.length;g>d;d++)if(s=e[d],s||0===s)if("object"===i(s))Ce.merge(p,s.nodeType?[s]:s);else if(rt.test(s)){for(a=a||f.appendChild(t.createElement("div")),u=(tt.exec(s)||["",""])[1].toLowerCase(),l=it[u]||it._default,a.innerHTML=l[1]+Ce.htmlPrefilter(s)+l[2],h=l[0];h--;)a=a.lastChild;Ce.merge(p,a.childNodes),a=f.firstChild,a.textContent=""}else p.push(t.createTextNode(s));for(f.textContent="",d=0;s=p[d++];)if(r&&Ce.inArray(s,r)>-1)o&&o.push(s);else if(c=Ke(s),a=w(f.appendChild(s),"script"),c&&x(a),n)for(h=0;s=a[h++];)nt.test(s.type||"")&&n.push(s);return f}function C(){return!0}function T(){return!1}function E(e,t){return e===S()==("focus"===t)}function S(){try{return we.activeElement}catch(e){}}function D(e,t,n,i,r,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(a in t)D(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)),r===!1)r=T;else if(!r)return e;return 1===o&&(s=r,r=function(e){return Ce().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=Ce.guid++)),e.each(function(){Ce.event.add(this,t,r,i,n)})}function O(e,t,n){return n?(Ue.set(e,t,!1),void Ce.event.add(e,t,{namespace:!1,handler:function(e){var i,r,o=Ue.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(Ce.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=le.call(arguments),Ue.set(this,t,o),i=n(this,t),this[t](),r=Ue.get(this,t),o!==r||i?Ue.set(this,t,!1):r={},o!==r)return e.stopImmediatePropagation(),e.preventDefault(),r&&r.value}else o.length&&(Ue.set(this,t,{value:Ce.event.trigger(Ce.extend(o[0],Ce.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void(void 0===Ue.get(e,t)&&Ce.event.add(e,t,C))}function P(e,t){return o(e,"table")&&o(11!==t.nodeType?t:t.firstChild,"tr")?Ce(e).children("tbody")[0]||e:e}function A(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function I(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function N(e,t){var n,i,r,o,s,a,u;if(1===t.nodeType){if(Ue.hasData(e)&&(o=Ue.get(e),u=o.events)){Ue.remove(t,"handle events");for(r in u)for(n=0,i=u[r].length;i>n;n++)Ce.event.add(t,r,u[r][n])}We.hasData(e)&&(s=We.access(e),a=Ce.extend({},s),We.set(t,a))}}function j(e,t){var n=t.nodeName.toLowerCase();"input"===n&&et.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function R(e,t,i,r){t=ce(t);var o,s,a,u,l,c,h=0,f=e.length,p=f-1,d=t[0],g=be(d);if(g||f>1&&"string"==typeof d&&!ye.checkClone&&at.test(d))return e.each(function(n){var o=e.eq(n);g&&(t[0]=d.call(this,n,o.html())),R(o,t,i,r)});if(f&&(o=k(t,e[0].ownerDocument,!1,e,r),s=o.firstChild,1===o.childNodes.length&&(o=s),s||r)){for(a=Ce.map(w(o,"script"),A),u=a.length;f>h;h++)l=o,h!==p&&(l=Ce.clone(l,!0,!0),u&&Ce.merge(a,w(l,"script"))),i.call(e[h],l,h);if(u)for(c=a[a.length-1].ownerDocument,Ce.map(a,I),h=0;u>h;h++)l=a[h],nt.test(l.type||"")&&!Ue.access(l,"globalEval")&&Ce.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?Ce._evalUrl&&!l.noModule&&Ce._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):n(l.textContent.replace(ut,""),l,c))}return e}function M(e,t,n){for(var i,r=t?Ce.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||Ce.cleanData(w(i)),i.parentNode&&(n&&Ke(i)&&x(w(i,"script")),i.parentNode.removeChild(i));return e}function F(e,t,n){var i,r,o,s,a=e.style;return n=n||ct(e),n&&(s=n.getPropertyValue(t)||n[t],""!==s||Ke(e)||(s=Ce.style(e,t)),!ye.pixelBoxStyles()&<.test(s)&&ft.test(t)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function L(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function H(e){for(var t=e[0].toUpperCase()+e.slice(1),n=pt.length;n--;)if(e=pt[n]+t,e in dt)return e}function z(e){var t=Ce.cssProps[e]||gt[e];return t?t:e in dt?e:gt[e]=H(e)||e}function V(e,t,n){var i=Ye.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function U(e,t,n,i,r,o){var s="width"===t?1:0,a=0,u=0;if(n===(i?"border":"content"))return 0;for(;4>s;s+=2)"margin"===n&&(u+=Ce.css(e,n+Xe[s],!0,r)),i?("content"===n&&(u-=Ce.css(e,"padding"+Xe[s],!0,r)),"margin"!==n&&(u-=Ce.css(e,"border"+Xe[s]+"Width",!0,r))):(u+=Ce.css(e,"padding"+Xe[s],!0,r),"padding"!==n?u+=Ce.css(e,"border"+Xe[s]+"Width",!0,r):a+=Ce.css(e,"border"+Xe[s]+"Width",!0,r));return!i&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-a-.5))||0),u}function W(e,t,n){var i=ct(e),r=!ye.boxSizingReliable()||n,s=r&&"border-box"===Ce.css(e,"boxSizing",!1,i),a=s,u=F(e,t,i),l="offset"+t[0].toUpperCase()+t.slice(1);if(lt.test(u)){if(!n)return u;u="auto"}return(!ye.boxSizingReliable()&&s||!ye.reliableTrDimensions()&&o(e,"tr")||"auto"===u||!parseFloat(u)&&"inline"===Ce.css(e,"display",!1,i))&&e.getClientRects().length&&(s="border-box"===Ce.css(e,"boxSizing",!1,i),a=l in e,a&&(u=e[l])),u=parseFloat(u)||0,u+U(e,t,n||(s?"border":"content"),a,i,u)+"px"}function B(e,t,n,i,r){return new B.prototype.init(e,t,n,i,r)}function $(){wt&&(we.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame($):e.setTimeout($,Ce.fx.interval),Ce.fx.tick())}function q(){return e.setTimeout(function(){_t=void 0}),_t=Date.now()}function Y(e,t){var n,i=0,r={height:e};for(t=t?1:0;4>i;i+=2-t)n=Xe[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function X(e,t,n){for(var i,r=(Q.tweeners[t]||[]).concat(Q.tweeners["*"]),o=0,s=r.length;s>o;o++)if(i=r[o].call(n,t,e))return i}function G(e,t,n){var i,r,o,s,a,u,l,c,h="width"in t||"height"in t,f=this,p={},d=e.style,g=e.nodeType&&Je(e),v=Ue.get(e,"fxshow");n.queue||(s=Ce._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,Ce.queue(e,"fx").length||s.empty.fire()})}));for(i in t)if(r=t[i],xt.test(r)){if(delete t[i],o=o||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!v||void 0===v[i])continue;g=!0}p[i]=v&&v[i]||Ce.style(e,i)}if(u=!Ce.isEmptyObject(t),u||!Ce.isEmptyObject(p)){h&&1===e.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],l=v&&v.display,null==l&&(l=Ue.get(e,"display")),c=Ce.css(e,"display"),"none"===c&&(l?c=l:(_([e],!0),l=e.style.display||l,c=Ce.css(e,"display"),_([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===Ce.css(e,"float")&&(u||(f.done(function(){d.display=l}),null==l&&(c=d.display,l="none"===c?"":c)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),u=!1;for(i in p)u||(v?"hidden"in v&&(g=v.hidden):v=Ue.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&_([e],!0),f.done(function(){g||_([e]),Ue.remove(e,"fxshow");for(i in p)Ce.style(e,i,p[i])})),u=X(g?v[i]:0,i,f),i in v||(v[i]=u.start,g&&(u.end=u.start,u.start=0))}}function K(e,t){var n,i,r,o,s;for(n in e)if(i=d(n),r=t[i],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),s=Ce.cssHooks[i],s&&"expand"in s){o=s.expand(o),delete e[i];for(n in o)n in e||(e[n]=o[n],t[n]=r)}else t[i]=r}function Q(e,t,n){var i,r,o=0,s=Q.prefilters.length,a=Ce.Deferred().always(function(){delete u.elem}),u=function(){if(r)return!1;for(var t=_t||q(),n=Math.max(0,l.startTime+l.duration-t),i=n/l.duration||0,o=1-i,s=0,u=l.tweens.length;u>s;s++)l.tweens[s].run(o);return a.notifyWith(e,[l,o,n]),1>o&&u?n:(u||a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:Ce.extend({},t),opts:Ce.extend(!0,{specialEasing:{},easing:Ce.easing._default},n),originalProperties:t,originalOptions:n,startTime:_t||q(),duration:n.duration,tweens:[],createTween:function(t,n){var i=Ce.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,i=t?l.tweens.length:0;if(r)return this;for(r=!0;i>n;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),c=l.props;for(K(c,l.opts.specialEasing);s>o;o++)if(i=Q.prefilters[o].call(l,e,c,l.opts))return be(i.stop)&&(Ce._queueHooks(l.elem,l.opts.queue).stop=i.stop.bind(i)),i;return Ce.map(c,X,l),be(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),Ce.fx.timer(Ce.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}function J(e){var t=e.match(Re)||[];return t.join(" ")}function Z(e){return e.getAttribute&&e.getAttribute("class")||""}function ee(e){return Array.isArray(e)?e:"string"==typeof e?e.match(Re)||[]:[]}function te(e,t,n,r){var o;if(Array.isArray(t))Ce.each(t,function(t,i){n||jt.test(e)?r(e,i):te(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==i(t))r(e,t);else for(o in t)te(e+"["+o+"]",t[o],n,r)}function ne(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(Re)||[];if(be(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function ie(e,t,n,i){function r(a){var u;return o[a]=!0,Ce.each(e[a]||[],function(e,a){var l=a(t,n,i);return"string"!=typeof l||s||o[l]?s?!(u=l):void 0:(t.dataTypes.unshift(l),r(l),!1)}),u}var o={},s=e===qt;return r(t.dataTypes[0])||!o["*"]&&r("*")}function re(e,t){var n,i,r=Ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&Ce.extend(!0,e,i),e}function oe(e,t,n){for(var i,r,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){u.unshift(r);break}if(u[0]in n)o=u[0];else{for(r in n){if(!u[0]||e.converters[r+" "+u[0]]){o=r;break}s||(s=r)}o=o||s}return o?(o!==u[0]&&u.unshift(o),n[o]):void 0}function se(e,t,n,i){var r,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(s=l[u+" "+o]||l["* "+o],!s)for(r in l)if(a=r.split(" "),a[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){s===!0?s=l[r]:l[r]!==!0&&(o=a[0],c.unshift(a[1]));break}if(s!==!0)if(s&&e["throws"])t=s(t);else try{t=s(t)}catch(h){return{state:"parsererror",error:s?h:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}var ae=[],ue=Object.getPrototypeOf,le=ae.slice,ce=ae.flat?function(e){return ae.flat.call(e)}:function(e){return ae.concat.apply([],e)},he=ae.push,fe=ae.indexOf,pe={},de=pe.toString,ge=pe.hasOwnProperty,ve=ge.toString,me=ve.call(Object),ye={},be=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},_e=function(e){return null!=e&&e===e.window},we=e.document,xe={type:!0,src:!0,nonce:!0,noModule:!0},ke="3.6.0",Ce=function(e,t){return new Ce.fn.init(e,t)};Ce.fn=Ce.prototype={jquery:ke,constructor:Ce,length:0,toArray:function(){return le.call(this)},get:function(e){return null==e?le.call(this):0>e?this[e+this.length]:this[e]},pushStack:function(e){var t=Ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return Ce.each(this,e)},map:function(e){return this.pushStack(Ce.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(le.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(Ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(Ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:he,sort:ae.sort,splice:ae.splice},Ce.extend=Ce.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||be(s)||(s={}),a===u&&(s=this,a--);u>a;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(l&&i&&(Ce.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[t],o=r&&!Array.isArray(n)?[]:r||Ce.isPlainObject(n)?n:{},r=!1,s[t]=Ce.extend(l,o,i)):void 0!==i&&(s[t]=i));return s},Ce.extend({expando:"jQuery"+(ke+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return e&&"[object Object]"===de.call(e)?(t=ue(e))?(n=ge.call(t,"constructor")&&t.constructor,"function"==typeof n&&ve.call(n)===me):!0:!1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){n(e,{nonce:t&&t.nonce},i)},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;n>i&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?Ce.merge(n,"string"==typeof e?[e]:e):he.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:fe.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;n>i;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i,r=[],o=0,s=e.length,a=!n;s>o;o++)i=!t(e[o],o),i!==a&&r.push(e[o]);return r},map:function(e,t,n){var i,o,s=0,a=[];if(r(e))for(i=e.length;i>s;s++)o=t(e[s],s,n),null!=o&&a.push(o);else for(s in e)o=t(e[s],s,n),null!=o&&a.push(o);return ce(a)},guid:1,support:ye}),"function"==typeof Symbol&&(Ce.fn[Symbol.iterator]=ae[Symbol.iterator]),Ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){pe["[object "+t+"]"]=t.toLowerCase()});var Te=/*!
- * Sizzle CSS Selector Engine v2.3.6
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://js.foundation/
- *
- * Date: 2021-02-16
- */
- function(e){function t(e,t,n,i){var r,o,s,a,u,l,c,f=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!i&&(I(t),t=t||N,R)){if(11!==d&&(u=be.exec(e)))if(r=u[1]){if(9===d){if(!(s=t.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(f&&(s=f.getElementById(r))&&H(t,s)&&s.id===r)return n.push(s),n}else{if(u[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((r=u[3])&&x.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(r)),n}if(x.qsa&&!Y[e+" "]&&(!M||!M.test(e))&&(1!==d||"object"!==t.nodeName.toLowerCase())){if(c=e,f=t,1===d&&(he.test(e)||ce.test(e))){for(f=_e.test(e)&&h(t.parentNode)||t,f===t&&x.scope||((a=t.getAttribute("id"))?a=a.replace(ke,Ce):t.setAttribute("id",a=z)),l=E(e),o=l.length;o--;)l[o]=(a?"#"+a:":scope")+" "+p(l[o]);c=l.join(",")}try{return Z.apply(n,f.querySelectorAll(c)),n}catch(g){Y(e,!0)}finally{a===z&&t.removeAttribute("id")}}}return D(e.replace(ue,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>k.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[z]=!0,e}function r(e){var t=N.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),i=n.length;i--;)k.attrHandle[n[i]]=t}function s(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 a(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ee(t)===e:t.disabled===e:"label"in t?t.disabled===e:!1}}function c(e){return i(function(t){return t=+t,i(function(n,i){for(var r,o=e([],n.length,t),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function h(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function p(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function d(e,t,n){var i=t.dir,r=t.next,o=r||i,s=n&&"parentNode"===o,a=W++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,r);return!1}:function(t,n,u){var l,c,h,f=[U,a];if(u){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,u))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(h=t[z]||(t[z]={}),c=h[t.uniqueID]||(h[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((l=c[o])&&l[0]===U&&l[1]===a)return f[2]=l[2];if(c[o]=f,f[2]=e(t,n,u))return!0}return!1}}function g(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function v(e,n,i){for(var r=0,o=n.length;o>r;r++)t(e,n[r],i);return i}function m(e,t,n,i,r){for(var o,s=[],a=0,u=e.length,l=null!=t;u>a;a++)(o=e[a])&&(!n||n(o,i,r))&&(s.push(o),l&&t.push(a));return s}function y(e,t,n,r,o,s){return r&&!r[z]&&(r=y(r)),o&&!o[z]&&(o=y(o,s)),i(function(i,s,a,u){var l,c,h,f=[],p=[],d=s.length,g=i||v(t||"*",a.nodeType?[a]:a,[]),y=!e||!i&&t?g:m(g,f,e,a,u),b=n?o||(i?e:d||r)?[]:s:y;if(n&&n(y,b,a,u),r)for(l=m(b,p),r(l,[],a,u),c=l.length;c--;)(h=l[c])&&(b[p[c]]=!(y[p[c]]=h));if(i){if(o||e){if(o){for(l=[],c=b.length;c--;)(h=b[c])&&l.push(y[c]=h);o(null,b=[],l,u)}for(c=b.length;c--;)(h=b[c])&&(l=o?te(i,h):f[c])>-1&&(i[l]=!(s[l]=h))}}else b=m(b===s?b.splice(d,b.length):b),o?o(null,s,b,u):Z.apply(s,b)})}function b(e){for(var t,n,i,r=e.length,o=k.relative[e[0].type],s=o||k.relative[" "],a=o?1:0,u=d(function(e){return e===t},s,!0),l=d(function(e){return te(t,e)>-1},s,!0),c=[function(e,n,i){var r=!o&&(i||n!==O)||((t=n).nodeType?u(e,n,i):l(e,n,i));return t=null,r}];r>a;a++)if(n=k.relative[e[a].type])c=[d(g(c),n)];else{if(n=k.filter[e[a].type].apply(null,e[a].matches),n[z]){for(i=++a;r>i&&!k.relative[e[i].type];i++);return y(a>1&&g(c),a>1&&p(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ue,"$1"),n,i>a&&b(e.slice(a,i)),r>i&&b(e=e.slice(i)),r>i&&p(e))}c.push(n)}return g(c)}function _(e,n){var r=n.length>0,o=e.length>0,s=function(i,s,a,u,l){var c,h,f,p=0,d="0",g=i&&[],v=[],y=O,b=i||o&&k.find.TAG("*",l),_=U+=null==y?1:Math.random()||.1,w=b.length;for(l&&(O=s==N||s||l);d!==w&&null!=(c=b[d]);d++){if(o&&c){for(h=0,s||c.ownerDocument==N||(I(c),a=!R);f=e[h++];)if(f(c,s||N,a)){u.push(c);break}l&&(U=_)}r&&((c=!f&&c)&&p--,i&&g.push(c))}if(p+=d,r&&d!==p){for(h=0;f=n[h++];)f(g,v,s,a);if(i){if(p>0)for(;d--;)g[d]||v[d]||(v[d]=Q.call(u));v=m(v)}Z.apply(u,v),l&&!i&&v.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(U=_,O=y),g};return r?i(s):s}var w,x,k,C,T,E,S,D,O,P,A,I,N,j,R,M,F,L,H,z="sizzle"+1*new Date,V=e.document,U=0,W=0,B=n(),$=n(),q=n(),Y=n(),X=function(e,t){return e===t&&(A=!0),0},G={}.hasOwnProperty,K=[],Q=K.pop,J=K.push,Z=K.push,ee=K.slice,te=function(e,t){for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n;return-1},ne="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",re="(?:\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+",oe="\\["+ie+"*("+re+")(?:"+ie+"*([*^$|!~]?=)"+ie+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ie+"*\\]",se=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",ae=new RegExp(ie+"+","g"),ue=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),le=new RegExp("^"+ie+"*,"+ie+"*"),ce=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),he=new RegExp(ie+"|>"),fe=new RegExp(se),pe=new RegExp("^"+re+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+se),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+ne+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},ge=/HTML$/i,ve=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ye=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_e=/[+~]/,we=new RegExp("\\\\[\\da-fA-F]{1,6}"+ie+"?|\\\\([^\\r\\n\\f])","g"),xe=function(e,t){var n="0x"+e.slice(1)-65536;return t?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},ke=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ce=function(e,t){return t?"\x00"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Te=function(){I()},Ee=d(function(e){return e.disabled===!0&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Z.apply(K=ee.call(V.childNodes),V.childNodes),K[V.childNodes.length].nodeType}catch(Se){Z={apply:K.length?function(e,t){J.apply(e,ee.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}x=t.support={},T=t.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!ge.test(t||n&&n.nodeName||"HTML")},I=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:V;return i!=N&&9===i.nodeType&&i.documentElement?(N=i,j=N.documentElement,R=!T(N),V!=N&&(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),x.scope=r(function(e){return j.appendChild(e).appendChild(N.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),x.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=r(function(e){return e.appendChild(N.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=ye.test(N.getElementsByClassName),x.getById=r(function(e){return j.appendChild(e).id=z,!N.getElementsByName||!N.getElementsByName(z).length}),x.getById?(k.filter.ID=function(e){var t=e.replace(we,xe);return function(e){return e.getAttribute("id")===t}},k.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&R){var n=t.getElementById(e);return n?[n]:[]}}):(k.filter.ID=function(e){var t=e.replace(we,xe);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},k.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&R){var n,i,r,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),k.find.TAG=x.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},k.find.CLASS=x.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&R?t.getElementsByClassName(e):void 0},F=[],M=[],(x.qsa=ye.test(N.querySelectorAll))&&(r(function(e){var t;j.appendChild(e).innerHTML="<a id='"+z+"'></a><select id='"+z+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+ie+"*(?:value|"+ne+")"),e.querySelectorAll("[id~="+z+"-]").length||M.push("~="),t=N.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||M.push("\\["+ie+"*name"+ie+"*="+ie+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+z+"+*").length||M.push(".#.+[+~]"),e.querySelectorAll("\\\f"),M.push("[\\r\\n\\f]")}),r(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=N.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+ie+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&M.push(":enabled",":disabled"),j.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(x.matchesSelector=ye.test(L=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&r(function(e){x.disconnectedMatch=L.call(e,"*"),L.call(e,"[s!='']:x"),F.push("!=",se)}),M=M.length&&new RegExp(M.join("|")),F=F.length&&new RegExp(F.join("|")),t=ye.test(j.compareDocumentPosition),H=t||ye.test(j.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},X=t?function(e,t){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!x.sortDetached&&t.compareDocumentPosition(e)===n?e==N||e.ownerDocument==V&&H(V,e)?-1:t==N||t.ownerDocument==V&&H(V,t)?1:P?te(P,e)-te(P,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],u=[t];if(!r||!o)return e==N?-1:t==N?1:r?-1:o?1:P?te(P,e)-te(P,t):0;if(r===o)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;a[i]===u[i];)i++;return i?s(a[i],u[i]):a[i]==V?-1:u[i]==V?1:0},N):N},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if(I(e),x.matchesSelector&&R&&!Y[n+" "]&&(!F||!F.test(n))&&(!M||!M.test(n)))try{var i=L.call(e,n);if(i||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(r){Y(n,!0)}return t(n,N,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!=N&&I(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!=N&&I(e);var n=k.attrHandle[t.toLowerCase()],i=n&&G.call(k.attrHandle,t.toLowerCase())?n(e,t,!R):void 0;return void 0!==i?i:x.attributes||!R?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.escape=function(e){return(e+"").replace(ke,Ce)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,r=0;if(A=!x.detectDuplicates,P=!x.sortStable&&e.slice(0),e.sort(X),A){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return P=null,e},C=t.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=C(t);return n},k=t.selectors={cacheLength:50,createPseudo:i,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(we,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(we,xe),"~="===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]||t.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]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=E(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(we,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(r){var o=t.attr(r,e);return null==o?"!="===n:n?(o+="","="===n?o===i:"!="===n?o!==i:"^="===n?i&&0===o.indexOf(i):"*="===n?i&&o.indexOf(i)>-1:"$="===n?i&&o.slice(-i.length)===i:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(i)>-1:"|="===n?o===i||o.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,u){var l,c,h,f,p,d,g=o!==s?"nextSibling":"previousSibling",v=t.parentNode,m=a&&t.nodeName.toLowerCase(),y=!u&&!a,b=!1;if(v){if(o){for(;g;){for(f=t;f=f[g];)if(a?f.nodeName.toLowerCase()===m:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?v.firstChild:v.lastChild],s&&y){for(f=v,h=f[z]||(f[z]={}),c=h[f.uniqueID]||(h[f.uniqueID]={}),l=c[e]||[],p=l[0]===U&&l[1],b=p&&l[2],f=p&&v.childNodes[p];f=++p&&f&&f[g]||(b=p=0)||d.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[U,p,b];break}}else if(y&&(f=t,h=f[z]||(f[z]={}),c=h[f.uniqueID]||(h[f.uniqueID]={}),l=c[e]||[],p=l[0]===U&&l[1],b=p),b===!1)for(;(f=++p&&f&&f[g]||(b=p=0)||d.pop())&&((a?f.nodeName.toLowerCase()!==m:1!==f.nodeType)||!++b||(y&&(h=f[z]||(f[z]={}),c=h[f.uniqueID]||(h[f.uniqueID]={}),c[e]=[U,b]),f!==t)););return b-=r,b===i||b%i===0&&b/i>=0}}},PSEUDO:function(e,n){var r,o=k.pseudos[e]||k.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[z]?o(n):o.length>1?(r=[e,e,"",n],k.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,r=o(e,n),s=r.length;s--;)i=te(e,r[s]),e[i]=!(t[i]=r[s])}):function(e){return o(e,0,r)}):o}},pseudos:{not:i(function(e){var t=[],n=[],r=S(e.replace(ue,"$1"));return r[z]?i(function(e,t,n,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return e=e.replace(we,xe),function(t){return(t.textContent||C(t)).indexOf(e)>-1}}),lang:i(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,xe).toLowerCase(),function(t){var n;do if(n=R?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===j},focus:function(e){return e===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:l(!1),disabled:l(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!k.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return ve.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var i=0>n?n+t:n>t?t:n;--i>=0;)e.push(i);return e}),gt:c(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}},k.pseudos.nth=k.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})k.pseudos[w]=u(w);return f.prototype=k.filters=k.pseudos,k.setFilters=new f,E=t.tokenize=function(e,n){var i,r,o,s,a,u,l,c=$[e+" "];if(c)return n?0:c.slice(0);for(a=e,u=[],l=k.preFilter;a;){(!i||(r=le.exec(a)))&&(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),i=!1,(r=ce.exec(a))&&(i=r.shift(),o.push({value:i,type:r[0].replace(ue," ")}),a=a.slice(i.length));for(s in k.filter)!(r=de[s].exec(a))||l[s]&&!(r=l[s](r))||(i=r.shift(),o.push({value:i,type:s,matches:r}),a=a.slice(i.length));if(!i)break}return n?a.length:a?t.error(e):$(e,u).slice(0)},S=t.compile=function(e,t){var n,i=[],r=[],o=q[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=b(t[n]),o[z]?i.push(o):r.push(o);o=q(e,_(r,i)),o.selector=e}return o},D=t.select=function(e,t,n,i){var r,o,s,a,u,l="function"==typeof e&&e,c=!i&&E(e=l.selector||e);if(n=n||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&9===t.nodeType&&R&&k.relative[o[1].type]){if(t=(k.find.ID(s.matches[0].replace(we,xe),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=de.needsContext.test(e)?0:o.length;r--&&(s=o[r],!k.relative[a=s.type]);)if((u=k.find[a])&&(i=u(s.matches[0].replace(we,xe),_e.test(o[0].type)&&h(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&p(o),!e)return Z.apply(n,i),n;break}}return(l||S(e,c))(i,t,!R,n,!t||_e.test(e)&&h(t.parentNode)||t),n},x.sortStable=z.split("").sort(X).join("")===z,x.detectDuplicates=!!A,I(),x.sortDetached=r(function(e){return 1&e.compareDocumentPosition(N.createElement("fieldset"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),x.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||o(ne,function(e,t,n){var i;return n?void 0:e[t]===!0?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);Ce.find=Te,Ce.expr=Te.selectors,Ce.expr[":"]=Ce.expr.pseudos,Ce.uniqueSort=Ce.unique=Te.uniqueSort,Ce.text=Te.getText,Ce.isXMLDoc=Te.isXML,Ce.contains=Te.contains,Ce.escapeSelector=Te.escape;var Ee=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&Ce(e).is(n))break;i.push(e)}return i},Se=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},De=Ce.expr.match.needsContext,Oe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;Ce.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?Ce.find.matchesSelector(i,e)?[i]:[]:Ce.find.matches(e,Ce.grep(t,function(e){return 1===e.nodeType}))},Ce.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(Ce(e).filter(function(){for(t=0;i>t;t++)if(Ce.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;i>t;t++)Ce.find(e,r[t],n);return i>1?Ce.uniqueSort(n):n},filter:function(e){return this.pushStack(s(this,e||[],!1))},not:function(e){return this.pushStack(s(this,e||[],!0))},is:function(e){return!!s(this,"string"==typeof e&&De.test(e)?Ce(e):e||[],!1).length}});var Pe,Ae=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ie=Ce.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||Pe,"string"==typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ae.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof Ce?t[0]:t,Ce.merge(this,Ce.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:we,!0)),Oe.test(i[1])&&Ce.isPlainObject(t))for(i in t)be(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return r=we.getElementById(i[2]),r&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):be(e)?void 0!==n.ready?n.ready(e):e(Ce):Ce.makeArray(e,this)};Ie.prototype=Ce.fn,Pe=Ce(we);var Ne=/^(?:parents|prev(?:Until|All))/,je={children:!0,contents:!0,next:!0,prev:!0};Ce.fn.extend({has:function(e){var t=Ce(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(Ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],s="string"!=typeof e&&Ce(e);if(!De.test(e))for(;r>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&Ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?Ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?fe.call(Ce(e),this[0]):fe.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Ce.uniqueSort(Ce.merge(this.get(),Ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ee(e,"parentNode")},parentsUntil:function(e,t,n){return Ee(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return Ee(e,"nextSibling")},prevAll:function(e){return Ee(e,"previousSibling")},nextUntil:function(e,t,n){return Ee(e,"nextSibling",n)},prevUntil:function(e,t,n){return Ee(e,"previousSibling",n)},siblings:function(e){return Se((e.parentNode||{}).firstChild,e)},children:function(e){return Se(e.firstChild)},contents:function(e){return null!=e.contentDocument&&ue(e.contentDocument)?e.contentDocument:(o(e,"template")&&(e=e.content||e),Ce.merge([],e.childNodes))}},function(e,t){Ce.fn[e]=function(n,i){var r=Ce.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=Ce.filter(i,r)),this.length>1&&(je[e]||Ce.uniqueSort(r),Ne.test(e)&&r.reverse()),this.pushStack(r)}});var Re=/[^\x20\t\r\n\f]+/g;Ce.Callbacks=function(e){e="string"==typeof e?u(e):Ce.extend({},e);var t,n,r,o,s=[],a=[],l=-1,c=function(){for(o=o||e.once,r=t=!0;a.length;l=-1)for(n=a.shift();++l<s.length;)s[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=s.length,n=!1);e.memory||(n=!1),t=!1,o&&(s=n?[]:"")},h={add:function(){return s&&(n&&!t&&(l=s.length-1,a.push(n)),function r(t){Ce.each(t,function(t,n){be(n)?e.unique&&h.has(n)||s.push(n):n&&n.length&&"string"!==i(n)&&r(n)})}(arguments),n&&!t&&c()),this},remove:function(){return Ce.each(arguments,function(e,t){for(var n;(n=Ce.inArray(t,s,n))>-1;)s.splice(n,1),l>=n&&l--}),this},has:function(e){return e?Ce.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=a=[],s=n="",this},disabled:function(){return!s},lock:function(){return o=a=[],n||t||(s=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},Ce.extend({Deferred:function(t){var n=[["notify","progress",Ce.Callbacks("memory"),Ce.Callbacks("memory"),2],["resolve","done",Ce.Callbacks("once memory"),Ce.Callbacks("once memory"),0,"resolved"],["reject","fail",Ce.Callbacks("once memory"),Ce.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},"catch":function(e){return r.then(null,e)},pipe:function(){var e=arguments;return Ce.Deferred(function(t){Ce.each(n,function(n,i){var r=be(e[i[4]])&&e[i[4]];o[i[1]](function(){var e=r&&r.apply(this,arguments);e&&be(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(t,i,r){function o(t,n,i,r){return function(){var a=this,u=arguments,h=function(){var e,h;if(!(s>t)){if(e=i.apply(a,u),e===n.promise())throw new TypeError("Thenable self-resolution");h=e&&("object"==typeof e||"function"==typeof e)&&e.then,be(h)?r?h.call(e,o(s,n,l,r),o(s,n,c,r)):(s++,h.call(e,o(s,n,l,r),o(s,n,c,r),o(s,n,l,n.notifyWith))):(i!==l&&(a=void 0,u=[e]),(r||n.resolveWith)(a,u))}},f=r?h:function(){try{h()}catch(e){Ce.Deferred.exceptionHook&&Ce.Deferred.exceptionHook(e,f.stackTrace),t+1>=s&&(i!==c&&(a=void 0,u=[e]),n.rejectWith(a,u))}};t?f():(Ce.Deferred.getStackHook&&(f.stackTrace=Ce.Deferred.getStackHook()),e.setTimeout(f))}}var s=0;return Ce.Deferred(function(e){n[0][3].add(o(0,e,be(r)?r:l,e.notifyWith)),n[1][3].add(o(0,e,be(t)?t:l)),n[2][3].add(o(0,e,be(i)?i:c))}).promise()},promise:function(e){return null!=e?Ce.extend(e,r):r}},o={};return Ce.each(n,function(e,t){var s=t[2],a=t[5];r[t[1]]=s.add,a&&s.add(function(){i=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=le.call(arguments),o=Ce.Deferred(),s=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?le.call(arguments):n,--t||o.resolveWith(i,r)}};if(1>=t&&(h(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||be(r[n]&&r[n].then)))return o.then();for(;n--;)h(r[n],s(n),o.reject);return o.promise()}});var Me=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;Ce.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Me.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},Ce.readyException=function(t){e.setTimeout(function(){throw t})};var Fe=Ce.Deferred();Ce.fn.ready=function(e){return Fe.then(e)["catch"](function(e){Ce.readyException(e)}),this},Ce.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--Ce.readyWait:Ce.isReady)||(Ce.isReady=!0,e!==!0&&--Ce.readyWait>0||Fe.resolveWith(we,[Ce]))}}),Ce.ready.then=Fe.then,"complete"===we.readyState||"loading"!==we.readyState&&!we.documentElement.doScroll?e.setTimeout(Ce.ready):(we.addEventListener("DOMContentLoaded",f),e.addEventListener("load",f));var Le=function(e,t,n,r,o,s,a){var u=0,l=e.length,c=null==n;if("object"===i(n)){o=!0;for(u in n)Le(e,t,u,n[u],!0,s,a)}else if(void 0!==r&&(o=!0,be(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(Ce(e),n)})),t))for(;l>u;u++)t(e[u],n,a?r:r.call(e[u],u,t(e[u],n)));return o?e:c?t.call(e):l?t(e[0],n):s},He=/^-ms-/,ze=/-([a-z])/g,Ve=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};g.uid=1,g.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Ve(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[d(t)]=n;else for(i in t)r[d(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][d(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){Array.isArray(t)?t=t.map(d):(t=d(t),t=t in i?[t]:t.match(Re)||[]),n=t.length;for(;n--;)delete i[t[n]]}(void 0===t||Ce.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!Ce.isEmptyObject(t)}};var Ue=new g,We=new g,Be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$e=/[A-Z]/g;Ce.extend({hasData:function(e){return We.hasData(e)||Ue.hasData(e)},data:function(e,t,n){return We.access(e,t,n)},removeData:function(e,t){We.remove(e,t)},_data:function(e,t,n){return Ue.access(e,t,n)},_removeData:function(e,t){Ue.remove(e,t)}}),Ce.fn.extend({data:function(e,t){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=We.get(o),1===o.nodeType&&!Ue.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(i=s[n].name,0===i.indexOf("data-")&&(i=d(i.slice(5)),m(o,i,r[i])));Ue.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){We.set(this,e)}):Le(this,function(t){var n;if(o&&void 0===t){if(n=We.get(o,e),void 0!==n)return n;if(n=m(o,e),void 0!==n)return n}else this.each(function(){We.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){We.remove(this,e)})}}),Ce.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=Ue.get(e,t),n&&(!i||Array.isArray(n)?i=Ue.access(e,t,Ce.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=Ce.queue(e,t),i=n.length,r=n.shift(),o=Ce._queueHooks(e,t),s=function(){Ce.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ue.get(e,n)||Ue.access(e,n,{empty:Ce.Callbacks("once memory").add(function(){Ue.remove(e,[t+"queue",n])})})}}),Ce.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Ce.queue(this[0],e):void 0===t?this:this.each(function(){var n=Ce.queue(this,e,t);Ce._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Ce.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=Ce.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)n=Ue.get(o[s],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var qe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ye=new RegExp("^(?:([+-])=|)("+qe+")([a-z%]*)$","i"),Xe=["Top","Right","Bottom","Left"],Ge=we.documentElement,Ke=function(e){return Ce.contains(e.ownerDocument,e)},Qe={composed:!0};Ge.getRootNode&&(Ke=function(e){return Ce.contains(e.ownerDocument,e)||e.getRootNode(Qe)===e.ownerDocument});var Je=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&Ke(e)&&"none"===Ce.css(e,"display")},Ze={};Ce.fn.extend({show:function(){return _(this,!0)},hide:function(){return _(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Je(this)?Ce(this).show():Ce(this).hide()})}});var et=/^(?:checkbox|radio)$/i,tt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,nt=/^$|^module$|\/(?:java|ecma)script/i;
- !function(){var e=we.createDocumentFragment(),t=e.appendChild(we.createElement("div")),n=we.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ye.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",ye.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",ye.option=!!t.lastChild}();var it={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};it.tbody=it.tfoot=it.colgroup=it.caption=it.thead,it.th=it.td,ye.option||(it.optgroup=it.option=[1,"<select multiple='multiple'>","</select>"]);var rt=/<|&#?\w+;/,ot=/^([^.]*)(?:\.(.+)|)/;Ce.event={global:{},add:function(e,t,n,i,r){var o,s,a,u,l,c,h,f,p,d,g,v=Ue.get(e);if(Ve(e))for(n.handler&&(o=n,n=o.handler,r=o.selector),r&&Ce.find.matchesSelector(Ge,r),n.guid||(n.guid=Ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(s=v.handle)||(s=v.handle=function(t){return"undefined"!=typeof Ce&&Ce.event.triggered!==t.type?Ce.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Re)||[""],l=t.length;l--;)a=ot.exec(t[l])||[],p=g=a[1],d=(a[2]||"").split(".").sort(),p&&(h=Ce.event.special[p]||{},p=(r?h.delegateType:h.bindType)||p,h=Ce.event.special[p]||{},c=Ce.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&Ce.expr.match.needsContext.test(r),namespace:d.join(".")},o),(f=u[p])||(f=u[p]=[],f.delegateCount=0,h.setup&&h.setup.call(e,i,d,s)!==!1||e.addEventListener&&e.addEventListener(p,s)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),Ce.event.global[p]=!0)},remove:function(e,t,n,i,r){var o,s,a,u,l,c,h,f,p,d,g,v=Ue.hasData(e)&&Ue.get(e);if(v&&(u=v.events)){for(t=(t||"").match(Re)||[""],l=t.length;l--;)if(a=ot.exec(t[l])||[],p=g=a[1],d=(a[2]||"").split(".").sort(),p){for(h=Ce.event.special[p]||{},p=(i?h.delegateType:h.bindType)||p,f=u[p]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=f.length;o--;)c=f[o],!r&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(o,1),c.selector&&f.delegateCount--,h.remove&&h.remove.call(e,c));s&&!f.length&&(h.teardown&&h.teardown.call(e,d,v.handle)!==!1||Ce.removeEvent(e,p,v.handle),delete u[p])}else for(p in u)Ce.event.remove(e,p+t[l],n,i,!0);Ce.isEmptyObject(u)&&Ue.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=new Array(arguments.length),u=Ce.event.fix(e),l=(Ue.get(this,"events")||Object.create(null))[u.type]||[],c=Ce.event.special[u.type]||{};for(a[0]=u,t=1;t<arguments.length;t++)a[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,u)!==!1){for(s=Ce.event.handlers.call(this,u,l),t=0;(r=s[t++])&&!u.isPropagationStopped();)for(u.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!u.isImmediatePropagationStopped();)(!u.rnamespace||o.namespace===!1||u.rnamespace.test(o.namespace))&&(u.handleObj=o,u.data=o.data,i=((Ce.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a),void 0!==i&&(u.result=i)===!1&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,i,r,o,s,a=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||l.disabled!==!0)){for(o=[],s={},n=0;u>n;n++)i=t[n],r=i.selector+" ",void 0===s[r]&&(s[r]=i.needsContext?Ce(r,this).index(l)>-1:Ce.find(r,this,null,[l]).length),s[r]&&o.push(i);o.length&&a.push({elem:l,handlers:o})}return l=this,u<t.length&&a.push({elem:l,handlers:t.slice(u)}),a},addProp:function(e,t){Object.defineProperty(Ce.Event.prototype,e,{enumerable:!0,configurable:!0,get:be(t)?function(){return this.originalEvent?t(this.originalEvent):void 0}:function(){return this.originalEvent?this.originalEvent[e]:void 0},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[Ce.expando]?e:new Ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return et.test(t.type)&&t.click&&o(t,"input")&&O(t,"click",C),!1},trigger:function(e){var t=this||e;return et.test(t.type)&&t.click&&o(t,"input")&&O(t,"click"),!0},_default:function(e){var t=e.target;return et.test(t.type)&&t.click&&o(t,"input")&&Ue.get(t,"click")||o(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},Ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},Ce.Event=function(e,t){return this instanceof Ce.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?C:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&Ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),void(this[Ce.expando]=!0)):new Ce.Event(e,t)},Ce.Event.prototype={constructor:Ce.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=C,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=C,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=C,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},Ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},Ce.event.addProp),Ce.each({focus:"focusin",blur:"focusout"},function(e,t){Ce.event.special[e]={setup:function(){return O(this,e,E),!1},trigger:function(){return O(this,e),!0},_default:function(){return!0},delegateType:t}}),Ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Ce.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,o=e.handleObj;return(!r||r!==i&&!Ce.contains(i,r))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),Ce.fn.extend({on:function(e,t,n,i){return D(this,e,t,n,i)},one:function(e,t,n,i){return D(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,Ce(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=T),this.each(function(){Ce.event.remove(this,e,n,t)})}});var st=/<script|<style|<link/i,at=/checked\s*(?:[^=]|=\s*.checked.)/i,ut=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;Ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,o,s,a=e.cloneNode(!0),u=Ke(e);if(!(ye.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Ce.isXMLDoc(e)))for(s=w(a),o=w(e),i=0,r=o.length;r>i;i++)j(o[i],s[i]);if(t)if(n)for(o=o||w(e),s=s||w(a),i=0,r=o.length;r>i;i++)N(o[i],s[i]);else N(e,a);return s=w(a,"script"),s.length>0&&x(s,!u&&w(e,"script")),a},cleanData:function(e){for(var t,n,i,r=Ce.event.special,o=0;void 0!==(n=e[o]);o++)if(Ve(n)){if(t=n[Ue.expando]){if(t.events)for(i in t.events)r[i]?Ce.event.remove(n,i):Ce.removeEvent(n,i,t.handle);n[Ue.expando]=void 0}n[We.expando]&&(n[We.expando]=void 0)}}}),Ce.fn.extend({detach:function(e){return M(this,e,!0)},remove:function(e){return M(this,e)},text:function(e){return Le(this,function(e){return void 0===e?Ce.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return R(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=P(this,e);t.appendChild(e)}})},prepend:function(){return R(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=P(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return R(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return R(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Ce.cleanData(w(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return Ce.clone(this,e,t)})},html:function(e){return Le(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!st.test(e)&&!it[(tt.exec(e)||["",""])[1].toLowerCase()]){e=Ce.htmlPrefilter(e);try{for(;i>n;n++)t=this[n]||{},1===t.nodeType&&(Ce.cleanData(w(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return R(this,arguments,function(t){var n=this.parentNode;Ce.inArray(this,e)<0&&(Ce.cleanData(w(this)),n&&n.replaceChild(t,this))},e)}}),Ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Ce.fn[e]=function(e){for(var n,i=[],r=Ce(e),o=r.length-1,s=0;o>=s;s++)n=s===o?this:this.clone(!0),Ce(r[s])[t](n),he.apply(i,n.get());return this.pushStack(i)}});var lt=new RegExp("^("+qe+")(?!px)[a-z%]+$","i"),ct=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},ht=function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];i=n.call(e);for(r in t)e.style[r]=o[r];return i},ft=new RegExp(Xe.join("|"),"i");!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Ge.appendChild(l).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,u=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),r=36===n(t.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),Ge.removeChild(l),c=null}}function n(e){return Math.round(parseFloat(e))}var i,r,o,s,a,u,l=we.createElement("div"),c=we.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ye.clearCloneStyle="content-box"===c.style.backgroundClip,Ce.extend(ye,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,n,i,r;return null==a&&(t=we.createElement("table"),n=we.createElement("tr"),i=we.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",Ge.appendChild(t).appendChild(n).appendChild(i),r=e.getComputedStyle(n),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===n.offsetHeight,Ge.removeChild(t)),a}}))}();var pt=["Webkit","Moz","ms"],dt=we.createElement("div").style,gt={},vt=/^(none|table(?!-c[ea]).+)/,mt=/^--/,yt={position:"absolute",visibility:"hidden",display:"block"},bt={letterSpacing:"0",fontWeight:"400"};Ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=F(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=d(t),u=mt.test(t),l=e.style;return u||(t=z(a)),s=Ce.cssHooks[t]||Ce.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:l[t]:(o=typeof n,"string"===o&&(r=Ye.exec(n))&&r[1]&&(n=y(e,t,r),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=r&&r[3]||(Ce.cssNumber[a]?"":"px")),ye.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(u?l.setProperty(t,n):l[t]=n)),void 0)}},css:function(e,t,n,i){var r,o,s,a=d(t),u=mt.test(t);return u||(t=z(a)),s=Ce.cssHooks[t]||Ce.cssHooks[a],s&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=F(e,t,i)),"normal"===r&&t in bt&&(r=bt[t]),""===n||n?(o=parseFloat(r),n===!0||isFinite(o)?o||0:r):r}}),Ce.each(["height","width"],function(e,t){Ce.cssHooks[t]={get:function(e,n,i){return n?!vt.test(Ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?W(e,t,i):ht(e,yt,function(){return W(e,t,i)}):void 0},set:function(e,n,i){var r,o=ct(e),s=!ye.scrollboxSize()&&"absolute"===o.position,a=s||i,u=a&&"border-box"===Ce.css(e,"boxSizing",!1,o),l=i?U(e,t,i,u,o):0;return u&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-U(e,t,"border",!1,o)-.5)),l&&(r=Ye.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=Ce.css(e,t)),V(e,n,l)}}}),Ce.cssHooks.marginLeft=L(ye.reliableMarginLeft,function(e,t){return t?(parseFloat(F(e,"marginLeft"))||e.getBoundingClientRect().left-ht(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),Ce.each({margin:"",padding:"",border:"Width"},function(e,t){Ce.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];4>i;i++)r[e+Xe[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(Ce.cssHooks[e+t].set=V)}),Ce.fn.extend({css:function(e,t){return Le(this,function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){for(i=ct(e),r=t.length;r>s;s++)o[t[s]]=Ce.css(e,t[s],!1,i);return o}return void 0!==n?Ce.style(e,t,n):Ce.css(e,t)},e,t,arguments.length>1)}}),Ce.Tween=B,B.prototype={constructor:B,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||Ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(Ce.cssNumber[n]?"":"px")},cur:function(){var e=B.propHooks[this.prop];return e&&e.get?e.get(this):B.propHooks._default.get(this)},run:function(e){var t,n=B.propHooks[this.prop];return this.options.duration?this.pos=t=Ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=Ce.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){Ce.fx.step[e.prop]?Ce.fx.step[e.prop](e):1!==e.elem.nodeType||!Ce.cssHooks[e.prop]&&null==e.elem.style[z(e.prop)]?e.elem[e.prop]=e.now:Ce.style(e.elem,e.prop,e.now+e.unit)}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},Ce.fx=B.prototype.init,Ce.fx.step={};var _t,wt,xt=/^(?:toggle|show|hide)$/,kt=/queueHooks$/;Ce.Animation=Ce.extend(Q,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return y(n.elem,e,Ye.exec(t),n),n}]},tweener:function(e,t){be(e)?(t=e,e=["*"]):e=e.match(Re);for(var n,i=0,r=e.length;r>i;i++)n=e[i],Q.tweeners[n]=Q.tweeners[n]||[],Q.tweeners[n].unshift(t)},prefilters:[G],prefilter:function(e,t){t?Q.prefilters.unshift(e):Q.prefilters.push(e)}}),Ce.speed=function(e,t,n){var i=e&&"object"==typeof e?Ce.extend({},e):{complete:n||!n&&t||be(e)&&e,duration:e,easing:n&&t||t&&!be(t)&&t};return Ce.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in Ce.fx.speeds?i.duration=Ce.fx.speeds[i.duration]:i.duration=Ce.fx.speeds._default),(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){be(i.old)&&i.old.call(this),i.queue&&Ce.dequeue(this,i.queue)},i},Ce.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Je).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=Ce.isEmptyObject(e),o=Ce.speed(t,n,i),s=function(){var t=Q(this,Ce.extend({},e),o);(r||Ue.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||o.queue===!1?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=Ce.timers,s=Ue.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&kt.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));(t||!n)&&Ce.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Ue.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=Ce.timers,s=i?i.length:0;for(n.finish=!0,Ce.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;s>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),Ce.each(["toggle","show","hide"],function(e,t){var n=Ce.fn[t];Ce.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(Y(t,!0),e,i,r)}}),Ce.each({slideDown:Y("show"),slideUp:Y("hide"),slideToggle:Y("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Ce.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),Ce.timers=[],Ce.fx.tick=function(){var e,t=0,n=Ce.timers;for(_t=Date.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||Ce.fx.stop(),_t=void 0},Ce.fx.timer=function(e){Ce.timers.push(e),Ce.fx.start()},Ce.fx.interval=13,Ce.fx.start=function(){wt||(wt=!0,$())},Ce.fx.stop=function(){wt=null},Ce.fx.speeds={slow:600,fast:200,_default:400},Ce.fn.delay=function(t,n){return t=Ce.fx?Ce.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}})},function(){var e=we.createElement("input"),t=we.createElement("select"),n=t.appendChild(we.createElement("option"));e.type="checkbox",ye.checkOn=""!==e.value,ye.optSelected=n.selected,e=we.createElement("input"),e.value="t",e.type="radio",ye.radioValue="t"===e.value}();var Ct,Tt=Ce.expr.attrHandle;Ce.fn.extend({attr:function(e,t){return Le(this,Ce.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Ce.removeAttr(this,e)})}}),Ce.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?Ce.prop(e,t,n):(1===o&&Ce.isXMLDoc(e)||(r=Ce.attrHooks[t.toLowerCase()]||(Ce.expr.match.bool.test(t)?Ct:void 0)),void 0!==n?null===n?void Ce.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=Ce.find.attr(e,t),null==i?void 0:i))},attrHooks:{type:{set:function(e,t){if(!ye.radioValue&&"radio"===t&&o(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(Re);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),Ct={set:function(e,t,n){return t===!1?Ce.removeAttr(e,n):e.setAttribute(n,n),n}},Ce.each(Ce.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Tt[t]||Ce.find.attr;Tt[t]=function(e,t,i){var r,o,s=t.toLowerCase();return i||(o=Tt[s],Tt[s]=r,r=null!=n(e,t,i)?s:null,Tt[s]=o),r}});var Et=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;Ce.fn.extend({prop:function(e,t){return Le(this,Ce.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Ce.propFix[e]||e]})}}),Ce.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&Ce.isXMLDoc(e)||(t=Ce.propFix[t]||t,r=Ce.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=Ce.find.attr(e,"tabindex");return t?parseInt(t,10):Et.test(e.nodeName)||St.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ye.optSelected||(Ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),Ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Ce.propFix[this.toLowerCase()]=this}),Ce.fn.extend({addClass:function(e){var t,n,i,r,o,s,a,u=0;if(be(e))return this.each(function(t){Ce(this).addClass(e.call(this,t,Z(this)))});if(t=ee(e),t.length)for(;n=this[u++];)if(r=Z(n),i=1===n.nodeType&&" "+J(r)+" "){for(s=0;o=t[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");a=J(i),r!==a&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,s,a,u=0;if(be(e))return this.each(function(t){Ce(this).removeClass(e.call(this,t,Z(this)))});if(!arguments.length)return this.attr("class","");if(t=ee(e),t.length)for(;n=this[u++];)if(r=Z(n),i=1===n.nodeType&&" "+J(r)+" "){for(s=0;o=t[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");a=J(i),r!==a&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):be(e)?this.each(function(n){Ce(this).toggleClass(e.call(this,n,Z(this),t),t)}):this.each(function(){var t,r,o,s;if(i)for(r=0,o=Ce(this),s=ee(e);t=s[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else(void 0===e||"boolean"===n)&&(t=Z(this),t&&Ue.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Ue.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+J(Z(n))+" ").indexOf(t)>-1)return!0;return!1}});var Dt=/\r/g;Ce.fn.extend({val:function(e){var t,n,i,r=this[0];{if(arguments.length)return i=be(e),this.each(function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,Ce(this).val()):e,null==r?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=Ce.map(r,function(e){return null==e?"":e+""})),t=Ce.valHooks[this.type]||Ce.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=Ce.valHooks[r.type]||Ce.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(Dt,""):null==n?"":n)}}}),Ce.extend({valHooks:{option:{get:function(e){var t=Ce.find.attr(e,"value");return null!=t?t:J(Ce.text(e))}},select:{get:function(e){var t,n,i,r=e.options,s=e.selectedIndex,a="select-one"===e.type,u=a?null:[],l=a?s+1:r.length;for(i=0>s?l:a?s:0;l>i;i++)if(n=r[i],(n.selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!o(n.parentNode,"optgroup"))){if(t=Ce(n).val(),a)return t;u.push(t)}return u},set:function(e,t){for(var n,i,r=e.options,o=Ce.makeArray(t),s=r.length;s--;)i=r[s],(i.selected=Ce.inArray(Ce.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),Ce.each(["radio","checkbox"],function(){Ce.valHooks[this]={set:function(e,t){return Array.isArray(t)?e.checked=Ce.inArray(Ce(e).val(),t)>-1:void 0}},ye.checkOn||(Ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),ye.focusin="onfocusin"in e;var Ot=/^(?:focusinfocus|focusoutblur)$/,Pt=function(e){e.stopPropagation()};Ce.extend(Ce.event,{trigger:function(t,n,i,r){var o,s,a,u,l,c,h,f,p=[i||we],d=ge.call(t,"type")?t.type:t,g=ge.call(t,"namespace")?t.namespace.split("."):[];if(s=f=a=i=i||we,3!==i.nodeType&&8!==i.nodeType&&!Ot.test(d+Ce.event.triggered)&&(d.indexOf(".")>-1&&(g=d.split("."),d=g.shift(),g.sort()),l=d.indexOf(":")<0&&"on"+d,t=t[Ce.expando]?t:new Ce.Event(d,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:Ce.makeArray(n,[t]),h=Ce.event.special[d]||{},r||!h.trigger||h.trigger.apply(i,n)!==!1)){if(!r&&!h.noBubble&&!_e(i)){for(u=h.delegateType||d,Ot.test(u+d)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(i.ownerDocument||we)&&p.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=p[o++])&&!t.isPropagationStopped();)f=s,t.type=o>1?u:h.bindType||d,c=(Ue.get(s,"events")||Object.create(null))[t.type]&&Ue.get(s,"handle"),c&&c.apply(s,n),c=l&&s[l],c&&c.apply&&Ve(s)&&(t.result=c.apply(s,n),t.result===!1&&t.preventDefault());return t.type=d,r||t.isDefaultPrevented()||h._default&&h._default.apply(p.pop(),n)!==!1||!Ve(i)||l&&be(i[d])&&!_e(i)&&(a=i[l],a&&(i[l]=null),Ce.event.triggered=d,t.isPropagationStopped()&&f.addEventListener(d,Pt),i[d](),t.isPropagationStopped()&&f.removeEventListener(d,Pt),Ce.event.triggered=void 0,a&&(i[l]=a)),t.result}},simulate:function(e,t,n){var i=Ce.extend(new Ce.Event,n,{type:e,isSimulated:!0});Ce.event.trigger(i,null,t)}}),Ce.fn.extend({trigger:function(e,t){return this.each(function(){Ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?Ce.event.trigger(e,t,n,!0):void 0}}),ye.focusin||Ce.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Ce.event.simulate(t,e.target,Ce.event.fix(e))};Ce.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=Ue.access(i,t);r||i.addEventListener(e,n,!0),Ue.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=Ue.access(i,t)-1;r?Ue.access(i,t,r):(i.removeEventListener(e,n,!0),Ue.remove(i,t))}}});var At=e.location,It={guid:Date.now()},Nt=/\?/;Ce.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(r){}return i=n&&n.getElementsByTagName("parsererror")[0],(!n||i)&&Ce.error("Invalid XML: "+(i?Ce.map(i.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var jt=/\[\]$/,Rt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;Ce.param=function(e,t){var n,i=[],r=function(e,t){var n=be(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!Ce.isPlainObject(e))Ce.each(e,function(){r(this.name,this.value)});else for(n in e)te(n,e[n],t,r);return i.join("&")},Ce.fn.extend({serialize:function(){return Ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Ce.prop(this,"elements");return e?Ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Ce(this).is(":disabled")&&Ft.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!et.test(e))}).map(function(e,t){var n=Ce(this).val();return null==n?null:Array.isArray(n)?Ce.map(n,function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}}):{name:t.name,value:n.replace(Rt,"\r\n")}}).get()}});var Lt=/%20/g,Ht=/#.*$/,zt=/([?&])_=[^&]*/,Vt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ut=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Wt=/^(?:GET|HEAD)$/,Bt=/^\/\//,$t={},qt={},Yt="*/".concat("*"),Xt=we.createElement("a");Xt.href=At.href,Ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:Ut.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Yt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":Ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?re(re(e,Ce.ajaxSettings),t):re(Ce.ajaxSettings,e)},ajaxPrefilter:ne($t),ajaxTransport:ne(qt),ajax:function(t,n){function i(t,n,i,a){var l,f,p,_,w,x=n;c||(c=!0,u&&e.clearTimeout(u),r=void 0,s=a||"",k.readyState=t>0?4:0,l=t>=200&&300>t||304===t,i&&(_=oe(d,k,i)),!l&&Ce.inArray("script",d.dataTypes)>-1&&Ce.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),_=se(d,_,k,l),l?(d.ifModified&&(w=k.getResponseHeader("Last-Modified"),w&&(Ce.lastModified[o]=w),w=k.getResponseHeader("etag"),w&&(Ce.etag[o]=w)),204===t||"HEAD"===d.type?x="nocontent":304===t?x="notmodified":(x=_.state,f=_.data,p=_.error,l=!p)):(p=x,(t||!x)&&(x="error",0>t&&(t=0))),k.status=t,k.statusText=(n||x)+"",l?m.resolveWith(g,[f,x,k]):m.rejectWith(g,[k,x,p]),k.statusCode(b),b=void 0,h&&v.trigger(l?"ajaxSuccess":"ajaxError",[k,d,l?f:p]),y.fireWith(g,[k,x]),h&&(v.trigger("ajaxComplete",[k,d]),--Ce.active||Ce.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,o,s,a,u,l,c,h,f,p,d=Ce.ajaxSetup({},n),g=d.context||d,v=d.context&&(g.nodeType||g.jquery)?Ce(g):Ce.event,m=Ce.Deferred(),y=Ce.Callbacks("once memory"),b=d.statusCode||{},_={},w={},x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Vt.exec(s);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||x;return r&&r.abort(t),i(0,t),this}};if(m.promise(k),d.url=((t||d.url||At.href)+"").replace(Bt,At.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(Re)||[""],null==d.crossDomain){l=we.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Xt.protocol+"//"+Xt.host!=l.protocol+"//"+l.host}catch(C){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=Ce.param(d.data,d.traditional)),ie($t,d,n,k),c)return k;h=Ce.event&&d.global,h&&0===Ce.active++&&Ce.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Wt.test(d.type),o=d.url.replace(Ht,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Lt,"+")):(p=d.url.slice(o.length),d.data&&(d.processData||"string"==typeof d.data)&&(o+=(Nt.test(o)?"&":"?")+d.data,delete d.data),d.cache===!1&&(o=o.replace(zt,"$1"),p=(Nt.test(o)?"&":"?")+"_="+It.guid++ +p),d.url=o+p),d.ifModified&&(Ce.lastModified[o]&&k.setRequestHeader("If-Modified-Since",Ce.lastModified[o]),Ce.etag[o]&&k.setRequestHeader("If-None-Match",Ce.etag[o])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&k.setRequestHeader("Content-Type",d.contentType),k.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Yt+"; q=0.01":""):d.accepts["*"]);for(f in d.headers)k.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(d.beforeSend.call(g,k,d)===!1||c))return k.abort();if(x="abort",y.add(d.complete),k.done(d.success),k.fail(d.error),r=ie(qt,d,n,k)){if(k.readyState=1,h&&v.trigger("ajaxSend",[k,d]),c)return k;d.async&&d.timeout>0&&(u=e.setTimeout(function(){k.abort("timeout")},d.timeout));try{c=!1,r.send(_,i)}catch(C){if(c)throw C;i(-1,C)}}else i(-1,"No Transport");return k},getJSON:function(e,t,n){return Ce.get(e,t,n,"json");
- },getScript:function(e,t){return Ce.get(e,void 0,t,"script")}}),Ce.each(["get","post"],function(e,t){Ce[t]=function(e,n,i,r){return be(n)&&(r=r||i,i=n,n=void 0),Ce.ajax(Ce.extend({url:e,type:t,dataType:r,data:n,success:i},Ce.isPlainObject(e)&&e))}}),Ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),Ce._evalUrl=function(e,t,n){return Ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){Ce.globalEval(e,t,n)}})},Ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(be(e)&&(e=e.call(this[0])),t=Ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return be(e)?this.each(function(t){Ce(this).wrapInner(e.call(this,t))}):this.each(function(){var t=Ce(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=be(e);return this.each(function(n){Ce(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){Ce(this).replaceWith(this.childNodes)}),this}}),Ce.expr.pseudos.hidden=function(e){return!Ce.expr.pseudos.visible(e)},Ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},Ce.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Gt={0:200,1223:204},Kt=Ce.ajaxSettings.xhr();ye.cors=!!Kt&&"withCredentials"in Kt,ye.ajax=Kt=!!Kt,Ce.ajaxTransport(function(t){var n,i;return ye.cors||Kt&&!t.crossDomain?{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(s in r)a.setRequestHeader(s,r[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Gt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(u){if(n)throw u}},abort:function(){n&&n()}}:void 0}),Ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),Ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return Ce.globalEval(e),e}}}),Ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Ce.ajaxTransport("script",function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(i,r){t=Ce("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),we.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Qt=[],Jt=/(=)\?(?=&|$)|\?\?/;Ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||Ce.expando+"_"+It.guid++;return this[e]=!0,e}}),Ce.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,s,a=t.jsonp!==!1&&(Jt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(t.data)&&"data");return a||"jsonp"===t.dataTypes[0]?(r=t.jsonpCallback=be(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Jt,"$1"+r):t.jsonp!==!1&&(t.url+=(Nt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||Ce.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){s=arguments},i.always(function(){void 0===o?Ce(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,Qt.push(r)),s&&be(o)&&o(s[0]),s=o=void 0}),"script"):void 0}),ye.createHTMLDocument=function(){var e=we.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),Ce.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var i,r,o;return t||(ye.createHTMLDocument?(t=we.implementation.createHTMLDocument(""),i=t.createElement("base"),i.href=we.location.href,t.head.appendChild(i)):t=we),r=Oe.exec(e),o=!n&&[],r?[t.createElement(r[1])]:(r=k([e],t,o),o&&o.length&&Ce(o).remove(),Ce.merge([],r.childNodes))},Ce.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return a>-1&&(i=J(e.slice(a)),e=e.slice(0,a)),be(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&Ce.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(i?Ce("<div>").append(Ce.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},Ce.expr.pseudos.animated=function(e){return Ce.grep(Ce.timers,function(t){return e===t.elem}).length},Ce.offset={setOffset:function(e,t,n){var i,r,o,s,a,u,l,c=Ce.css(e,"position"),h=Ce(e),f={};"static"===c&&(e.style.position="relative"),a=h.offset(),o=Ce.css(e,"top"),u=Ce.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(i=h.position(),s=i.top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(u)||0),be(t)&&(t=t.call(e,n,Ce.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):h.css(f)}},Ce.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Ce.offset.setOffset(this,e,t)});var t,n,i=this[0];if(i)return i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===Ce.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"===Ce.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&(r=Ce(e).offset(),r.top+=Ce.css(e,"borderTopWidth",!0),r.left+=Ce.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-Ce.css(i,"marginTop",!0),left:t.left-r.left-Ce.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===Ce.css(e,"position");)e=e.offsetParent;return e||Ge})}}),Ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;Ce.fn[e]=function(i){return Le(this,function(e,i,r){var o;return _e(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r?o?o[t]:e[i]:void(o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r)},e,i,arguments.length)}}),Ce.each(["top","left"],function(e,t){Ce.cssHooks[t]=L(ye.pixelPosition,function(e,n){return n?(n=F(e,t),lt.test(n)?Ce(e).position()[t]+"px":n):void 0})}),Ce.each({Height:"height",Width:"width"},function(e,t){Ce.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){Ce.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||o===!0?"margin":"border");return Le(this,function(t,n,r){var o;return _e(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?Ce.css(t,n,a):Ce.style(t,n,r,a)},t,s?r:void 0,s)}})}),Ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Ce.fn[t]=function(e){return this.on(t,e)}}),Ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),Ce.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,t){Ce.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var Zt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;Ce.proxy=function(e,t){var n,i,r;return"string"==typeof t&&(n=e[t],t=e,e=n),be(e)?(i=le.call(arguments,2),r=function(){return e.apply(t||this,i.concat(le.call(arguments)))},r.guid=e.guid=e.guid||Ce.guid++,r):void 0},Ce.holdReady=function(e){e?Ce.readyWait++:Ce.ready(!0)},Ce.isArray=Array.isArray,Ce.parseJSON=JSON.parse,Ce.nodeName=o,Ce.isFunction=be,Ce.isWindow=_e,Ce.camelCase=d,Ce.type=i,Ce.now=Date.now,Ce.isNumeric=function(e){var t=Ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},Ce.trim=function(e){return null==e?"":(e+"").replace(Zt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return Ce});var en=e.jQuery,tn=e.$;return Ce.noConflict=function(t){return e.$===Ce&&(e.$=tn),t&&e.jQuery===Ce&&(e.jQuery=en),Ce},"undefined"==typeof t&&(e.jQuery=e.$=Ce),Ce}),/*! jQuery plugin for Hammer.JS - v1.0.11 - 2014-05-20
- * http://eightmedia.github.com/hammer.js
- *
- * Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
- * Licensed under the MIT license */
- function(e,t){"use strict";function n(e,n){Date.now||(Date.now=function(){return(new Date).getTime()}),e.event.bindDom=function(i,r,o){n(i).on(r,function(n){var i=n.originalEvent||n,r=["pageX","pageY","clientX","clientY","target","preventDefault","stopPropagation"];e.utils.each(r,function(e){null==i[e]&&(i[e]=n[e])}),i.which===t&&(i.which=i.button),o.call(this,i)})},e.utils.each(["on","off"],function(t){e.Instance.prototype[t]=function(e,i){return n(this.element)[t](e,i)}}),e.Instance.prototype.trigger=function(e,t){var i=n(this.element);return i.has(t.target).length&&(i=n(t.target)),i.trigger({type:e,gesture:t})},n.fn.hammer=function(t){return this.each(function(){var i=n(this),r=i.data("hammer");r?r&&t&&e.utils.extend(r.options,t):i.data("hammer",new e(this,t||{}))})}}"function"==typeof define&&define.amd?define("jquery.hammer",["hammerjs","jquery"],n):n(e.Hammer,e.jQuery||e.Zepto)}(window),/*! jQuery UI - v1.13.0 - 2021-10-07
- * http://jqueryui.com
- * Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-patch.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
- * Copyright jQuery Foundation and other contributors; Licensed MIT */
- function(e){"use strict";"function"==typeof define&&define.amd?define("jquery-ui",["jquery"],e):e(jQuery)}(function(e){"use strict";function t(e){return null==e?e+"":"object"==typeof e?y[b.call(e)]||"object":typeof e}function n(e,t,n){var i=C[t.type]||{};return null==e?n||!t.def?null:t.def:(e=i.floor?~~e:parseFloat(e),isNaN(e)?t.def:i.mod?(e+i.mod)%i.mod:Math.min(i.max,Math.max(0,e)))}function i(e){var t=x(),n=t._rgba=[];return e=e.toLowerCase(),S(w,function(i,r){var o,s=r.re.exec(e),a=s&&r.parse(s),u=r.space||"rgba";return a?(o=t[u](a),t[k[u].cache]=o[k[u].cache],n=t._rgba=o._rgba,!1):void 0}),n.length?("0,0,0,0"===n.join()&&v.extend(n,g.transparent),t):g[e]}function r(e,t,n){return n=(n+1)%1,1>6*n?e+(t-e)*n*6:1>2*n?t:2>3*n?e+(t-e)*(2/3-n)*6:e}function o(e){for(var t=e.css("visibility");"inherit"===t;)e=e.parent(),t=e.css("visibility");return"visible"===t}function s(e){for(var t,n;e.length&&e[0]!==document;){if(t=e.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}function a(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=u(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function u(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",n,l)}function l(){e.datepicker._isDisabledDatepicker(R.inline?R.dpDiv.parent()[0]:R.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function c(t,n){e.extend(t,n);for(var i in n)null==n[i]&&(t[i]=n[i]);return t}/*!
- * jQuery UI Spinner 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- function h(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.ui=e.ui||{};var f=(e.ui.version="1.13.0",0),p=Array.prototype.hasOwnProperty,d=Array.prototype.slice;e.cleanData=function(t){return function(n){var i,r,o;for(o=0;null!=(r=n[o]);o++)i=e._data(r,"events"),i&&i.remove&&e(r).triggerHandler("remove");t(n)}}(e.cleanData),e.widget=function(t,n,i){var r,o,s,a={},u=t.split(".")[0];t=t.split(".")[1];var l=u+"-"+t;return i||(i=n,n=e.Widget),Array.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr.pseudos[l.toLowerCase()]=function(t){return!!e.data(t,l)},e[u]=e[u]||{},r=e[u][t],o=e[u][t]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new o(e,t)},e.extend(o,r,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),s=new n,s.options=e.widget.extend({},s.options),e.each(i,function(e,t){return"function"!=typeof t?void(a[e]=t):void(a[e]=function(){function i(){return n.prototype[e].apply(this,arguments)}function r(t){return n.prototype[e].apply(this,t)}return function(){var e,n=this._super,o=this._superApply;return this._super=i,this._superApply=r,e=t.apply(this,arguments),this._super=n,this._superApply=o,e}}())}),o.prototype=e.widget.extend(s,{widgetEventPrefix:r?s.widgetEventPrefix||t:t},a,{constructor:o,namespace:u,widgetName:t,widgetFullName:l}),r?(e.each(r._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,o,n._proto)}),delete r._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,i,r=d.call(arguments,1),o=0,s=r.length;s>o;o++)for(n in r[o])i=r[o][n],p.call(r[o],n)&&void 0!==i&&(e.isPlainObject(i)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):t[n]=i);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(r){var o="string"==typeof r,s=d.call(arguments,1),a=this;return o?this.length||"instance"!==r?this.each(function(){var n,o=e.data(this,i);return"instance"===r?(a=o,!1):o?"function"!=typeof o[r]||"_"===r.charAt(0)?e.error("no such method '"+r+"' for "+t+" widget instance"):(n=o[r].apply(o,s),n!==o&&void 0!==n?(a=n&&n.jquery?a.pushStack(n.get()):n,!1):void 0):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+r+"'")}):a=void 0:(s.length&&(r=e.widget.extend.apply(null,[r].concat(s))),this.each(function(){var t=e.data(this,i);t?(t.option(r||{}),t._init&&t._init()):e.data(this,i,new n(r,this))})),a}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=f++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,r,o,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},i=t.split("."),t=i.shift(),i.length){for(r=s[t]=e.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(t=i.pop(),1===arguments.length)return void 0===r[t]?null:r[t];r[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,r;for(n in t)r=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&r&&r.length&&(i=e(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function n(){t.element.each(function(t,n){var i=e.map(o.classesElementLookup,function(e){return e}).some(function(e){return e.is(n)});i||o._on(e(n),{remove:"_untrackClassesElement"})})}function i(i,s){var a,u;for(u=0;u<i.length;u++)a=o.classesElementLookup[i[u]]||e(),t.add?(n(),a=e(e.uniqueSort(a.get().concat(t.element.get())))):a=e(a.not(t.element).get()),o.classesElementLookup[i[u]]=a,r.push(i[u]),s&&t.classes[i[u]]&&r.push(t.classes[i[u]])}var r=[],o=this;return t=e.extend({element:this.element,classes:this.options.classes||{}},t),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),r.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(i,r){-1!==e.inArray(t.target,r)&&(n.classesElementLookup[i]=e(r.not(t.target).get()))}),this._off(e(t.target))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var r="string"==typeof e||null===e,o={extra:r?t:n,keys:r?e:t,element:r?this.element:e,add:i};return o.element.toggleClass(this._classes(o),i),this},_on:function(t,n,i){var r,o=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=r=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),e.each(i,function(i,s){function a(){return t||o.options.disabled!==!0&&!e(this).hasClass("ui-state-disabled")?("string"==typeof s?o[s]:s).apply(o,arguments):void 0}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||e.guid++);var u=i.match(/^([\w:-]*)\s*(.*)$/),l=u[1]+o.eventNamespace,c=u[2];c?r.on(l,c,a):n.on(l,a)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function n(){return("string"==typeof e?i[e]:e).apply(i,arguments)}var i=this;return setTimeout(n,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var r,o,s=this.options[t];if(i=i||{},n=e.Event(n),n.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!("function"==typeof s&&s.apply(this.element[0],[n].concat(i))===!1||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,r,o){"string"==typeof r&&(r={effect:r});var s,a=r?r===!0||"number"==typeof r?n:r.effect||n:t;r=r||{},"number"==typeof r?r={duration:r}:r===!0&&(r={}),s=!e.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),s&&e.effects&&e.effects.effect[a]?i[t](r):a!==t&&i[a]?i[a](r.duration,r.easing,o):i.queue(function(n){e(this)[t](),o&&o.call(i[0]),n()})}});e.widget;/*!
- * jQuery UI Position 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- *
- * http://api.jqueryui.com/position/
- */
- !function(){function t(e,t,n){return[parseFloat(e[0])*(f.test(e[0])?t/100:1),parseFloat(e[1])*(f.test(e[1])?n/100:1)]}function n(t,n){return parseInt(e.css(t,n),10)||0}function i(e){return null!=e&&e===e.window}function r(e){var t=e[0];return 9===t.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:i(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var o,s=Math.max,a=Math.abs,u=/left|center|right/,l=/top|center|bottom/,c=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,f=/%$/,p=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==o)return o;var t,n,i=e("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),r=i.children()[0];return e("body").append(i),t=r.offsetWidth,i.css("overflow","scroll"),n=r.offsetWidth,t===n&&(n=i[0].clientWidth),i.remove(),o=t-n},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),r="scroll"===n||"auto"===n&&t.width<t.element[0].scrollWidth,o="scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight;return{width:o?e.position.scrollbarWidth():0,height:r?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),r=i(n[0]),o=!!n[0]&&9===n[0].nodeType,s=!r&&!o;return{element:n,isWindow:r,isDocument:o,offset:s?e(t).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(i){if(!i||!i.of)return p.apply(this,arguments);i=e.extend({},i);var o,f,d,g,v,m,y="string"==typeof i.of?e(document).find(i.of):e(i.of),b=e.position.getWithinInfo(i.within),_=e.position.getScrollInfo(b),w=(i.collision||"flip").split(" "),x={};return m=r(y),y[0].preventDefault&&(i.at="left top"),f=m.width,d=m.height,g=m.offset,v=e.extend({},g),e.each(["my","at"],function(){var e,t,n=(i[this]||"").split(" ");1===n.length&&(n=u.test(n[0])?n.concat(["center"]):l.test(n[0])?["center"].concat(n):["center","center"]),n[0]=u.test(n[0])?n[0]:"center",n[1]=l.test(n[1])?n[1]:"center",e=c.exec(n[0]),t=c.exec(n[1]),x[this]=[e?e[0]:0,t?t[0]:0],i[this]=[h.exec(n[0])[0],h.exec(n[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===i.at[0]?v.left+=f:"center"===i.at[0]&&(v.left+=f/2),"bottom"===i.at[1]?v.top+=d:"center"===i.at[1]&&(v.top+=d/2),o=t(x.at,f,d),v.left+=o[0],v.top+=o[1],this.each(function(){var r,u,l=e(this),c=l.outerWidth(),h=l.outerHeight(),p=n(this,"marginLeft"),m=n(this,"marginTop"),k=c+p+n(this,"marginRight")+_.width,C=h+m+n(this,"marginBottom")+_.height,T=e.extend({},v),E=t(x.my,l.outerWidth(),l.outerHeight());"right"===i.my[0]?T.left-=c:"center"===i.my[0]&&(T.left-=c/2),"bottom"===i.my[1]?T.top-=h:"center"===i.my[1]&&(T.top-=h/2),T.left+=E[0],T.top+=E[1],r={marginLeft:p,marginTop:m},e.each(["left","top"],function(t,n){e.ui.position[w[t]]&&e.ui.position[w[t]][n](T,{targetWidth:f,targetHeight:d,elemWidth:c,elemHeight:h,collisionPosition:r,collisionWidth:k,collisionHeight:C,offset:[o[0]+E[0],o[1]+E[1]],my:i.my,at:i.at,within:b,elem:l})}),i.using&&(u=function(e){var t=g.left-T.left,n=t+f-c,r=g.top-T.top,o=r+d-h,u={target:{element:y,left:g.left,top:g.top,width:f,height:d},element:{element:l,left:T.left,top:T.top,width:c,height:h},horizontal:0>n?"left":t>0?"right":"center",vertical:0>o?"top":r>0?"bottom":"middle"};c>f&&a(t+n)<f&&(u.horizontal="center"),h>d&&a(r+o)<d&&(u.vertical="middle"),s(a(t),a(n))>s(a(r),a(o))?u.important="horizontal":u.important="vertical",i.using.call(this,e,u)}),l.offset(e.extend(T,{using:u}))})},e.ui.position={fit:{left:function(e,t){var n,i=t.within,r=i.isWindow?i.scrollLeft:i.offset.left,o=i.width,a=e.left-t.collisionPosition.marginLeft,u=r-a,l=a+t.collisionWidth-o-r;t.collisionWidth>o?u>0&&0>=l?(n=e.left+u+t.collisionWidth-o-r,e.left+=u-n):l>0&&0>=u?e.left=r:u>l?e.left=r+o-t.collisionWidth:e.left=r:u>0?e.left+=u:l>0?e.left-=l:e.left=s(e.left-a,e.left)},top:function(e,t){var n,i=t.within,r=i.isWindow?i.scrollTop:i.offset.top,o=t.within.height,a=e.top-t.collisionPosition.marginTop,u=r-a,l=a+t.collisionHeight-o-r;t.collisionHeight>o?u>0&&0>=l?(n=e.top+u+t.collisionHeight-o-r,e.top+=u-n):l>0&&0>=u?e.top=r:u>l?e.top=r+o-t.collisionHeight:e.top=r:u>0?e.top+=u:l>0?e.top-=l:e.top=s(e.top-a,e.top)}},flip:{left:function(e,t){var n,i,r=t.within,o=r.offset.left+r.scrollLeft,s=r.width,u=r.isWindow?r.scrollLeft:r.offset.left,l=e.left-t.collisionPosition.marginLeft,c=l-u,h=l+t.collisionWidth-s-u,f="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,d=-2*t.offset[0];0>c?(n=e.left+f+p+d+t.collisionWidth-s-o,(0>n||n<a(c))&&(e.left+=f+p+d)):h>0&&(i=e.left-t.collisionPosition.marginLeft+f+p+d-u,(i>0||a(i)<h)&&(e.left+=f+p+d))},top:function(e,t){var n,i,r=t.within,o=r.offset.top+r.scrollTop,s=r.height,u=r.isWindow?r.scrollTop:r.offset.top,l=e.top-t.collisionPosition.marginTop,c=l-u,h=l+t.collisionHeight-s-u,f="top"===t.my[1],p=f?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,d="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,g=-2*t.offset[1];0>c?(i=e.top+p+d+g+t.collisionHeight-s-o,(0>i||i<a(c))&&(e.top+=p+d+g)):h>0&&(n=e.top-t.collisionPosition.marginTop+p+d+g-u,(n>0||a(n)<h)&&(e.top+=p+d+g))}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}();var g,v=(e.ui.position,e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])}}),e.fn.extend({disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(e+".ui-disableSelection",function(e){e.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),e),m="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",y={},b=y.toString,_=/^([\-+])=\s*(\d+\.?\d*)/,w=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),e[4]?(parseInt(e[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),e[4]?(parseInt(e[4]+e[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],x=v.Color=function(e,t,n,i){return new v.Color.fn.parse(e,t,n,i)},k={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},C={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},T=x.support={},E=v("<p>")[0],S=v.each;E.style.cssText="background-color:rgba(1,1,1,.5)",T.rgba=E.style.backgroundColor.indexOf("rgba")>-1,S(k,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){y["[object "+t+"]"]=t.toLowerCase()}),x.fn=v.extend(x.prototype,{parse:function(e,r,o,s){if(void 0===e)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=v(e).css(r),r=void 0);var a=this,u=t(e),l=this._rgba=[];return void 0!==r&&(e=[e,r,o,s],u="array"),"string"===u?this.parse(i(e)||g._default):"array"===u?(S(k.rgba.props,function(t,i){l[i.idx]=n(e[i.idx],i)}),this):"object"===u?(e instanceof x?S(k,function(t,n){e[n.cache]&&(a[n.cache]=e[n.cache].slice())}):S(k,function(t,i){var r=i.cache;S(i.props,function(t,o){if(!a[r]&&i.to){if("alpha"===t||null==e[t])return;a[r]=i.to(a._rgba)}a[r][o.idx]=n(e[t],o,!0)}),a[r]&&v.inArray(null,a[r].slice(0,3))<0&&(null==a[r][3]&&(a[r][3]=1),i.from&&(a._rgba=i.from(a[r])))}),this):void 0},is:function(e){var t=x(e),n=!0,i=this;return S(k,function(e,r){var o,s=t[r.cache];return s&&(o=i[r.cache]||r.to&&r.to(i._rgba)||[],S(r.props,function(e,t){return null!=s[t.idx]?n=s[t.idx]===o[t.idx]:void 0})),n}),n},_space:function(){var e=[],t=this;return S(k,function(n,i){t[i.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var i=x(e),r=i._space(),o=k[r],s=0===this.alpha()?x("transparent"):this,a=s[o.cache]||o.to(s._rgba),u=a.slice();return i=i[o.cache],S(o.props,function(e,r){var o=r.idx,s=a[o],l=i[o],c=C[r.type]||{};null!==l&&(null===s?u[o]=l:(c.mod&&(l-s>c.mod/2?s+=c.mod:s-l>c.mod/2&&(s-=c.mod)),u[o]=n((l-s)*t+s,r)))}),this[r](u)},blend:function(e){if(1===this._rgba[3])return this;var t=this._rgba.slice(),n=t.pop(),i=x(e)._rgba;return x(v.map(t,function(e,t){return(1-n)*i[t]+n*e}))},toRgbaString:function(){var e="rgba(",t=v.map(this._rgba,function(e,t){return null!=e?e:t>2?1:0});return 1===t[3]&&(t.pop(),e="rgb("),e+t.join()+")"},toHslaString:function(){var e="hsla(",t=v.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===t[3]&&(t.pop(),e="hsl("),e+t.join()+")"},toHexString:function(e){var t=this._rgba.slice(),n=t.pop();return e&&t.push(~~(255*n)),"#"+v.map(t,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),x.fn.parse.prototype=x.fn,k.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,i=e[0]/255,r=e[1]/255,o=e[2]/255,s=e[3],a=Math.max(i,r,o),u=Math.min(i,r,o),l=a-u,c=a+u,h=.5*c;return t=u===a?0:i===a?60*(r-o)/l+360:r===a?60*(o-i)/l+120:60*(i-r)/l+240,n=0===l?0:.5>=h?l/c:l/(2-c),[Math.round(t)%360,n,h,null==s?1:s]},k.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],i=e[2],o=e[3],s=.5>=i?i*(1+n):i+n-i*n,a=2*i-s;return[Math.round(255*r(a,s,t+1/3)),Math.round(255*r(a,s,t)),Math.round(255*r(a,s,t-1/3)),o]},S(k,function(e,i){var r=i.props,o=i.cache,s=i.to,a=i.from;x.fn[e]=function(e){if(s&&!this[o]&&(this[o]=s(this._rgba)),void 0===e)return this[o].slice();var i,u=t(e),l="array"===u||"object"===u?e:arguments,c=this[o].slice();return S(r,function(e,t){var i=l["object"===u?e:t.idx];null==i&&(i=c[t.idx]),c[t.idx]=n(i,t)}),a?(i=x(a(c)),i[o]=c,i):x(c)},S(r,function(n,i){x.fn[n]||(x.fn[n]=function(r){var o,s,a,u,l=t(r);return u="alpha"===n?this._hsla?"hsla":"rgba":e,o=this[u](),s=o[i.idx],"undefined"===l?s:("function"===l&&(r=r.call(this,s),l=t(r)),null==r&&i.empty?this:("string"===l&&(a=_.exec(r),a&&(r=s+parseFloat(a[2])*("+"===a[1]?1:-1))),o[i.idx]=r,this[u](o)))})})}),x.hook=function(e){var n=e.split(" ");S(n,function(e,n){v.cssHooks[n]={set:function(e,r){var o,s,a="";if("transparent"!==r&&("string"!==t(r)||(o=i(r)))){if(r=x(o||r),!T.rgba&&1!==r._rgba[3]){for(s="backgroundColor"===n?e.parentNode:e;(""===a||"transparent"===a)&&s&&s.style;)try{a=v.css(s,"backgroundColor"),s=s.parentNode}catch(u){}r=r.blend(a&&"transparent"!==a?a:"_default")}r=r.toRgbaString()}try{e.style[n]=r}catch(u){}}},v.fx.step[n]=function(e){e.colorInit||(e.start=x(e.elem,n),e.end=x(e.end),e.colorInit=!0),v.cssHooks[n].set(e.elem,e.start.transition(e.end,e.pos))}})},x.hook(m),v.cssHooks.borderColor={expand:function(e){var t={};return S(["Top","Right","Bottom","Left"],function(n,i){t["border"+i+"Color"]=e}),t}},g=v.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"};/*!
- * jQuery UI Effects 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- var D="ui-effects-",O="ui-effects-style",P="ui-effects-animated";e.effects={effect:{}},function(){function t(e){return e.replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})}function n(e){var n,i,r=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(r&&r.length&&r[0]&&r[r[0]])for(i=r.length;i--;)n=r[i],"string"==typeof r[n]&&(o[t(n)]=r[n]);else for(n in r)"string"==typeof r[n]&&(o[n]=r[n]);return o}function i(t,n){var i,r,s={};for(i in n)r=n[i],t[i]!==r&&(o[i]||(e.fx.step[i]||!isNaN(parseFloat(r)))&&(s[i]=r));return s}var r=["add","remove","toggle"],o={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,n){e.fx.step[n]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(v.style(e.elem,n,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,o,s,a){var u=e.speed(o,s,a);return this.queue(function(){var o,s=e(this),a=s.attr("class")||"",l=u.children?s.find("*").addBack():s;l=l.map(function(){var t=e(this);return{el:t,start:n(this)}}),o=function(){e.each(r,function(e,n){t[n]&&s[n+"Class"](t[n])})},o(),l=l.map(function(){return this.end=n(this.el[0]),this.diff=i(this.start,this.end),this}),s.attr("class",a),l=l.map(function(){var t=this,n=e.Deferred(),i=e.extend({},u,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,i),n.promise()}),e.when.apply(e,l.get()).done(function(){o(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),u.complete.call(s[0])})})},e.fn.extend({addClass:function(t){return function(n,i,r,o){return i?e.effects.animateClass.call(this,{add:n},i,r,o):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(n,i,r,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},i,r,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(n,i,r,o,s){return"boolean"==typeof i||void 0===i?r?e.effects.animateClass.call(this,i?{add:n}:{remove:n},r,o,s):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:n},i,r,o)}}(e.fn.toggleClass),switchClass:function(t,n,i,r,o){return e.effects.animateClass.call(this,{add:n,remove:t},i,r,o)}})}(),function(){function t(t,n,i,r){return e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},null==n&&(n={}),"function"==typeof n&&(r=n,i=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(r=i,i=n,n={}),"function"==typeof i&&(r=i,i=null),n&&e.extend(t,n),i=i||n.duration,t.duration=e.fx.off?0:"number"==typeof i?i:i in e.fx.speeds?e.fx.speeds[i]:e.fx.speeds._default,t.complete=r||n.complete,t}function n(t){return!t||"number"==typeof t||e.fx.speeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?"function"==typeof t?!0:"object"!=typeof t||t.effect?!1:!0:!0}function i(e,t){var n=t.outerWidth(),i=t.outerHeight(),r=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,o=r.exec(e)||["",0,n,i,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?n:parseFloat(o[2]),bottom:"auto"===o[3]?i:parseFloat(o[3]),left:parseFloat(o[4])||0}}e.expr&&e.expr.pseudos&&e.expr.pseudos.animated&&(e.expr.pseudos.animated=function(t){return function(n){return!!e(n).data(P)||t(n)}}(e.expr.pseudos.animated)),e.uiBackCompat!==!1&&e.extend(e.effects,{save:function(e,t){for(var n=0,i=t.length;i>n;n++)null!==t[n]&&e.data(D+t[n],e[0].style[t[n]])},restore:function(e,t){for(var n,i=0,r=t.length;r>i;i++)null!==t[i]&&(n=e.data(D+t[i]),e.css(t[i],n))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},i=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),r={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(s){o=document.body}return t.wrap(i),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),i=t.parent(),"static"===t.css("position")?(i.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,i){n[i]=t.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(r),i.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).trigger("focus")),t}}),e.extend(e.effects,{version:"1.13.0",define:function(t,n,i){return i||(i=n,n="effect"),e.effects.effect[t]=i,e.effects.effect[t].mode=n,i},scaledDimensions:function(e,t,n){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var i="horizontal"!==n?(t||100)/100:1,r="vertical"!==n?(t||100)/100:1;return{height:e.height()*r,width:e.width()*i,outerHeight:e.outerHeight()*r,outerWidth:e.outerWidth()*i}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var i=e.queue();t>1&&i.splice.apply(i,[1,0].concat(i.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data(O,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(O)||"",e.removeData(O)},mode:function(e,t){var n=e.is(":hidden");return"toggle"===t&&(t=n?"show":"hide"),(n?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var n,i;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=e[1]/t.width}return{x:i,y:n}},createPlaceholder:function(t){var n,i=t.css("position"),r=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",n=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),"float":t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(D+"placeholder",n)),t.css({position:i,left:r.left,top:r.top}),n},removePlaceholder:function(e){var t=D+"placeholder",n=e.data(t);n&&(n.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,n,i,r){return r=r||{},e.each(n,function(e,n){var o=t.cssUnit(n);o[0]>0&&(r[n]=o[0]*i+o[1])}),r}}),e.fn.extend({effect:function(){function n(t){function n(){a.removeData(P),e.effects.cleanUp(a),"hide"===i.mode&&a.hide(),s()}function s(){"function"==typeof u&&u.call(a[0]),"function"==typeof t&&t()}var a=e(this);i.mode=c.shift(),e.uiBackCompat===!1||o?"none"===i.mode?(a[l](),s()):r.call(a[0],i,n):(a.is(":hidden")?"hide"===l:"show"===l)?(a[l](),s()):r.call(a[0],i,s)}var i=t.apply(this,arguments),r=e.effects.effect[i.effect],o=r.mode,s=i.queue,a=s||"fx",u=i.complete,l=i.mode,c=[],h=function(t){var n=e(this),i=e.effects.mode(n,l)||o;n.data(P,!0),c.push(i),o&&("show"===i||i===o&&"hide"===i)&&n.show(),o&&"none"===i||e.effects.saveStyle(n),"function"==typeof t&&t()};return e.fx.off||!r?l?this[l](i.duration,u):this.each(function(){u&&u.call(this)}):s===!1?this.each(h).each(n):this.queue(a,h).queue(a,n)},show:function(e){return function(i){if(n(i))return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="show",this.effect.call(this,r)}}(e.fn.show),hide:function(e){return function(i){if(n(i))return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="hide",this.effect.call(this,r)}}(e.fn.hide),toggle:function(e){return function(i){if(n(i)||"boolean"==typeof i)return e.apply(this,arguments);var r=t.apply(this,arguments);return r.mode="toggle",this.effect.call(this,r)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),i=[];return e.each(["em","px","%","pt"],function(e,t){n.indexOf(t)>0&&(i=[parseFloat(n),t])}),i},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):i(this.css("clip"),this)},transfer:function(t,n){var i=e(this),r=e(t.to),o="fixed"===r.css("position"),s=e("body"),a=o?s.scrollTop():0,u=o?s.scrollLeft():0,l=r.offset(),c={top:l.top-a,left:l.left-u,height:r.innerHeight(),width:r.innerWidth()},h=i.offset(),f=e("<div class='ui-effects-transfer'></div>");f.appendTo("body").addClass(t.className).css({top:h.top-a,left:h.left-u,height:i.innerHeight(),width:i.innerWidth(),position:o?"fixed":"absolute"}).animate(c,t.duration,t.easing,function(){f.remove(),"function"==typeof n&&n()})}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=i(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,n){t[n]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?n(2*e)/2:1-n(-2*e+2)/2}})}();var A,A=e.effects;e.effects.define("blind","hide",function(t,n){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},r=e(this),o=t.direction||"up",s=r.cssClip(),a={clip:e.extend({},s)},u=e.effects.createPlaceholder(r);a.clip[i[o][0]]=a.clip[i[o][1]],"show"===t.mode&&(r.cssClip(a.clip),u&&u.css(e.effects.clipToBox(a)),a.clip=s),u&&u.animate(e.effects.clipToBox(a),t.duration,t.easing),r.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.effects.define("bounce",function(t,n){var i,r,o,s=e(this),a=t.mode,u="hide"===a,l="show"===a,c=t.direction||"up",h=t.distance,f=t.times||5,p=2*f+(l||u?1:0),d=t.duration/p,g=t.easing,v="up"===c||"down"===c?"top":"left",m="up"===c||"left"===c,y=0,b=s.queue().length;for(e.effects.createPlaceholder(s),o=s.css(v),h||(h=s["top"===v?"outerHeight":"outerWidth"]()/3),l&&(r={opacity:1},r[v]=o,s.css("opacity",0).css(v,m?2*-h:2*h).animate(r,d,g)),u&&(h/=Math.pow(2,f-1)),r={},r[v]=o;f>y;y++)i={},i[v]=(m?"-=":"+=")+h,s.animate(i,d,g).animate(r,d,g),h=u?2*h:h/2;u&&(i={opacity:0},i[v]=(m?"-=":"+=")+h,s.animate(i,d,g)),s.queue(n),e.effects.unshift(s,b,p+1)}),e.effects.define("clip","hide",function(t,n){var i,r={},o=e(this),s=t.direction||"vertical",a="both"===s,u=a||"horizontal"===s,l=a||"vertical"===s;i=o.cssClip(),r.clip={top:l?(i.bottom-i.top)/2:i.top,right:u?(i.right-i.left)/2:i.right,bottom:l?(i.bottom-i.top)/2:i.bottom,left:u?(i.right-i.left)/2:i.left},e.effects.createPlaceholder(o),"show"===t.mode&&(o.cssClip(r.clip),r.clip=i),o.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.effects.define("drop","hide",function(t,n){var i,r=e(this),o=t.mode,s="show"===o,a=t.direction||"left",u="up"===a||"down"===a?"top":"left",l="up"===a||"left"===a?"-=":"+=",c="+="===l?"-=":"+=",h={opacity:0};e.effects.createPlaceholder(r),i=t.distance||r["top"===u?"outerHeight":"outerWidth"](!0)/2,h[u]=l+i,s&&(r.css(h),h[u]=c+i,h.opacity=1),r.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.effects.define("explode","hide",function(t,n){function i(){b.push(this),b.length===h*f&&r()}function r(){p.css({visibility:"visible"}),e(b).remove(),n()}var o,s,a,u,l,c,h=t.pieces?Math.round(Math.sqrt(t.pieces)):3,f=h,p=e(this),d=t.mode,g="show"===d,v=p.show().css("visibility","hidden").offset(),m=Math.ceil(p.outerWidth()/f),y=Math.ceil(p.outerHeight()/h),b=[];for(o=0;h>o;o++)for(u=v.top+o*y,c=o-(h-1)/2,s=0;f>s;s++)a=v.left+s*m,l=s-(f-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*m,top:-o*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:m,height:y,left:a+(g?l*m:0),top:u+(g?c*y:0),opacity:g?0:1}).animate({left:a+(g?0:l*m),top:u+(g?0:c*y),opacity:g?1:0},t.duration||500,t.easing,i)}),e.effects.define("fade","toggle",function(t,n){var i="show"===t.mode;e(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.effects.define("fold","hide",function(t,n){var i=e(this),r=t.mode,o="show"===r,s="hide"===r,a=t.size||15,u=/([0-9]+)%/.exec(a),l=!!t.horizFirst,c=l?["right","bottom"]:["bottom","right"],h=t.duration/2,f=e.effects.createPlaceholder(i),p=i.cssClip(),d={clip:e.extend({},p)},g={clip:e.extend({},p)},v=[p[c[0]],p[c[1]]],m=i.queue().length;u&&(a=parseInt(u[1],10)/100*v[s?0:1]),d.clip[c[0]]=a,g.clip[c[0]]=a,g.clip[c[1]]=0,o&&(i.cssClip(g.clip),f&&f.css(e.effects.clipToBox(g)),g.clip=p),i.queue(function(n){f&&f.animate(e.effects.clipToBox(d),h,t.easing).animate(e.effects.clipToBox(g),h,t.easing),n()}).animate(d,h,t.easing).animate(g,h,t.easing).queue(n),e.effects.unshift(i,m,4)}),e.effects.define("highlight","show",function(t,n){var i=e(this),r={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(r.opacity=0),e.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:n})}),e.effects.define("size",function(t,n){var i,r,o,s=e(this),a=["fontSize"],u=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=t.mode,h="effect"!==c,f=t.scale||"both",p=t.origin||["middle","center"],d=s.css("position"),g=s.position(),v=e.effects.scaledDimensions(s),m=t.from||v,y=t.to||e.effects.scaledDimensions(s,0);e.effects.createPlaceholder(s),"show"===c&&(o=m,m=y,y=o),r={from:{y:m.height/v.height,x:m.width/v.width},to:{y:y.height/v.height,x:y.width/v.width}},("box"===f||"both"===f)&&(r.from.y!==r.to.y&&(m=e.effects.setTransition(s,u,r.from.y,m),y=e.effects.setTransition(s,u,r.to.y,y)),r.from.x!==r.to.x&&(m=e.effects.setTransition(s,l,r.from.x,m),y=e.effects.setTransition(s,l,r.to.x,y))),("content"===f||"both"===f)&&r.from.y!==r.to.y&&(m=e.effects.setTransition(s,a,r.from.y,m),y=e.effects.setTransition(s,a,r.to.y,y)),p&&(i=e.effects.getBaseline(p,v),m.top=(v.outerHeight-m.outerHeight)*i.y+g.top,m.left=(v.outerWidth-m.outerWidth)*i.x+g.left,y.top=(v.outerHeight-y.outerHeight)*i.y+g.top,y.left=(v.outerWidth-y.outerWidth)*i.x+g.left),delete m.outerHeight,delete m.outerWidth,s.css(m),("content"===f||"both"===f)&&(u=u.concat(["marginTop","marginBottom"]).concat(a),l=l.concat(["marginLeft","marginRight"]),s.find("*[width]").each(function(){var n=e(this),i=e.effects.scaledDimensions(n),o={height:i.height*r.from.y,width:i.width*r.from.x,outerHeight:i.outerHeight*r.from.y,outerWidth:i.outerWidth*r.from.x},s={height:i.height*r.to.y,width:i.width*r.to.x,outerHeight:i.height*r.to.y,outerWidth:i.width*r.to.x};r.from.y!==r.to.y&&(o=e.effects.setTransition(n,u,r.from.y,o),s=e.effects.setTransition(n,u,r.to.y,s)),r.from.x!==r.to.x&&(o=e.effects.setTransition(n,l,r.from.x,o),s=e.effects.setTransition(n,l,r.to.x,s)),h&&e.effects.saveStyle(n),n.css(o),n.animate(s,t.duration,t.easing,function(){h&&e.effects.restoreStyle(n)})})),s.animate(y,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=s.offset();0===y.opacity&&s.css("opacity",m.opacity),h||(s.css("position","static"===d?"relative":d).offset(t),e.effects.saveStyle(s)),n()}})}),e.effects.define("scale",function(t,n){var i=e(this),r=t.mode,o=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"effect"!==r?0:100),s=e.extend(!0,{from:e.effects.scaledDimensions(i),to:e.effects.scaledDimensions(i,o,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(s.from.opacity=1,s.to.opacity=0),e.effects.effect.size.call(this,s,n)}),e.effects.define("puff","hide",function(t,n){var i=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,i,n)}),e.effects.define("pulsate","show",function(t,n){var i=e(this),r=t.mode,o="show"===r,s="hide"===r,a=o||s,u=2*(t.times||5)+(a?1:0),l=t.duration/u,c=0,h=1,f=i.queue().length;for((o||!i.is(":visible"))&&(i.css("opacity",0).show(),c=1);u>h;h++)i.animate({opacity:c},l,t.easing),c=1-c;i.animate({opacity:c},l,t.easing),i.queue(n),e.effects.unshift(i,f,u+1)}),e.effects.define("shake",function(t,n){var i=1,r=e(this),o=t.direction||"left",s=t.distance||20,a=t.times||3,u=2*a+1,l=Math.round(t.duration/u),c="up"===o||"down"===o?"top":"left",h="up"===o||"left"===o,f={},p={},d={},g=r.queue().length;for(e.effects.createPlaceholder(r),f[c]=(h?"-=":"+=")+s,p[c]=(h?"+=":"-=")+2*s,d[c]=(h?"-=":"+=")+2*s,r.animate(f,l,t.easing);a>i;i++)r.animate(p,l,t.easing).animate(d,l,t.easing);r.animate(p,l,t.easing).animate(f,l/2,t.easing).queue(n),e.effects.unshift(r,g,u+1)}),e.effects.define("slide","show",function(t,n){var i,r,o=e(this),s={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=t.mode,u=t.direction||"left",l="up"===u||"down"===u?"top":"left",c="up"===u||"left"===u,h=t.distance||o["top"===l?"outerHeight":"outerWidth"](!0),f={};e.effects.createPlaceholder(o),i=o.cssClip(),r=o.position()[l],f[l]=(c?-1:1)*h+r,f.clip=o.cssClip(),f.clip[s[u][1]]=f.clip[s[u][0]],"show"===a&&(o.cssClip(f.clip),o.css(l,f[l]),f.clip=i,f[l]=r),o.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:n})});e.uiBackCompat!==!1&&(A=e.effects.define("transfer",function(t,n){e(this).transfer(t,n)}));/*!
- * jQuery UI Focusable 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.ui.focusable=function(t,n){var i,r,s,a,u,l=t.nodeName.toLowerCase();return"area"===l?(i=t.parentNode,r=i.name,t.href&&r&&"map"===i.nodeName.toLowerCase()?(s=e("img[usemap='#"+r+"']"),s.length>0&&s.is(":visible")):!1):(/^(input|select|textarea|button|object)$/.test(l)?(a=!t.disabled,a&&(u=e(t).closest("fieldset")[0],u&&(a=!u.disabled))):a="a"===l?t.href||n:n,a&&e(t).is(":visible")&&o(e(t)))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}});e.ui.focusable,e.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):e(this[0].form)},e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout(function(){var n=t.data("ui-form-reset-instances");e.each(n,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element._form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};if(/*!
- * jQuery UI Support for jQuery core 1.8.x and newer 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- *
- */
- e.expr.pseudos||(e.expr.pseudos=e.expr[":"]),e.uniqueSort||(e.uniqueSort=e.unique),!e.escapeSelector){var I=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,N=function(e,t){return t?"\x00"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e};e.escapeSelector=function(e){return(e+"").replace(I,N)}}e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter(function(e){return e%2===0})},odd:function(){return this.filter(function(e){return e%2===1})}});/*!
- * jQuery UI Keycode 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.fn.labels=function(){var t,n,i,r,o;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(r=this.eq(0).parents("label"),i=this.attr("id"),i&&(t=this.eq(0).parents().last(),o=t.add(t.length?t.siblings():this.siblings()),n="label[for='"+e.escapeSelector(i)+"']",r=r.add(o.find(n).addBack(n))),this.pushStack(r)):this.pushStack([])},e.fn.scrollParent=function(t){var n=this.css("position"),i="absolute"===n,r=t?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var t=e(this);return i&&"static"===t.css("position")?!1:r.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&o.length?o:e(this[0].ownerDocument||document)},e.extend(e.expr.pseudos,{tabbable:function(t){var n=e.attr(t,"tabindex"),i=null!=n;return(!i||n>=0)&&e.ui.focusable(t,i)}}),e.fn.extend({uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.widget("ui.accordion",{version:"1.13.0",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(e){return e.find("> li > :first-child").add(e.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=e(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||t.active!==!1&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e()}},_createIcons:function(){var t,n,i=this.options.icons;i&&(t=e("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+i.header),t.prependTo(this.headers),n=this.active.children(".ui-accordion-header-icon"),this._removeClass(n,i.header)._addClass(n,null,i.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){return"active"===e?void this._activate(t):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||this.options.active!==!1||this._activate(0),void("icons"===e&&(this._destroyIcons(),t&&this._createIcons())))},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var n=e.ui.keyCode,i=this.headers.length,r=this.headers.index(t.target),o=!1;switch(t.keyCode){case n.RIGHT:case n.DOWN:o=this.headers[(r+1)%i];break;case n.LEFT:case n.UP:o=this.headers[(r-1+i)%i];break;case n.SPACE:case n.ENTER:this._eventHandler(t);break;case n.HOME:o=this.headers[0];break;case n.END:o=this.headers[i-1]}o&&(e(t.target).attr("tabIndex",-1),e(o).attr("tabIndex",0),e(o).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),t.active===!1&&t.collapsible===!0||!this.headers.length?(t.active=!1,this.active=e()):t.active===!1?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var t,n=this.options,i=n.heightStyle,r=this.element.parent();this.active=this._findActive(n.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=e(this),n=t.uniqueId().attr("id"),i=t.next(),r=i.uniqueId().attr("id");t.attr("aria-controls",r),i.attr("aria-labelledby",n)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===i?(t=r.height(),this.element.siblings(":visible").each(function(){var n=e(this),i=n.css("position");"absolute"!==i&&"fixed"!==i&&(t-=n.outerHeight(!0))}),this.headers.each(function(){t-=e(this).outerHeight(!0)}),this.headers.next().each(function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===i&&(t=0,this.headers.next().each(function(){var n=e(this).is(":visible");n||e(this).show(),t=Math.max(t,e(this).css("height","").height()),n||e(this).hide()}).height(t))},_activate:function(t){var n=this._findActive(t)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var n={keydown:"_keydown"};t&&e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var n,i,r=this.options,o=this.active,s=e(t.currentTarget),a=s[0]===o[0],u=a&&r.collapsible,l=u?e():s.next(),c=o.next(),h={oldHeader:o,oldPanel:c,newHeader:u?e():s,newPanel:l};t.preventDefault(),a&&!r.collapsible||this._trigger("beforeActivate",t,h)===!1||(r.active=u?!1:this.headers.index(s),this.active=a?e():s,this._toggle(h),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),r.icons&&(n=o.children(".ui-accordion-header-icon"),this._removeClass(n,null,r.icons.activeHeader)._addClass(n,null,r.icons.header)),a||(this._removeClass(s,"ui-accordion-header-collapsed")._addClass(s,"ui-accordion-header-active","ui-state-active"),r.icons&&(i=s.children(".ui-accordion-header-icon"),this._removeClass(i,null,r.icons.header)._addClass(i,null,r.icons.activeHeader)),this._addClass(s.next(),"ui-accordion-content-active")))},_toggle:function(t){var n=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=i,this.options.animate?this._animate(n,i,t):(i.hide(),n.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):n.length&&this.headers.filter(function(){return 0===parseInt(e(this).attr("tabIndex"),10)}).attr("tabIndex",-1),n.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,t,n){var i,r,o,s=this,a=0,u=e.css("box-sizing"),l=e.length&&(!t.length||e.index()<t.index()),c=this.options.animate||{},h=l&&c.down||c,f=function(){s._toggleComplete(n)};return"number"==typeof h&&(o=h),"string"==typeof h&&(r=h),r=r||h.easing||c.easing,o=o||h.duration||c.duration,t.length?e.length?(i=e.show().outerHeight(),t.animate(this.hideProps,{duration:o,easing:r,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:o,easing:r,complete:f,step:function(e,n){n.now=Math.round(e),"height"!==n.prop?"content-box"===u&&(a+=n.now):"content"!==s.options.heightStyle&&(n.now=Math.round(i-t.outerHeight()-a),a=0)}})):t.animate(this.hideProps,o,r,f):e.animate(this.showProps,o,r,f)},_toggleComplete:function(e){var t=e.oldPanel,n=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(n,"ui-accordion-header-active")._addClass(n,"ui-accordion-header-collapsed"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.widget("ui.menu",{version:"1.13.0",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(t){var n=e(t.target),i=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this._menuItems().first();t||this.focus(e,n)},blur:function(t){this._delay(function(){var n=!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]));n&&this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var n=e(t.target).closest(".ui-menu-item"),i=e(t.currentTarget);n[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i)))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),n=t.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),n.children().each(function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var n,i,r,o,s=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:s=!1,i=this.previousFilter||"",o=!1,r=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),r===i?o=!0:r=i+r,n=this._filterMenuItems(r),n=o&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n,n.length||(r=String.fromCharCode(t.keyCode),n=this._filterMenuItems(r)),n.length?(this.focus(t,n),this.previousFilter=r,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}s&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n,i,r,o,s=this,a=this.options.icons.submenu,u=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=u.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),n=t.prev(),i=e("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+a),n.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",n.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),t=u.add(this.element),n=t.find(this.options.items),n.not(".ui-menu-item").each(function(){var t=e(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),r=n.not(".ui-menu-item, .ui-menu-divider"),o=r.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(r,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),n.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var n,i,r;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),r=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(r,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=t.children(".ui-menu"),n.length&&e&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,i,r,o,s,a;this._hasScroll()&&(n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,r=t.offset().top-this.activeMenu.offset().top-n-i,o=this.activeMenu.scrollTop(),s=this.activeMenu.height(),a=t.outerHeight(),0>r?this.activeMenu.scrollTop(o+r):r+a>s&&this.activeMenu.scrollTop(o+r-s+a))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay(function(){var i=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(t),this._removeClass(i.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=i},n?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,n){var i;this.active&&(i="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),i&&i.length&&this.active||(i=this._menuItems(this.activeMenu)[t]()),this.focus(n,i)},nextPage:function(t){var n,i,r;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,r=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(r+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-i-r<0}),this.focus(t,n)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]()))):void this.next(t)},previousPage:function(t){var n,i,r;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,r=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(r+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-i+r>0}),this.focus(t,n)):this.focus(t,this._menuItems(this.activeMenu).first()))):void this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,n)},_filterMenuItems:function(t){var n=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(String.prototype.trim.call(e(this).children(".ui-menu-item-wrapper").text()))})}});/*!
- * jQuery UI Autocomplete 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.widget("ui.autocomplete",{version:"1.13.0",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,n,i,r=this.element[0].nodeName.toLowerCase(),o="textarea"===r,s="input"===r;this.isMultiLine=o||!s&&this._isContentEditable(this.element),this.valueMethod=this.element[o||s?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(r){if(this.element.prop("readOnly"))return t=!0,i=!0,void(n=!0);t=!1,i=!1,n=!1;var o=e.ui.keyCode;switch(r.keyCode){case o.PAGE_UP:t=!0,this._move("previousPage",r);break;case o.PAGE_DOWN:t=!0,this._move("nextPage",r);break;case o.UP:t=!0,this._keyEvent("previous",r);break;case o.DOWN:t=!0,this._keyEvent("next",r);break;case o.ENTER:this.menu.active&&(t=!0,r.preventDefault(),this.menu.select(r));break;case o.TAB:this.menu.active&&this.menu.select(r);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(r),r.preventDefault());break;default:n=!0,this._searchTimeout(r)}},keypress:function(i){if(t)return t=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&i.preventDefault());if(!n){var r=e.ui.keyCode;switch(i.keyCode){case r.PAGE_UP:this._move("previousPage",i);break;case r.PAGE_DOWN:this._move("nextPage",i);break;case r.UP:this._keyEvent("previous",i);break;case r.DOWN:this._keyEvent("next",i)}}},input:function(e){return i?(i=!1,void e.preventDefault()):void this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(t,n){var i,r;return this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)})):(r=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:r})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(r.value),i=n.item.attr("aria-label")||r.value,void(i&&String.prototype.trim.call(i).length&&(this.liveRegion.children().hide(),e("<div>").text(i).appendTo(this.liveRegion))))},menuselect:function(t,n){var i=n.item.data("ui-autocomplete-item"),r=this.previous;this.element[0]!==e.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=r,this._delay(function(){this.previous=r,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var n=this.menu.element[0];return t.target===this.element[0]||t.target===n||e.contains(n,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,n,i=this;Array.isArray(this.options.source)?(t=this.options.source,this.source=function(n,i){i(e.ui.autocomplete.filter(t,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,r){i.xhr&&i.xhr.abort(),i.xhr=e.ajax({url:n,data:t,dataType:"json",success:function(e){r(e)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),n=this.menu.element.is(":visible"),i=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!t||t&&!n&&!i)&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):this._trigger("search",t)!==!1?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var n=this.menu.element.empty();this._renderMenu(n,t),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,n){var i=this;e.each(n,function(e,n){i._renderItemData(t,n)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,n){return e("<li>").append(e("<div>").text(n.label)).appendTo(t)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t):void this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,n){var i=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return i.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(n).appendTo(this.liveRegion))}});var j=(e.ui.autocomplete,/ui-corner-([a-z]){2,6}/g);e.widget("ui.controlgroup",{version:"1.13.0",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,n=[];e.each(this.options.items,function(i,r){var o,s={};return r?"controlgroupLabel"===i?(o=t.element.find(r),o.each(function(){var t=e(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),t._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(n=n.concat(o.get()))):void(e.fn[i]&&(s=t["_"+i+"Options"]?t["_"+i+"Options"]("middle"):{classes:{}},t.element.find(r).each(function(){var r=e(this),o=r[i]("instance"),a=e.widget.extend({},s);if("button"!==i||!r.parent(".ui-spinner").length){o||(o=r[i]()[i]("instance")),o&&(a.classes=t._resolveClassesValues(a.classes,o)),r[i](a);var u=r[i]("widget");e.data(u[0],"ui-controlgroup-data",o?o:r[i]("instance")),n.push(u[0])}}))):void 0}),this.childWidgets=e(e.uniqueSort(n)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each(function(){var n=e(this),i=n.data("ui-controlgroup-data");i&&i[t]&&i[t]()})},_updateCornerClass:function(e,t){var n="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",i=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(e,null,n),this._addClass(e,null,i)},_buildSimpleOptions:function(e,t){var n="vertical"===this.options.direction,i={classes:{}};return i.classes[t]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[e],i},_spinnerOptions:function(e){var t=this._buildSimpleOptions(e,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t="vertical"===this.options.direction;return{width:t?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(t,n){var i={};return e.each(t,function(e){var r=n.options.classes[e]||"";r=String.prototype.trim.call(r.replace(j,"")),i[e]=(r+" "+t[e]).replace(/\s+/g," ")}),i},_setOption:function(e,t){return"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),"disabled"===e?void this._callChildMethod(t?"disable":"enable"):void this.refresh()},refresh:function(){var t,n=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),t=this.childWidgets,this.options.onlyVisible&&(t=t.filter(":visible")),t.length&&(e.each(["first","last"],function(e,i){var r=t[i]().data("ui-controlgroup-data");if(r&&n["_"+r.widgetName+"Options"]){var o=n["_"+r.widgetName+"Options"](1===t.length?"only":i);o.classes=n._resolveClassesValues(o.classes,r),r.element[r.widgetName](o)}else n._updateCornerClass(t[i](),i)}),this._callChildMethod("refresh"))}});/*!
- * jQuery UI Checkboxradio 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.13.0",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,n,i=this,r=this._super()||{};return this._readType(),n=this.element.labels(),this.label=e(n[n.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){i.originalLabel+=3===this.nodeType?e(this).text():this.outerHTML}),this.originalLabel&&(r.label=this.originalLabel),t=this.element[0].disabled,null!=t&&(r.disabled=t),r},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t,n=this.element[0].name,i="input[name='"+e.escapeSelector(n)+"']";return n?(t=this.form.length?e(this.form[0].elements).filter(i):e(i).filter(function(){return 0===e(this)._form().length}),t.not(this.element)):e([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=e(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){return"label"!==e||t?(this._super(e,t),"disabled"===e?(this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t)):void this.refresh()):void 0},_updateIcon:function(t){var n="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(n+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):n+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",n),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]);e.ui.checkboxradio;/*!
- * jQuery UI Button 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.widget("ui.button",{version:"1.13.0",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),e=this.element[0].disabled,null!=e&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===e.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,n){var i="iconPosition"!==t,r=i?this.options.iconPosition:n,o="top"===r||"bottom"===r;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,n),this._attachIcon(r),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(r))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=void 0===e.showLabel?this.options.showLabel:e.showLabel,n=void 0===e.icon?this.options.icon:e.icon;t||n||(e.showLabel=!0),this._super(e)},_setOption:function(e,t){"icon"===e&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,t),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.trigger("blur"))},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),e.uiBackCompat!==!1&&(e.widget("ui.button",e.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,t){return"text"===e?void this._super("showLabel",t):("showLabel"===e&&(this.options.text=t),"icon"===e&&(this.options.icons.primary=t),"icons"===e&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),e.fn.button=function(t){return function(n){var i="string"==typeof n,r=Array.prototype.slice.call(arguments,1),o=this;return i?this.length||"instance"!==n?this.each(function(){var t,i=e(this).attr("type"),s="checkbox"!==i&&"radio"!==i?"button":"checkboxradio",a=e.data(this,"ui-"+s);return"instance"===n?(o=a,!1):a?"function"!=typeof a[n]||"_"===n.charAt(0)?e.error("no such method '"+n+"' for button widget instance"):(t=a[n].apply(a,r),t!==a&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0):e.error("cannot call methods on button prior to initialization; attempted to call method '"+n+"'")}):o=void 0:(r.length&&(n=e.widget.extend.apply(null,[n].concat(r))),this.each(function(){var i=e(this).attr("type"),r="checkbox"!==i&&"radio"!==i?"button":"checkboxradio",o=e.data(this,"ui-"+r);if(o)o.option(n||{}),o._init&&o._init();else{if("button"===r)return void t.call(e(this),n);e(this).checkboxradio(e.extend({icon:!1},n))}})),o}}(e.fn.button),e.fn.buttonset=function(){return e.ui.controlgroup||e.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))});e.ui.button;/*!
- * jQuery UI Datepicker 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.extend(e.ui,{datepicker:{version:"1.13.0"}});var R;e.extend(a.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return c(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var i,r,o;i=t.nodeName.toLowerCase(),r="div"===i||"span"===i,t.id||(this.uuid+=1,t.id="dp"+this.uuid),o=this._newInst(e(t),r),o.settings=e.extend({},n||{}),"input"===i?this._connectDatepicker(t,o):r&&this._inlineDatepicker(t,o)},_newInst:function(t,n){var i=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:i,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?u(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var i=e(t);n.append=e([]),n.trigger=e([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var i,r,o,s=this._get(n,"appendText"),a=this._get(n,"isRTL");n.append&&n.append.remove(),s&&(n.append=e("<span>").addClass(this._appendClass).text(s),t[a?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),i=this._get(n,"showOn"),("focus"===i||"both"===i)&&t.on("focus",this._showDatepicker),("button"===i||"both"===i)&&(r=this._get(n,"buttonText"),o=this._get(n,"buttonImage"),this._get(n,"buttonImageOnly")?n.trigger=e("<img>").addClass(this._triggerClass).attr({src:o,alt:r,title:r}):(n.trigger=e("<button type='button'>").addClass(this._triggerClass),o?n.trigger.html(e("<img>").attr({src:o,alt:r,title:r})):n.trigger.text(r)),t[a?"before":"after"](n.trigger),n.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,i,r,o=new Date(2009,11,20),s=this._get(e,"dateFormat");s.match(/[DM]/)&&(t=function(e){for(n=0,i=0,r=0;r<e.length;r++)e[r].length>n&&(n=e[r].length,i=r);return i},o.setMonth(t(this._get(e,s.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(t(this._get(e,s.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),e.input.attr("size",this._formatDate(e,o).length)}},_inlineDatepicker:function(t,n){var i=e(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,i,r,o){var s,a,u,l,h,f=this._dialogInst;return f||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),f=this._dialogInst=this._newInst(this._dialogInput,!1),f.settings={},e.data(this._dialogInput[0],"datepicker",f)),c(f.settings,r||{}),n=n&&n.constructor===Date?this._formatDate(f,n):n,this._dialogInput.val(n),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(a=document.documentElement.clientWidth,u=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+l,u/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),f.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",f),this},_destroyDatepicker:function(t){var n,i=e(t),r=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===n?(r.append.remove(),r.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===n||"span"===n)&&i.removeClass(this.markerClassName).empty(),R===r&&(R=null,this._curInst=null))},_enableDatepicker:function(t){var n,i,r=e(t),o=e.data(t,"datepicker");r.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),"input"===n?(t.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===n||"span"===n)&&(i=r.children("."+this._inlineClass),i.children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var n,i,r=e(t),o=e.data(t,"datepicker");r.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),"input"===n?(t.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===n||"span"===n)&&(i=r.children("."+this._inlineClass),i.children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(n){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,n,i){var r,o,s,a,u=this._getInst(t);return 2===arguments.length&&"string"==typeof n?"defaults"===n?e.extend({},e.datepicker._defaults):u?"all"===n?e.extend({},u.settings):this._get(u,n):null:(r=n||{},"string"==typeof n&&(r={},r[n]=i),void(u&&(this._curInst===u&&this._hideDatepicker(),o=this._getDateDatepicker(t,!0),s=this._getMinMaxDate(u,"min"),a=this._getMinMaxDate(u,"max"),c(u.settings,r),null!==s&&void 0!==r.dateFormat&&void 0===r.minDate&&(u.settings.minDate=this._formatDate(u,s)),null!==a&&void 0!==r.dateFormat&&void 0===r.maxDate&&(u.settings.maxDate=this._formatDate(u,a)),"disabled"in r&&(r.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),u),this._autoSize(u),this._setDate(u,o),this._updateAlternate(u),this._updateDatepicker(u))))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var n,i,r,o=e.datepicker._getInst(t.target),s=!0,a=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),s=!1;break;case 13:return r=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",o.dpDiv),r[0]&&e.datepicker._selectDay(t.target,o.selectedMonth,o.selectedYear,r[0]),n=e.datepicker._get(o,"onSelect"),n?(i=e.datepicker._formatDate(o),n.apply(o.input?o.input[0]:null,[i,o])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(o,"stepBigMonths"):-e.datepicker._get(o,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(o,"stepBigMonths"):+e.datepicker._get(o,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),s=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),s=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,a?1:-1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(o,"stepBigMonths"):-e.datepicker._get(o,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),s=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,a?-1:1,"D"),s=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(o,"stepBigMonths"):+e.datepicker._get(o,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),s=t.ctrlKey||t.metaKey;break;default:s=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):s=!1;s&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var n,i,r=e.datepicker._getInst(t.target);return e.datepicker._get(r,"constrainInput")?(n=e.datepicker._possibleChars(e.datepicker._get(r,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||" ">i||!n||n.indexOf(i)>-1):void 0},_doKeyUp:function(t){var n,i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{n=e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i)),n&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(r){}return!0},_showDatepicker:function(t){if(t=t.target||t,"input"!==t.nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),!e.datepicker._isDisabledDatepicker(t)&&e.datepicker._lastInput!==t){var n,i,r,o,a,u,l;n=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),i=e.datepicker._get(n,"beforeShow"),r=i?i.apply(t,[t,n]):{},r!==!1&&(c(n.settings,r),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),o=!1,e(t).parents().each(function(){return o|="fixed"===e(this).css("position"),!o}),a={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),a=e.datepicker._checkOffset(n,a,o),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:a.left+"px",top:a.top+"px"}),n.inline||(u=e.datepicker._get(n,"showAnim"),l=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",s(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[u]?n.dpDiv.show(u,e.datepicker._get(n,"showOptions"),l):n.dpDiv[u||"show"](u?l:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n))}},_updateDatepicker:function(t){this.maxRows=4,R=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var n,i=this._getNumberOfMonths(t),r=i[1],o=17,s=t.dpDiv.find("."+this._dayOverClass+" a"),a=e.datepicker._get(t,"onUpdateDatepicker");s.length>0&&l.apply(s.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&t.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",o*r+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(n=t.yearshtml,setTimeout(function(){n===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),n=t.yearshtml=null},0)),a&&a.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,i){var r=t.dpDiv.outerWidth(),o=t.dpDiv.outerHeight(),s=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,u=document.documentElement.clientWidth+(i?0:e(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?r-s:0,n.left-=i&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=i&&n.top===t.input.offset().top+a?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+r>u&&u>r?Math.abs(n.left+r-u):0),n.top-=Math.min(n.top,n.top+o>l&&l>o?Math.abs(o+a):0),n},_findPos:function(t){for(var n,i=this._getInst(t),r=this._get(i,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[r?"previousSibling":"nextSibling"];return n=e(t).offset(),[n.left,n.top]},_hideDatepicker:function(t){var n,i,r,o,s=this._curInst;!s||t&&s!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(s,"showAnim"),i=this._get(s,"duration"),r=function(){e.datepicker._tidyDialog(s)},e.effects&&(e.effects.effect[n]||e.effects[n])?s.dpDiv.hide(n,e.datepicker._get(s,"showOptions"),i,r):s.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,r),n||r(),this._datepickerShowing=!1,o=this._get(s,"onClose"),o&&o.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var n=e(t.target),i=e.datepicker._getInst(n[0]);(n[0].id!==e.datepicker._mainDivId&&0===n.parents("#"+e.datepicker._mainDivId).length&&!n.hasClass(e.datepicker.markerClassName)&&!n.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&(!e.datepicker._inDialog||!e.blockUI)||n.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==i)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,i){var r=e(t),o=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(o,n,i),this._updateDatepicker(o))},_gotoToday:function(t){var n,i=e(t),r=this._getInst(i[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(n=new Date,r.selectedDay=n.getDate(),r.drawMonth=r.selectedMonth=n.getMonth(),r.drawYear=r.selectedYear=n.getFullYear()),this._notifyChange(r),this._adjustDate(i)},_selectMonthYear:function(t,n,i){var r=e(t),o=this._getInst(r[0]);o["selected"+("M"===i?"Month":"Year")]=o["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(r)},_selectDay:function(t,n,i,r){var o,s=e(t);e(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(s[0])||(o=this._getInst(s[0]),o.selectedDay=o.currentDay=parseInt(e("a",r).attr("data-date")),o.selectedMonth=o.currentMonth=n,o.selectedYear=o.currentYear=i,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var i,r=e(t),o=this._getInst(r[0]);n=null!=n?n:this._formatDate(o),o.input&&o.input.val(n),this._updateAlternate(o),i=this._get(o,"onSelect"),i?i.apply(o.input?o.input[0]:null,[n,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,i,r,o=this._get(t,"altField");o&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),r=this.formatDate(n,i,this._getFormatConfig(t)),e(document).find(o).val(r))},noWeekends:function(e){var t=e.getDay();return[t>0&&6>t,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,i){if(null==t||null==n)throw"Invalid arguments";if(n="object"==typeof n?n.toString():n+"",""===n)return null;var r,o,s,a,u=0,l=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,f=(i?i.dayNames:null)||this._defaults.dayNames,p=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,d=(i?i.monthNames:null)||this._defaults.monthNames,g=-1,v=-1,m=-1,y=-1,b=!1,_=function(e){var n=r+1<t.length&&t.charAt(r+1)===e;return n&&r++,n},w=function(e){var t=_(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,r="y"===e?i:1,o=new RegExp("^\\d{"+r+","+i+"}"),s=n.substring(u).match(o);if(!s)throw"Missing number at position "+u;return u+=s[0].length,parseInt(s[0],10)},x=function(t,i,r){var o=-1,s=e.map(_(t)?r:i,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(s,function(e,t){var i=t[1];return n.substr(u,i.length).toLowerCase()===i.toLowerCase()?(o=t[0],u+=i.length,!1):void 0}),-1!==o)return o+1;throw"Unknown name at position "+u},k=function(){if(n.charAt(u)!==t.charAt(r))throw"Unexpected literal at position "+u;u++};for(r=0;r<t.length;r++)if(b)"'"!==t.charAt(r)||_("'")?k():b=!1;else switch(t.charAt(r)){case"d":m=w("d");break;case"D":x("D",h,f);break;case"o":y=w("o");break;case"m":v=w("m");break;case"M":v=x("M",p,d);break;case"y":g=w("y");break;case"@":a=new Date(w("@")),g=a.getFullYear(),v=a.getMonth()+1,m=a.getDate();break;case"!":a=new Date((w("!")-this._ticksTo1970)/1e4),g=a.getFullYear(),v=a.getMonth()+1,m=a.getDate();break;case"'":_("'")?k():b=!0;break;default:k()}if(u<n.length&&(s=n.substr(u),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=g?0:-100)),y>-1)for(v=1,m=y;;){if(o=this._getDaysInMonth(g,v-1),o>=m)break;v++,m-=o}if(a=this._daylightSavingAdjust(new Date(g,v-1,m)),a.getFullYear()!==g||a.getMonth()+1!==v||a.getDate()!==m)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var i,r=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,o=(n?n.dayNames:null)||this._defaults.dayNames,s=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,a=(n?n.monthNames:null)||this._defaults.monthNames,u=function(t){var n=i+1<e.length&&e.charAt(i+1)===t;return n&&i++,n},l=function(e,t,n){var i=""+t;if(u(e))for(;i.length<n;)i="0"+i;return i},c=function(e,t,n,i){return u(e)?i[t]:n[t]},h="",f=!1;if(t)for(i=0;i<e.length;i++)if(f)"'"!==e.charAt(i)||u("'")?h+=e.charAt(i):f=!1;else switch(e.charAt(i)){case"d":h+=l("d",t.getDate(),2);break;case"D":h+=c("D",t.getDay(),r,o);break;case"o":h+=l("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=l("m",t.getMonth()+1,2);break;case"M":h+=c("M",t.getMonth(),s,a);break;case"y":h+=u("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":h+=t.getTime();break;case"!":h+=1e4*t.getTime()+this._ticksTo1970;break;case"'":u("'")?h+="'":f=!0;break;default:h+=e.charAt(i)}return h},_possibleChars:function(e){var t,n="",i=!1,r=function(n){var i=t+1<e.length&&e.charAt(t+1)===n;return i&&t++,i};for(t=0;t<e.length;t++)if(i)"'"!==e.charAt(t)||r("'")?n+=e.charAt(t):i=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":r("'")?n+="'":i=!0;break;default:n+=e.charAt(t)}return n},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var n=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,r=this._getDefaultDate(e),o=r,s=this._getFormatConfig(e);try{o=this.parseDate(n,i,s)||r}catch(a){i=t?"":i}e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),e.currentDay=i?o.getDate():0,e.currentMonth=i?o.getMonth():0,e.currentYear=i?o.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,i){var r=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},o=function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(i){}for(var r=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,o=r.getFullYear(),s=r.getMonth(),a=r.getDate(),u=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=u.exec(n);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":s+=parseInt(l[1],10),a=Math.min(a,e.datepicker._getDaysInMonth(o,s));break;case"y":case"Y":o+=parseInt(l[1],10),a=Math.min(a,e.datepicker._getDaysInMonth(o,s))}l=u.exec(n)}return new Date(o,s,a)},s=null==n||""===n?i:"string"==typeof n?o(n):"number"==typeof n?isNaN(n)?i:r(n):new Date(n.getTime());return s=s&&"Invalid Date"===s.toString()?i:s,s&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var i=!t,r=e.selectedMonth,o=e.selectedYear,s=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=s.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=s.getMonth(),e.drawYear=e.selectedYear=e.currentYear=s.getFullYear(),r===e.selectedMonth&&o===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(i,-n,"M")},next:function(){e.datepicker._adjustDate(i,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(i)},selectDay:function(){return e.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(i,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var n,i,r,o,s,a,u,l,c,h,f,p,d,g,v,m,y,b,_,w,x,k,C,T,E,S,D,O,P,A,I,N,j,R,M,F,L,H,z,V=new Date,U=this._daylightSavingAdjust(new Date(V.getFullYear(),V.getMonth(),V.getDate())),W=this._get(t,"isRTL"),B=this._get(t,"showButtonPanel"),$=this._get(t,"hideIfNoPrevNext"),q=this._get(t,"navigationAsDateFormat"),Y=this._getNumberOfMonths(t),X=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),K=1!==Y[0]||1!==Y[1],Q=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),ee=t.drawMonth-X,te=t.drawYear;if(0>ee&&(ee+=12,te--),Z)for(n=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-Y[0]*Y[1]+1,Z.getDate())),n=J&&J>n?J:n;this._daylightSavingAdjust(new Date(te,ee,1))>n;)ee--,0>ee&&(ee=11,te--);for(t.drawMonth=ee,t.drawYear=te,i=this._get(t,"prevText"),i=q?this.formatDate(i,this._daylightSavingAdjust(new Date(te,ee-G,1)),this._getFormatConfig(t)):i,r=this._canAdjustMonth(t,-1,te,ee)?e("<a>").attr({"class":"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:i}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(i))[0].outerHTML:$?"":e("<a>").attr({"class":"ui-datepicker-prev ui-corner-all ui-state-disabled",title:i}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(i))[0].outerHTML,o=this._get(t,"nextText"),o=q?this.formatDate(o,this._daylightSavingAdjust(new Date(te,ee+G,1)),this._getFormatConfig(t)):o,s=this._canAdjustMonth(t,1,te,ee)?e("<a>").attr({"class":"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:o}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(o))[0].outerHTML:$?"":e("<a>").attr({"class":"ui-datepicker-next ui-corner-all ui-state-disabled",title:o}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(o))[0].outerHTML,a=this._get(t,"currentText"),u=this._get(t,"gotoCurrent")&&t.currentDay?Q:U,a=q?this.formatDate(a,u,this._getFormatConfig(t)):a,l="",t.inline||(l=e("<button>").attr({type:"button","class":"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),c="",B&&(c=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(W?l:"").append(this._isInRange(t,u)?e("<button>").attr({type:"button","class":"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(a):"").append(W?"":l)[0].outerHTML),h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,f=this._get(t,"showWeek"),p=this._get(t,"dayNames"),d=this._get(t,"dayNamesMin"),g=this._get(t,"monthNames"),v=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),y=this._get(t,"showOtherMonths"),b=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),w="",k=0;k<Y[0];k++){for(C="",this.maxRows=4,T=0;T<Y[1];T++){if(E=this._daylightSavingAdjust(new Date(te,ee,t.selectedDay)),S=" ui-corner-all",D="",K){if(D+="<div class='ui-datepicker-group",Y[1]>1)switch(T){case 0:D+=" ui-datepicker-group-first",S=" ui-corner-"+(W?"right":"left");break;case Y[1]-1:D+=" ui-datepicker-group-last",S=" ui-corner-"+(W?"left":"right");break;default:D+=" ui-datepicker-group-middle",S=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+S+"'>"+(/all|left/.test(S)&&0===k?W?s:r:"")+(/all|right/.test(S)&&0===k?W?r:s:"")+this._generateMonthYearHeader(t,ee,te,J,Z,k>0||T>0,g,v)+"</div><table class='ui-datepicker-calendar'><thead><tr>",O=f?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",x=0;7>x;x++)P=(x+h)%7,O+="<th scope='col'"+((x+h+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[P]+"'>"+d[P]+"</span></th>";for(D+=O+"</tr></thead><tbody>",A=this._getDaysInMonth(te,ee),te===t.selectedYear&&ee===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,A)),I=(this._getFirstDayOfMonth(te,ee)-h+7)%7,N=Math.ceil((I+A)/7),j=K&&this.maxRows>N?this.maxRows:N,this.maxRows=j,R=this._daylightSavingAdjust(new Date(te,ee,1-I)),M=0;j>M;M++){for(D+="<tr>",F=f?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(R)+"</td>":"",x=0;7>x;x++)L=m?m.apply(t.input?t.input[0]:null,[R]):[!0,""],H=R.getMonth()!==ee,z=H&&!b||!L[0]||J&&J>R||Z&&R>Z,F+="<td class='"+((x+h+6)%7>=5?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(R.getTime()===E.getTime()&&ee===t.selectedMonth&&t._keyEvent||_.getTime()===R.getTime()&&_.getTime()===E.getTime()?" "+this._dayOverClass:"")+(z?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!y?"":" "+L[1]+(R.getTime()===Q.getTime()?" "+this._currentClass:"")+(R.getTime()===U.getTime()?" ui-datepicker-today":""))+"'"+(H&&!y||!L[2]?"":" title='"+L[2].replace(/'/g,"'")+"'")+(z?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+">"+(H&&!y?" ":z?"<span class='ui-state-default'>"+R.getDate()+"</span>":"<a class='ui-state-default"+(R.getTime()===U.getTime()?" ui-state-highlight":"")+(R.getTime()===Q.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#' aria-current='"+(R.getTime()===Q.getTime()?"true":"false")+"' data-date='"+R.getDate()+"'>"+R.getDate()+"</a>")+"</td>",R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);D+=F+"</tr>"}ee++,ee>11&&(ee=0,te++),D+="</tbody></table>"+(K?"</div>"+(Y[0]>0&&T===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),C+=D}w+=C}return w+=c,t._keyEvent=!1,w},_generateMonthYearHeader:function(e,t,n,i,r,o,s,a){var u,l,c,h,f,p,d,g,v=this._get(e,"changeMonth"),m=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b=this._get(e,"selectMonthLabel"),_=this._get(e,"selectYearLabel"),w="<div class='ui-datepicker-title'>",x="";if(o||!v)x+="<span class='ui-datepicker-month'>"+s[t]+"</span>";else{for(u=i&&i.getFullYear()===n,l=r&&r.getFullYear()===n,x+="<select class='ui-datepicker-month' aria-label='"+b+"' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!u||c>=i.getMonth())&&(!l||c<=r.getMonth())&&(x+="<option value='"+c+"'"+(c===t?" selected='selected'":"")+">"+a[c]+"</option>");x+="</select>"}if(y||(w+=x+(!o&&v&&m?"":" ")),!e.yearshtml)if(e.yearshtml="",o||!m)w+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(h=this._get(e,"yearRange").split(":"),f=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?f+parseInt(e,10):parseInt(e,10);return isNaN(t)?f:t},d=p(h[0]),g=Math.max(d,p(h[1]||"")),d=i?Math.max(d,i.getFullYear()):d,g=r?Math.min(g,r.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+_+"' data-handler='selectYear' data-event='change'>";g>=d;d++)e.yearshtml+="<option value='"+d+"'"+(d===n?" selected='selected'":"")+">"+d+"</option>";e.yearshtml+="</select>",w+=e.yearshtml,e.yearshtml=null}return w+=this._get(e,"yearSuffix"),y&&(w+=(!o&&v&&m?"":" ")+x),w+="</div>"},_adjustInstDate:function(e,t,n){var i=e.selectedYear+("Y"===n?t:0),r=e.selectedMonth+("M"===n?t:0),o=Math.min(e.selectedDay,this._getDaysInMonth(i,r))+("D"===n?t:0),s=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,r,o)));e.selectedDay=s.getDate(),e.drawMonth=e.selectedMonth=s.getMonth(),e.drawYear=e.selectedYear=s.getFullYear(),("M"===n||"Y"===n)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),r=n&&n>t?n:t;return i&&r>i?i:r},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,i){var r=this._getNumberOfMonths(e),o=this._daylightSavingAdjust(new Date(n,i+(0>t?t:r[0]*r[1]),1));return 0>t&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(e,o)},_isInRange:function(e,t){var n,i,r=this._getMinMaxDate(e,"min"),o=this._getMinMaxDate(e,"max"),s=null,a=null,u=this._get(e,"yearRange");return u&&(n=u.split(":"),i=(new Date).getFullYear(),s=parseInt(n[0],10),a=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(s+=i),n[1].match(/[+\-].*/)&&(a+=i)),(!r||t.getTime()>=r.getTime())&&(!o||t.getTime()<=o.getTime())&&(!s||t.getFullYear()>=s)&&(!a||t.getFullYear()<=a);
- },_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var r=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(i,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),r,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new a,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.13.0";var M=(e.datepicker,e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),!1);e(document).on("mouseup",function(){M=!1});e.widget("ui.mouse",{version:"1.13.0",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){return!0===e.data(n.target,t.widgetName+".preventClickEvent")?(e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!M){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,i=1===t.which,r="string"==typeof this.options.cancel&&t.target.nodeName?e(t.target).closest(this.options.cancel).length:!1;return i&&!r&&this._mouseCapture(t)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(t)!==!1,!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),M=!0,!0)):!0}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,t)!==!1,this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,M=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,n,i){var r,o=e.ui[t].prototype;for(r in i)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([n,i[r]])},call:function(e,t,n,i){var r,o=e.plugins[t];if(o&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)e.options[o[r][0]]&&o[r][1].apply(e.element,n)}},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")};/*!
- * jQuery UI Draggable 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.widget("ui.draggable",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(this._blurActiveElement(t),this._blockFrames(n.iframeFix===!0?"iframe":n.iframeFix),!0):!1)},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]),i=e(t.target);i.closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(this._trigger("drag",t,i)===!1)return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||this.options.revert===!0||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){n._trigger("stop",t)!==!1&&n._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return this.options.handle?!!e(t.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i="function"==typeof n.helper,r=i?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,r=this.options,o=this.document[0];return this.relativeContainer=null,r.containment?"window"===r.containment?void(this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===r.containment?void(this.containment=[0,0,e(o).width()-this.helperProportions.width-this.margins.left,(e(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):r.containment.constructor===Array?void(this.containment=r.containment):("parent"===r.containment&&(r.containment=this.helper[0].parentNode),n=e(r.containment),i=n[0],void(i&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n))):void(this.containment=null)},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,r,o,s=this.options,a=this._isRootNode(this.scrollParent[0]),u=e.pageX,l=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(u=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(l=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(u=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(l=n[3]+this.offset.click.top)),s.grid&&(r=s.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,l=n?r-this.offset.click.top>=n[1]||r-this.offset.click.top>n[3]?r:r-this.offset.click.top>=n[1]?r-s.grid[1]:r+s.grid[1]:r,o=s.grid[0]?this.originalPageX+Math.round((u-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,u=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-s.grid[0]:o+s.grid[0]:o),"y"===s.axis&&(u=this.originalPageX),"x"===s.axis&&(l=this.originalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:u-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var r=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each(function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,r))})},stop:function(t,n,i){var r=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,r))})},drag:function(t,n,i){e.each(i.sortables,function(){var r=!1,o=this;o.positionAbs=i.positionAbs,o.helperProportions=i.helperProportions,o.offset.click=i.offset.click,o._intersectsWith(o.containerCache)&&(r=!0,e.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&e.contains(o.element[0],this.element[0])&&(r=!1),r})),r?(o.isOver||(o.isOver=1,i._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=i.offset.click.top,o.offset.click.left=i.offset.click.left,o.offset.parent.left-=i.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=i.offset.parent.top-o.offset.parent.top,i._trigger("toSortable",t),i.dropped=o.element,e.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,o.fromOutside=i),o.currentItem&&(o._mouseDrag(t),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var r=e("body"),o=i.options;r.css("cursor")&&(o._cursor=r.css("cursor")),r.css("cursor",o.cursor)},stop:function(t,n,i){var r=i.options;r._cursor&&e("body").css("cursor",r._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){var r=e(n.helper),o=i.options;r.css("opacity")&&(o._opacity=r.css("opacity")),r.css("opacity",o.opacity)},stop:function(t,n,i){var r=i.options;r._opacity&&e(n.helper).css("opacity",r._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var r=i.options,o=!1,s=i.scrollParentNotHidden[0],a=i.document[0];s!==a&&"HTML"!==s.tagName?(r.axis&&"x"===r.axis||(i.overflowOffset.top+s.offsetHeight-t.pageY<r.scrollSensitivity?s.scrollTop=o=s.scrollTop+r.scrollSpeed:t.pageY-i.overflowOffset.top<r.scrollSensitivity&&(s.scrollTop=o=s.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(i.overflowOffset.left+s.offsetWidth-t.pageX<r.scrollSensitivity?s.scrollLeft=o=s.scrollLeft+r.scrollSpeed:t.pageX-i.overflowOffset.left<r.scrollSensitivity&&(s.scrollLeft=o=s.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(t.pageY-e(a).scrollTop()<r.scrollSensitivity?o=e(a).scrollTop(e(a).scrollTop()-r.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<r.scrollSensitivity&&(o=e(a).scrollTop(e(a).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(t.pageX-e(a).scrollLeft()<r.scrollSensitivity?o=e(a).scrollLeft(e(a).scrollLeft()-r.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<r.scrollSensitivity&&(o=e(a).scrollLeft(e(a).scrollLeft()+r.scrollSpeed)))),o!==!1&&e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,i){var r=i.options;i.snapElements=[],e(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each(function(){var t=e(this),n=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})})},drag:function(t,n,i){var r,o,s,a,u,l,c,h,f,p,d=i.options,g=d.snapTolerance,v=n.offset.left,m=v+i.helperProportions.width,y=n.offset.top,b=y+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)u=i.snapElements[f].left-i.margins.left,l=u+i.snapElements[f].width,c=i.snapElements[f].top-i.margins.top,h=c+i.snapElements[f].height,u-g>m||v>l+g||c-g>b||y>h+g||!e.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==d.snapMode&&(r=Math.abs(c-b)<=g,o=Math.abs(h-y)<=g,s=Math.abs(u-m)<=g,a=Math.abs(l-v)<=g,r&&(n.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u-i.helperProportions.width}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),p=r||o||s||a,"outer"!==d.snapMode&&(r=Math.abs(c-y)<=g,o=Math.abs(h-b)<=g,s=Math.abs(u-v)<=g,a=Math.abs(l-m)<=g,r&&(n.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(r||o||s||a||p)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=r||o||s||a||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var r,o=i.options,s=e.makeArray(e(o.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});s.length&&(r=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(t){e(this).css("zIndex",r+t)}),this.css("zIndex",r+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){var r=e(n.helper),o=i.options;r.css("zIndex")&&(o._zIndex=r.css("zIndex")),r.css("zIndex",o.zIndex)},stop:function(t,n,i){var r=i.options;r._zIndex&&e(n.helper).css("zIndex",r._zIndex)}});e.ui.draggable;/*!
- * jQuery UI Resizable 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.widget("ui.resizable",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,n){if("hidden"===e(t).css("overflow"))return!1;var i=n&&"left"===n?"scrollLeft":"scrollTop",r=!1;if(t[i]>0)return!0;try{t[i]=1,r=t[i]>0,t[i]=0}catch(o){}return r},_create:function(){var t,n=this.options,i=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),n.autoHide&&e(this.element).on("mouseenter",function(){n.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){n.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var t,n=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(n(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var t,n,i,r,o,s=this.options,a=this;if(this.handles=s.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this._addedHandles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},n=0;n<i.length;n++)t=String.prototype.trim.call(i[n]),r="ui-resizable-"+t,o=e("<div>"),this._addClass(o,"ui-resizable-handle "+r),o.css({zIndex:s.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(t){var n,i,r,o;t=t||this.element;for(n in this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=e(this.handles[n]),this._on(this.handles[n],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=e(this.handles[n],this.element),o=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),r=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),t.css(r,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")}),s.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var n,i,r=!1;for(n in this.handles)i=e(this.handles[n])[0],(i===t.target||e.contains(i,t.target))&&(r=!0);return!this.options.disabled&&r},_mouseStart:function(t){var n,i,r,o=this.options,s=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),o.containment&&(n+=e(o.containment).scrollLeft()||0,i+=e(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width(),height:s.height()},this.originalSize=this._helper?{width:s.outerWidth(),height:s.outerHeight()}:{width:s.width(),height:s.height()},this.sizeDiff={width:s.outerWidth()-s.width(),height:s.outerHeight()-s.height()},this.originalPosition={left:n,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===r?this.axis+"-resize":r),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var n,i,r=this.originalMousePosition,o=this.axis,s=t.pageX-r.left||0,a=t.pageY-r.top||0,u=this._change[o];return this._updatePrevProperties(),u?(n=u.apply(this,[t,s,a]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(t){this.resizing=!1;var n,i,r,o,s,a,u,l=this.options,c=this;return this._helper&&(n=this._proportionallyResizeElements,i=n.length&&/textarea/i.test(n[0].nodeName),r=i&&this._hasScroll(n[0],"left")?0:c.sizeDiff.height,o=i?0:c.sizeDiff.width,s={width:c.helper.width()-o,height:c.helper.height()-r},a=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,u=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(e.extend(s,{top:u,left:a})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,n,i,r,o,s=this.options;o={minWidth:this._isNumber(s.minWidth)?s.minWidth:0,maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1/0,minHeight:this._isNumber(s.minHeight)?s.minHeight:0,maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,i=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,r=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),i>o.minHeight&&(o.minHeight=i),n<o.maxWidth&&(o.maxWidth=n),r<o.maxHeight&&(o.maxHeight=r)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,n=this.size,i=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===i&&(e.left=t.left+(n.width-e.width),e.top=null),"nw"===i&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,i=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,r=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,s=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,u=this.originalPosition.top+this.originalSize.height,l=/sw|nw|w/.test(n),c=/nw|ne|n/.test(n);return o&&(e.width=t.minWidth),s&&(e.height=t.minHeight),i&&(e.width=t.maxWidth),r&&(e.height=t.maxHeight),o&&l&&(e.left=a-t.minWidth),i&&l&&(e.left=a-t.maxWidth),s&&c&&(e.top=u-t.minHeight),r&&c&&(e.top=u-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,n=[],i=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],r=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];4>t;t++)n[t]=parseFloat(i[t])||0,n[t]+=parseFloat(r[t])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,n=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,n=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize,i=this.originalPosition;return{left:i.left+t,width:n.width-t}},n:function(e,t,n){var i=this.originalSize,r=this.originalPosition;return{top:r.top+n,height:i.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},sw:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,i]))},ne:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},nw:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,i]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),"resize"!==t&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).resizable("instance"),i=n.options,r=n._proportionallyResizeElements,o=r.length&&/textarea/i.test(r[0].nodeName),s=o&&n._hasScroll(r[0],"left")?0:n.sizeDiff.height,a=o?0:n.sizeDiff.width,u={width:n.size.width-a,height:n.size.height-s},l=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,c=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(e.extend(u,c&&l?{top:c,left:l}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};r&&r.length&&e(r[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,n,i,r,o,s,a,u=e(this).resizable("instance"),l=u.options,c=u.element,h=l.containment,f=h instanceof e?h.get(0):/parent/.test(h)?c.parent().get(0):h;f&&(u.containerElement=e(f),/document/.test(h)||h===document?(u.containerOffset={left:0,top:0},u.containerPosition={left:0,top:0},u.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(f),n=[],e(["Top","Right","Left","Bottom"]).each(function(e,i){n[e]=u._num(t.css("padding"+i))}),u.containerOffset=t.offset(),u.containerPosition=t.position(),u.containerSize={height:t.innerHeight()-n[3],width:t.innerWidth()-n[1]},i=u.containerOffset,r=u.containerSize.height,o=u.containerSize.width,s=u._hasScroll(f,"left")?f.scrollWidth:o,a=u._hasScroll(f)?f.scrollHeight:r,u.parentData={element:f,left:i.left,top:i.top,width:s,height:a}))},resize:function(t){var n,i,r,o,s=e(this).resizable("instance"),a=s.options,u=s.containerOffset,l=s.position,c=s._aspectRatio||t.shiftKey,h={top:0,left:0},f=s.containerElement,p=!0;f[0]!==document&&/static/.test(f.css("position"))&&(h=u),l.left<(s._helper?u.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-u.left:s.position.left-h.left),c&&(s.size.height=s.size.width/s.aspectRatio,p=!1),s.position.left=a.helper?u.left:0),l.top<(s._helper?u.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-u.top:s.position.top),c&&(s.size.width=s.size.height*s.aspectRatio,p=!1),s.position.top=s._helper?u.top:0),r=s.containerElement.get(0)===s.element.parent().get(0),o=/relative|absolute/.test(s.containerElement.css("position")),r&&o?(s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top):(s.offset.left=s.element.offset().left,s.offset.top=s.element.offset().top),n=Math.abs(s.sizeDiff.width+(s._helper?s.offset.left-h.left:s.offset.left-u.left)),i=Math.abs(s.sizeDiff.height+(s._helper?s.offset.top-h.top:s.offset.top-u.top)),n+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-n,c&&(s.size.height=s.size.width/s.aspectRatio,p=!1)),i+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-i,c&&(s.size.width=s.size.height*s.aspectRatio,p=!1)),p||(s.position.left=s.prevPosition.left,s.position.top=s.prevPosition.top,s.size.width=s.prevSize.width,s.size.height=s.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),n=t.options,i=t.containerOffset,r=t.containerPosition,o=t.containerElement,s=e(t.helper),a=s.offset(),u=s.outerWidth()-t.sizeDiff.width,l=s.outerHeight()-t.sizeDiff.height;t._helper&&!n.animate&&/relative/.test(o.css("position"))&&e(this).css({left:a.left-r.left-i.left,width:u,height:l}),t._helper&&!n.animate&&/static/.test(o.css("position"))&&e(this).css({left:a.left-r.left-i.left,width:u,height:l})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance"),n=t.options;e(n.alsoResize).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,n){var i=e(this).resizable("instance"),r=i.options,o=i.originalSize,s=i.originalPosition,a={height:i.size.height-o.height||0,width:i.size.width-o.width||0,top:i.position.top-s.top||0,left:i.position.left-s.left||0};e(r.alsoResize).each(function(){var t=e(this),i=e(this).data("ui-resizable-alsoresize"),r={},o=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,function(e,t){var n=(i[t]||0)+(a[t]||0);n&&n>=0&&(r[t]=n||null)}),t.css(r)})},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),n=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),e.uiBackCompat!==!1&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,n=e(this).resizable("instance"),i=n.options,r=n.size,o=n.originalSize,s=n.originalPosition,a=n.axis,u="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=u[0]||1,c=u[1]||1,h=Math.round((r.width-o.width)/l)*l,f=Math.round((r.height-o.height)/c)*c,p=o.width+h,d=o.height+f,g=i.maxWidth&&i.maxWidth<p,v=i.maxHeight&&i.maxHeight<d,m=i.minWidth&&i.minWidth>p,y=i.minHeight&&i.minHeight>d;i.grid=u,m&&(p+=l),y&&(d+=c),g&&(p-=l),v&&(d-=c),/^(se|s|e)$/.test(a)?(n.size.width=p,n.size.height=d):/^(ne)$/.test(a)?(n.size.width=p,n.size.height=d,n.position.top=s.top-f):/^(sw)$/.test(a)?(n.size.width=p,n.size.height=d,n.position.left=s.left-h):((0>=d-c||0>=p-l)&&(t=n._getPaddingPlusBorderDimensions(this)),d-c>0?(n.size.height=d,n.position.top=s.top-f):(d=c-t.height,n.size.height=d,n.position.top=s.top+o.height-d),p-l>0?(n.size.width=p,n.position.left=s.left-h):(p=l-t.width,n.size.width=p,n.position.left=s.left+o.width-p))}});e.ui.resizable;/*!
- * jQuery UI Dialog 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.widget("ui.dialog",{version:"1.13.0",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var n=e(this).css(t).offset().top;0>n&&e(this).css("top",t.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var n=this;this._isOpen&&this._trigger("beforeClose",t)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||e.ui.safeBlur(e.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,n){var i=!1,r=this.uiDialog.siblings(".ui-front:visible").map(function(){return+e(this).css("z-index")}).get(),o=Math.max.apply(null,r);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),i=!0),i&&!n&&this._trigger("focus",t),i},open:function(){var t=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=e(e.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=e.ui.safeActiveElement(this.document[0]),n=this.uiDialog[0]===t||e.contains(this.uiDialog[0],t);n||this._focusTabbable()},_keepFocus:function(e){e.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=e("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===e.ui.keyCode.TAB&&!t.isDefaultPrevented()){var n=this.uiDialog.find(":tabbable"),i=n.first(),r=n.last();t.target!==r[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){r.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:e("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,n=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(n)||Array.isArray(n)&&!n.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(e.each(n,function(n,i){var r,o;i="function"==typeof i?{click:i,text:n}:i,i=e.extend({type:"button"},i),r=i.click,o={icon:i.icon,iconPosition:i.iconPosition,showLabel:i.showLabel,icons:i.icons,text:i.text},delete i.click,delete i.icon,delete i.iconPosition,delete i.showLabel,delete i.icons,"boolean"==typeof i.text&&delete i.text,e("<button></button>",i).button(o).appendTo(t.uiButtonSet).on("click",function(){r.apply(t.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function t(e){return{position:e.position,offset:e.offset}}var n=this,i=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,r){n._addClass(e(this),"ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",i,t(r))},drag:function(e,i){n._trigger("drag",e,t(i))},stop:function(r,o){var s=o.offset.left-n.document.scrollLeft(),a=o.offset.top-n.document.scrollTop();i.position={my:"left top",at:"left"+(s>=0?"+":"")+s+" top"+(a>=0?"+":"")+a,of:n.window},n._removeClass(e(this),"ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",r,t(o))}})},_makeResizable:function(){function t(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var n=this,i=this.options,r=i.resizable,o=this.uiDialog.css("position"),s="string"==typeof r?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:s,start:function(i,r){n._addClass(e(this),"ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",i,t(r))},resize:function(e,i){n._trigger("resize",e,t(i))},stop:function(r,o){var s=n.uiDialog.offset(),a=s.left-n.document.scrollLeft(),u=s.top-n.document.scrollTop();i.height=n.uiDialog.height(),i.width=n.uiDialog.width(),i.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(u>=0?"+":"")+u,of:n.window},n._removeClass(e(this),"ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",r,t(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),n=e.inArray(this,t);-1!==n&&t.splice(n,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var n=this,i=!1,r={};e.each(t,function(e,t){n._setOption(e,t),e in n.sizeRelatedOptions&&(i=!0),e in n.resizableRelatedOptions&&(r[e]=t)}),i&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(t,n){var i,r,o=this.uiDialog;"disabled"!==t&&(this._super(t,n),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:e("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&(i=o.is(":data(ui-draggable)"),i&&!n&&o.draggable("destroy"),!i&&n&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&(r=o.is(":data(ui-resizable)"),r&&!n&&o.resizable("destroy"),r&&"string"==typeof n&&o.resizable("option","handles",n),r||n===!1||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),e=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),t=Math.max(0,i.minHeight-e),n="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-e):"none","auto"===i.height?this.element.css({minHeight:t,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,i.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return e(t.target).closest(".ui-dialog").length?!0:!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=e.fn.jquery.substring(0,4),n=!0;this._delay(function(){n=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(e){if(!n){var i=this._trackingInstances()[0];i._allowInteraction(e)||(e.preventDefault(),i._focusTabbable(),("3.4."===t||"3.5."===t)&&i._delay(i._restoreTabbableFocus))}}.bind(this)),this.overlay=e("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),e.uiBackCompat!==!1&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}});e.ui.dialog;/*!
- * jQuery UI Droppable 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.widget("ui.droppable",{version:"1.13.0",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,n=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof n?n:function(e){return e.is(n)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,n){if("accept"===t)this.accept="function"==typeof n?n:function(e){return e.is(n)};else if("scope"===t){var i=e.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(n)}this._super(t,n)},_activate:function(t){var n=e.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(n)))},_drop:function(t,n){var i=n||e.ui.ddmanager.current,r=!1;return i&&(i.currentItem||i.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var n=e(this).droppable("instance");return n.options.greedy&&!n.options.disabled&&n.options.scope===i.options.scope&&n.accept.call(n.element[0],i.currentItem||i.element)&&e.ui.intersect(i,e.extend(n,{offset:n.element.offset()}),n.options.tolerance,t)?(r=!0,!1):void 0}),r?!1:this.accept.call(this.element[0],i.currentItem||i.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element):!1):!1},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),e.ui.intersect=function(){function e(e,t,n){return e>=t&&t+n>e}return function(t,n,i,r){if(!n.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,a=o+t.helperProportions.width,u=s+t.helperProportions.height,l=n.offset.left,c=n.offset.top,h=l+n.proportions().width,f=c+n.proportions().height;switch(i){case"fit":return o>=l&&h>=a&&s>=c&&f>=u;case"intersect":return l<o+t.helperProportions.width/2&&a-t.helperProportions.width/2<h&&c<s+t.helperProportions.height/2&&u-t.helperProportions.height/2<f;case"pointer":return e(r.pageY,c,n.proportions().height)&&e(r.pageX,l,n.proportions().width);case"touch":return(s>=c&&f>=s||u>=c&&f>=u||c>s&&u>f)&&(o>=l&&h>=o||a>=l&&h>=a||l>o&&a>h);default:return!1}}}(),e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,n){var i,r,o=e.ui.ddmanager.droppables[t.options.scope]||[],s=n?n.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<o.length;i++)if(!(o[i].options.disabled||t&&!o[i].accept.call(o[i].element[0],t.currentItem||t.element))){for(r=0;r<a.length;r++)if(a[r]===o[i].element[0]){o[i].proportions().height=0;continue e}o[i].visible="none"!==o[i].element.css("display"),o[i].visible&&("mousedown"===s&&o[i]._activate.call(o[i],n),o[i].offset=o[i].element.offset(),o[i].proportions({width:o[i].element[0].offsetWidth,height:o[i].element[0].offsetHeight}))}},drop:function(t,n){var i=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance,n)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),i},dragStart:function(t,n){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)})},drag:function(t,n){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,n),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,r,o,s=e.ui.intersect(t,this,this.options.tolerance,n),a=!s&&this.isover?"isout":s&&!this.isover?"isover":null;a&&(this.options.greedy&&(r=this.options.scope,o=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===r}),o.length&&(i=e(o[0]).droppable("instance"),i.greedyChild="isover"===a)),i&&"isover"===a&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,n),i&&"isout"===a&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}})},dragStop:function(t,n){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}},e.uiBackCompat!==!1&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});e.ui.droppable,e.widget("ui.progressbar",{version:"1.13.0",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=e("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){return void 0===e?this.options.value:(this.options.value=this._constrainedValue(e),void this._refreshValue())},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=e===!1,"number"!=typeof e&&(e=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(n.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),e.widget("ui.selectable",e.ui.mouse,{version:"1.13.0",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t.elementPos=e(t.element[0]).offset(),t.selectees=e(t.options.filter,t.element[0]),t._addClass(t.selectees,"ui-selectee"),t.selectees.each(function(){var n=e(this),i=n.offset(),r={left:i.left-t.elementPos.left,top:i.top-t.elementPos.top};e.data(this,"selectable-item",{element:this,$element:n,left:r.left,top:r.top,right:r.left+n.outerWidth(),bottom:r.top+n.outerHeight(),startselected:!1,selected:n.hasClass("ui-selected"),selecting:n.hasClass("ui-selecting"),unselecting:n.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=e("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(t){var n=this,i=this.options;this.opos=[t.pageX,t.pageY],this.elementPos=e(this.element[0]).offset(),this.options.disabled||(this.selectees=e(i.filter,this.element[0]),this._trigger("start",t),e(i.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),i.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var i=e.data(this,"selectable-item");i.startselected=!0,t.metaKey||t.ctrlKey||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",t,{unselecting:i.element}))}),e(t.target).parents().addBack().each(function(){var i,r=e.data(this,"selectable-item");return r?(i=!t.metaKey&&!t.ctrlKey||!r.$element.hasClass("ui-selected"),n._removeClass(r.$element,i?"ui-unselecting":"ui-selected")._addClass(r.$element,i?"ui-selecting":"ui-unselecting"),r.unselecting=!i,r.selecting=i,r.selected=i,i?n._trigger("selecting",t,{selecting:r.element}):n._trigger("unselecting",t,{unselecting:r.element}),!1):void 0}))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var n,i=this,r=this.options,o=this.opos[0],s=this.opos[1],a=t.pageX,u=t.pageY;return o>a&&(n=a,a=o,o=n),s>u&&(n=u,u=s,s=n),this.helper.css({left:o,top:s,width:a-o,height:u-s}),this.selectees.each(function(){var n=e.data(this,"selectable-item"),l=!1,c={};n&&n.element!==i.element[0]&&(c.left=n.left+i.elementPos.left,c.right=n.right+i.elementPos.left,c.top=n.top+i.elementPos.top,c.bottom=n.bottom+i.elementPos.top,"touch"===r.tolerance?l=!(c.left>a||c.right<o||c.top>u||c.bottom<s):"fit"===r.tolerance&&(l=c.left>o&&c.right<a&&c.top>s&&c.bottom<u),l?(n.selected&&(i._removeClass(n.$element,"ui-selected"),n.selected=!1),n.unselecting&&(i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1),n.selecting||(i._addClass(n.$element,"ui-selecting"),n.selecting=!0,i._trigger("selecting",t,{selecting:n.element}))):(n.selecting&&((t.metaKey||t.ctrlKey)&&n.startselected?(i._removeClass(n.$element,"ui-selecting"),n.selecting=!1,i._addClass(n.$element,"ui-selected"),n.selected=!0):(i._removeClass(n.$element,"ui-selecting"),n.selecting=!1,n.startselected&&(i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0),i._trigger("unselecting",t,{unselecting:n.element}))),n.selected&&(t.metaKey||t.ctrlKey||n.startselected||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",t,{unselecting:n.element})))))}),!1}},_mouseStop:function(t){var n=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each(function(){var i=e.data(this,"selectable-item");n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1,i.startselected=!1,n._trigger("unselected",t,{unselected:i.element})}),e(".ui-selecting",this.element[0]).each(function(){var i=e.data(this,"selectable-item");n._removeClass(i.$element,"ui-selecting")._addClass(i.$element,"ui-selected"),i.selecting=!1,i.selected=!0,i.startselected=!0,n._trigger("selected",t,{selected:i.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),e.widget("ui.selectmenu",[e.ui.formResetMixin,{version:"1.13.0",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=e()},_drawButton:function(){var t,n=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.trigger("focus"),e.preventDefault()}}),this.element.hide(),this.button=e("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=e("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){n._rendered||n._refreshMenu()})},_drawMenu:function(){var t=this;this.menu=e("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=e("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,n){e.preventDefault(),t._setSelection(),t._select(n.item.data("ui-selectmenu-item"),e)},focus:function(e,n){var i=n.item.data("ui-selectmenu-item");null!=t.focusIndex&&i.index!==t.focusIndex&&(t._trigger("focus",e,{item:i}),t.isOpen||t._select(i,e)),t.focusIndex=i.index,t.button.attr("aria-activedescendant",t.menuItems.eq(i.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e,t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(e.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var n=e("<span>");return this._setText(n,t.label),this._addClass(n,"ui-selectmenu-text"),n},_renderMenu:function(t,n){var i=this,r="";e.each(n,function(n,o){var s;o.optgroup!==r&&(s=e("<li>",{text:o.optgroup}),i._addClass(s,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),s.appendTo(t),r=o.optgroup),i._renderItemData(t,o)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(t,n){var i=e("<li>"),r=e("<div>",{title:n.element.attr("title")});return n.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(r,n.label),i.append(r).appendTo(t)},_setText:function(e,t){t?e.text(t):e.html(" ")},_move:function(e,t){var n,i,r=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex).parent("li"):(n=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),r+=":not(.ui-state-disabled)"),i="first"===e||"last"===e?n["first"===e?"prevAll":"nextAll"](r).eq(-1):n[e+"All"](r).eq(0),i.length&&this.menuInstance.focus(t,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?(e=window.getSelection(),e.removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(e(t.target).closest(".ui-selectmenu-menu, #"+e.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection(),e.rangeCount&&(this.range=e.getRangeAt(0))):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(t){var n=!0;switch(t.keyCode){case e.ui.keyCode.TAB:case e.ui.keyCode.ESCAPE:this.close(t),n=!1;break;case e.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case e.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case e.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case e.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case e.ui.keyCode.LEFT:this._move("prev",t);break;case e.ui.keyCode.RIGHT:this._move("next",t);break;case e.ui.keyCode.HOME:case e.ui.keyCode.PAGE_UP:this._move("first",t);break;case e.ui.keyCode.END:case e.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),n=!1}n&&t.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==n&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if("icons"===e){var n=this.button.find("span.ui-icon");this._removeClass(n,null,this.options.icons.button)._addClass(n,null,t.button)}this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;return e===!1?void this.button.css("width",""):(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(e))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(t){var n=this,i=[];t.each(function(t,r){r.hidden||i.push(n._parseOption(e(r),t))}),this.items=i},_parseOption:function(e,t){var n=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),e.widget("ui.slider",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,n,i=this.options,r=this.element.find(".ui-slider-handle"),o="<span tabindex='0'></span>",s=[];for(n=i.values&&i.values.length||1,r.length>n&&(r.slice(n).remove(),r=r.slice(0,n)),t=r.length;n>t;t++)s.push(o);this.handles=r.add(e(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(t.range===!0&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===t.range||"max"===t.range)&&this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,i,r,o,s,a,u,l,c=this,h=this.options;return h.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(n),r=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var n=Math.abs(i-c.values(t));(r>n||r===n&&(t===c._lastChangedValue||c.values(t)===h.min))&&(r=n,o=e(this),s=t)}),a=this._start(t,s),a===!1?!1:(this._mouseSliding=!0,this._handleIndex=s,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),u=o.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-u.left-o.width()/2,top:t.pageY-u.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,s,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,i,r,o;return"horizontal"===this.orientation?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),i=n/t,i>1&&(i=1),0>i&&(i=0),"vertical"===this.orientation&&(i=1-i),r=this._valueMax()-this._valueMin(),o=this._valueMin()+i*r,this._trimAlignValue(o)},_uiHash:function(e,t,n){var i={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==t?t:this.values(e),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var i,r,o=this.value(),s=this.values();this._hasMultipleValues()&&(r=this.values(t?0:1),o=this.values(t),2===this.options.values.length&&this.options.range===!0&&(n=0===t?Math.min(r,n):Math.max(r,n)),s[t]=n),n!==o&&(i=this._trigger("slide",e,this._uiHash(t,n,s)),i!==!1&&(this._hasMultipleValues()?this.values(t,n):this.value(n)))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var n,i,r;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!Array.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(n=this.options.values,i=arguments[0],r=0;r<n.length;r+=1)n[r]=this._trimAlignValue(i[r]),this._change(null,r);this._refreshValue()},_setOption:function(e,t){var n,i=0;switch("range"===e&&this.options.range===!0&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(i=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=i-1;n>=0;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,n,i;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(n=this.options.values.slice(),i=0;i<n.length;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,i=e-n;return 2*Math.abs(n)>=t&&(i+=n>0?t:-t),parseFloat(i.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step,i=Math.round((e-t)/n)*n;e=i+t,e>this.options.max&&(e-=n),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,n,i,r,o,s=this.options.range,a=this.options,u=this,l=this._animateOff?!1:a.animate,c={};this._hasMultipleValues()?this.handles.each(function(i){n=(u.values(i)-u._valueMin())/(u._valueMax()-u._valueMin())*100,c["horizontal"===u.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[l?"animate":"css"](c,a.animate),u.options.range===!0&&("horizontal"===u.orientation?(0===i&&u.range.stop(1,1)[l?"animate":"css"]({left:n+"%"},a.animate),1===i&&u.range[l?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:a.animate})):(0===i&&u.range.stop(1,1)[l?"animate":"css"]({bottom:n+"%"},a.animate),1===i&&u.range[l?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:a.animate}))),t=n}):(i=this.value(),r=this._valueMin(),o=this._valueMax(),n=o!==r?(i-r)/(o-r)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[l?"animate":"css"](c,a.animate),"min"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:n+"%"},a.animate),"max"===s&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-n+"%"},a.animate),"min"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:n+"%"},a.animate),"max"===s&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-n+"%"},a.animate))},_handleEvents:{keydown:function(t){var n,i,r,o,s=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),n=this._start(t,s),n===!1))return}switch(o=this.options.step,i=r=this._hasMultipleValues()?this.values(s):this.value(),t.keyCode){case e.ui.keyCode.HOME:r=this._valueMin();break;case e.ui.keyCode.END:r=this._valueMax();break;case e.ui.keyCode.PAGE_UP:r=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:r=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;r=this._trimAlignValue(i+o);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;
- r=this._trimAlignValue(i-o)}this._slide(t,s,r)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}}),e.widget("ui.sortable",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,n){return e>=t&&t+n>e},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,n){var i=null,r=!1,o=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(t),e(t.target).parents().each(function(){return e.data(this,o.widgetName+"-item")===o?(i=e(this),!1):void 0}),e.data(t.target,o.widgetName+"-item")===o&&(i=e(t.target)),i&&(!this.options.handle||n||(e(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(r=!0)}),r))?(this.currentItem=i,this._removeCurrentsFromItems(),!0):!1)},_mouseStart:function(t,n,i){var r,o,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==s.appendTo?s.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",s.cursor),this.storedStylesheet=e("<style>*{ cursor: "+s.cursor+" !important; }</style>").appendTo(o)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,n=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=n=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=n=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?n=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(n=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?n=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(n=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),n},_mouseDrag:function(t){var n,i,r,o,s=this.options;if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),this._contactContainers(t),null!==this.innermostContainer)for(s.scroll&&this._scroll(t)!==!1&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},n=this.items.length-1;n>=0;n--)if(i=this.items[n],r=i.item[0],o=this._intersectsWithPointer(i),o&&i.instance===this.currentContainer&&r!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==r&&!e.contains(this.placeholder[0],r)&&("semi-dynamic"===this.options.type?!e.contains(this.element[0],r):!0)){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var i=this,r=this.placeholder.offset(),o=this.options.axis,s={};o&&"x"!==o||(s.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(s.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(s,parseInt(this.options.revert,10)||500,function(){i._clear(t)})}else this._clear(t,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e(n).each(function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);n&&i.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n.each(function(){i.push(e(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,i=this.positionAbs.top,r=i+this.helperProportions.height,o=e.left,s=o+e.width,a=e.top,u=a+e.height,l=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||i+l>a&&u>i+l,f="y"===this.options.axis||t+c>o&&s>t+c,p=h&&f;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:o<t+this.helperProportions.width/2&&n-this.helperProportions.width/2<s&&a<i+this.helperProportions.height/2&&r-this.helperProportions.height/2<u},_intersectsWithPointer:function(e){var t,n,i="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),o=i&&r;return o?(t=this.dragDirection.vertical,n=this.dragDirection.horizontal,this.floating?"right"===n||"down"===t?2:1:t&&("down"===t?2:1)):!1},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),i=this.dragDirection.vertical,r=this.dragDirection.horizontal;return this.floating&&r?"right"===r&&n||"left"===r&&!n:i&&("down"===i&&t||"up"===i&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){function n(){a.push(this)}var i,r,o,s,a=[],u=[],l=this._connectWith();if(l&&t)for(i=l.length-1;i>=0;i--)for(o=e(l[i],this.document[0]),r=o.length-1;r>=0;r--)s=e.data(o[r],this.widgetFullName),s&&s!==this&&!s.options.disabled&&u.push(["function"==typeof s.options.items?s.options.items.call(s.element):e(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);for(u.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=u.length-1;i>=0;i--)u[i][0].each(n);return e(a)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var n=0;n<t.length;n++)if(t[n]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var n,i,r,o,s,a,u,l,c=this.items,h=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],f=this._connectWith();if(f&&this.ready)for(n=f.length-1;n>=0;n--)for(r=e(f[n],this.document[0]),i=r.length-1;i>=0;i--)o=e.data(r[i],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(h.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],t,{item:this.currentItem}):e(o.options.items,o.element),o]),this.containers.push(o));for(n=h.length-1;n>=0;n--)for(s=h[n][1],a=h[n][0],i=0,l=a.length;l>i;i++)u=e(a[i]),u.data(this.widgetName+"-item",s),c.push({item:u,instance:s,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var n,i,r,o;for(n=this.items.length-1;n>=0;n--)i=this.items[n],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?e(this.options.toleranceElement,i.item):i.item,t||(i.width=r.outerWidth(),i.height=r.outerHeight()),o=r.offset(),i.left=o.left,i.top=o.top)},refreshPositions:function(e){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,null!==this.innermostContainer&&this._refreshItemPositions(e);var t,n;if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)n=this.containers[t].element.offset(),this.containers[t].containerCache.left=n.left,this.containers[t].containerCache.top=n.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var n,i,r=t.options;r.placeholder&&r.placeholder.constructor!==String||(n=r.placeholder,i=t.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var r=e("<"+i+">",t.document[0]);return t._addClass(r,"ui-sortable-placeholder",n||t.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===i?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(r)):"tr"===i?t._createTrPlaceholder(t.currentItem,r):"img"===i&&r.attr("src",t.currentItem.attr("src")),n||r.css("visibility","hidden"),r},update:function(e,o){(!n||r.forcePlaceholderSize)&&((!o.height()||r.forcePlaceholderSize&&("tbody"===i||"tr"===i))&&o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(r.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),r.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,n){var i=this;t.children().each(function(){e("<td> </td>",i.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)})},_contactContainers:function(t){var n,i,r,o,s,a,u,l,c,h,f=null,p=null;for(n=this.containers.length-1;n>=0;n--)if(!e.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(f&&e.contains(this.containers[n].element[0],f.element[0]))continue;f=this.containers[n],p=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",t,this._uiHash(this)),this.containers[n].containerCache.over=0);if(this.innermostContainer=f,f)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(r=1e4,o=null,c=f.floating||this._isFloating(this.currentItem),s=c?"left":"top",a=c?"width":"height",h=c?"pageX":"pageY",i=this.items.length-1;i>=0;i--)e.contains(this.containers[p].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(u=this.items[i].item.offset()[s],l=!1,t[h]-u>this.items[i][a]/2&&(l=!0),Math.abs(t[h]-u)<r&&(r=Math.abs(t[h]-u),o=this.items[i],this.direction=l?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(t,o,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(t){var n=this.options,i="function"==typeof n.helper?e(n.helper.apply(this.element[0],[t,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||this.appendTo[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||n.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||n.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),("document"===r.containment||"window"===r.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(t=e(r.containment)[0],n=e(r.containment).offset(),i="hidden"!==e(t).css("overflow"),this.containment=[n.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,n.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,n){n||(n=this.position);var i="absolute"===t?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(r[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:r.scrollTop())*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:r.scrollLeft())*i}},_generatePosition:function(t){var n,i,r=this.options,o=t.pageX,s=t.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,u=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),r.grid&&(n=this.originalPageY+Math.round((s-this.originalPageY)/r.grid[1])*r.grid[1],s=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-r.grid[1]:n+r.grid[1]:n,i=this.originalPageX+Math.round((o-this.originalPageX)/r.grid[0])*r.grid[0],o=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-r.grid[0]:i+r.grid[0]:i)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():u?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():u?0:a.scrollLeft())}},_rearrange:function(e,t,n,i){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay(function(){r===this.counter&&this.refreshPositions(!i)})},_clear:function(e,t){function n(e,t,n){return function(i){n._trigger(e,i,t._uiHash(t))}}this.reverting=!1;var i,r=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&r.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||r.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(r.push(function(e){this._trigger("remove",e,this._uiHash())}),r.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),r.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||r.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(r.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<r.length;i++)r[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){e.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(t){var n=t||this;return{helper:n.helper,placeholder:n.placeholder||e([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:t?t.element:null}}});e.widget("ui.spinner",{version:"1.13.0",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),n=this.element;return e.each(["min","max","step"],function(e,i){var r=n.attr(i);null!=r&&r.length&&(t[i]=r)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",e)))},mousewheel:function(t,n){var i=e.ui.safeActiveElement(this.document[0]),r=this.element[0]===i;if(r&&n){if(!this.spinning&&!this._start(t))return!1;this._spin((n>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){function n(){var t=this.element[0]===e.ui.safeActiveElement(this.document[0]);t||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}var i;i=this.element[0]===e.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),this._start(t)!==!1&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){return e(t.currentTarget).hasClass("ui-state-active")?this._start(t)===!1?!1:void this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var n=this.options,i=e.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,n.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-n.page,t),!0}return!1},_start:function(e){return this.spinning||this._trigger("start",e)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(e,t,n){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,n)},e),this._spin(t*this.options.step,n)},_spin:function(e,t){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+e*this._increment(this.counter)),this.spinning&&this._trigger("spin",t,{value:n})===!1||(this._value(n),this.counter++)},_increment:function(e){var t=this.options.incremental;return t?"function"==typeof t?t(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_adjustValue:function(e){var t,n,i=this.options;return t=null!==i.min?i.min:0,n=e-t,n=Math.round(n/i.step)*i.step,e=t+n,e=parseFloat(e.toFixed(this._precision())),null!==i.max&&e>i.max?i.max:null!==i.min&&e<i.min?i.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var n,i,r;return"culture"===e||"numberFormat"===e?(n=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(n))):(("max"===e||"min"===e||"step"===e)&&"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,t.up),r=this.buttons.last().find(".ui-icon"),this._removeClass(r,null,this.options.icons.down),this._addClass(r,null,t.down)),void this._super(e,t))},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:h(function(e){this._super(e)}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null===e?!1:e===this._adjustValue(e)},_value:function(e,t){var n;""!==e&&(n=this._parse(e),null!==n&&(t||(n=this._adjustValue(n)),e=this._format(n))),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:h(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},
- stepDown:h(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:h(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:h(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?void h(this._value).call(this,e):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),e.uiBackCompat!==!1&&e.widget("ui.spinner",e.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}});e.ui.spinner;/*!
- * jQuery UI Tabs 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.widget("ui.tabs",{version:"1.13.0",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;return function(t){var n,i;n=t.href.replace(e,""),i=location.href.replace(e,"");try{n=decodeURIComponent(n)}catch(r){}try{i=decodeURIComponent(i)}catch(r){}return t.hash.length>1&&n===i}}(),_create:function(){var t=this,n=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,n.collapsible),this._processTabs(),n.active=this._initialActive(),Array.isArray(n.disabled)&&(n.disabled=e.uniqueSort(n.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(n.active):this.active=e(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var t=this.options.active,n=this.options.collapsible,i=location.hash.substring(1);return null===t&&(i&&this.tabs.each(function(n,r){return e(r).attr("aria-controls")===i?(t=n,!1):void 0}),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===t||-1===t)&&(t=this.tabs.length?0:!1)),t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),-1===t&&(t=n?!1:0)),!n&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var n=e(e.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(n),r=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:i++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:r=!1,i--;break;case e.ui.keyCode.END:i=this.anchors.length-1;break;case e.ui.keyCode.HOME:i=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i===this.options.active?!1:i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,r),t.ctrlKey||t.metaKey||(n.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,n){function i(){return t>r&&(t=0),0>t&&(t=r),t}for(var r=this.tabs.length-1;-1!==e.inArray(i(),this.options.disabled);)t=n?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){return"active"===e?void this._activate(t):(this._super(e,t),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,t),t||this.options.active!==!1||this._activate(0)),"event"===e&&this._setupEvents(t),void("heightStyle"===e&&this._setupHeightStyle(t)))},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,n=this.tablist.children(":has(a[href])");t.disabled=e.map(n.filter(".ui-state-disabled"),function(e){return n.index(e)}),this._processTabs(),t.active!==!1&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,n=this.tabs,i=this.anchors,r=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=e(),this.anchors.each(function(n,i){var r,o,s,a=e(i).uniqueId().attr("id"),u=e(i).closest("li"),l=u.attr("aria-controls");t._isLocal(i)?(r=i.hash,s=r.substring(1),o=t.element.find(t._sanitizeSelector(r))):(s=u.attr("aria-controls")||e({}).uniqueId()[0].id,r="#"+s,o=t.element.find(r),o.length||(o=t._createPanel(s),o.insertAfter(t.panels[n-1]||t.tablist)),o.attr("aria-live","polite")),o.length&&(t.panels=t.panels.add(o)),l&&u.data("ui-tabs-aria-controls",l),u.attr({"aria-controls":s,"aria-labelledby":a}),o.attr("aria-labelledby",a)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),n&&(this._off(n.not(this.tabs)),this._off(i.not(this.anchors)),this._off(r.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var n,i,r;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),r=0;i=this.tabs[r];r++)n=e(i),t===!0||-1!==e.inArray(r,t)?(n.attr("aria-disabled","true"),this._addClass(n,null,"ui-state-disabled")):(n.removeAttr("aria-disabled"),this._removeClass(n,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,t===!0)},_setupEvents:function(t){var n={};t&&e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,i=this.element.parent();"fill"===t?(n=i.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),i=t.css("position");"absolute"!==i&&"fixed"!==i&&(n-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){n-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,n-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(n=0,this.panels.each(function(){n=Math.max(n,e(this).height("").height())}).height(n))},_eventHandler:function(t){var n=this.options,i=this.active,r=e(t.currentTarget),o=r.closest("li"),s=o[0]===i[0],a=s&&n.collapsible,u=a?e():this._getPanelForTab(o),l=i.length?this._getPanelForTab(i):e(),c={oldTab:i,oldPanel:l,newTab:a?e():o,newPanel:u};t.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||s&&!n.collapsible||this._trigger("beforeActivate",t,c)===!1||(n.active=a?!1:this.tabs.index(o),this.active=s?e():o,this.xhr&&this.xhr.abort(),l.length||u.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),u.length&&this.load(this.tabs.index(o),t),this._toggle(t,c))},_toggle:function(t,n){function i(){o.running=!1,o._trigger("activate",t,n)}function r(){o._addClass(n.newTab.closest("li"),"ui-tabs-active","ui-state-active"),s.length&&o.options.show?o._show(s,o.options.show,i):(s.show(),i())}var o=this,s=n.newPanel,a=n.oldPanel;this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){o._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r()}):(this._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a.hide(),r()),a.attr("aria-hidden","true"),n.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&a.length?n.oldTab.attr("tabIndex",-1):s.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),s.attr("aria-hidden","false"),n.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var n,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),n=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop}))},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+e.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=e(this),n=t.data("ui-tabs-aria-controls");n?t.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var n=this.options.disabled;n!==!1&&(void 0===t?n=!1:(t=this._getIndex(t),n=Array.isArray(n)?e.map(n,function(e){return e!==t?e:null}):e.map(this.tabs,function(e,n){return n!==t?n:null})),this._setOptionDisabled(n))},disable:function(t){var n=this.options.disabled;if(n!==!0){if(void 0===t)n=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,n))return;n=Array.isArray(n)?e.merge([t],n).sort():[t]}this._setOptionDisabled(n)}},load:function(t,n){t=this._getIndex(t);var i=this,r=this.tabs.eq(t),o=r.find(".ui-tabs-anchor"),s=this._getPanelForTab(r),a={tab:r,panel:s},u=function(e,t){"abort"===t&&i.panels.stop(!1,!0),i._removeClass(r,"ui-tabs-loading"),s.removeAttr("aria-busy"),e===i.xhr&&delete i.xhr};this._isLocal(o[0])||(this.xhr=e.ajax(this._ajaxSettings(o,n,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(r,"ui-tabs-loading"),s.attr("aria-busy","true"),this.xhr.done(function(e,t,r){setTimeout(function(){s.html(e),i._trigger("load",n,a),u(r,t)},1)}).fail(function(e,t){setTimeout(function(){u(e,t)},1)})))},_ajaxSettings:function(t,n,i){var r=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,o){return r._trigger("beforeLoad",n,e.extend({jqXHR:t,ajaxSettings:o},i))}}},_getPanelForTab:function(t){var n=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),e.uiBackCompat!==!1&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}});e.ui.tabs;/*!
- * jQuery UI Tooltip 1.13.0
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- e.widget("ui.tooltip",{version:"1.13.0",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=e(this).attr("title");return e("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,t){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(t),e.data("ui-tooltip-id",t).attr("aria-describedby",String.prototype.trim.call(n.join(" ")))},_removeDescribedBy:function(t){var n=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),r=e.inArray(n,i);-1!==r&&i.splice(r,1),t.removeData("ui-tooltip-id"),i=String.prototype.trim.call(i.join(" ")),i?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=e("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=e([])},_setOption:function(t,n){var i=this;this._super(t,n),"content"===t&&e.each(this.tooltips,function(e,t){i._updateContent(t.element)})},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var t=this;e.each(this.tooltips,function(n,i){var r=e.Event("blur");r.target=r.currentTarget=i.element[0],t.close(r,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=e(this);return t.is("[title]")?t.data("ui-tooltip-title",t.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=e([])},open:function(t){var n=this,i=e(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each(function(){var t,i=e(this);i.data("ui-tooltip-open")&&(t=e.Event("blur"),t.target=t.currentTarget=this,n.close(t,!0)),i.attr("title")&&(i.uniqueId(),n.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))}),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(e,t){var n,i=this.options.content,r=this,o=t?t.type:null;return"string"==typeof i||i.nodeType||i.jquery?this._open(t,e,i):(n=i.call(e[0],function(n){r._delay(function(){e.data("ui-tooltip-open")&&(t&&(t.type=o),this._open(t,e,n))})}),void(n&&this._open(t,e,n)))},_open:function(t,n,i){function r(e){l.of=e,s.is(":hidden")||s.position(l)}var o,s,a,u,l=e.extend({},this.options.position);if(i){if(o=this._find(n))return void o.tooltip.find(".ui-tooltip-content").html(i);n.is("[title]")&&(t&&"mouseover"===t.type?n.attr("title",""):n.removeAttr("title")),o=this._tooltip(n),s=o.tooltip,this._addDescribedBy(n,s.attr("id")),s.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),u=e("<div>").html(s.find(".ui-tooltip-content").html()),u.removeAttr("name").find("[name]").removeAttr("name"),u.removeAttr("id").find("[id]").removeAttr("id"),u.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:r}),r(t)):s.position(e.extend({of:n},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(a=this.delayedShow=setInterval(function(){s.is(":visible")&&(r(l.of),clearInterval(a))},13)),this._trigger("open",t,{tooltip:s})}},_registerCloseHandlers:function(t,n){var i={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var i=e.Event(t);i.currentTarget=n[0],this.close(i,!0)}}};n[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(n).tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,n,i)},close:function(t){var n,i=this,r=e(t?t.currentTarget:this.element),o=this._find(r);return o?(n=o.tooltip,void(o.closing||(clearInterval(this.delayedShow),r.data("ui-tooltip-title")&&!r.attr("title")&&r.attr("title",r.data("ui-tooltip-title")),this._removeDescribedBy(r),o.hiding=!0,n.stop(!0),this._hide(n,this.options.hide,function(){i._removeTooltip(e(this))}),r.removeData("ui-tooltip-open"),this._off(r,"mouseleave focusout keyup"),r[0]!==this.element[0]&&this._off(r,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,function(t,n){e(n.element).attr("title",n.title),delete i.parents[t]}),o.closing=!0,this._trigger("close",t,{tooltip:n}),o.hiding||(o.closing=!1)))):void r.removeData("ui-tooltip-open")},_tooltip:function(t){var n=e("<div>").attr("role","tooltip"),i=e("<div>").appendTo(n),r=n.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(t)),this.tooltips[r]={element:t,tooltip:n}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){clearInterval(this.delayedShow),e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,function(n,i){var r=e.Event("blur"),o=i.element;r.target=r.currentTarget=o[0],t.close(r,!0),e("#"+n).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),e.uiBackCompat!==!1&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}});e.ui.tooltip}),function(e){define("jquery-bbq",["jquery"],function(){return function(){/*!
- * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
- * http://benalman.com/projects/jquery-bbq-plugin/
- *
- * Copyright (c) 2010 "Cowboy" Ben Alman
- * Dual licensed under the MIT and GPL licenses.
- * http://benalman.com/about/license/
- */
- // About: License
- // Dual licensed under the MIT and GPL licenses.
- // http://benalman.com/about/license/
- !function(e,t){"$:nomunge";function n(e){return"string"==typeof e}function i(e){var t=m.call(arguments,1);return function(){return e.apply(this,t.concat(m.call(arguments)))}}function r(e){return e.replace(/^[^#]*#?(.*)$/,"$1")}function o(e){return e.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function s(i,r,o,s,a){var u,c,f,p,d;return s!==l?(f=o.match(i?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/),d=f[3]||"",2===a&&n(s)?c=s.replace(i?P:O,""):(p=h(f[2]),s=n(s)?h[i?C:k](s):s,c=2===a?s:1===a?e.extend({},s,p):e.extend({},p,s),c=b(c),i&&(c=c.replace(v,y))),u=f[1]+(i?"#":c||!f[1]?"?":"")+c+d):u=r(o!==l?o:t[E][S]),u}function a(e,t,i){return t===l||"boolean"==typeof t?(i=t,t=b[e?C:k]()):t=n(t)?t.replace(e?P:O,""):t,h(t,i)}function u(t,i,r,o){return n(r)||"object"==typeof r||(o=r,r=i,i=l),this.each(function(){var n=e(this),s=i||g()[(this.nodeName||"").toLowerCase()]||"",a=s&&n.attr(s)||"";n.attr(s,b[t](a,r,o))})}var l,c,h,f,p,d,g,v,m=Array.prototype.slice,y=decodeURIComponent,b=e.param,_=e.bbq=e.bbq||{},w=e.event.special,x="hashchange",k="querystring",C="fragment",T="elemUrlAttr",E="location",S="href",D="src",O=/^.*\?|#.*$/g,P=/^.*\#/,A={};b[k]=i(s,0,o),b[C]=c=i(s,1,r),c.noEscape=function(t){t=t||"";var n=e.map(t.split(""),encodeURIComponent);v=new RegExp(n.join("|"),"g")},c.noEscape(",/"),e.deparam=h=function(t,n){var i={},r={"true":!0,"false":!1,"null":null};return e.each(t.replace(/\+/g," ").split("&"),function(t,o){var s,a=o.split("="),u=y(a[0]),c=i,h=0,f=u.split("]["),p=f.length-1;if(/\[/.test(f[0])&&/\]$/.test(f[p])?(f[p]=f[p].replace(/\]$/,""),f=f.shift().split("[").concat(f),p=f.length-1):p=0,2===a.length)if(s=y(a[1]),n&&(s=s&&!isNaN(s)?+s:"undefined"===s?l:r[s]!==l?r[s]:s),p)for(;p>=h;h++)u=""===f[h]?c.length:f[h],c=c[u]=p>h?c[u]||(f[h+1]&&isNaN(f[h+1])?{}:[]):s;else e.isArray(i[u])?i[u].push(s):i[u]!==l?i[u]=[i[u],s]:i[u]=s;else u&&(i[u]=n?l:"")}),i},h[k]=i(a,0),h[C]=f=i(a,1),e[T]||(e[T]=function(t){return e.extend(A,t)})({a:S,base:S,iframe:D,img:D,input:D,form:"action",link:S,script:D}),g=e[T],e.fn[k]=i(u,k),e.fn[C]=i(u,C),_.pushState=p=function(e,i){n(e)&&/^#/.test(e)&&i===l&&(i=2);var r=e!==l,o=c(t[E][S],r?e:{},r?i:2);t[E][S]=o+(/#/.test(o)?"":"#")},_.getState=d=function(e,t){return e===l||"boolean"==typeof e?f(e):f(t)[e]},_.removeState=function(t){var n={};t!==l&&(n=d(),e.each(e.isArray(t)?t:arguments,function(e,t){delete n[t]})),p(n,2)},w[x]=e.extend(w[x],{add:function(t){function n(e){var t=e[C]=c();e.getState=function(e,n){return e===l||"boolean"==typeof e?h(t,e):h(t,n)[e]},i.apply(this,arguments)}var i;return e.isFunction(t)?(i=t,n):(i=t.handler,void(t.handler=n))}})}(jQuery,this),/*!
- * jQuery hashchange event - v1.2 - 2/11/2010
- * http://benalman.com/projects/jquery-hashchange-plugin/
- *
- * Copyright (c) 2010 "Cowboy" Ben Alman
- * Dual licensed under the MIT and GPL licenses.
- * http://benalman.com/about/license/
- */
- // About: License
- // Dual licensed under the MIT and GPL licenses.
- // http://benalman.com/about/license/
- function(e,t,n){"$:nomunge";function i(e){return e=e||t[s][u],e.replace(/^[^#]*#?(.*)$/,"$1")}var r,o=e.event.special,s="location",a="hashchange",u="href",l=e.browser,c=document.documentMode,h=l&&l.msie&&(c===n||8>c),f="on"+a in t&&!h;e[a+"Delay"]=100,o[a]=e.extend(o[a],{setup:function(){return f?!1:void e(r.start)},teardown:function(){return f?!1:void e(r.stop)}}),r=function(){function n(){l=c=function(e){return e},h&&(o=e('<iframe src="javascript:0"/>').hide().insertAfter("body")[0].contentWindow,c=function(){return i(o.document[s][u])},(l=function(e,t){if(e!==t){var n=o.document;n.open().close(),n[s].hash="#"+e}})(i()))}var r,o,l,c,f={};return f.start=function(){if(!r){var o=i();l||n(),function h(){var n=i(),f=c(o);n!==o?(l(o=n,f),e(t).trigger(a)):f!==o&&(t[s][u]=t[s][u].replace(/#.*/,"")+"#"+f),r=setTimeout(h,e[a+"Delay"])}()}},f.stop=function(){o||(r&&clearTimeout(r),r=0)},f}()}(jQuery,this)}.apply(e,arguments)})}(this),function(e){define("polyglot",[],function(){return function(){
- // license. For all licensing information, details, and documention:
- return!function(e){"use strict";function t(e){e=e||{},this.phrases={},this.extend(e.phrases||{}),this.currentLocale=e.locale||"en",this.allowMissing=!!e.allowMissing,this.warn=e.warn||u}function n(e){var t,n,i,r={};for(t in e)if(e.hasOwnProperty(t)){n=e[t];for(i in n)r[n[i]]=t}return r}function i(e){var t=/^\s+|\s+$/g;return e.replace(t,"")}function r(e,t,n){var r,o,a;return null!=n&&e?(o=e.split(c),a=o[s(t,n)]||o[0],r=i(a)):r=e,r}function o(e){var t=n(f);return t[e]||t.en}function s(e,t){return h[o(e)](t)}function a(e,t){for(var n in t)"_"!==n&&t.hasOwnProperty(n)&&(e=e.replace(new RegExp("%\\{"+n+"\\}","g"),t[n]));return e}function u(t){e.console&&e.console.warn&&e.console.warn("WARNING: "+t)}function l(e){var t={};for(var n in e)t[n]=e[n];return t}t.VERSION="0.4.1",t.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},t.prototype.extend=function(e,t){var n;for(var i in e)e.hasOwnProperty(i)&&(n=e[i],t&&(i=t+"."+i),"object"==typeof n?this.extend(n,i):this.phrases[i]=n)},t.prototype.clear=function(){this.phrases={}},t.prototype.replace=function(e){this.clear(),this.extend(e)},t.prototype.t=function(e,t){var n;t=null==t?{}:t,"number"==typeof t&&(t={smart_count:t});var i=this.phrases[e]||t._||(this.allowMissing?e:"");return""===i?(this.warn('Missing translation for key: "'+e+'"'),n=e):(t=l(t),n=r(i,this.currentLocale,t.smart_count),n=a(n,t)),n};var c="||||",h={chinese:function(e){return 0},german:function(e){return 1!==e?1:0},french:function(e){return e>1?1:0},russian:function(e){return e%10===1&&e%100!==11?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2},czech:function(e){return 1===e?0:e>=2&&4>=e?1:2},polish:function(e){return 1===e?0:e%10>=2&&4>=e%10&&(10>e%100||e%100>=20)?1:2},icelandic:function(e){return e%10!==1||e%100===11?1:0}},f={chinese:["fa","id","ja","ko","lo","ms","th","tr","zh"],german:["da","de","en","es","fi","el","he","hu","it","nl","no","pt","sv"],french:["fr","tl","pt-br"],russian:["hr","ru"],czech:["cs"],polish:["pl"],icelandic:["is"]};"undefined"!=typeof module&&module.exports?module.exports=t:e.Polyglot=t}(this),e.Polyglot=Polyglot}.apply(e,arguments)})}(this),define("normalize",[],function(){function e(e,i,r){if(e.match(a)||e.match(s))return e;e=o(e);var u=r.match(s),l=i.match(s);return!l||u&&u[1]==l[1]&&u[2]==l[2]?n(t(e,i),r):t(e,i)}function t(e,t){if("./"==e.substr(0,2)&&(e=e.substr(2)),e.match(a)||e.match(s))return e;var n=t.split("/"),i=e.split("/");for(n.pop();curPart=i.shift();)".."==curPart?n.pop():n.push(curPart);return n.join("/")}function n(e,t){var n=t.split("/");for(n.pop(),t=n.join("/")+"/",i=0;t.substr(i,1)==e.substr(i,1);)i++;for(;"/"!=t.substr(i,1);)i--;t=t.substr(i+1),e=e.substr(i+1),n=t.split("/");var r=e.split("/");for(out="";n.shift();)out+="../";for(;curPart=r.shift();)out+=curPart+"/";return out.substr(0,out.length-1)}var r=/([^:])\/+/g,o=function(e){return e.replace(r,"$1/")},s=/[^\:\/]*:\/\/([^\/])*/,a=/^(\/|data:)/,u=function(t,n,i){n=o(n),i=o(i);for(var r,s,t,a=/@import\s*("([^"]*)"|'([^']*)')|url\s*\((?!#)\s*(\s*"([^"]*)"|'([^']*)'|[^\)]*\s*)\s*\)/gi;r=a.exec(t);){s=r[3]||r[2]||r[5]||r[6]||r[4];var u;u=e(s,n,i);var l=r[5]||r[6]?1:0;t=t.substr(0,a.lastIndex-s.length-l-1)+u+t.substr(a.lastIndex-l-1),a.lastIndex=a.lastIndex+(u.length-s.length)}return t};return u.convertURIBase=e,u.absoluteURI=t,u.relativeURI=n,u}),define("require-css",[],function(){if("undefined"==typeof window)return{load:function(e,t,n){n()}};var e=document.getElementsByTagName("head")[0],t=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,n=!1,i=!0;t[1]||t[7]?n=parseInt(t[1])<6||parseInt(t[7])<=9:t[2]||t[8]?i=!1:t[4]&&(n=parseInt(t[4])<18);var r={};r.pluginBuilder="./css-builder";var o,s,a,u=function(){o=document.createElement("style"),e.appendChild(o),s=o.styleSheet||o.sheet},l=0,c=[],h=function(e){s.addImport(e),o.onload=function(){f()},l++,31==l&&(u(),l=0)},f=function(){a();var e=c.shift();return e?(a=e[1],void h(e[0])):void(a=null)},p=function(e,t){if(s&&s.addImport||u(),s&&s.addImport)a?c.push([e,t]):(h(e),a=t);else{o.textContent='@import "'+e+'";';var n=setInterval(function(){try{o.sheet.cssRules,clearInterval(n),t()}catch(e){}},10)}},d=function(t,n){var r=document.createElement("link");if(r.type="text/css",r.rel="stylesheet",i)r.onload=function(){r.onload=function(){},setTimeout(n,7)};else var o=setInterval(function(){for(var e=0;e<document.styleSheets.length;e++){var t=document.styleSheets[e];if(t.href==r.href)return clearInterval(o),n()}},10);r.href=t,e.appendChild(r)};return r.normalize=function(e,t){return".css"==e.substr(e.length-4,4)&&(e=e.substr(0,e.length-4)),t(e)},r.load=function(e,t,i,r){(n?p:d)(t.toUrl(e+".css"),i)},r}),define("require-css!toastr",[],function(){}),function(e){e("toastr",["jquery"],function(e){return function(){function t(e,t,n){return d({type:w.error,iconClass:g().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=g()),m=e("#"+t.containerId),m.length?m:(n&&(m=h(t)),m)}function i(e,t,n){return d({type:w.info,iconClass:g().iconClasses.info,message:e,optionsOverride:n,title:t})}function r(e){y=e}function o(e,t,n){return d({type:w.success,iconClass:g().iconClasses.success,message:e,optionsOverride:n,title:t})}function s(e,t,n){return d({type:w.warning,iconClass:g().iconClasses.warning,message:e,optionsOverride:n,title:t})}function a(e,t){var i=g();m||n(i),c(e,i,t)||l(i)}function u(t){var i=g();return m||n(i),t&&0===e(":focus",t).length?void v(t):void(m.children().length&&m.remove())}function l(t){for(var n=m.children(),i=n.length-1;i>=0;i--)c(e(n[i]),t)}function c(t,n,i){var r=i&&i.force?i.force:!1;return t&&(r||0===e(":focus",t).length)?(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){v(t)}}),!0):!1}function h(t){return m=e("<div/>").attr("id",t.containerId).addClass(t.positionClass).attr("aria-live","polite").attr("role","alert"),m.appendTo(e(t.target)),m}function f(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">×</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function p(e){y&&y(e)}function d(t){function i(e){return null==e&&(e=""),new String(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function r(){a(),l(),c(),h(),f(),u()}function o(){S.hover(x,w),!C.onclick&&C.tapToDismiss&&S.click(y),C.closeButton&&A&&A.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),y(!0)}),C.onclick&&S.click(function(e){C.onclick(e),y()})}function s(){S.hide(),S[C.showMethod]({duration:C.showDuration,easing:C.showEasing,complete:C.onShown}),C.timeOut>0&&(E=setTimeout(y,C.timeOut),I.maxHideTime=parseFloat(C.timeOut),I.hideEta=(new Date).getTime()+I.maxHideTime,C.progressBar&&(I.intervalId=setInterval(k,10)))}function a(){t.iconClass&&S.addClass(C.toastClass).addClass(T)}function u(){C.newestOnTop?m.prepend(S):m.append(S)}function l(){t.title&&(D.append(C.escapeHtml?i(t.title):t.title).addClass(C.titleClass),S.append(D))}function c(){t.message&&(O.append(C.escapeHtml?i(t.message):t.message).addClass(C.messageClass),S.append(O))}function h(){C.closeButton&&(A.addClass("toast-close-button").attr("role","button"),S.prepend(A))}function f(){C.progressBar&&(P.addClass("toast-progress"),S.prepend(P))}function d(e,t){if(e.preventDuplicates){if(t.message===b)return!0;b=t.message}return!1}function y(t){var n=t&&C.closeMethod!==!1?C.closeMethod:C.hideMethod,i=t&&C.closeDuration!==!1?C.closeDuration:C.hideDuration,r=t&&C.closeEasing!==!1?C.closeEasing:C.hideEasing;return!e(":focus",S).length||t?(clearTimeout(I.intervalId),S[n]({duration:i,easing:r,complete:function(){v(S),C.onHidden&&"hidden"!==N.state&&C.onHidden(),N.state="hidden",N.endTime=new Date,p(N)}})):void 0}function w(){(C.timeOut>0||C.extendedTimeOut>0)&&(E=setTimeout(y,C.extendedTimeOut),I.maxHideTime=parseFloat(C.extendedTimeOut),I.hideEta=(new Date).getTime()+I.maxHideTime)}function x(){clearTimeout(E),I.hideEta=0,S.stop(!0,!0)[C.showMethod]({duration:C.showDuration,easing:C.showEasing})}function k(){var e=(I.hideEta-(new Date).getTime())/I.maxHideTime*100;P.width(e+"%")}var C=g(),T=t.iconClass||C.iconClass;if("undefined"!=typeof t.optionsOverride&&(C=e.extend(C,t.optionsOverride),T=t.optionsOverride.iconClass||T),!d(C,t)){_++,m=n(C,!0);var E=null,S=e("<div/>"),D=e("<div/>"),O=e("<div/>"),P=e("<div/>"),A=e(C.closeHtml),I={intervalId:null,hideEta:null,maxHideTime:null},N={toastId:_,state:"visible",startTime:new Date,options:C,map:t};return r(),s(),o(),p(N),C.debug&&console&&console.log(N),S}}function g(){return e.extend({},f(),x.options)}function v(e){m||(m=n()),e.is(":visible")||(e.remove(),e=null,0===m.children().length&&(m.remove(),b=void 0))}var m,y,b,_=0,w={error:"error",info:"info",success:"success",warning:"warning"},x={clear:a,remove:u,error:t,getContainer:n,info:i,options:{},subscribe:r,success:o,version:"2.1.2",warning:s};return x}()})}("function"==typeof define&&define.amd?define:function(e,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)}),
- // Licensed under the MIT license.
- function(){"use strict";function e(t,n,i){return("string"==typeof n?n:n.toString()).replace(t.define||o,function(e,n,r,o){return 0===n.indexOf("def.")&&(n=n.substring(4)),n in i||(":"===r?(t.defineParams&&o.replace(t.defineParams,function(e,t,r){i[n]={arg:t,text:r}}),n in i||(i[n]=o)):new Function("def","def['"+n+"']="+o)(i)),""}).replace(t.use||o,function(n,r){t.useParams&&(r=r.replace(t.useParams,function(e,t,n,r){if(i[n]&&i[n].arg&&r){var o=(n+":"+r).replace(/'|\\/g,"_");return i.__exp=i.__exp||{},i.__exp[o]=i[n].text.replace(new RegExp("(^|[^\\w$])"+i[n].arg+"([^\\w$])","g"),"$1"+r+"$2"),t+"def.__exp['"+o+"']"}}));var o=new Function("def","return "+r)(i);return o?e(t,o,i):o})}function t(e){return e.replace(/\\('|\\)/g,"$1").replace(/[\r\t\n]/g," ")}var n,i={name:"doT",version:"1.1.1",templateSettings:{evaluate:/\{\{([\s\S]+?(\}?)+)\}\}/g,interpolate:/\{\{=([\s\S]+?)\}\}/g,encode:/\{\{!([\s\S]+?)\}\}/g,use:/\{\{#([\s\S]+?)\}\}/g,useParams:/(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,define:/\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,defineParams:/^\s*([\w$]+):([\s\S]+)/,conditional:/\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,iterate:/\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,varname:"it",strip:!0,append:!0,selfcontained:!1,doNotSkipEncoded:!1},template:void 0,compile:void 0,log:!0};i.encodeHTMLSource=function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},n=e?/[&<>"'\/]/g:/&(?!#?\w+;)|<|>|"|'|\//g;return function(e){return e?e.toString().replace(n,function(e){return t[e]||e}):""}},n=function(){return this||(0,eval)("this")}(),"undefined"!=typeof module&&module.exports?module.exports=i:"function"==typeof define&&define.amd?define("doT",[],function(){return i}):n.doT=i;var r={append:{start:"'+(",end:")+'",startencode:"'+encodeHTML("},split:{start:"';out+=(",end:");out+='",startencode:"';out+=encodeHTML("}},o=/$^/;i.template=function(s,a,u){a=a||i.templateSettings;var l,c,h=a.append?r.append:r.split,f=0,p=a.use||a.define?e(a,s,u||{}):s;p=("var out='"+(a.strip?p.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g," ").replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g,""):p).replace(/'|\\/g,"\\$&").replace(a.interpolate||o,function(e,n){return h.start+t(n)+h.end}).replace(a.encode||o,function(e,n){return l=!0,h.startencode+t(n)+h.end}).replace(a.conditional||o,function(e,n,i){return n?i?"';}else if("+t(i)+"){out+='":"';}else{out+='":i?"';if("+t(i)+"){out+='":"';}out+='"}).replace(a.iterate||o,function(e,n,i,r){return n?(f+=1,c=r||"i"+f,n=t(n),"';var arr"+f+"="+n+";if(arr"+f+"){var "+i+","+c+"=-1,l"+f+"=arr"+f+".length-1;while("+c+"<l"+f+"){"+i+"=arr"+f+"["+c+"+=1];out+='"):"';} } out+='"}).replace(a.evaluate||o,function(e,n){return"';"+t(n)+"out+='"})+"';return out;").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/(\s|;|\}|^|\{)out\+='';/g,"$1").replace(/\+''/g,""),l&&(a.selfcontained||!n||n._encodeHTML||(n._encodeHTML=i.encodeHTMLSource(a.doNotSkipEncoded)),p="var encodeHTML = typeof _encodeHTML !== 'undefined' ? _encodeHTML : ("+i.encodeHTMLSource.toString()+"("+(a.doNotSkipEncoded||"")+"));"+p);try{return new Function(a.varname,p)}catch(d){throw"undefined"!=typeof console&&console.log("Could not create a template function: "+p),d}},i.compile=function(e,t){return i.template(e,null,t)}}(),define("requirejs-dplugins/has",["module"],function(e){function t(e,t,n){var i=e.match(/[\?:]|[^:\?]+/g),r=0,o=function(e){var s=i[r++];if(":"===s)return"";if("?"===i[r++]){var a=t(s);return void 0===a&&n?void 0:!e&&a?o():(o(!0),o(e))}return s};return o()}var n=e.config&&e.config()||{},i=function(e){var t=function(){return this}();return"function"==typeof n[e]?n[e]=n[e](t):n[e]};return i.cache=n,i.add=function(e,t,r,o){return("undefined"==typeof n[e]||o)&&(n[e]=t),r&&i(e)},i.normalize=function(e,t){for(var n=e.match(/[\?:]|[^:\?]+/g),i=0;i<n.length;i++)if(":"!==n[i]&&"?"!==n[i]&&"?"!==n[i+1]){var r=n[i].split("!");r[0]=t(r[0]),n[i]=r.join("!")}return n.join("")},i.load=function(e,n,r,o){if(o=o||{},!e||o.isBuild)return void r();var s=t(e,i,o.isBuild);s?n([s],r):r()},i.addModules=function(e,n,r){var o=t(n,i,!0);o&&r([o])},i}),function(e){define("bootstrap",["jquery"],function(){return function(){/*!
- * Bootstrap v3.4.1 (https://getbootstrap.com/)
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under the MIT license
- */
- if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),/* ========================================================================
- * Bootstrap: transition.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#transitions
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||e(i).trigger(e.support.transition.end)};return setTimeout(r,t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){return e(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),/* ========================================================================
- * Bootstrap: alert.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#alerts
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new i(this)),"string"==typeof t&&r[t].call(n)})}var n='[data-dismiss="alert"]',i=function(t){e(t).on("click",n,this.close)};i.VERSION="3.4.1",i.TRANSITION_DURATION=150,i.prototype.close=function(t){function n(){s.detach().trigger("closed.bs.alert").remove()}var r=e(this),o=r.attr("data-target");o||(o=r.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),o="#"===o?[]:o;var s=e(document).find(o);t&&t.preventDefault(),s.length||(s=r.closest(".alert")),s.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(s.removeClass("in"),e.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n())};var r=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=i,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",n,i.prototype.close)}(jQuery),/* ========================================================================
- * Bootstrap: button.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#buttons
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.button"),o="object"==typeof t&&t;r||i.data("bs.button",r=new n(this,o)),"toggle"==t?r.toggle():t&&r.setState(t)})}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.4.1",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();t+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(e.proxy(function(){i[r](null==o[t]?this.options[t]:o[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=e(n.target).closest(".btn");t.call(i,"toggle"),e(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),/* ========================================================================
- * Bootstrap: carousel.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#carousel
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.carousel"),o=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t),s="string"==typeof t?t:o.slide;r||i.data("bs.carousel",r=new n(this,o)),"number"==typeof t?r.to(t):s?r[s]():o.interval&&r.pause().cycle()})}var n=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.4.1",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),i="prev"==e&&0===n||"next"==e&&n==this.$items.length-1;if(i&&!this.options.wrap)return t;var r="prev"==e?-1:1,o=(n+r)%this.$items.length;return this.$items.eq(o)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){return this.sliding?void 0:this.slide("next")},n.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},n.prototype.slide=function(t,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(t,r),s=this.interval,a="next"==t?"left":"right",u=this;if(o.hasClass("active"))return this.sliding=!1;var l=o[0],c=e.Event("slide.bs.carousel",{relatedTarget:l,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var h=e(this.$indicators.children()[this.getItemIndex(o)]);h&&h.addClass("active")}var f=e.Event("slid.bs.carousel",{relatedTarget:l,direction:a});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),"object"==typeof o&&o.length&&o[0].offsetWidth,r.addClass(a),o.addClass(a),r.one("bsTransitionEnd",function(){o.removeClass([t,a].join(" ")).addClass("active"),r.removeClass(["active",a].join(" ")),u.sliding=!1,setTimeout(function(){u.$element.trigger(f)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(f)),s&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this};var r=function(n){var i=e(this),r=i.attr("href");r&&(r=r.replace(/.*(?=#[^\s]+$)/,""));var o=i.attr("data-target")||r,s=e(document).find(o);if(s.hasClass("carousel")){var a=e.extend({},s.data(),i.data()),u=i.attr("data-slide-to");u&&(a.interval=!1),t.call(s,a),u&&s.data("bs.carousel").to(u),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),/* ========================================================================
- * Bootstrap: collapse.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#collapse
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(t){var n,i=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(i)}function n(t){return this.each(function(){var n=e(this),r=n.data("bs.collapse"),o=e.extend({},i.DEFAULTS,n.data(),"object"==typeof t&&t);!r&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),r||n.data("bs.collapse",r=new i(this,o)),"string"==typeof t&&r[t]()})}var i=function(t,n){this.$element=e(t),this.options=e.extend({},i.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};i.VERSION="3.4.1",i.TRANSITION_DURATION=350,i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(t=r.data("bs.collapse"),t&&t.transitioning))){var o=e.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),t||r.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return a.call(this);var u=e.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",e.proxy(a,this)).emulateTransitionEnd(i.TRANSITION_DURATION)[s](this.$element[0][u])}}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(i.TRANSITION_DURATION):r.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},i.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,i){var r=e(i);this.addAriaAndCollapsedClass(t(r),r)},this)).end()},i.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=i,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var r=e(this);r.attr("data-target")||i.preventDefault();var o=t(r),s=o.data("bs.collapse"),a=s?"toggle":r.data();n.call(o,a)})}(jQuery),/* ========================================================================
- * Bootstrap: dropdown.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#dropdowns
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==n?e(document).find(n):null;return i&&i.length?i:t.parent()}function n(n){n&&3===n.which||(e(r).remove(),e(o).each(function(){var i=e(this),r=t(i),o={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(i.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",o)))))}))}function i(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new s(this)),"string"==typeof t&&i[t].call(n)})}var r=".dropdown-backdrop",o='[data-toggle="dropdown"]',s=function(t){e(t).on("click.bs.dropdown",this.toggle)};s.VERSION="3.4.1",s.prototype.toggle=function(i){var r=e(this);if(!r.is(".disabled, :disabled")){var o=t(r),s=o.hasClass("open");if(n(),!s){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var a={relatedTarget:this};if(o.trigger(i=e.Event("show.bs.dropdown",a)),i.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(e.Event("shown.bs.dropdown",a))}return!1}},s.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var i=e(this);if(n.preventDefault(),n.stopPropagation(),!i.is(".disabled, :disabled")){var r=t(i),s=r.hasClass("open");if(!s&&27!=n.which||s&&27==n.which)return 27==n.which&&r.find(o).trigger("focus"),i.trigger("click");var a=" li:not(.disabled):visible a",u=r.find(".dropdown-menu"+a);if(u.length){var l=u.index(n.target);38==n.which&&l>0&&l--,40==n.which&&l<u.length-1&&l++,~l||(l=0),u.eq(l).trigger("focus")}}}};var a=e.fn.dropdown;e.fn.dropdown=i,e.fn.dropdown.Constructor=s,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=a,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",o,s.prototype.toggle).on("keydown.bs.dropdown.data-api",o,s.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",s.prototype.keydown)}(jQuery),/* ========================================================================
- * Bootstrap: modal.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#modals
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(t,i){return this.each(function(){var r=e(this),o=r.data("bs.modal"),s=e.extend({},n.DEFAULTS,r.data(),"object"==typeof t&&t);o||r.data("bs.modal",o=new n(this,s)),"string"==typeof t?o[t](i):s.show&&o.show(i)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.4.1",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var i=this,r=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:t});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(n.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&r;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):s()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+n),e(this.fixedContent).each(function(t,i){var r=i.style.paddingRight,o=e(i).css("padding-right");e(i).data("padding-right",r).css("padding-right",parseFloat(o)+n+"px")}))},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),e(this.fixedContent).each(function(t,n){var i=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=i?i:""})},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=e(this),r=i.attr("href"),o=i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(document).find(o),a=s.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},s.data(),i.data());i.is("a")&&n.preventDefault(),s.one("show.bs.modal",function(e){e.isDefaultPrevented()||s.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),t.call(s,a,this)})}(jQuery),/* ========================================================================
- * Bootstrap: tooltip.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#tooltip
- * Inspired by the original jQuery.tipsy by Jason Frame
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(t,n){var i=t.nodeName.toLowerCase();if(-1!==e.inArray(i,n))return-1!==e.inArray(i,o)?Boolean(t.nodeValue.match(u)||t.nodeValue.match(l)):!0;for(var r=e(n).filter(function(e,t){return t instanceof RegExp}),s=0,a=r.length;a>s;s++)if(i.match(r[s]))return!0;return!1}function n(n,i,r){if(0===n.length)return n;if(r&&"function"==typeof r)return r(n);if(!document.implementation||!document.implementation.createHTMLDocument)return n;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=n;for(var s=e.map(i,function(e,t){return t}),a=e(o.body).find("*"),u=0,l=a.length;l>u;u++){var c=a[u],h=c.nodeName.toLowerCase();if(-1!==e.inArray(h,s))for(var f=e.map(c.attributes,function(e){return e}),p=[].concat(i["*"]||[],i[h]||[]),d=0,g=f.length;g>d;d++)t(f[d],p)||c.removeAttribute(f[d].nodeName);else c.parentNode.removeChild(c)}return o.body.innerHTML}function i(t){return this.each(function(){var n=e(this),i=n.data("bs.tooltip"),r="object"==typeof t&&t;(i||!/destroy|hide/.test(t))&&(i||n.data("bs.tooltip",i=new c(this,r)),"string"==typeof t&&i[t]())})}var r=["sanitize","whiteList","sanitizeFn"],o=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],s=/^aria-[\w-]*$/i,a={"*":["class","dir","id","lang","role",s],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:[]},u=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,l=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,c=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};c.VERSION="3.4.1",c.TRANSITION_DURATION=150,c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:a},c.prototype.init=function(t,n,i){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var s=r[o];if("click"==s)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=s){var a="hover"==s?"mouseenter":"focusin",u="hover"==s?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(t){var i=this.$element.data();for(var o in i)i.hasOwnProperty(o)&&-1!==e.inArray(o,r)&&delete i[o];return t=e.extend({},this.getDefaults(),i,t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},c.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},c.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},c.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},c.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),n.isInStateTrue()?void 0:(clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide())},c.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var i=this,r=this.tip(),o=this.getUID(this.type);this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,u=a.test(s);u&&(s=s.replace(a,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?r.appendTo(e(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),h=r[0].offsetWidth,f=r[0].offsetHeight;if(u){var p=s,d=this.getPosition(this.$viewport);s="bottom"==s&&l.bottom+f>d.bottom?"top":"top"==s&&l.top-f<d.top?"bottom":"right"==s&&l.right+h>d.width?"left":"left"==s&&l.left-h<d.left?"right":s,r.removeClass(p).addClass(s)}var g=this.getCalculatedOffset(s,l,h,f);this.applyPlacement(g,s);var v=function(){var e=i.hoverState;null!=i.$element&&i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==e&&i.leave(i)};e.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",v).emulateTransitionEnd(c.TRANSITION_DURATION):v()}},c.prototype.applyPlacement=function(t,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var u=i[0].offsetWidth,l=i[0].offsetHeight;"top"==n&&l!=o&&(t.top=t.top+o-l);var c=this.getViewportAdjustedDelta(n,t,u,l);c.left?t.left+=c.left:t.top+=c.top;var h=/top|bottom/.test(n),f=h?2*c.left-r+u:2*c.top-o+l,p=h?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(f,i[0][p],h)},c.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},c.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();this.options.html?(this.options.sanitize&&(t=n(t,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(t)):e.find(".tooltip-inner").text(t),e.removeClass("fade in top bottom left right")},c.prototype.hide=function(t){function n(){"in"!=i.hoverState&&r.detach(),i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type),t&&t()}var i=this,r=e(this.$tip),o=e.Event("hide.bs."+this.type);return this.$element.trigger(o),o.isDefaultPrevented()?void 0:(r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",n).emulateTransitionEnd(c.TRANSITION_DURATION):n(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(t){t=t||this.$element;var n=t[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=e.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&n instanceof window.SVGElement,s=i?{top:0,left:0}:o?null:t.offset(),a={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},u=i?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},r,a,u,s)},c.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},c.prototype.getViewportAdjustedDelta=function(e,t,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(e)){var a=t.top-o-s.scroll,u=t.top+o-s.scroll+i;a<s.top?r.top=s.top-a:u>s.top+s.height&&(r.top=s.top+s.height-u)}else{var l=t.left-o,c=t.left+o+n;l<s.left?r.left=s.left-l:c>s.right&&(r.left=s.left+s.width-c)}return r},c.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},c.prototype.getUID=function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e));return e},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(t){var n=this;t&&(n=e(t.currentTarget).data("bs."+this.type),n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},c.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){null!=e.$element&&e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})},c.prototype.sanitizeHtml=function(e){return n(e,this.options.whiteList,this.options.sanitizeFn)};var h=e.fn.tooltip;e.fn.tooltip=i,e.fn.tooltip.Constructor=c,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=h,this}}(jQuery),/* ========================================================================
- * Bootstrap: popover.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#popovers
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.popover"),o="object"==typeof t&&t;(r||!/destroy|hide/.test(t))&&(r||i.data("bs.popover",r=new n(this,o)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.4.1",n.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===i&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=n,e.fn.popover.noConflict=function(){return e.fn.popover=i,this}}(jQuery),/* ========================================================================
- * Bootstrap: scrollspy.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#scrollspy
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(n,i){this.$body=e(document.body),this.$scrollElement=e(e(n).is(document.body)?window:n),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=e(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new t(this,o)),"string"==typeof n&&r[n]()})}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),r=t.data("target")||t.attr("href"),o=/^#./.test(r)&&e(r);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=i)return s!=(e=o[o.length-1])&&this.activate(e);if(s&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)s!=o[e]&&t>=r[e]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(o[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=e(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),/* ========================================================================
- * Bootstrap: tab.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#tabs
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new n(this)),"string"==typeof t&&r[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=e.Event("hide.bs.tab",{relatedTarget:t[0]}),s=e.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),t.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=e(document).find(i);this.activate(t.closest("li"),n),this.activate(a,a.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(t,i,r){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var s=i.find("> .active"),a=r&&e.support.transition&&(s.length&&s.hasClass("fade")||!!i.find("> .fade").length);s.length&&a?s.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),s.removeClass("in")};var i=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=i,this};var r=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),/* ========================================================================
- * Bootstrap: affix.js v3.4.1
- * https://getbootstrap.com/docs/3.4/javascript/#affix
- * ========================================================================
- * Copyright 2011-2019 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- +function(e){"use strict";function t(t){return this.each(function(){var i=e(this),r=i.data("bs.affix"),o="object"==typeof t&&t;r||i.data("bs.affix",r=new n(this,o)),"string"==typeof t&&r[t]()})}var n=function(t,i){this.options=e.extend({},n.DEFAULTS,i);var r=this.options.target===n.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);this.$target=r.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.4.1",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(e,t,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return n>r?"top":!1;if("bottom"==this.affixed)return null!=n?r+this.unpin<=o.top?!1:"bottom":e-i>=r+s?!1:"bottom";var a=null==this.affixed,u=a?r:o.top,l=a?s:t;return null!=n&&n>=r?"top":null!=i&&u+l>=e-i?"bottom":!1},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,s=Math.max(e(document).height(),e(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var a=this.getState(s,t,r,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var u="affix"+(a?"-"+a:""),l=e.Event(u+".bs.affix");if(this.$element.trigger(l),l.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(u).trigger(u.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:s-t-o})}};var i=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var n=e(this),i=n.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),t.call(n,i)})})}(jQuery)}.apply(e,arguments)})}(this),/* @preserve
- * The MIT License (MIT)
- *
- * Copyright (c) 2013-2015 Petka Antonov
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- * THE SOFTWARE.
- *
- */
- !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("bluebird",[],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.Promise=e()}}(function(){return function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof _dereq_&&_dereq_;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return r(n?n:e)},c,c.exports,e,t,n,i)}return n[s].exports}for(var o="function"==typeof _dereq_&&_dereq_,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t,n){"use strict";t.exports=function(e){function t(e){var t=new n(e),i=t.promise();return t.setHowMany(1),t.setUnwrap(),t.init(),i}var n=e._SomePromiseArray;e.any=function(e){return t(e)},e.prototype.any=function(){return t(this)}}},{}],2:[function(e,t,n){"use strict";function i(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new c(16),this._normalQueue=new c(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=l}function r(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()}function o(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()}function s(e){this._normalQueue._pushOne(e),this._queueTick()}var a;try{throw new Error}catch(u){a=u}var l=e("./schedule"),c=e("./queue"),h=e("./util");i.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},i.prototype.hasCustomScheduler=function(){return this._customScheduler},i.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},i.prototype.disableTrampolineIfNecessary=function(){h.hasDevTools&&(this._trampolineEnabled=!1)},i.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},i.prototype.fatalError=function(e,t){t?(process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),process.exit(2)):this.throwLater(e)},i.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout(function(){e(t)},0);else try{this._schedule(function(){e(t)})}catch(n){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},h.hasDevTools?(i.prototype.invokeLater=function(e,t,n){this._trampolineEnabled?r.call(this,e,t,n):this._schedule(function(){setTimeout(function(){e.call(t,n)},100)})},i.prototype.invoke=function(e,t,n){this._trampolineEnabled?o.call(this,e,t,n):this._schedule(function(){e.call(t,n)})},i.prototype.settlePromises=function(e){this._trampolineEnabled?s.call(this,e):this._schedule(function(){e._settlePromises()})}):(i.prototype.invokeLater=r,i.prototype.invoke=o,i.prototype.settlePromises=s),i.prototype._drainQueue=function(e){for(;e.length()>0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),i=e.shift();t.call(n,i)}else t._settlePromises()}},i.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},i.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},i.prototype._reset=function(){this._isTickUsed=!1},t.exports=i,t.exports.firstLineError=a},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,i){var r=!1,o=function(e,t){this._reject(t)},s=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},a=function(e,t){0===(50397184&this._bitField)&&this._resolveCallback(t.target)},u=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){r||(r=!0,e.prototype._propagateFrom=i.propagateFromFunction(),e.prototype._boundValue=i.boundValueFunction());var l=n(o),c=new e(t);c._propagateFrom(this,1);var h=this._target();if(c._setBoundTo(l),l instanceof e){var f={promiseRejectionQueued:!1,promise:c,target:h,bindingPromise:l};h._then(t,s,void 0,c,f),l._then(a,u,void 0,c,f),c._setOnCancel(l)}else c._resolveCallback(h);return c},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152===(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";function i(){try{Promise===o&&(Promise=r)}catch(e){}return o}var r;"undefined"!=typeof Promise&&(r=Promise);var o=e("./promise")();o.noConflict=i,t.exports=o},{"./promise":22}],5:[function(e,t,n){"use strict";var i=Object.create;if(i){var r=i(null),o=i(null);r[" size"]=o[" size"]=0}t.exports=function(t){function n(e,n){var i;if(null!=e&&(i=e[n]),"function"!=typeof i){var r="Object "+a.classString(e)+" has no method '"+a.toString(n)+"'";throw new t.TypeError(r)}return i}function i(e){var t=this.pop(),i=n(e,t);return i.apply(e,this)}function r(e){return e[this]}function o(e){var t=+this;return 0>t&&(t=Math.max(0,t+e.length)),e[t]}var s,a=e("./util"),u=a.canEvaluate;a.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(i,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t,n="number"==typeof e;if(n)t=o;else if(u){var i=s(e);t=null!==i?i:r}else t=r;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,i,r){var o=e("./util"),s=o.tryCatch,a=o.errorObj,u=t._async;t.prototype["break"]=t.prototype.cancel=function(){if(!r.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),u.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"==typeof e){if(!t){var i=s(e).call(this._boundValue());i===a&&(this._attachExtraTrace(i.e),u.throwLater(i.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),u.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,n){"use strict";t.exports=function(t){function n(e,n,a){return function(u){var l=a._boundValue();e:for(var c=0;c<e.length;++c){var h=e[c];if(h===Error||null!=h&&h.prototype instanceof Error){if(u instanceof h)return o(n).call(l,u)}else if("function"==typeof h){var f=o(h).call(l,u);if(f===s)return f;if(f)return o(n).call(l,u)}else if(i.isObject(u)){for(var p=r(h),d=0;d<p.length;++d){var g=p[d];if(h[g]!=u[g])continue e}return o(n).call(l,u)}}return t}}var i=e("./util"),r=e("./es5").keys,o=i.tryCatch,s=i.errorObj;return n}},{"./es5":13,"./util":36}],8:[function(e,t,n){"use strict";t.exports=function(e){function t(){this._trace=new t.CapturedTrace(i())}function n(){return r?new t:void 0}function i(){var e=o.length-1;return e>=0?o[e]:void 0}var r=!1,o=[];return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},t.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,o.push(this._trace))},t.prototype._popContext=function(){if(void 0!==this._trace){var e=o.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},t.CapturedTrace=null,t.create=n,t.deactivateLongStackTraces=function(){},t.activateLongStackTraces=function(){var n=e.prototype._pushContext,o=e.prototype._popContext,s=e._peekContext,a=e.prototype._peekContext,u=e.prototype._promiseCreated;t.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=o,e._peekContext=s,e.prototype._peekContext=a,e.prototype._promiseCreated=u,r=!1},r=!0,e.prototype._pushContext=t.prototype._pushContext,e.prototype._popContext=t.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},t}},{}],9:[function(e,t,n){"use strict";t.exports=function(t,n){function i(e,t){return{promise:t}}function r(){return!1}function o(e,t,n){var i=this;try{e(t,n,function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+L.toString(e));i._attachCancellationCallback(e)})}catch(r){return r}}function s(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?L.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function a(){return this._onCancelField}function u(e){this._onCancelField=e}function l(){this._cancellationParent=void 0,this._onCancelField=void 0}function c(e,t){if(0!==(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function h(e,t){0!==(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}function f(){var e=this._boundTo;return void 0!==e&&e instanceof t?e.isFulfilled()?e.value():void 0:e}function p(){this._trace=new A(this._peekContext())}function d(e,t){if(H(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var i=k(e);L.notEnumerableProp(e,"stack",i.message+"\n"+i.stack.join("\n")),L.notEnumerableProp(e,"__stackCleaned__",!0)}}}function g(e,t,n,i,r){if(void 0===e&&null!==t&&G){if(void 0!==r&&r._returnedNonUndefined())return;if(0===(65535&i._bitField))return;n&&(n+=" ");var o="",s="";if(t._trace){for(var a=t._trace.stack.split("\n"),u=w(a),l=u.length-1;l>=0;--l){var c=u[l];if(!V.test(c)){var h=c.match(U);h&&(o="at "+h[1]+":"+h[2]+":"+h[3]+" ");break}}if(u.length>0)for(var f=u[0],l=0;l<a.length;++l)if(a[l]===f){l>0&&(s="\n"+a[l-1]);break}}var p="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+s;i._warn(p,!0,t)}}function v(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),m(n)}function m(e,n,i){if(oe.warnings){var r,o=new F(e);if(n)i._attachExtraTrace(o);else if(oe.longStackTraces&&(r=t._peekContext()))r.attachExtraTrace(o);else{var s=k(o);o.stack=s.message+"\n"+s.stack.join("\n")}ee("warning",o)||C(o,"",!0)}}function y(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}function b(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}function _(e){for(var t=e[0],n=1;n<e.length;++n){for(var i=e[n],r=t.length-1,o=t[r],s=-1,a=i.length-1;a>=0;--a)if(i[a]===o){s=a;break}for(var a=s;a>=0;--a){var u=i[a];if(t[r]!==u)break;t.pop(),r--}t=i}}function w(e){for(var t=[],n=0;n<e.length;++n){var i=e[n],r=" (No stack trace)"===i||W.test(i),o=r&&ne(i);r&&!o&&($&&" "!==i.charAt(0)&&(i=" "+i),t.push(i))}return t}function x(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var i=t[n];if(" (No stack trace)"===i||W.test(i))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}function k(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?x(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:w(t)}}function C(e,t,n){if("undefined"!=typeof console){var i;if(L.isObject(e)){var r=e.stack;i=t+B(r,e)}else i=t+String(e);"function"==typeof j?j(i,n):("function"==typeof console.log||"object"==typeof console.log)&&console.log(i)}}function T(e,t,n,i){var r=!1;try{"function"==typeof t&&(r=!0,"rejectionHandled"===e?t(i):t(n,i))}catch(o){M.throwLater(o)}"unhandledRejection"===e?ee(e,n,i)||r||C(n,"Unhandled rejection "):ee(e,i)}function E(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{t=e&&"function"==typeof e.toString?e.toString():L.toString(e);var n=/\[object [a-zA-Z0-9$_]+\]/;if(n.test(t))try{var i=JSON.stringify(e);t=i}catch(r){}0===t.length&&(t="(empty array)")}return"(<"+S(t)+">, no stack trace)"}function S(e){var t=41;return e.length<t?e:e.substr(0,t-3)+"..."}function D(){return"function"==typeof re}function O(e){var t=e.match(ie);return t?{fileName:t[1],line:parseInt(t[2],10)}:void 0}function P(e,t){if(D()){for(var n,i,r=e.stack.split("\n"),o=t.stack.split("\n"),s=-1,a=-1,u=0;u<r.length;++u){var l=O(r[u]);if(l){n=l.fileName,s=l.line;break}}for(var u=0;u<o.length;++u){var l=O(o[u]);if(l){i=l.fileName,a=l.line;break}}0>s||0>a||!n||!i||n!==i||s>=a||(ne=function(e){if(z.test(e))return!0;var t=O(e);return t&&t.fileName===n&&s<=t.line&&t.line<=a?!0:!1})}}function A(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);re(this,A),t>32&&this.uncycle()}var I,N,j,R=t._getDomain,M=t._async,F=e("./errors").Warning,L=e("./util"),H=L.canAttachTrace,z=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,V=/\((?:timers\.js):\d+:\d+\)/,U=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,W=null,B=null,$=!1,q=!(0==L.env("BLUEBIRD_DEBUG")||!L.env("BLUEBIRD_DEBUG")&&"development"!==L.env("NODE_ENV")),Y=!(0==L.env("BLUEBIRD_WARNINGS")||!q&&!L.env("BLUEBIRD_WARNINGS")),X=!(0==L.env("BLUEBIRD_LONG_STACK_TRACES")||!q&&!L.env("BLUEBIRD_LONG_STACK_TRACES")),G=0!=L.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(Y||!!L.env("BLUEBIRD_W_FORGOTTEN_RETURN"));t.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},t.prototype._ensurePossibleRejectionHandled=function(){0===(524288&this._bitField)&&(this._setRejectionIsUnhandled(),M.invokeLater(this._notifyUnhandledRejection,this,void 0))},t.prototype._notifyUnhandledRejectionIsHandled=function(){T("rejectionHandled",I,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return 0!==(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),T("unhandledRejection",N,e,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(e,t,n){return m(e,t,n||this)},t.onPossiblyUnhandledRejection=function(e){var t=R();N="function"==typeof e?null===t?e:L.domainBind(t,e):void 0},t.onUnhandledRejectionHandled=function(e){var t=R();I="function"==typeof e?null===t?e:L.domainBind(t,e):void 0};var K=function(){};t.longStackTraces=function(){if(M.haveItemsQueued()&&!oe.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!oe.longStackTraces&&D()){var e=t.prototype._captureStackTrace,i=t.prototype._attachExtraTrace;oe.longStackTraces=!0,K=function(){if(M.haveItemsQueued()&&!oe.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=i,n.deactivateLongStackTraces(),M.enableTrampoline(),oe.longStackTraces=!1},t.prototype._captureStackTrace=p,t.prototype._attachExtraTrace=d,n.activateLongStackTraces(),M.disableTrampolineIfNecessary()}},t.hasLongStackTraces=function(){return oe.longStackTraces&&D()};var Q=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return L.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!L.global.dispatchEvent(n)}}if("function"==typeof Event){var e=new Event("CustomEvent");return L.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!L.global.dispatchEvent(n)}}var e=document.createEvent("CustomEvent");return e.initCustomEvent("testingtheevent",!1,!0,{}),L.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!L.global.dispatchEvent(n)}}catch(t){}return function(){return!1}}(),J=function(){return L.isNode?function(){return process.emit.apply(process,arguments)}:L.global?function(e){var t="on"+e.toLowerCase(),n=L.global[t];return n?(n.apply(L.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}(),Z={promiseCreated:i,promiseFulfilled:i,promiseRejected:i,promiseResolved:i,promiseCancelled:i,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:i},ee=function(e){var t=!1;try{t=J.apply(null,arguments)}catch(n){M.throwLater(n),t=!0}var i=!1;try{i=Q(e,Z[e].apply(null,arguments))}catch(n){M.throwLater(n),i=!0}return i||t};t.config=function(e){if(e=Object(e),"longStackTraces"in e&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&K()),"warnings"in e){var n=e.warnings;oe.warnings=!!n,G=oe.warnings,L.isObject(n)&&"wForgottenReturn"in n&&(G=!!n.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!oe.cancellation){if(M.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=l,t.prototype._propagateFrom=c,t.prototype._onCancel=a,t.prototype._setOnCancel=u,t.prototype._attachCancellationCallback=s,t.prototype._execute=o,te=c,oe.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!oe.monitoring?(oe.monitoring=!0,t.prototype._fireEvent=ee):!e.monitoring&&oe.monitoring&&(oe.monitoring=!1,t.prototype._fireEvent=r)),t},t.prototype._fireEvent=r,t.prototype._execute=function(e,t,n){try{e(t,n)}catch(i){return i}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(e){},t.prototype._attachCancellationCallback=function(e){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(e,t){};var te=h,ne=function(){return!1},ie=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;L.inherits(A,Error),n.CapturedTrace=A,A.prototype.uncycle=function(){var e=this._length;if(!(2>e)){for(var t=[],n={},i=0,r=this;void 0!==r;++i)t.push(r),r=r._parent;e=this._length=i;for(var i=e-1;i>=0;--i){var o=t[i].stack;void 0===n[o]&&(n[o]=i)}for(var i=0;e>i;++i){var s=t[i].stack,a=n[s];if(void 0!==a&&a!==i){a>0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[i]._parent=void 0,t[i]._length=1;var u=i>0?t[i-1]:this;e-1>a?(u._parent=t[a+1],u._parent.uncycle(),u._length=u._parent._length+1):(u._parent=void 0,u._length=1);for(var l=u._length+1,c=i-2;c>=0;--c)t[c]._length=l,l++;return}}}},A.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=k(e),n=t.message,i=[t.stack],r=this;void 0!==r;)i.push(w(r.stack.split("\n"))),r=r._parent;_(i),b(i),L.notEnumerableProp(e,"stack",y(n,i)),L.notEnumerableProp(e,"__stackCleaned__",!0)}};var re=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():E(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,W=e,B=t;var n=Error.captureStackTrace;return ne=function(e){return z.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var i=new Error;if("string"==typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return W=/@/,B=t,$=!0,function(e){e.stack=(new Error).stack};var r;try{throw new Error}catch(o){r="stack"in o}return"stack"in i||!r||"number"!=typeof Error.stackTraceLimit?(B=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?E(t):t.toString()},null):(W=e,B=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6})}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(j=function(e){console.warn(e)},L.isNode&&process.stderr.isTTY?j=function(e,t){var n=t?"[33m":"[31m";console.warn(n+e+"[0m\n")}:L.isNode||"string"!=typeof(new Error).stack||(j=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var oe={warnings:Y,longStackTraces:!1,cancellation:!1,monitoring:!1};return X&&t.longStackTraces(),{longStackTraces:function(){return oe.longStackTraces},warnings:function(){return oe.warnings},cancellation:function(){return oe.cancellation},monitoring:function(){return oe.monitoring},propagateFromFunction:function(){return te},boundValueFunction:function(){return f},checkForgottenReturns:g,setBounds:P,warn:m,deprecated:v,CapturedTrace:A,fireDomEvent:Q,fireGlobalEvent:J}}},{"./errors":12,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype["return"]=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype["throw"]=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],i=function(){throw t};return this.caught(e,i)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var i=arguments[1];i instanceof e&&i.suppressUnhandledRejections();var r=function(){return i};return this.caught(n,r)}}},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){function n(){return o(this)}function i(e,n){return r(e,n,t,t)}var r=e.reduce,o=e.all;e.prototype.each=function(e){return r(this,e,t,0)._then(n,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return r(this,e,t,t)},e.each=function(e,i){return r(e,i,t,0)._then(n,void 0,void 0,e,void 0)},e.mapSeries=i}},{}],12:[function(e,t,n){"use strict";function i(e,t){function n(i){return this instanceof n?(h(this,"message","string"==typeof i?i:t),h(this,"name",e),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):new n(i)}return c(n,Error),n}function r(e){return this instanceof r?(h(this,"name","OperationalError"),h(this,"message",e),this.cause=e,this.isOperational=!0,void(e instanceof Error?(h(this,"message",e.message),h(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):new r(e)}var o,s,a=e("./es5"),u=a.freeze,l=e("./util"),c=l.inherits,h=l.notEnumerableProp,f=i("Warning","warning"),p=i("CancellationError","cancellation error"),d=i("TimeoutError","timeout error"),g=i("AggregateError","aggregate error");try{o=TypeError,s=RangeError}catch(v){o=i("TypeError","type error"),s=i("RangeError","range error")}for(var m="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),y=0;y<m.length;++y)"function"==typeof Array.prototype[m[y]]&&(g.prototype[m[y]]=Array.prototype[m[y]]);a.defineProperty(g.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),g.prototype.isOperational=!0;var b=0;g.prototype.toString=function(){var e=Array(4*b+1).join(" "),t="\n"+e+"AggregateError of:\n";b++,e=Array(4*b+1).join(" ");for(var n=0;n<this.length;++n){for(var i=this[n]===this?"[Circular AggregateError]":this[n]+"",r=i.split("\n"),o=0;o<r.length;++o)r[o]=e+r[o];i=r.join("\n"),t+=i+"\n"}return b--,t},c(r,Error);var _=Error.__BluebirdErrorTypes__;_||(_=u({CancellationError:p,TimeoutError:d,OperationalError:r,RejectionError:r,AggregateError:g}),a.defineProperty(Error,"__BluebirdErrorTypes__",{value:_,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:o,RangeError:s,CancellationError:_.CancellationError,OperationalError:_.OperationalError,TimeoutError:_.TimeoutError,AggregateError:_.AggregateError,Warning:f}},{"./es5":13,"./util":36}],13:[function(e,t,n){var i=function(){"use strict";return void 0===this}();if(i)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:i,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var r={}.hasOwnProperty,o={}.toString,s={}.constructor.prototype,a=function(e){var t=[];for(var n in e)r.call(e,n)&&t.push(n);return t},u=function(e,t){return{value:e[t]}},l=function(e,t,n){return e[t]=n.value,e},c=function(e){return e},h=function(e){try{return Object(e).constructor.prototype}catch(t){return s}},f=function(e){try{return"[object Array]"===o.call(e)}catch(t){return!1}};t.exports={isArray:f,keys:a,names:a,defineProperty:l,getDescriptor:u,freeze:c,getPrototypeOf:h,isES5:i,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,i){return n(this,e,i,t)},e.filter=function(e,i,r){return n(e,i,r,t)}}},{}],15:[function(e,t,n){"use strict";t.exports=function(t,n){function i(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function r(e){this.finallyHandler=e}function o(e,t){return null!=e.cancelPromise?(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0):!1}function s(){return u.call(this,this.promise._target()._settledValue())}function a(e){return o(this,e)?void 0:(h.e=e,h)}function u(e){var i=this.promise,u=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?u.call(i._boundValue()):u.call(i._boundValue(),e);if(void 0!==l){i._setReturnedNonUndefined();var f=n(l,i);if(f instanceof t){if(null!=this.cancelPromise){if(f._isCancelled()){var p=new c("late cancellation observer");return i._attachExtraTrace(p),h.e=p,h}f.isPending()&&f._attachCancellationCallback(new r(this))}return f._then(s,a,void 0,this,void 0)}}}return i.isRejected()?(o(this),h.e=e,h):(o(this),e)}var l=e("./util"),c=t.CancellationError,h=l.errorObj;return i.prototype.isFinallyHandler=function(){return 0===this.type},r.prototype._resultCancelled=function(){o(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new i(this,t,e),void 0)},t.prototype.lastly=t.prototype["finally"]=function(e){return this._passThrough(e,0,u,u)},t.prototype.tap=function(e){return this._passThrough(e,1,u)},i}},{"./util":36}],16:[function(e,t,n){"use strict";t.exports=function(t,n,i,r,o,s){function a(e,n,i){for(var o=0;o<n.length;++o){i._pushContext();var s=p(n[o])(e);if(i._popContext(),s===f){i._pushContext();var a=t.reject(f.e);return i._popContext(),a}var u=r(s,i);if(u instanceof t)return u}return null}function u(e,n,r,o){if(s.cancellation()){var a=new t(i),u=this._finallyPromise=new t(i);this._promise=a.lastly(function(){return u}),a._captureStackTrace(),a._setOnCancel(this)}else{var l=this._promise=new t(i);l._captureStackTrace()}this._stack=o,this._generatorFunction=e,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof r?[r].concat(d):d,this._yieldedPromise=null,this._cancellationPhase=!1}var l=e("./errors"),c=l.TypeError,h=e("./util"),f=h.errorObj,p=h.tryCatch,d=[];h.inherits(u,o),u.prototype._isResolved=function(){return null===this._promise},u.prototype._cleanup=function(){this._promise=this._generator=null,s.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},u.prototype._promiseCancelled=function(){if(!this._isResolved()){var e,n="undefined"!=typeof this._generator["return"];if(n)this._promise._pushContext(),e=p(this._generator["return"]).call(this._generator,void 0),this._promise._popContext();else{var i=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=i,this._promise._attachExtraTrace(i),this._promise._pushContext(),e=p(this._generator["throw"]).call(this._generator,i),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e)}},u.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=p(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},u.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=p(this._generator["throw"]).call(this._generator,e);this._promise._popContext(),this._continue(t)},u.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},u.prototype.promise=function(){return this._promise},u.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},u.prototype._continue=function(e){var n=this._promise;if(e===f)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(e.e,!1);var i=e.value;if(e.done===!0)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(i);var o=r(i,this._promise);if(!(o instanceof t)&&(o=a(o,this._yieldHandlers,this._promise),null===o))return void this._promiseRejected(new c("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",i)+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));o=o._target();var s=o._bitField;0===(50397184&s)?(this._yieldedPromise=o,o._proxy(this,null)):0!==(33554432&s)?t._async.invoke(this._promiseFulfilled,this,o._value()):0!==(16777216&s)?t._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()},t.coroutine=function(e,t){if("function"!=typeof e)throw new c("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,i=u,r=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new i(void 0,void 0,n,r),s=o.promise();return o._generator=t,o._promiseFulfilled(void 0),
- s}},t.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new c("expecting a function but got "+h.classString(e));d.push(e)},t.spawn=function(e){if(s.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var i=new u(e,this),r=i.promise();return i._run(t.spawn),r}}},{"./errors":12,"./util":36}],17:[function(e,t,n){"use strict";t.exports=function(t,n,i,r,o,s){var a=e("./util");a.canEvaluate,a.tryCatch,a.errorObj,t.join=function(){var e,t=arguments.length-1;if(t>0&&"function"==typeof arguments[t]){e=arguments[t];var i}var r=[].slice.call(arguments);e&&r.pop();var i=new n(r).promise();return void 0!==e?i.spread(e):i}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,i,r,o,s){function a(e,t,n,i){this.constructor$(e),this._promise._captureStackTrace();var r=l();this._callback=null===r?t:c.domainBind(r,t),this._preservedValues=i===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],p.invoke(this._asyncInit,this,void 0)}function u(e,n,r,o){if("function"!=typeof n)return i("expecting a function but got "+c.classString(n));var s=0;if(void 0!==r){if("object"!=typeof r||null===r)return t.reject(new TypeError("options argument must be an object but it is "+c.classString(r)));if("number"!=typeof r.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+c.classString(r.concurrency)));s=r.concurrency}return s="number"==typeof s&&isFinite(s)&&s>=1?s:0,new a(e,n,s,o).promise()}var l=t._getDomain,c=e("./util"),h=c.tryCatch,f=c.errorObj,p=t._async;c.inherits(a,n),a.prototype._asyncInit=function(){this._init$(void 0,-2)},a.prototype._init=function(){},a.prototype._promiseFulfilled=function(e,n){var i=this._values,o=this.length(),a=this._preservedValues,u=this._limit;if(0>n){if(n=-1*n-1,i[n]=e,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return i[n]=e,this._queue.push(n),!1;null!==a&&(a[n]=e);var l=this._promise,c=this._callback,p=l._boundValue();l._pushContext();var d=h(c).call(p,e,n,o),g=l._popContext();if(s.checkForgottenReturns(d,g,null!==a?"Promise.filter":"Promise.map",l),d===f)return this._reject(d.e),!0;var v=r(d,this._promise);if(v instanceof t){v=v._target();var m=v._bitField;if(0===(50397184&m))return u>=1&&this._inFlight++,i[n]=v,v._proxy(this,-1*(n+1)),!1;if(0===(33554432&m))return 0!==(16777216&m)?(this._reject(v._reason()),!0):(this._cancel(),!0);d=v._value()}i[n]=d}var y=++this._totalResolved;return y>=o?(null!==a?this._filter(i,a):this._resolve(i),!0):!1},a.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var i=e.pop();this._promiseFulfilled(n[i],i)}},a.prototype._filter=function(e,t){for(var n=t.length,i=new Array(n),r=0,o=0;n>o;++o)e[o]&&(i[r++]=t[o]);i.length=r,this._resolve(i)},a.prototype.preservedValues=function(){return this._preservedValues},t.prototype.map=function(e,t){return u(this,e,t,null)},t.map=function(e,t,n,i){return u(e,t,n,i)}}},{"./util":36}],19:[function(e,t,n){"use strict";t.exports=function(t,n,i,r,o){var s=e("./util"),a=s.tryCatch;t.method=function(e){if("function"!=typeof e)throw new t.TypeError("expecting a function but got "+s.classString(e));return function(){var i=new t(n);i._captureStackTrace(),i._pushContext();var r=a(e).apply(this,arguments),s=i._popContext();return o.checkForgottenReturns(r,s,"Promise.method",i),i._resolveFromSyncValue(r),i}},t.attempt=t["try"]=function(e){if("function"!=typeof e)return r("expecting a function but got "+s.classString(e));var i=new t(n);i._captureStackTrace(),i._pushContext();var u;if(arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],c=arguments[2];u=s.isArray(l)?a(e).apply(c,l):a(e).call(c,l)}else u=a(e)();var h=i._popContext();return o.checkForgottenReturns(u,h,"Promise.try",i),i._resolveFromSyncValue(u),i},t.prototype._resolveFromSyncValue=function(e){e===s.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";function i(e){return e instanceof Error&&c.getPrototypeOf(e)===Error.prototype}function r(e){var t;if(i(e)){t=new l(e),t.name=e.name,t.message=e.message,t.stack=e.stack;for(var n=c.keys(e),r=0;r<n.length;++r){var o=n[r];h.test(o)||(t[o]=e[o])}return t}return s.markAsOriginatingFromRejection(e),e}function o(e,t){return function(n,i){if(null!==e){if(n){var o=r(a(n));e._attachExtraTrace(o),e._reject(o)}else if(t){var s=[].slice.call(arguments,1);e._fulfill(s)}else e._fulfill(i);e=null}}}var s=e("./util"),a=s.maybeWrapAsError,u=e("./errors"),l=u.OperationalError,c=e("./es5"),h=/^(?:name|message|stack|cause)$/;t.exports=o},{"./errors":12,"./es5":13,"./util":36}],21:[function(e,t,n){"use strict";t.exports=function(t){function n(e,t){var n=this;if(!o.isArray(e))return i.call(n,e,t);var r=a(t).apply(n._boundValue(),[null].concat(e));r===u&&s.throwLater(r.e)}function i(e,t){var n=this,i=n._boundValue(),r=void 0===e?a(t).call(i,null):a(t).call(i,null,e);r===u&&s.throwLater(r.e)}function r(e,t){var n=this;if(!e){var i=new Error(e+"");i.cause=e,e=i}var r=a(t).call(n._boundValue(),e);r===u&&s.throwLater(r.e)}var o=e("./util"),s=t._async,a=o.tryCatch,u=o.errorObj;t.prototype.asCallback=t.prototype.nodeify=function(e,t){if("function"==typeof e){var o=i;void 0!==t&&Object(t).spread&&(o=n),this._then(o,r,void 0,this,e)}return this}}},{"./util":36}],22:[function(e,t,n){"use strict";t.exports=function(){function n(){}function i(e,t){if("function"!=typeof t)throw new y("expecting a function but got "+p.classString(t));if(e.constructor!==r)throw new y("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n")}function r(e){this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,e!==_&&(i(this,e),this._resolveFromExecutor(e)),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function o(e){this.promise._resolveCallback(e)}function s(e){this.promise._rejectCallback(e,!1)}function a(e){var t=new r(_);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}var u,l=function(){return new y("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},c=function(){return new r.PromiseInspection(this._target())},h=function(e){return r.reject(new y(e))},f={},p=e("./util");u=p.isNode?function(){var e=process.domain;return void 0===e&&(e=null),e}:function(){return null},p.notEnumerableProp(r,"_getDomain",u);var d=e("./es5"),g=e("./async"),v=new g;d.defineProperty(r,"_async",{value:v});var m=e("./errors"),y=r.TypeError=m.TypeError;r.RangeError=m.RangeError;var b=r.CancellationError=m.CancellationError;r.TimeoutError=m.TimeoutError,r.OperationalError=m.OperationalError,r.RejectionError=m.OperationalError,r.AggregateError=m.AggregateError;var _=function(){},w={},x={},k=e("./thenables")(r,_),C=e("./promise_array")(r,_,k,h,n),T=e("./context")(r),E=T.create,S=e("./debuggability")(r,T),D=(S.CapturedTrace,e("./finally")(r,k)),O=e("./catch_filter")(x),P=e("./nodeback"),A=p.errorObj,I=p.tryCatch;return r.prototype.toString=function(){return"[object Promise]"},r.prototype.caught=r.prototype["catch"]=function(e){var t=arguments.length;if(t>1){var n,i=new Array(t-1),r=0;for(n=0;t-1>n;++n){var o=arguments[n];if(!p.isObject(o))return h("expecting an object but got A catch statement predicate "+p.classString(o));i[r++]=o}return i.length=r,e=arguments[n],this.then(void 0,O(i,e,this))}return this.then(void 0,e)},r.prototype.reflect=function(){return this._then(c,c,void 0,this,void 0)},r.prototype.then=function(e,t){if(S.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+p.classString(e);arguments.length>1&&(n+=", "+p.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},r.prototype.done=function(e,t){var n=this._then(e,t,void 0,void 0,void 0);n._setIsFinal()},r.prototype.spread=function(e){return"function"!=typeof e?h("expecting a function but got "+p.classString(e)):this.all()._then(e,void 0,void 0,w,void 0)},r.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},r.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new C(this).promise()},r.prototype.error=function(e){return this.caught(p.originatesFromRejection,e)},r.getNewLibraryCopy=t.exports,r.is=function(e){return e instanceof r},r.fromNode=r.fromCallback=function(e){var t=new r(_);t._captureStackTrace();var n=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,i=I(e)(P(t,n));return i===A&&t._rejectCallback(i.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},r.all=function(e){return new C(e).promise()},r.cast=function(e){var t=k(e);return t instanceof r||(t=new r(_),t._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},r.resolve=r.fulfilled=r.cast,r.reject=r.rejected=function(e){var t=new r(_);return t._captureStackTrace(),t._rejectCallback(e,!0),t},r.setScheduler=function(e){if("function"!=typeof e)throw new y("expecting a function but got "+p.classString(e));return v.setScheduler(e)},r.prototype._then=function(e,t,n,i,o){var s=void 0!==o,a=s?o:new r(_),l=this._target(),c=l._bitField;s||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===i&&0!==(2097152&this._bitField)&&(i=0!==(50397184&c)?this._boundValue():l===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var h=u();if(0!==(50397184&c)){var f,d,g=l._settlePromiseCtx;0!==(33554432&c)?(d=l._rejectionHandler0,f=e):0!==(16777216&c)?(d=l._fulfillmentHandler0,f=t,l._unsetRejectionIsUnhandled()):(g=l._settlePromiseLateCancellationObserver,d=new b("late cancellation observer"),l._attachExtraTrace(d),f=t),v.invoke(g,l,{handler:null===h?f:"function"==typeof f&&p.domainBind(h,f),promise:a,receiver:i,value:d})}else l._addCallbacks(e,t,a,i,h);return a},r.prototype._length=function(){return 65535&this._bitField},r.prototype._isFateSealed=function(){return 0!==(117506048&this._bitField)},r.prototype._isFollowing=function(){return 67108864===(67108864&this._bitField)},r.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},r.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},r.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},r.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},r.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},r.prototype._isFinal=function(){return(4194304&this._bitField)>0},r.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},r.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},r.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},r.prototype._setAsyncGuaranteed=function(){v.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},r.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];return t===f?void 0:void 0===t&&this._isBound()?this._boundValue():t},r.prototype._promiseAt=function(e){return this[4*e-4+2]},r.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},r.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},r.prototype._boundValue=function(){},r.prototype._migrateCallback0=function(e){var t=(e._bitField,e._fulfillmentHandler0),n=e._rejectionHandler0,i=e._promise0,r=e._receiverAt(0);void 0===r&&(r=f),this._addCallbacks(t,n,i,r,null)},r.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),i=e._rejectionHandlerAt(t),r=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=f),this._addCallbacks(n,i,r,o,null)},r.prototype._addCallbacks=function(e,t,n,i,r){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=i,"function"==typeof e&&(this._fulfillmentHandler0=null===r?e:p.domainBind(r,e)),"function"==typeof t&&(this._rejectionHandler0=null===r?t:p.domainBind(r,t));else{var s=4*o-4;this[s+2]=n,this[s+3]=i,"function"==typeof e&&(this[s+0]=null===r?e:p.domainBind(r,e)),"function"==typeof t&&(this[s+1]=null===r?t:p.domainBind(r,t))}return this._setLength(o+1),o},r.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},r.prototype._resolveCallback=function(e,t){if(0===(117506048&this._bitField)){if(e===this)return this._rejectCallback(l(),!1);var n=k(e,this);if(!(n instanceof r))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target();if(i===this)return void this._reject(l());var o=i._bitField;if(0===(50397184&o)){var s=this._length();s>0&&i._migrateCallback0(this);for(var a=1;s>a;++a)i._migrateCallbackAt(this,a);this._setFollowing(),this._setLength(0),this._setFollowee(i)}else if(0!==(33554432&o))this._fulfill(i._value());else if(0!==(16777216&o))this._reject(i._reason());else{var u=new b("late cancellation observer");i._attachExtraTrace(u),this._reject(u)}}},r.prototype._rejectCallback=function(e,t,n){var i=p.ensureErrorObject(e),r=i===e;if(!r&&!n&&S.warnings()){var o="a promise was rejected with a non-error: "+p.classString(e);this._warn(o,!0)}this._attachExtraTrace(i,t?r:!1),this._reject(e)},r.prototype._resolveFromExecutor=function(e){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,i=this._execute(e,function(e){t._resolveCallback(e)},function(e){t._rejectCallback(e,n)});n=!1,this._popContext(),void 0!==i&&t._rejectCallback(i,!0)},r.prototype._settlePromiseFromHandler=function(e,t,n,i){var r=i._bitField;if(0===(65536&r)){i._pushContext();var o;t===w?n&&"number"==typeof n.length?o=I(e).apply(this._boundValue(),n):(o=A,o.e=new y("cannot .spread() a non-array: "+p.classString(n))):o=I(e).call(t,n);var s=i._popContext();r=i._bitField,0===(65536&r)&&(o===x?i._reject(n):o===A?i._rejectCallback(o.e,!1):(S.checkForgottenReturns(o,s,"",i,this),i._resolveCallback(o)))}},r.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},r.prototype._followee=function(){return this._rejectionHandler0},r.prototype._setFollowee=function(e){this._rejectionHandler0=e},r.prototype._settlePromise=function(e,t,i,o){var s=e instanceof r,a=this._bitField,u=0!==(134217728&a);0!==(65536&a)?(s&&e._invokeInternalOnCancel(),i instanceof D&&i.isFinallyHandler()?(i.cancelPromise=e,I(t).call(i,o)===A&&e._reject(A.e)):t===c?e._fulfill(c.call(i)):i instanceof n?i._promiseCancelled(e):s||e instanceof C?e._cancel():i.cancel()):"function"==typeof t?s?(u&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,i,o,e)):t.call(i,o,e):i instanceof n?i._isResolved()||(0!==(33554432&a)?i._promiseFulfilled(o,e):i._promiseRejected(o,e)):s&&(u&&e._setAsyncGuaranteed(),0!==(33554432&a)?e._fulfill(o):e._reject(o))},r.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,i=e.receiver,o=e.value;"function"==typeof t?n instanceof r?this._settlePromiseFromHandler(t,i,o,n):t.call(i,o,n):n instanceof r&&n._reject(o)},r.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},r.prototype._settlePromise0=function(e,t,n){var i=this._promise0,r=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(i,e,r,t)},r.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},r.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var n=l();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!==(134217728&t)?this._settlePromises():v.settlePromises(this))}},r.prototype._reject=function(e){var t=this._bitField;return(117506048&t)>>>16?void 0:(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal()?v.fatalError(e,p.isNode):void((65535&t)>0?v.settlePromises(this):this._ensurePossibleRejectionHandled()))},r.prototype._fulfillPromises=function(e,t){for(var n=1;e>n;n++){var i=this._fulfillmentHandlerAt(n),r=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(r,i,o,t)}},r.prototype._rejectPromises=function(e,t){for(var n=1;e>n;n++){var i=this._rejectionHandlerAt(n),r=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(r,i,o,t)}},r.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!==(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var i=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,i,e),this._fulfillPromises(t,i)}this._setLength(0)}this._clearCancellationData()},r.prototype._settledValue=function(){var e=this._bitField;return 0!==(33554432&e)?this._rejectionHandler0:0!==(16777216&e)?this._fulfillmentHandler0:void 0},r.defer=r.pending=function(){S.deprecated("Promise.defer","new Promise");var e=new r(_);return{promise:e,resolve:o,reject:s}},p.notEnumerableProp(r,"_makeSelfResolutionError",l),e("./method")(r,_,k,h,S),e("./bind")(r,_,k,S),e("./cancel")(r,C,h,S),e("./direct_resolve")(r),e("./synchronous_inspection")(r),e("./join")(r,C,k,_,v,u),r.Promise=r,r.version="3.4.7",e("./map.js")(r,C,h,k,_,S),e("./call_get.js")(r),e("./using.js")(r,h,k,E,_,S),e("./timers.js")(r,_,S),e("./generators.js")(r,h,_,k,n,S),e("./nodeify.js")(r),e("./promisify.js")(r,_),e("./props.js")(r,C,k,h),e("./race.js")(r,_,k,h),e("./reduce.js")(r,C,h,k,_,S),e("./settle.js")(r,C,S),e("./some.js")(r,C,h),e("./filter.js")(r,_),e("./each.js")(r,_),e("./any.js")(r),p.toFastProperties(r),p.toFastProperties(r.prototype),a({a:1}),a({b:2}),a({c:3}),a(1),a(function(){}),a(void 0),a(!1),a(new r(_)),S.setBounds(g.firstLineError,p.lastLineError),r}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,n){"use strict";t.exports=function(t,n,i,r,o){function s(e){switch(e){case-2:return[];case-3:return{}}}function a(e){var i=this._promise=new t(n);e instanceof t&&i._propagateFrom(e,3),i._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var u=e("./util");return u.isArray,u.inherits(a,o),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function l(e,n){var o=i(this._values,this._promise);if(o instanceof t){o=o._target();var a=o._bitField;if(this._values=o,0===(50397184&a))return this._promise._setAsyncGuaranteed(),o._then(l,this._reject,void 0,this,n);if(0===(33554432&a))return 0!==(16777216&a)?this._reject(o._reason()):this._cancel();o=o._value()}if(o=u.asArray(o),null===o){var c=r("expecting an array or an iterable object but got "+u.classString(o)).reason();return void this._promise._rejectCallback(c,!1)}return 0===o.length?void(-5===n?this._resolveEmptyArray():this._resolve(s(n))):void this._iterate(o)},a.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var r=this._promise,o=!1,s=null,a=0;n>a;++a){var u=i(e[a],r);u instanceof t?(u=u._target(),s=u._bitField):s=null,o?null!==s&&u.suppressUnhandledRejections():null!==s?0===(50397184&s)?(u._proxy(this,a),this._values[a]=u):o=0!==(33554432&s)?this._promiseFulfilled(u._value(),a):0!==(16777216&s)?this._promiseRejected(u._reason(),a):this._promiseCancelled(a):o=this._promiseFulfilled(u,a)}o||r._setAsyncGuaranteed()},a.prototype._isResolved=function(){return null===this._values},a.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},a.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},a.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},a.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var n=++this._totalResolved;return n>=this._length?(this._resolve(this._values),!0):!1},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n<e.length;++n)e[n]instanceof t&&e[n].cancel()}},a.prototype.shouldCopyValues=function(){return!0},a.prototype.getActualLength=function(e){return e},a}},{"./util":36}],24:[function(e,t,n){"use strict";t.exports=function(t,n){function i(e){return!x.test(e)}function r(e){try{return e.__isPromisified__===!0}catch(t){return!1}}function o(e,t,n){var i=p.getDataPropertyOrDefault(e,t+n,_);return i?r(i):!1}function s(e,t,n){for(var i=0;i<e.length;i+=2){var r=e[i];if(n.test(r))for(var o=r.replace(n,""),s=0;s<e.length;s+=2)if(e[s]===o)throw new y("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}function a(e,t,n,i){for(var a=p.inheritedDataKeys(e),u=[],l=0;l<a.length;++l){var c=a[l],h=e[c],f=i===k?!0:k(c,h,e);"function"!=typeof h||r(h)||o(e,c,t)||!i(c,h,e,f)||u.push(c,h)}return s(u,t,n),u}function u(e,i,r,o,s,a){function u(){var r=i;i===f&&(r=this);var o=new t(n);o._captureStackTrace();var s="string"==typeof c&&this!==l?this[c]:e,u=d(o,a);try{s.apply(r,g(arguments,u))}catch(h){o._rejectCallback(v(h),!0,!0)}return o._isFateSealed()||o._setAsyncGuaranteed(),o}var l=function(){return this}(),c=e;return"string"==typeof c&&(e=o),p.notEnumerableProp(u,"__isPromisified__",!0),u}function l(e,t,n,i,r){for(var o=new RegExp(C(t)+"$"),s=a(e,t,o,n),u=0,l=s.length;l>u;u+=2){var c=s[u],h=s[u+1],d=c+t;if(i===T)e[d]=T(c,f,c,h,t,r);else{var g=i(h,function(){return T(c,f,c,h,t,r)});p.notEnumerableProp(g,"__isPromisified__",!0),e[d]=g}}return p.toFastProperties(e),e}function c(e,t,n){return T(e,t,void 0,e,null,n)}var h,f={},p=e("./util"),d=e("./nodeback"),g=p.withAppended,v=p.maybeWrapAsError,m=p.canEvaluate,y=e("./errors").TypeError,b="Async",_={__isPromisified__:!0},w=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],x=new RegExp("^(?:"+w.join("|")+")$"),k=function(e){return p.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e},C=function(e){return e.replace(/([$])/,"\\$")},T=m?h:u;t.promisify=function(e,t){if("function"!=typeof e)throw new y("expecting a function but got "+p.classString(e));if(r(e))return e;t=Object(t);var n=void 0===t.context?f:t.context,o=!!t.multiArgs,s=c(e,n,o);return p.copyDescriptors(e,s,i),s},t.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!=typeof e)throw new y("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");t=Object(t);var n=!!t.multiArgs,i=t.suffix;"string"!=typeof i&&(i=b);var r=t.filter;"function"!=typeof r&&(r=k);var o=t.promisifier;if("function"!=typeof o&&(o=T),!p.isIdentifier(i))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=p.inheritedDataKeys(e),a=0;a<s.length;++a){var u=e[s[a]];"constructor"!==s[a]&&p.isClass(u)&&(l(u.prototype,i,r,o,n),l(u,i,r,o,n))}return l(e,i,r,o,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(e,t,n){"use strict";t.exports=function(t,n,i,r){function o(e){var t,n=!1;if(void 0!==a&&e instanceof a)t=h(e),n=!0;else{var i=c.keys(e),r=i.length;t=new Array(2*r);for(var o=0;r>o;++o){var s=i[o];t[o]=e[s],t[o+r]=s}}this.constructor$(t),this._isMap=n,this._init$(void 0,-3)}function s(e){var n,s=i(e);return l(s)?(n=s instanceof t?s._then(t.props,void 0,void 0,void 0,void 0):new o(s).promise(),s instanceof t&&n._propagateFrom(s,2),n):r("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}var a,u=e("./util"),l=u.isObject,c=e("./es5");"function"==typeof Map&&(a=Map);var h=function(){function e(e,i){this[t]=e,this[t+n]=i,t++}var t=0,n=0;return function(i){n=i.size,t=0;var r=new Array(2*i.size);return i.forEach(e,r),r}}(),f=function(e){for(var t=new a,n=e.length/2|0,i=0;n>i;++i){var r=e[n+i],o=e[i];t.set(r,o)}return t};u.inherits(o,n),o.prototype._init=function(){},o.prototype._promiseFulfilled=function(e,t){this._values[t]=e;var n=++this._totalResolved;if(n>=this._length){var i;if(this._isMap)i=f(this._values);else{i={};for(var r=this.length(),o=0,s=this.length();s>o;++o)i[this._values[o+r]]=this._values[o]}return this._resolve(i),!0}return!1},o.prototype.shouldCopyValues=function(){return!1},o.prototype.getActualLength=function(e){return e>>1},t.prototype.props=function(){return s(this)},t.props=function(e){return s(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function i(e,t,n,i,r){for(var o=0;r>o;++o)n[o+i]=e[o+t],e[o+t]=void 0}function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity<e},r.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1);var n=this._front+t&this._capacity-1;this[n]=e,this._length=t+1},r.prototype.push=function(e,t,n){var i=this.length()+3;if(this._willBeOverCapacity(i))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var r=this._front+i-3;this._checkCapacity(i);var o=this._capacity-1;this[r+0&o]=e,this[r+1&o]=t,this[r+2&o]=n,this._length=i},r.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},r.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e;var n=this._front,r=this._length,o=n+r&t-1;i(this,0,this,t,o)},t.exports=r},{}],27:[function(e,t,n){"use strict";t.exports=function(t,n,i,r){function o(e,o){var u=i(e);if(u instanceof t)return a(u);if(e=s.asArray(e),null===e)return r("expecting an array or an iterable object but got "+s.classString(e));var l=new t(n);void 0!==o&&l._propagateFrom(o,3);for(var c=l._fulfill,h=l._reject,f=0,p=e.length;p>f;++f){var d=e[f];(void 0!==d||f in e)&&t.cast(d)._then(c,h,void 0,l,null)}return l}var s=e("./util"),a=function(e){return e.then(function(t){return o(t,e)})};t.race=function(e){return o(e,void 0)},t.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(e,t,n){"use strict";t.exports=function(t,n,i,r,o,s){function a(e,n,i,r){this.constructor$(e);var s=f();this._fn=null===s?n:p.domainBind(s,n),void 0!==i&&(i=t.resolve(i),i._attachCancellationCallback(this)),this._initialValue=i,this._currentCancellable=null,r===o?this._eachValues=Array(this._length):0===r?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function u(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function l(e,t,n,r){if("function"!=typeof t)return i("expecting a function but got "+p.classString(t));var o=new a(e,t,n,r);return o.promise()}function c(e){this.accum=e,this.array._gotAccum(e);var n=r(this.value,this.array._promise);return n instanceof t?(this.array._currentCancellable=n,n._then(h,void 0,void 0,this,void 0)):h.call(this,n)}function h(e){var n=this.array,i=n._promise,r=d(n._fn);i._pushContext();var o;o=void 0!==n._eachValues?r.call(i._boundValue(),e,this.index,this.length):r.call(i._boundValue(),this.accum,e,this.index,this.length),o instanceof t&&(n._currentCancellable=o);var a=i._popContext();return s.checkForgottenReturns(o,a,void 0!==n._eachValues?"Promise.each":"Promise.reduce",i),o}var f=t._getDomain,p=e("./util"),d=p.tryCatch;p.inherits(a,n),a.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==o&&this._eachValues.push(e)},a.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},a.prototype._init=function(){},a.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},a.prototype.shouldCopyValues=function(){return!1},a.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},a.prototype._resultCancelled=function(e){return e===this._initialValue?this._cancel():void(this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel()))},a.prototype._iterate=function(e){this._values=e;var n,i,r=e.length;if(void 0!==this._initialValue?(n=this._initialValue,i=0):(n=t.resolve(e[0]),i=1),this._currentCancellable=n,!n.isRejected())for(;r>i;++i){var o={accum:null,value:e[i],index:i,length:r,array:this};n=n._then(c,void 0,void 0,o,void 0)}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(u,u,void 0,n,this)},t.prototype.reduce=function(e,t){return l(this,e,t,null)},t.reduce=function(e,t,n,i){return l(e,t,n,i)}}},{"./util":36}],29:[function(e,t,n){"use strict";var i,r=e("./util"),o=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")},s=r.getNativePromise();if(r.isNode&&"undefined"==typeof MutationObserver){var a=global.setImmediate,u=process.nextTick;i=r.isRecentNode?function(e){a.call(global,e)}:function(e){u.call(process,e)}}else if("function"==typeof s&&"function"==typeof s.resolve){var l=s.resolve();i=function(e){l.then(e)}}else i="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"!=typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:o:function(){var e=document.createElement("div"),t={attributes:!0},n=!1,i=document.createElement("div"),r=new MutationObserver(function(){e.classList.toggle("foo"),n=!1});r.observe(i,t);var o=function(){n||(n=!0,i.classList.toggle("foo"))};return function(n){var i=new MutationObserver(function(){i.disconnect(),n()});i.observe(e,t),o()}}();t.exports=i},{"./util":36}],30:[function(e,t,n){"use strict";t.exports=function(t,n,i){function r(e){this.constructor$(e)}var o=t.PromiseInspection,s=e("./util");s.inherits(r,n),r.prototype._promiseResolved=function(e,t){this._values[e]=t;var n=++this._totalResolved;return n>=this._length?(this._resolve(this._values),!0):!1},r.prototype._promiseFulfilled=function(e,t){var n=new o;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},r.prototype._promiseRejected=function(e,t){var n=new o;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return i.deprecated(".settle()",".reflect()"),new r(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,i){function r(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function o(e,t){if((0|t)!==t||0>t)return i("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new r(e),o=n.promise();return n.setHowMany(t),n.init(),o}var s=e("./util"),a=e("./errors").RangeError,u=e("./errors").AggregateError,l=s.isArray,c={};s.inherits(r,n),r.prototype._init=function(){
- if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var e=l(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},r.prototype.init=function(){this._initialized=!0,this._init()},r.prototype.setUnwrap=function(){this._unwrap=!0},r.prototype.howMany=function(){return this._howMany},r.prototype.setHowMany=function(e){this._howMany=e},r.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},r.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},r.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},r.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new u,t=this.length();t<this._values.length;++t)this._values[t]!==c&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},r.prototype._fulfilled=function(){return this._totalResolved},r.prototype._rejected=function(){return this._values.length-this.length()},r.prototype._addRejected=function(e){this._values.push(e)},r.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},r.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},r.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new a(t)},r.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return o(e,t)},t.prototype.some=function(e){return o(this,e)},t._SomePromiseArray=r}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.isFulfilled=function(){return 0!==(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!==(16777216&this._bitField)},s=t.prototype.isPending=function(){return 0===(50397184&this._bitField)},a=t.prototype.isResolved=function(){return 0!==(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!==(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536===(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!==(8454144&this._target()._bitField)},e.prototype.isPending=function(){return s.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return r.call(this._target())},e.prototype.isResolved=function(){return a.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),i.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){function i(e,i){if(c(e)){if(e instanceof t)return e;var r=o(e);if(r===l){i&&i._pushContext();var u=t.reject(r.e);return i&&i._popContext(),u}if("function"==typeof r){if(s(e)){var u=new t(n);return e._then(u._fulfill,u._reject,void 0,u,null),u}return a(e,r,i)}}return e}function r(e){return e.then}function o(e){try{return r(e)}catch(t){return l.e=t,l}}function s(e){try{return h.call(e,"_promise0")}catch(t){return!1}}function a(e,i,r){function o(e){a&&(a._resolveCallback(e),a=null)}function s(e){a&&(a._rejectCallback(e,h,!0),a=null)}var a=new t(n),c=a;r&&r._pushContext(),a._captureStackTrace(),r&&r._popContext();var h=!0,f=u.tryCatch(i).call(e,o,s);return h=!1,a&&f===l&&(a._rejectCallback(f.e,!0,!0),a=null),c}var u=e("./util"),l=u.errorObj,c=u.isObject,h={}.hasOwnProperty;return i}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,i){function r(e){this.handle=e}function o(e){return clearTimeout(this.handle),e}function s(e){throw clearTimeout(this.handle),e}var a=e("./util"),u=t.TimeoutError;r.prototype._resultCancelled=function(){clearTimeout(this.handle)};var l=function(e){return c(+this).thenReturn(e)},c=t.delay=function(e,o){var s,a;return void 0!==o?(s=t.resolve(o)._then(l,null,null,e,void 0),i.cancellation()&&o instanceof t&&s._setOnCancel(o)):(s=new t(n),a=setTimeout(function(){s._fulfill()},+e),i.cancellation()&&s._setOnCancel(new r(a)),s._captureStackTrace()),s._setAsyncGuaranteed(),s};t.prototype.delay=function(e){return c(e,this)};var h=function(e,t,n){var i;i="string"!=typeof t?t instanceof Error?t:new u("operation timed out"):new u(t),a.markAsOriginatingFromRejection(i),e._attachExtraTrace(i),e._reject(i),null!=n&&n.cancel()};t.prototype.timeout=function(e,t){e=+e;var n,a,u=new r(setTimeout(function(){n.isPending()&&h(n,t,a)},e));return i.cancellation()?(a=this.then(),n=a._then(o,s,void 0,u,void 0),n._setOnCancel(u)):n=this._then(o,s,void 0,u,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";t.exports=function(t,n,i,r,o,s){function a(e){setTimeout(function(){throw e},0)}function u(e){var t=i(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}function l(e,n){function r(){if(s>=l)return c._fulfill();var o=u(e[s++]);if(o instanceof t&&o._isDisposable()){try{o=i(o._getDisposer().tryDispose(n),e.promise)}catch(h){return a(h)}if(o instanceof t)return o._then(r,a,null,null,null)}r()}var s=0,l=e.length,c=new t(o);return r(),c}function c(e,t,n){this._data=e,this._promise=t,this._context=n}function h(e,t,n){this.constructor$(e,t,n)}function f(e){return c.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function p(e){this.length=e,this.promise=null,this[e-1]=null}var d=e("./util"),g=e("./errors").TypeError,v=e("./util").inherits,m=d.errorObj,y=d.tryCatch,b={};c.prototype.data=function(){return this._data},c.prototype.promise=function(){return this._promise},c.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():b},c.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var i=t!==b?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,i},c.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},v(h,c),h.prototype.doDispose=function(e,t){var n=this.data();return n.call(e,e,t)},p.prototype._resultCancelled=function(){for(var e=this.length,n=0;e>n;++n){var i=this[n];i instanceof t&&i.cancel()}},t.using=function(){var e=arguments.length;if(2>e)return n("you must pass at least 2 arguments to Promise.using");var r=arguments[e-1];if("function"!=typeof r)return n("expecting a function but got "+d.classString(r));var o,a=!0;2===e&&Array.isArray(arguments[0])?(o=arguments[0],e=o.length,a=!1):(o=arguments,e--);for(var u=new p(e),h=0;e>h;++h){var g=o[h];if(c.isDisposer(g)){var v=g;g=g.promise(),g._setDisposable(v)}else{var b=i(g);b instanceof t&&(g=b._then(f,null,null,{resources:u,index:h},void 0))}u[h]=g}for(var _=new Array(u.length),h=0;h<_.length;++h)_[h]=t.resolve(u[h]).reflect();var w=t.all(_).then(function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return m.e=n.error(),m;if(!n.isFulfilled())return void w.cancel();e[t]=n.value()}x._pushContext(),r=y(r);var i=a?r.apply(void 0,e):r(e),o=x._popContext();return s.checkForgottenReturns(i,o,"Promise.using",x),i}),x=w.lastly(function(){var e=new t.PromiseInspection(w);return l(u,e)});return u.promise=x,x._setOnCancel(u),x},t.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},t.prototype._isDisposable=function(){return(131072&this._bitField)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new h(e,this,r());throw new g}}},{"./errors":12,"./util":36}],36:[function(e,t,n){"use strict";function i(){try{var e=E;return E=null,e.apply(this,arguments)}catch(t){return O.e=t,O}}function r(e){return E=e,i}function o(e){return null==e||e===!0||e===!1||"string"==typeof e||"number"==typeof e}function s(e){return"function"==typeof e||"object"==typeof e&&null!==e}function a(e){return o(e)?new Error(v(e)):e}function u(e,t){var n,i=e.length,r=new Array(i+1);for(n=0;i>n;++n)r[n]=e[n];return r[n]=t,r}function l(e,t,n){if(!S.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var i=Object.getOwnPropertyDescriptor(e,t);return null!=i?null==i.get&&null==i.set?i.value:n:void 0}function c(e,t,n){if(o(e))return e;var i={value:n,configurable:!0,enumerable:!1,writable:!0};return S.defineProperty(e,t,i),e}function h(e){throw e}function f(e){try{if("function"==typeof e){var t=S.names(e.prototype),n=S.isES5&&t.length>1,i=t.length>0&&!(1===t.length&&"constructor"===t[0]),r=N.test(e+"")&&S.names(e).length>0;if(n||i||r)return!0}return!1}catch(o){return!1}}function p(e){function t(){}t.prototype=e;for(var n=8;n--;)new t;return e}function d(e){return j.test(e)}function g(e,t,n){for(var i=new Array(e),r=0;e>r;++r)i[r]=t+r+n;return i}function v(e){try{return e+""}catch(t){return"[no string representation]"}}function m(e){return null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function y(e){try{c(e,"isOperational",!0)}catch(t){}}function b(e){return null==e?!1:e instanceof Error.__BluebirdErrorTypes__.OperationalError||e.isOperational===!0}function _(e){return m(e)&&S.propertyIsWritable(e,"stack")}function w(e){return{}.toString.call(e)}function x(e,t,n){for(var i=S.names(e),r=0;r<i.length;++r){var o=i[r];if(n(o))try{S.defineProperty(t,o,S.getDescriptor(e,o))}catch(s){}}}function k(e){return H?process.env[e]:void 0}function C(){if("function"==typeof Promise)try{var e=new Promise(function(){});if("[object Promise]"==={}.toString.call(e))return Promise}catch(t){}}function T(e,t){return e.bind(t)}var E,S=e("./es5"),D="undefined"==typeof navigator,O={e:{}},P="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0!==this?this:null,A=function(e,t){function n(){this.constructor=e,this.constructor$=t;for(var n in t.prototype)i.call(t.prototype,n)&&"$"!==n.charAt(n.length-1)&&(this[n+"$"]=t.prototype[n])}var i={}.hasOwnProperty;return n.prototype=t.prototype,e.prototype=new n,e.prototype},I=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(S.isES5){var n=Object.getOwnPropertyNames;return function(e){for(var i=[],r=Object.create(null);null!=e&&!t(e);){var o;try{o=n(e)}catch(s){return i}for(var a=0;a<o.length;++a){var u=o[a];if(!r[u]){r[u]=!0;var l=Object.getOwnPropertyDescriptor(e,u);null!=l&&null==l.get&&null==l.set&&i.push(u)}}e=S.getPrototypeOf(e)}return i}}var i={}.hasOwnProperty;return function(n){if(t(n))return[];var r=[];e:for(var o in n)if(i.call(n,o))r.push(o);else{for(var s=0;s<e.length;++s)if(i.call(e[s],o))continue e;r.push(o)}return r}}(),N=/this\s*\.\s*\S+\s*=/,j=/^[a-z$_][a-z$_0-9]*$/i,R=function(){return"stack"in new Error?function(e){return _(e)?e:new Error(v(e))}:function(e){if(_(e))return e;try{throw new Error(v(e))}catch(t){return t}}}(),M=function(e){return S.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var F="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],i=e[Symbol.iterator]();!(t=i.next()).done;)n.push(t.value);return n};M=function(e){return S.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?F(e):null}}var L="undefined"!=typeof process&&"[object process]"===w(process).toLowerCase(),H="undefined"!=typeof process&&"undefined"!=typeof process.env,z={isClass:f,isIdentifier:d,inheritedDataKeys:I,getDataPropertyOrDefault:l,thrower:h,isArray:S.isArray,asArray:M,notEnumerableProp:c,isPrimitive:o,isObject:s,isError:m,canEvaluate:D,errorObj:O,tryCatch:r,inherits:A,withAppended:u,maybeWrapAsError:a,toFastProperties:p,filledRange:g,toString:v,canAttachTrace:_,ensureErrorObject:R,originatesFromRejection:b,markAsOriginatingFromRejection:y,classString:w,copyDescriptors:x,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:L,hasEnvVariables:H,env:k,global:P,getNativePromise:C,domainBind:T};z.isRecentNode=z.isNode&&function(){var e=process.versions.node.split(".").map(Number);return 0===e[0]&&e[1]>10||e[0]>0}(),z.isNode&&z.toFastProperties(process);try{throw new Error}catch(V){z.lastLineError=V}t.exports=z},{"./es5":13}]},{},[4])(4)}),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise),/**
- * @license RequireJS i18n 2.0.4 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/requirejs/i18n for details
- */
- function(){"use strict";function e(e,t,n,i,r,o){t[e]&&(n.push(e),(t[e]===!0||1===t[e])&&i.push(r+e+"/"+o))}function t(e,t,n,i,r){var o=i+t+"/"+r;require._fileExists(e.toUrl(o+".js"))&&n.push(o)}function n(e,t,i){var r;for(r in t)!t.hasOwnProperty(r)||e.hasOwnProperty(r)&&!i?"object"==typeof t[r]&&(!e[r]&&t[r]&&(e[r]={}),n(e[r],t[r],i)):e[r]=t[r]}var i=/(^.*(^|\/)nls(\/|$))([^\/]*)\/?([^\/]*)/;define("i18n",["module"],function(r){var o=r.config?r.config():{};return{version:"2.0.4",load:function(r,s,a,u){u=u||{},u.locale&&(o.locale=u.locale);var l,c,h,f=i.exec(r),p=f[1],d=f[4],g=f[5],v=d.split("-"),m=[],y={},b="";if(f[5]?(p=f[1],l=p+g):(l=r,g=f[4],d=o.locale,d||(d=o.locale="undefined"==typeof navigator?"root":(navigator.language||navigator.userLanguage||"root").toLowerCase()),v=d.split("-")),u.isBuild){for(m.push(l),t(s,"root",m,p,g),c=0;c<v.length;c++)h=v[c],b+=(b?"-":"")+h,t(s,b,m,p,g);s(m,function(){a()})}else s([l],function(t){var i,r=[];for(e("root",t,r,m,p,g),c=0;c<v.length;c++)i=v[c],b+=(b?"-":"")+i,e(b,t,r,m,p,g);s(m,function(){var e,i,o;for(e=r.length-1;e>-1&&r[e];e--)o=r[e],i=t[o],(i===!0||1===i)&&(i=s(p+o+"/"+g)),n(y,i);a(y)})})}}})}(),/**
- * @license text 2.0.16 Copyright jQuery Foundation and other contributors.
- * Released under MIT license, http://github.com/requirejs/text/LICENSE
- */
- define("text",["module"],function(e){"use strict";function t(e,t){return void 0===e||""===e?t:e}function n(e,n,i,r){if(n===r)return!0;if(e===i){if("http"===e)return t(n,"80")===t(r,"80");if("https"===e)return t(n,"443")===t(r,"443")}return!1}var i,r,o,s,a,u=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],l=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,c=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,h="undefined"!=typeof location&&location.href,f=h&&location.protocol&&location.protocol.replace(/\:/,""),p=h&&location.hostname,d=h&&(location.port||void 0),g={},v=e.config&&e.config()||{};return i={version:"2.0.16",strip:function(e){if(e){e=e.replace(l,"");var t=e.match(c);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:v.createXhr||function(){var e,t,n;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(t=0;3>t;t+=1){n=u[t];try{e=new ActiveXObject(n)}catch(i){}if(e){u=[n];break}}return e},parseName:function(e){var t,n,i,r=!1,o=e.lastIndexOf("."),s=0===e.indexOf("./")||0===e.indexOf("../");return-1!==o&&(!s||o>1)?(t=e.substring(0,o),n=e.substring(o+1)):t=e,i=n||t,o=i.indexOf("!"),-1!==o&&(r="strip"===i.substring(o+1),i=i.substring(0,o),n?n=i:t=i),{moduleName:t,ext:n,strip:r}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,t,r,o){var s,a,u,l=i.xdRegExp.exec(e);return l?(s=l[2],a=l[3],a=a.split(":"),u=a[1],a=a[0],(!s||s===t)&&(!a||a.toLowerCase()===r.toLowerCase())&&(!u&&!a||n(s,u,t,o))):!0},finishLoad:function(e,t,n,r){n=t?i.strip(n):n,v.isBuild&&(g[e]=n),r(n)},load:function(e,t,n,r){if(r&&r.isBuild&&!r.inlineText)return void n();v.isBuild=r&&r.isBuild;var o=i.parseName(e),s=o.moduleName+(o.ext?"."+o.ext:""),a=t.toUrl(s),u=v.useXhr||i.useXhr;return 0===a.indexOf("empty:")?void n():void(!h||u(a,f,p,d)?i.get(a,function(t){i.finishLoad(e,o.strip,t,n)},function(e){n.error&&n.error(e)}):t([s],function(e){i.finishLoad(o.moduleName+"."+o.ext,o.strip,e,n)},function(e){n.error&&n.error(e)}))},write:function(e,t,n,r){if(g.hasOwnProperty(t)){var o=i.jsEscape(g[t]);n.asModule(e+"!"+t,"define(function () { return '"+o+"';});\n")}},writeFile:function(e,t,n,r,o){var s=i.parseName(t),a=s.ext?"."+s.ext:"",u=s.moduleName+a,l=n.toUrl(s.moduleName+a)+".js";i.load(u,n,function(t){var n=function(e){return r(l,e)};n.asModule=function(e,t){return r.asModule(e,l,t)},i.write(e,u,n,o)},o)}},"node"===v.env||!v.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(r=require.nodeRequire("fs"),i.get=function(e,t,n){try{var i=r.readFileSync(e,"utf8");"\ufeff"===i[0]&&(i=i.substring(1)),t(i)}catch(o){n&&n(o)}}):"xhr"===v.env||!v.env&&i.createXhr()?i.get=function(e,t,n,r){var o,s=i.createXhr();if(s.open("GET",e,!0),r)for(o in r)r.hasOwnProperty(o)&&s.setRequestHeader(o.toLowerCase(),r[o]);v.onXhr&&v.onXhr(s,e),s.onreadystatechange=function(i){var r,o;4===s.readyState&&(r=s.status||0,r>399&&600>r?(o=new Error(e+" HTTP status: "+r),o.xhr=s,n&&n(o)):t(s.responseText),v.onXhrComplete&&v.onXhrComplete(s,e))},s.send(null)}:"rhino"===v.env||!v.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?i.get=function(e,t){var n,i,r="utf-8",o=new java.io.File(e),s=java.lang.System.getProperty("line.separator"),a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(o),r)),u="";try{for(n=new java.lang.StringBuffer,i=a.readLine(),i&&i.length()&&65279===i.charAt(0)&&(i=i.substring(1)),null!==i&&n.append(i);null!==(i=a.readLine());)n.append(s),n.append(i);u=String(n.toString())}finally{a.close()}t(u)}:("xpconnect"===v.env||!v.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(o=Components.classes,s=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),a="@mozilla.org/windows-registry-key;1"in o,i.get=function(e,t){var n,i,r,u={};a&&(e=e.replace(/\//g,"\\")),r=new FileUtils.File(e);try{n=o["@mozilla.org/network/file-input-stream;1"].createInstance(s.nsIFileInputStream),n.init(r,1,0,!1),i=o["@mozilla.org/intl/converter-input-stream;1"].createInstance(s.nsIConverterInputStream),i.init(n,"utf-8",n.available(),s.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),i.readString(n.available(),u),i.close(),n.close(),t(u.value)}catch(l){throw new Error((r&&r.path||"")+": "+l)}}),i}),/**
- * @license RequireJS domReady 2.0.1 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
- * Available via the MIT or new BSD license.
- * see: http://github.com/requirejs/domReady for details
- */
- define("domReady",[],function(){"use strict";function e(e){var t;for(t=0;t<e.length;t+=1)e[t](l)}function t(){var t=c;u&&t.length&&(c=[],e(t))}function n(){u||(u=!0,s&&clearInterval(s),t())}function i(e){return u?e(l):c.push(e),i}var r,o,s,a="undefined"!=typeof window&&window.document,u=!a,l=a?document:null,c=[];if(a){if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1);else if(window.attachEvent){window.attachEvent("onload",n),o=document.createElement("div");try{r=null===window.frameElement}catch(h){}o.doScroll&&r&&window.external&&(s=setInterval(function(){try{o.doScroll(),n()}catch(e){}},30))}"complete"===document.readyState&&n()}return i.version="2.0.1",i.load=function(e,t,n,r){r.isBuild?n(null):i(n)},i}),function(e){define("touch-punch",["jquery","jquery-ui"],function(){return function(){/*
- * jQuery UI Touch Punch 0.2.2
- *
- * Copyright 2011, Dave Furfero
- * Dual licensed under the MIT or GPL Version 2 licenses.
- *
- * Depends:
- * jquery.ui.widget.js
- * jquery.ui.mouse.js
- */
- !function(e){function t(e,t){if(!(e.originalEvent.touches.length>1)){e.preventDefault();var n=e.originalEvent.changedTouches[0],i=document.createEvent("MouseEvents");i.initMouseEvent(t,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}}if(e.support.touch="ontouchend"in document,e.support.touch){var n,i=e.ui.mouse.prototype,r=i._mouseInit;i._touchStart=function(e){var i=this;!n&&i._mouseCapture(e.originalEvent.changedTouches[0])&&(n=!0,i._touchMoved=!1,t(e,"mouseover"),t(e,"mousemove"),t(e,"mousedown"))},i._touchMove=function(e){n&&(this._touchMoved=!0,t(e,"mousemove"))},i._touchEnd=function(e){n&&(t(e,"mouseup"),t(e,"mouseout"),this._touchMoved||t(e,"click"),n=!1)},i._mouseInit=function(){var t=this;t.element.bind("touchstart",e.proxy(t,"_touchStart")).bind("touchmove",e.proxy(t,"_touchMove")).bind("touchend",e.proxy(t,"_touchEnd")),r.call(t)}}}(jQuery)}.apply(e,arguments)})}(this),/*!
- Copyright (c) 2016 Jed Watson.
- Licensed under the MIT License (MIT), see
- http://jedwatson.github.io/classnames
- */
- !function(){"use strict";function e(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(r){var o=typeof r;if("string"===o||"number"===o)n.push(r);else if(Array.isArray(r))n.push(e.apply(null,r));else if("object"===o)for(var s in r)t.call(r,s)&&r[s]&&n.push(s)}}return n.join(" ")}var t={}.hasOwnProperty;"undefined"!=typeof module&&module.exports?module.exports=e:"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return e}):window.classNames=e}(),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("prop-types",[],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.PropTypes=e()}}(function(){return function e(t,n,i){function r(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return r(n?n:e)},c,c.exports,e,t,n,i)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<i.length;s++)r(i[s]);return r}({1:[function(e,t){"use strict";var n=e(4),i=e(5),r=e(3);t.exports=function(){function e(e,t,n,o,s,a){a!==r&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var o={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return o.checkPropTypes=n,o.PropTypes=o,o}},{3:3,4:4,5:5}],2:[function(e,t){t.exports=e(1)()},{1:1}],3:[function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},{}],4:[function(e,t){"use strict";function n(e){return function(){return e}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},t.exports=i},{}],5:[function(e,t){"use strict";function n(e,t,n,r,o,s,a,u){if(i(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,s,a,u],h=0;l=new Error(t.replace(/%s/g,function(){return c[h++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var i=function(){};t.exports=n},{}]},{},[2])(2)}),/** @license React v16.13.0
- * react.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
- function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("react",["exports"],t):(e=e||self,t(e.React={}))}(this,function(e){function t(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(e,t,n){this.props=e,this.context=t,this.refs=B,this.updater=n||W}function i(){}function r(e,t,n){this.props=e,this.context=t,this.refs=B,this.updater=n||W}function o(e,t,n){var i,r={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)Y.call(t,i)&&!X.hasOwnProperty(i)&&(r[i]=t[i]);var a=arguments.length-2;if(1===a)r.children=n;else if(a>1){for(var u=Array(a),l=0;a>l;l++)u[l]=arguments[l+2];r.children=u}if(e&&e.defaultProps)for(i in a=e.defaultProps)void 0===r[i]&&(r[i]=a[i]);return{$$typeof:S,type:e,key:o,ref:s,props:r,_owner:q.current}}function s(e,t){return{$$typeof:S,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function a(e){return"object"==typeof e&&null!==e&&e.$$typeof===S}function u(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function l(e,t,n,i){if(K.length){var r=K.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=i,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:i,count:0}}function c(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>K.length&&K.push(e)}function h(e,n,i,r){var o=typeof e;("undefined"===o||"boolean"===o)&&(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case S:case D:s=!0}}if(s)return i(r,e,""===n?"."+p(e,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(e))for(var a=0;a<e.length;a++){o=e[a];var u=n+p(o,a);s+=h(o,u,i,r)}else if(null===e||"object"!=typeof e?u=null:(u=L&&e[L]||e["@@iterator"],u="function"==typeof u?u:null),"function"==typeof u)for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=n+p(o,a++),s+=h(o,u,i,r);else if("object"===o)throw i=""+e,Error(t(31,"[object Object]"===i?"object with keys {"+Object.keys(e).join(", ")+"}":i,""));return s}function f(e,t,n){return null==e?0:h(e,"",t,n)}function p(e,t){return"object"==typeof e&&null!==e&&null!=e.key?u(e.key):t.toString(36)}function d(e,t,n){e.func.call(e.context,t,e.count++)}function g(e,t,n){var i=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?v(e,i,n,function(e){return e}):null!=e&&(a(e)&&(e=s(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(G,"$&/")+"/")+n)),i.push(e))}function v(e,t,n,i,r){var o="";null!=n&&(o=(""+n).replace(G,"$&/")+"/"),t=l(t,o,i,r),f(e,g,t),c(t)}function m(){var e=Q.current;if(null===e)throw Error(t(321));return e}function y(e,t){var n=e.length;e.push(t);e:for(;;){var i=n-1>>>1,r=e[i];if(!(void 0!==r&&0<w(r,t)))break e;e[i]=t,e[n]=r,n=i}}function b(e){return e=e[0],void 0===e?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length;r>i;){var o=2*(i+1)-1,s=e[o],a=o+1,u=e[a];if(void 0!==s&&0>w(s,n))void 0!==u&&0>w(u,s)?(e[i]=u,e[a]=n,i=a):(e[i]=s,e[o]=n,i=o);else{if(!(void 0!==u&&0>w(u,n)))break e;e[i]=u,e[a]=n,i=a}}}return t}return null}function w(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function x(e){for(var t=b(_e);null!==t;){if(null===t.callback)_(_e);else{if(!(t.startTime<=e))break;_(_e),t.sortIndex=t.expirationTime,y(be,t)}t=b(_e)}}function k(e){if(Ee=!1,x(e),!Te)if(null!==b(be))Te=!0,ie(C);else{var t=b(_e);null!==t&&re(k,t.startTime-e)}}function C(e,t){Te=!1,Ee&&(Ee=!1,oe()),Ce=!0;var n=ke;try{for(x(t),xe=b(be);null!==xe&&(!(xe.expirationTime>t)||e&&!se());){var i=xe.callback;if(null!==i){xe.callback=null,ke=xe.priorityLevel;var r=i(xe.expirationTime<=t);t=ne(),"function"==typeof r?xe.callback=r:xe===b(be)&&_(be),x(t)}else _(be);xe=b(be)}if(null!==xe)var o=!0;else{var s=b(_e);null!==s&&re(k,s.startTime-t),o=!1}return o}finally{xe=null,ke=n,Ce=!1}}function T(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var E="function"==typeof Symbol&&Symbol["for"],S=E?Symbol["for"]("react.element"):60103,D=E?Symbol["for"]("react.portal"):60106,O=E?Symbol["for"]("react.fragment"):60107,P=E?Symbol["for"]("react.strict_mode"):60108,A=E?Symbol["for"]("react.profiler"):60114,I=E?Symbol["for"]("react.provider"):60109,N=E?Symbol["for"]("react.context"):60110,j=E?Symbol["for"]("react.forward_ref"):60112,R=E?Symbol["for"]("react.suspense"):60113,M=E?Symbol["for"]("react.memo"):60115,F=E?Symbol["for"]("react.lazy"):60116,L="function"==typeof Symbol&&Symbol.iterator,H=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,U=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;var t={};for(e=0;10>e;e++)t["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},n)).join("")?!1:!0}catch(i){return!1}}()?Object.assign:function(e,t){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");for(var n,i=Object(e),r=1;r<arguments.length;r++){var o=Object(arguments[r]);for(var s in o)z.call(o,s)&&(i[s]=o[s]);if(H){n=H(o);for(var a=0;a<n.length;a++)V.call(o,n[a])&&(i[n[a]]=o[n[a]])}}return i},W={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){},enqueueReplaceState:function(e,t,n,i){},enqueueSetState:function(e,t,n,i){}},B={};n.prototype.isReactComponent={},n.prototype.setState=function(e,n){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(t(85));this.updater.enqueueSetState(this,e,n,"setState")},n.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},i.prototype=n.prototype,E=r.prototype=new i,E.constructor=r,U(E,n.prototype),E.isPureReactComponent=!0;var $,q={current:null},Y=Object.prototype.hasOwnProperty,X={key:!0,ref:!0,__self:!0,__source:!0},G=/\/+/g,K=[],Q={current:null};if("undefined"==typeof window||"function"!=typeof MessageChannel){var J=null,Z=null,ee=function(){if(null!==J)try{var e=ne();J(!0,e),J=null}catch(t){throw setTimeout(ee,0),t}},te=Date.now(),ne=function(){return Date.now()-te},ie=function(e){null!==J?setTimeout(ie,0,e):(J=e,setTimeout(ee,0))},re=function(e,t){Z=setTimeout(e,t)},oe=function(){clearTimeout(Z)},se=function(){return!1};E=$=function(){}}else{var ae=window.performance,ue=window.Date,le=window.setTimeout,ce=window.clearTimeout;if("undefined"!=typeof console&&(E=window.cancelAnimationFrame,"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof E&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),"object"==typeof ae&&"function"==typeof ae.now)ne=function(){return ae.now()};else{var he=ue.now();ne=function(){return ue.now()-he}}var fe=!1,pe=null,de=-1,ge=5,ve=0;se=function(){return ne()>=ve},E=function(){},$=function(e){0>e||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):ge=e>0?Math.floor(1e3/e):5};var me=new MessageChannel,ye=me.port2;me.port1.onmessage=function(){if(null!==pe){var e=ne();ve=e+ge;try{pe(!0,e)?ye.postMessage(null):(fe=!1,pe=null)}catch(t){throw ye.postMessage(null),t}}else fe=!1},ie=function(e){pe=e,fe||(fe=!0,ye.postMessage(null))},re=function(e,t){de=le(function(){e(ne())},t)},oe=function(){ce(de),de=-1}}var be=[],_e=[],we=1,xe=null,ke=3,Ce=!1,Te=!1,Ee=!1,Se=0;me={ReactCurrentDispatcher:Q,ReactCurrentOwner:q,IsSomeRendererActing:{current:!1},assign:U},U(me,{Scheduler:{__proto__:null,unstable_ImmediatePriority:1,unstable_UserBlockingPriority:2,unstable_NormalPriority:3,unstable_IdlePriority:5,unstable_LowPriority:4,unstable_runWithPriority:function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=ke;ke=e;try{return t()}finally{ke=n}},unstable_next:function(e){switch(ke){case 1:case 2:case 3:var t=3;break;default:t=ke}var n=ke;ke=t;try{return e()}finally{ke=n}},unstable_scheduleCallback:function(e,t,n){var i=ne();if("object"==typeof n&&null!==n){var r=n.delay;r="number"==typeof r&&r>0?i+r:i,n="number"==typeof n.timeout?n.timeout:T(e)}else n=T(e),r=i;return n=r+n,e={id:we++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>i?(e.sortIndex=r,y(_e,e),null===b(be)&&e===b(_e)&&(Ee?oe():Ee=!0,re(k,r-i))):(e.sortIndex=n,y(be,e),Te||Ce||(Te=!0,ie(C))),e},unstable_cancelCallback:function(e){e.callback=null},unstable_wrapCallback:function(e){var t=ke;return function(){var n=ke;ke=t;try{return e.apply(this,arguments)}finally{ke=n}}},unstable_getCurrentPriorityLevel:function(){return ke},unstable_shouldYield:function(){var e=ne();x(e);var t=b(be);return t!==xe&&null!==xe&&null!==t&&null!==t.callback&&t.startTime<=e&&t.expirationTime<xe.expirationTime||se()},unstable_requestPaint:E,unstable_continueExecution:function(){Te||Ce||(Te=!0,ie(C))},unstable_pauseExecution:function(){},unstable_getFirstCallbackNode:function(){return b(be)},get unstable_now(){return ne},get unstable_forceFrameRate(){return $},unstable_Profiling:null},SchedulerTracing:{__proto__:null,__interactionsRef:null,__subscriberRef:null,unstable_clear:function(e){return e()},unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Se},unstable_trace:function(e,t,n){return n()},unstable_wrap:function(e){return e},unstable_subscribe:function(e){},unstable_unsubscribe:function(e){}}}),e.Children={map:function(e,t,n){if(null==e)return e;var i=[];return v(e,i,null,t,n),i},forEach:function(e,t,n){return null==e?e:(t=l(null,null,t,n),f(e,d,t),void c(t))},count:function(e){return f(e,function(){return null},null)},toArray:function(e){var t=[];return v(e,t,null,function(e){return e}),t},only:function(e){if(!a(e))throw Error(t(143));return e}},e.Component=n,e.Fragment=O,e.Profiler=A,e.PureComponent=r,e.StrictMode=P,e.Suspense=R,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=me,e.cloneElement=function(e,n,i){if(null===e||void 0===e)throw Error(t(267,e));var r=U({},e.props),o=e.key,s=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(s=n.ref,a=q.current),void 0!==n.key&&(o=""+n.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(l in n)Y.call(n,l)&&!X.hasOwnProperty(l)&&(r[l]=void 0===n[l]&&void 0!==u?u[l]:n[l])}var l=arguments.length-2;if(1===l)r.children=i;else if(l>1){u=Array(l);for(var c=0;l>c;c++)u[c]=arguments[c+2];r.children=u}return{$$typeof:S,type:e.type,key:o,ref:s,props:r,_owner:a}},e.createContext=function(e,t){return void 0===t&&(t=null),e={$$typeof:N,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:I,_context:e},e.Consumer=e},e.createElement=o,e.createFactory=function(e){var t=o.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:j,render:e}},e.isValidElement=a,e.lazy=function(e){return{$$typeof:F,_ctor:e,_status:-1,_result:null}},e.memo=function(e,t){return{$$typeof:M,type:e,compare:void 0===t?null:t}},e.useCallback=function(e,t){return m().useCallback(e,t)},e.useContext=function(e,t){return m().useContext(e,t)},e.useDebugValue=function(e,t){},e.useEffect=function(e,t){return m().useEffect(e,t)},e.useImperativeHandle=function(e,t,n){return m().useImperativeHandle(e,t,n)},e.useLayoutEffect=function(e,t){return m().useLayoutEffect(e,t)},e.useMemo=function(e,t){return m().useMemo(e,t)},e.useReducer=function(e,t,n){return m().useReducer(e,t,n)},e.useRef=function(e){return m().useRef(e)},e.useState=function(e){return m().useState(e)},e.version="16.13.0"}),!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("react-dnd",["react"],t):"object"==typeof exports?exports.ReactDnD=t(require("react")):e.ReactDnD=t(e.React)}(this,function(e){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=43)}([function(e,t,n){"use strict";var i=function(e,t,n,i,r,o,s,a){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,r,o,s,a],c=0;u=new Error(t.replace(/%s/g,function(){return l[c++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};e.exports=i},function(e,t,n){function i(e){if(!s(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=h.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}var r=n(14),o=n(54),s=n(6),a="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,h=l.hasOwnProperty,f=c.call(Object);e.exports=i},function(t,n){t.exports=e},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){e.exports=n(44)()},function(e,t,n){var i=n(51),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0,clientOffset:null},n=t.publishSource,i=t.clientOffset,r=t.getSourceClientOffset;(0,h["default"])((0,p["default"])(e),"Expected sourceIds to be an array.");var o=this.getMonitor(),s=this.getRegistry();(0,h["default"])(!o.isDragging(),"Cannot call beginDrag while dragging.");for(var a=0;a<e.length;a++)(0,h["default"])(s.getSource(e[a]),"Expected sourceIds to be registered.");for(var u=null,l=e.length-1;l>=0;l--)if(o.canDragSource(e[l])){u=e[l];break}if(null!==u){var c=null;i&&((0,h["default"])("function"==typeof r,"When clientOffset is provided, getSourceClientOffset must be a function."),c=r(u));var f=s.getSource(u),d=f.beginDrag(o,u);(0,h["default"])((0,g["default"])(d),"Item must be an object."),s.pinSource(u);var v=s.getSourceType(u);return{type:y,itemType:v,item:d,sourceId:u,clientOffset:i,sourceClientOffset:c,isSourcePublic:n}}}function o(){return this.getMonitor().isDragging()?{type:b}:void 0}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clientOffset,i=void 0===n?null:n;(0,h["default"])((0,p["default"])(e),"Expected targetIds to be an array.");var r=e.slice(0),o=this.getMonitor(),s=this.getRegistry();(0,h["default"])(o.isDragging(),"Cannot call hover while not dragging."),(0,h["default"])(!o.didDrop(),"Cannot call hover after drop.");for(var a=0;a<r.length;a++){var u=r[a];(0,h["default"])(r.lastIndexOf(u)===a,"Expected targetIds to be unique in the passed array.");var l=s.getTarget(u);(0,h["default"])(l,"Expected targetIds to be registered.")}for(var c=o.getItemType(),f=r.length-1;f>=0;f--){var d=r[f],g=s.getTargetType(d);(0,m["default"])(g,c)||r.splice(f,1)}for(var v=0;v<r.length;v++){var y=r[v];s.getTarget(y).hover(o,y)}return{type:_,targetIds:r,clientOffset:i}}function a(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getMonitor(),i=this.getRegistry();(0,h["default"])(n.isDragging(),"Cannot call drop while not dragging."),(0,h["default"])(!n.didDrop(),"Cannot call drop twice during one drag operation.");var r=n.getTargetIds().filter(n.canDropOnTarget,n);r.reverse(),r.forEach(function(r,o){var s=i.getTarget(r),a=s.drop(n,r);(0,h["default"])(void 0===a||(0,g["default"])(a),"Drop result must either be an object or undefined."),void 0===a&&(a=0===o?{}:n.getDropResult()),e.store.dispatch({type:w,dropResult:l({},t,a)})})}function u(){var e=this.getMonitor(),t=this.getRegistry();(0,h["default"])(e.isDragging(),"Cannot call endDrag while not dragging.");var n=e.getSourceId();return t.getSource(n,!0).endDrag(e,n),t.unpinSource(),{type:x}}Object.defineProperty(t,"__esModule",{value:!0}),t.END_DRAG=t.DROP=t.HOVER=t.PUBLISH_DRAG_SOURCE=t.BEGIN_DRAG=void 0;var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.beginDrag=r,t.publishDragSource=o,t.hover=s,t.drop=a,t.endDrag=u;var c=n(0),h=i(c),f=n(3),p=i(f),d=n(17),g=i(d),v=n(30),m=i(v),y=t.BEGIN_DRAG="dnd-core/BEGIN_DRAG",b=t.PUBLISH_DRAG_SOURCE="dnd-core/PUBLISH_DRAG_SOURCE",_=t.HOVER="dnd-core/HOVER",w=t.DROP="dnd-core/DROP",x=t.END_DRAG="dnd-core/END_DRAG"},function(e,t,n){var i=n(9),r=i(Object,"create");e.exports=r},function(e,t,n){function i(e,t){var n=o(e,t);return r(n)?n:void 0}var r=n(67),o=n(71);e.exports=i},function(e,t,n){function i(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}var r=n(79);e.exports=i},function(e,t,n){function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}var r=n(85);e.exports=i},function(e,t,n){"use strict";function i(e){return{type:a,sourceId:e}}function r(e){return{type:u,targetId:e}}function o(e){return{type:l,sourceId:e}}function s(e){return{type:c,targetId:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.addSource=i,t.addTarget=r,t.removeSource=o,t.removeTarget=s;var a=t.ADD_SOURCE="dnd-core/ADD_SOURCE",u=t.ADD_TARGET="dnd-core/ADD_TARGET",l=t.REMOVE_SOURCE="dnd-core/REMOVE_SOURCE",c=t.REMOVE_TARGET="dnd-core/REMOVE_TARGET"},function(e,t,n){"use strict";function i(e,t){}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){function i(e){return null==e?void 0===e?u:a:l&&l in Object(e)?o(e):s(e)}var r=n(15),o=n(52),s=n(53),a="[object Null]",u="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=i},function(e,t,n){var i=n(5),r=i.Symbol;e.exports=r},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}var r=n(63),o=n(89),s=n(90);i.prototype.add=i.prototype.push=o,i.prototype.has=s,e.exports=i},function(e,t,n){function i(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}var r=n(91);e.exports=i},function(e,t){function n(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}e.exports=n},function(e,t){function n(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}e.exports=n},function(e,t){function n(e,t){return e.has(t)}e.exports=n},function(e,t,n){function i(e,t){return s(o(e,t,r),e+"")}var r=n(34),o=n(95),s=n(97);e.exports=i},function(e,t,n){function i(e){return o(e)&&r(e)}var r=n(102),o=n(6);e.exports=i},function(e,t,n){"use strict";var i={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,c=l&&l(Object);e.exports=function h(e,t,n){if("string"!=typeof t){if(c){var f=l(t);f&&f!==c&&h(e,f,n)}var p=s(t);a&&(p=p.concat(a(t)));for(var d=0;d<p.length;++d){var g=p[d];if(!(i[g]||r[g]||n&&n[g])){var v=u(t,g);try{o(e,g,v)}catch(h){}}}return e}return e}},function(e,t,n){"use strict";function i(e,t){if(e===t)return!0;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=Object.prototype.hasOwnProperty,o=0;o<n.length;o+=1){if(!r.call(t,n[o])||e[n[o]]!==t[n[o]])return!1;if(e[n[o]]!==t[n[o]])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){return Boolean(e&&"function"==typeof e.dispose)}t.__esModule=!0,t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){w["default"].apply(void 0,["DragDropContext","backend"].concat(Array.prototype.slice.call(arguments)));var t=C(e),n=k(t);return function(e){var t,i,a=e.displayName||e.name||"Component",c=(i=t=function(t){function i(){return r(this,i),o(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return s(i,t),l(i,[{key:"getDecoratedComponentInstance",value:function(){return(0,m["default"])(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"getManager",value:function(){return n.dragDropManager}},{key:"getChildContext",value:function(){return n}},{key:"render",value:function(){var t=this;return f["default"].createElement(e,u({},this.props,{ref:function(e){t.child=e}}))}}]),i}(h.Component),t.DecoratedComponent=e,t.displayName="DragDropContext("+a+")",t.childContextTypes=x,i);return(0,b["default"])(c,e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.unpackBackendForEs5Users=t.createChildContext=t.CHILD_CONTEXT_TYPES=void 0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t["default"]=a;var h=n(2),f=i(h),p=n(4),d=i(p),g=n(48),v=n(0),m=i(v),y=n(25),b=i(y),_=n(13),w=i(_),x=t.CHILD_CONTEXT_TYPES={dragDropManager:d["default"].object.isRequired},k=t.createChildContext=function(e,t){return{dragDropManager:new g.DragDropManager(e,t)}},C=t.unpackBackendForEs5Users=function(e){var t=e;return"object"===(void 0===t?"undefined":c(t))&&"function"==typeof t["default"]&&(t=t["default"]),(0,m["default"])("function"==typeof t,"Expected the backend to be a function or an ES6 module exporting a default function. Read more: http://react-dnd.github.io/react-dnd/docs-drag-drop-context.html"),t}},function(e,t,n){"use strict";function i(e,t){return e===t||e&&t&&e.x===t.x&&e.y===t.y}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case u.BEGIN_DRAG:return{initialSourceClientOffset:t.sourceClientOffset,initialClientOffset:t.clientOffset,clientOffset:t.clientOffset};case u.HOVER:return i(e.clientOffset,t.clientOffset)?e:a({},e,{clientOffset:t.clientOffset});case u.END_DRAG:case u.DROP:return l;default:return e}}function o(e){var t=e.clientOffset,n=e.initialClientOffset,i=e.initialSourceClientOffset;return t&&n&&i?{x:t.x+i.x-n.x,y:t.y+i.y-n.y}:null}function s(e){var t=e.clientOffset,n=e.initialClientOffset;return t&&n?{x:t.x-n.x,y:t.y-n.y}:null}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t["default"]=r,t.getSourceClientOffset=o,t.getDifferenceFromInitialOffset=s;var u=n(7),l={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null}},function(e,t,n){"use strict";function i(e,t){return(0,o["default"])(e)?e.some(function(e){return e===t}):e===t}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var r=n(3),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){function i(e,t,n,i){var h=-1,f=o,p=!0,d=e.length,g=[],v=t.length;if(!d)return g;n&&(t=a(t,u(n))),i?(f=s,p=!1):t.length>=c&&(f=l,p=!1,t=new r(t));e:for(;++h<d;){var m=e[h],y=null==n?m:n(m);if(m=i||0!==m?m:0,p&&y===y){for(var b=v;b--;)if(t[b]===y)continue e;g.push(m)}else f(t,y,i)||g.push(m)}return g}var r=n(18),o=n(19),s=n(20),a=n(21),u=n(33),l=n(22),c=200;e.exports=i},function(e,t,n){function i(e){if(!o(e))return!1;var t=r(e);return t==a||t==u||t==s||t==l}var r=n(14),o=n(17),s="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",l="[object Proxy]";e.exports=i},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments[1]),t=arguments[2];switch(e.type){case c.HOVER:break;case h.ADD_SOURCE:case h.ADD_TARGET:case h.REMOVE_TARGET:case h.REMOVE_SOURCE:return f;case c.BEGIN_DRAG:case c.PUBLISH_DRAG_SOURCE:case c.END_DRAG:case c.DROP:default:return p}var n=e.targetIds,i=t.targetIds,r=(0,a["default"])(n,i),o=!1;if(0===r.length){for(var s=0;s<n.length;s++)if(n[s]!==i[s]){o=!0;break}}else o=!0;if(!o)return f;var u=i[i.length-1],l=n[n.length-1];return u!==l&&(u&&r.push(u),l&&r.push(l)),r}function o(e,t){return e!==f&&(e===p||void 0===t||(0,l["default"])(t,e).length>0)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r,t.areDirty=o;var s=n(105),a=i(s),u=n(116),l=i(u),c=n(7),h=n(12),f=[],p=[]},function(e,t){function n(){}e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":r(e))||null===e||"object"!==(void 0===t?"undefined":r(t))||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty,s=0;s<n.length;s+=1){if(!o.call(t,n[s]))return!1;var a=e[n[s]],u=t[n[s]];if(a!==u||"object"===(void 0===a?"undefined":r(a))||"object"===(void 0===u?"undefined":r(u)))return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t,n,i=e.DecoratedComponent,a=e.createHandler,p=e.createMonitor,v=e.createConnector,m=e.registerHandler,b=e.containerDisplayName,w=e.getType,k=e.collect,E=e.options,S=E.arePropsEqual,D=void 0===S?C["default"]:S,O=i.displayName||i.name||"Component",P=(n=t=function(e){function t(e,n){r(this,t);var i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return i.handleChange=i.handleChange.bind(i),i.handleChildRef=i.handleChildRef.bind(i),(0,y["default"])("object"===l(i.context.dragDropManager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",O,O),i.manager=i.context.dragDropManager,i.handlerMonitor=p(i.manager),i.handlerConnector=v(i.manager.getBackend()),i.handler=a(i.handlerMonitor),i.disposable=new g.SerialDisposable,i.receiveProps(e),i.state=i.getCurrentState(),i.dispose(),i}return s(t,e),c(t,[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return this.decoratedComponentInstance}},{key:"shouldComponentUpdate",value:function(e,t){return!D(e,this.props)||!(0,x["default"])(t,this.state)}}]),c(t,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.disposable=new g.SerialDisposable,this.currentType=null,this.receiveProps(this.props),this.handleChange()}},{key:"componentWillReceiveProps",value:function(e){D(e,this.props)||(this.receiveProps(e),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose(),this.isCurrentlyMounted=!1}},{key:"receiveProps",value:function(e){this.handler.receiveProps(e),this.receiveType(w(e))}},{key:"receiveType",value:function(e){if(e!==this.currentType){this.currentType=e;var t=m(e,this.handler,this.manager),n=t.handlerId,i=t.unregister;this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var r=this.manager.getMonitor(),o=r.subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new g.CompositeDisposable(new g.Disposable(o),new g.Disposable(i)))}}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,x["default"])(e,this.state)||this.setState(e)}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector.receiveHandlerId(null)}},{key:"handleChildRef",value:function(e){this.decoratedComponentInstance=e,this.handler.receiveComponent(e)}},{key:"getCurrentState",value:function(){var e=k(this.handlerConnector.hooks,this.handlerMonitor);return e}},{key:"render",value:function(){return f["default"].createElement(i,u({},this.props,this.state,{ref:T(i)?this.handleChildRef:null}))}}]),t}(h.Component),t.DecoratedComponent=i,t.displayName=b+"("+O+")",t.contextTypes={dragDropManager:d["default"].object.isRequired},n);return(0,_["default"])(P,i)}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t["default"]=a;var h=n(2),f=i(h),p=n(4),d=i(p),g=n(131),v=n(1),m=(i(v),n(0)),y=i(m),b=n(25),_=i(b),w=n(26),x=i(w),k=n(38),C=i(k),T=function(e){return Boolean(e&&e.prototype&&"function"==typeof e.prototype.render)}},function(e,t,n){
- "use strict";function i(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors.You can either wrap "+t+" into a <div>, or turn it into a drag source or a drop target itself.")}}function r(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,s.isValidElement)(t))return void e(t,n);var r=t;i(r);var o=n?function(t){return e(t,n)}:e;return(0,u["default"])(r,o)}}function o(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n],o=r(i);t[n]=function(){return o}}),t}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var s=n(2),a=n(139),u=function(e){return e&&e.__esModule?e:{"default":e}}(a)},function(e,t,n){"use strict";function i(e,t){return t===e||null!==t&&null!==e&&(0,o["default"])(t,e)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var r=n(26),o=function(e){return e&&e.__esModule?e:{"default":e}}(r)},function(e,t,n){"use strict";function i(e,t){return"string"==typeof e||"symbol"===(void 0===e?"undefined":r(e))||t&&(0,s["default"])(e)&&e.every(function(e){return i(e,!1)})}Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t["default"]=i;var o=n(3),s=function(e){return e&&e.__esModule?e:{"default":e}}(o)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(28);Object.defineProperty(t,"DragDropContext",{enumerable:!0,get:function(){return i(r)["default"]}});var o=n(128);Object.defineProperty(t,"DragDropContextProvider",{enumerable:!0,get:function(){return i(o)["default"]}});var s=n(129);Object.defineProperty(t,"DragLayer",{enumerable:!0,get:function(){return i(s)["default"]}});var a=n(130);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return i(a)["default"]}});var u=n(140);Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return i(u)["default"]}})},function(e,t,n){"use strict";var i=n(45),r=n(46),o=n(47);e.exports=function(){function e(e,t,n,i,s,a){a!==o&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t,n){"use strict";function i(e){return function(){return e}}var r=function(){};r.thatReturns=i,r.thatReturnsFalse=i(!1),r.thatReturnsTrue=i(!0),r.thatReturnsNull=i(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";function i(e,t,n,i,o,s,a,u){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,o,s,a,u],h=0;l=new Error(t.replace(/%s/g,function(){return c[h++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var r=function(e){};e.exports=i},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(49);Object.defineProperty(t,"DragDropManager",{enumerable:!0,get:function(){return i(r)["default"]}});var o=n(125);Object.defineProperty(t,"DragSource",{enumerable:!0,get:function(){return i(o)["default"]}});var s=n(126);Object.defineProperty(t,"DropTarget",{enumerable:!0,get:function(){return i(s)["default"]}});var a=n(127);Object.defineProperty(t,"createTestBackend",{enumerable:!0,get:function(){return i(a)["default"]}})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(50),a=i(s),u=n(60),l=i(u),c=n(7),h=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}(c),f=n(120),p=i(f),d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e);var i=(0,a["default"])(l["default"]);this.context=n,this.store=i,this.monitor=new p["default"](i),this.registry=this.monitor.registry,this.backend=t(this),i.subscribe(this.handleRefCountChange.bind(this))}return o(e,[{key:"handleRefCountChange",value:function(){var e=this.store.getState().refCount>0;e&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!e&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1)}},{key:"getContext",value:function(){return this.context}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.registry}},{key:"getActions",value:function(){function e(e){return function(){for(var i=arguments.length,r=Array(i),o=0;i>o;o++)r[o]=arguments[o];var s=e.apply(t,r);void 0!==s&&n(s)}}var t=this,n=this.store.dispatch;return Object.keys(h).filter(function(e){return"function"==typeof h[e]}).reduce(function(t,n){var i=h[n];return t[n]=e(i),t},{})}}]),e}();t["default"]=d},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){function i(){m===v&&(m=v.slice())}function o(){return g}function a(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return i(),m.push(e),function(){if(t){t=!1,i();var n=m.indexOf(e);m.splice(n,1)}}}function c(e){if(!(0,s["default"])(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(y)throw new Error("Reducers may not dispatch actions.");try{y=!0,g=d(g,e)}finally{y=!1}for(var t=v=m,n=0;n<t.length;n++)(0,t[n])();return e}function h(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");d=e,c({type:l.INIT})}function f(){var e,t=a;return e={subscribe:function(e){function n(){e.next&&e.next(o())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[u["default"]]=function(){return this},e}var p;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(r)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var d=e,g=t,v=[],m=v,y=!1;return c({type:l.INIT}),p={dispatch:c,subscribe:a,getState:o,replaceReducer:h},p[u["default"]]=f,p}t.__esModule=!0,t.ActionTypes=void 0,t["default"]=r;var o=n(1),s=i(o),a=n(56),u=i(a),l=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(16))},function(e,t,n){function i(e){var t=s.call(e,u),n=e[u];try{e[u]=void 0;var i=!0}catch(e){}var r=a.call(e);return i&&(t?e[u]=n:delete e[u]),r}var r=n(15),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=i},function(e,t){function n(e){return r.call(e)}var i=Object.prototype,r=i.toString;e.exports=n},function(e,t,n){var i=n(55),r=i(Object.getPrototypeOf,Object);e.exports=r},function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},function(e,t,n){e.exports=n(57)},function(e,t,n){"use strict";(function(e,i){Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(59),s=function(e){return e&&e.__esModule?e:{"default":e}}(o);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:i;var a=(0,s["default"])(r);t["default"]=a}).call(t,n(16),n(58)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function i(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return{dirtyHandlerIds:(0,f["default"])(e.dirtyHandlerIds,t,e.dragOperation),dragOffset:(0,s["default"])(e.dragOffset,t),refCount:(0,c["default"])(e.refCount,t),dragOperation:(0,u["default"])(e.dragOperation,t),stateId:(0,d["default"])(e.stateId)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=n(29),s=i(o),a=n(61),u=i(a),l=n(104),c=i(l),h=n(35),f=i(h),p=n(119),d=i(p)},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments[1];switch(t.type){case a.BEGIN_DRAG:return r({},e,{itemType:t.itemType,item:t.item,sourceId:t.sourceId,isSourcePublic:t.isSourcePublic,dropResult:null,didDrop:!1});case a.PUBLISH_DRAG_SOURCE:return r({},e,{isSourcePublic:!0});case a.HOVER:return r({},e,{targetIds:t.targetIds});case u.REMOVE_TARGET:return-1===e.targetIds.indexOf(t.targetId)?e:r({},e,{targetIds:(0,s["default"])(e.targetIds,t.targetId)});case a.DROP:return r({},e,{dropResult:t.dropResult,didDrop:!0,targetIds:[]});case a.END_DRAG:return r({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t["default"]=i;var o=n(62),s=function(e){return e&&e.__esModule?e:{"default":e}}(o),a=n(7),u=n(12),l={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null}},function(e,t,n){var i=n(31),r=n(23),o=n(24),s=r(function(e,t){return o(e)?i(e,t):[]});e.exports=s},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}var r=n(64),o=n(84),s=n(86),a=n(87),u=n(88);i.prototype.clear=r,i.prototype["delete"]=o,i.prototype.get=s,i.prototype.has=a,i.prototype.set=u,e.exports=i},function(e,t,n){function i(){this.size=0,this.__data__={hash:new r,map:new(s||o),string:new r}}var r=n(65),o=n(76),s=n(83);e.exports=i},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}var r=n(66),o=n(72),s=n(73),a=n(74),u=n(75);i.prototype.clear=r,i.prototype["delete"]=o,i.prototype.get=s,i.prototype.has=a,i.prototype.set=u,e.exports=i},function(e,t,n){function i(){this.__data__=r?r(null):{},this.size=0}var r=n(8);e.exports=i},function(e,t,n){function i(e){return!(!s(e)||o(e))&&(r(e)?d:l).test(a(e))}var r=n(32),o=n(68),s=n(17),a=n(70),u=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,h=Object.prototype,f=c.toString,p=h.hasOwnProperty,d=RegExp("^"+f.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=i},function(e,t,n){function i(e){return!!o&&o in e}var r=n(69),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=i},function(e,t,n){var i=n(5),r=i["__core-js_shared__"];e.exports=r},function(e,t){function n(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var i=Function.prototype,r=i.toString;e.exports=n},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function i(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return a.call(t,e)?t[e]:void 0}var r=n(8),o="__lodash_hash_undefined__",s=Object.prototype,a=s.hasOwnProperty;e.exports=i},function(e,t,n){function i(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}var r=n(8),o=Object.prototype,s=o.hasOwnProperty;e.exports=i},function(e,t,n){function i(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}var r=n(8),o="__lodash_hash_undefined__";e.exports=i},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}var r=n(77),o=n(78),s=n(80),a=n(81),u=n(82);i.prototype.clear=r,i.prototype["delete"]=o,i.prototype.get=s,i.prototype.has=a,i.prototype.set=u,e.exports=i},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function i(e){var t=this.__data__,n=r(t,e);return!(0>n||(n==t.length-1?t.pop():s.call(t,n,1),--this.size,0))}var r=n(10),o=Array.prototype,s=o.splice;e.exports=i},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){function i(e){var t=this.__data__,n=r(t,e);return 0>n?void 0:t[n][1]}var r=n(10);e.exports=i},function(e,t,n){function i(e){return r(this.__data__,e)>-1}var r=n(10);e.exports=i},function(e,t,n){function i(e,t){var n=this.__data__,i=r(n,e);return 0>i?(++this.size,n.push([e,t])):n[i][1]=t,this}var r=n(10);e.exports=i},function(e,t,n){var i=n(9),r=n(5),o=i(r,"Map");e.exports=o},function(e,t,n){function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}var r=n(11);e.exports=i},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function i(e){return r(this,e).get(e)}var r=n(11);e.exports=i},function(e,t,n){function i(e){return r(this,e).has(e)}var r=n(11);e.exports=i},function(e,t,n){function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var r=n(11);e.exports=i},function(e,t){function n(e){return this.__data__.set(e,i),this}var i="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function i(e,t,n){return t===t?s(e,t,n):r(e,o,n)}var r=n(92),o=n(93),s=n(94);e.exports=i},function(e,t){function n(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}e.exports=n},function(e,t){function n(e){return e!==e}e.exports=n},function(e,t){function n(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}e.exports=n},function(e,t,n){function i(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=o(i.length-t,0),u=Array(a);++s<a;)u[s]=i[t+s];s=-1;for(var l=Array(t+1);++s<t;)l[s]=i[s];return l[t]=n(u),r(e,this,l)}}var r=n(96),o=Math.max;e.exports=i},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){var i=n(98),r=n(101),o=r(i);e.exports=o},function(e,t,n){var i=n(99),r=n(100),o=n(34),s=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o;e.exports=s},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){var i=n(9),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},function(e,t){function n(e){var t=0,n=0;return function(){var s=o(),a=r-(s-n);if(n=s,a>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i=800,r=16,o=Date.now;e.exports=n},function(e,t,n){function i(e){return null!=e&&o(e.length)&&!r(e)}var r=n(32),o=n(103);e.exports=i},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&i>=e}var i=9007199254740991;e.exports=n},function(e,t,n){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch(arguments[1].type){case r.ADD_SOURCE:case r.ADD_TARGET:return e+1;case r.REMOVE_SOURCE:case r.REMOVE_TARGET:return e-1;default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var r=n(12)},function(e,t,n){var i=n(106),r=n(23),o=n(107),s=n(24),a=r(function(e){return o(i(e,s))});e.exports=a},function(e,t){function n(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var s=e[n];t(s,n,e)&&(o[r++]=s)}return o}e.exports=n},function(e,t,n){function i(e,t,n){var i=e.length;if(2>i)return i?s(e[0]):[];for(var a=-1,u=Array(i);++a<i;)for(var l=e[a],c=-1;++c<i;)c!=a&&(u[a]=r(u[a]||l,e[c],t,n));return s(o(u,1),t,n)}var r=n(31),o=n(108),s=n(113);e.exports=i},function(e,t,n){function i(e,t,n,s,a){var u=-1,l=e.length;for(n||(n=o),a||(a=[]);++u<l;){var c=e[u];t>0&&n(c)?t>1?i(c,t-1,n,s,a):r(a,c):s||(a[a.length]=c)}return a}var r=n(109),o=n(110);e.exports=i},function(e,t){function n(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}e.exports=n},function(e,t,n){function i(e){return s(e)||o(e)||!!(a&&e&&e[a])}var r=n(15),o=n(111),s=n(3),a=r?r.isConcatSpreadable:void 0;e.exports=i},function(e,t,n){var i=n(112),r=n(6),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=i(function(){return arguments}())?i:function(e){return r(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},function(e,t,n){function i(e){return o(e)&&r(e)==s}var r=n(14),o=n(6),s="[object Arguments]";e.exports=i},function(e,t,n){function i(e,t,n){var i=-1,h=o,f=e.length,p=!0,d=[],g=d;if(n)p=!1,h=s;else if(f>=c){var v=t?null:u(e);if(v)return l(v);p=!1,h=a,g=new r}else g=t?[]:d;e:for(;++i<f;){var m=e[i],y=t?t(m):m;if(m=n||0!==m?m:0,p&&y===y){for(var b=g.length;b--;)if(g[b]===y)continue e;t&&g.push(y),d.push(m)}else h(g,y,n)||(g!==d&&g.push(y),d.push(m))}return d}var r=n(18),o=n(19),s=n(20),a=n(22),u=n(114),l=n(37),c=200;e.exports=i},function(e,t,n){var i=n(115),r=n(36),o=n(37),s=i&&1/o(new i([,-0]))[1]==1/0?function(e){return new i(e)}:r;e.exports=s},function(e,t,n){var i=n(9),r=n(5),o=i(r,"Set");e.exports=o},function(e,t,n){var i=n(21),r=n(117),o=n(23),s=n(118),a=o(function(e){var t=i(e,s);return t.length&&t[0]===e[0]?r(t):[]});e.exports=a},function(e,t,n){function i(e,t,n){for(var i=n?s:o,h=e[0].length,f=e.length,p=f,d=Array(f),g=1/0,v=[];p--;){var m=e[p];p&&t&&(m=a(m,u(t))),g=c(m.length,g),d[p]=!n&&(t||h>=120&&m.length>=120)?new r(p&&m):void 0}m=e[0];var y=-1,b=d[0];e:for(;++y<h&&v.length<g;){var _=m[y],w=t?t(_):_;if(_=n||0!==_?_:0,!(b?l(b,w):i(v,w,n))){for(p=f;--p;){var x=d[p];if(!(x?l(x,w):i(e[p],w,n)))continue e}b&&b.push(w),v.push(_)}}return v}var r=n(18),o=n(19),s=n(20),a=n(21),u=n(33),l=n(22),c=Math.min;e.exports=i},function(e,t,n){function i(e){return r(e)?e:[]}var r=n(24);e.exports=i},function(e,t,n){"use strict";function i(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(0),a=i(s),u=n(3),l=i(u),c=n(30),h=i(c),f=n(121),p=i(f),d=n(29),g=n(35),v=function(){function e(t){r(this,e),this.store=t,this.registry=new p["default"](t)}return o(e,[{key:"subscribeToStateChange",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.handlerIds;(0,a["default"])("function"==typeof e,"listener must be a function."),(0,a["default"])(void 0===i||(0,l["default"])(i),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId,o=function(){var n=t.store.getState(),o=n.stateId;try{o===r||o===r+1&&!(0,g.areDirty)(n.dirtyHandlerIds,i)||e()}finally{r=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,a["default"])("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset,i=function(){var i=t.store.getState().dragOffset;i!==n&&(n=i,e())};return this.store.subscribe(i)}},{key:"canDragSource",value:function(e){var t=this.registry.getSource(e);return(0,a["default"])(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){var t=this.registry.getTarget(e);if((0,a["default"])(t,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var n=this.registry.getTargetType(e),i=this.getItemType();return(0,h["default"])(n,i)&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){var t=this.registry.getSource(e,!0);return(0,a["default"])(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1},n=t.shallow;if(!this.isDragging())return!1;var i=this.registry.getTargetType(e),r=this.getItemType();if(!(0,h["default"])(i,r))return!1;var o=this.getTargetIds();if(!o.length)return!1;var s=o.indexOf(e);return n?s===o.length-1:s>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return(0,d.getSourceClientOffset)(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return(0,d.getDifferenceFromInitialOffset)(this.store.getState().dragOffset)}}]),e}();t["default"]=v},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){(0,d["default"])("function"==typeof e.canDrag,"Expected canDrag to be a function."),(0,d["default"])("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),(0,d["default"])("function"==typeof e.endDrag,"Expected endDrag to be a function.")}function s(e){(0,d["default"])("function"==typeof e.canDrop,"Expected canDrop to be a function."),(0,d["default"])("function"==typeof e.hover,"Expected hover to be a function."),(0,d["default"])("function"==typeof e.drop,"Expected beginDrag to be a function.")}function a(e,t){return t&&(0,v["default"])(e)?void e.forEach(function(e){return a(e,!1)}):void(0,d["default"])("string"==typeof e||"symbol"===(void 0===e?"undefined":f(e)),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}function u(e){var t=(0,w["default"])().toString();switch(e){case x.SOURCE:return"S"+t;case x.TARGET:return"T"+t;default:(0,d["default"])(!1,"Unknown role: "+e)}}function l(e){switch(e[0]){case"S":return x.SOURCE;case"T":return x.TARGET;default:(0,d["default"])(!1,"Cannot parse handler ID: "+e)}}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),f="function"==typeof Symbol&&"symbol"===c(Symbol.iterator)?function(e){return void 0===e?"undefined":c(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":c(e)},p=n(0),d=i(p),g=n(3),v=i(g),m=n(122),y=i(m),b=n(12),_=n(124),w=i(_),x={SOURCE:"SOURCE",TARGET:"TARGET"},k=function(){function e(t){r(this,e),this.store=t,this.types={},this.handlers={},this.pinnedSourceId=null,this.pinnedSource=null}return h(e,[{key:"addSource",value:function(e,t){a(e),o(t);var n=this.addHandler(x.SOURCE,e,t);return this.store.dispatch((0,b.addSource)(n)),n}},{key:"addTarget",value:function(e,t){a(e,!0),s(t);var n=this.addHandler(x.TARGET,e,t);return this.store.dispatch((0,b.addTarget)(n)),n}},{key:"addHandler",value:function(e,t,n){var i=u(e);return this.types[i]=t,this.handlers[i]=n,i}},{key:"containsHandler",value:function(e){var t=this;return Object.keys(this.handlers).some(function(n){return t.handlers[n]===e})}},{key:"getSource",value:function(e,t){return(0,d["default"])(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.handlers[e]}},{key:"getTarget",value:function(e){return(0,d["default"])(this.isTargetId(e),"Expected a valid target ID."),this.handlers[e]}},{key:"getSourceType",value:function(e){return(0,d["default"])(this.isSourceId(e),"Expected a valid source ID."),this.types[e]}},{key:"getTargetType",value:function(e){return(0,d["default"])(this.isTargetId(e),"Expected a valid target ID."),this.types[e]}},{key:"isSourceId",value:function(e){return l(e)===x.SOURCE}},{key:"isTargetId",value:function(e){return l(e)===x.TARGET}},{key:"removeSource",value:function(e){var t=this;(0,d["default"])(this.getSource(e),"Expected an existing source."),this.store.dispatch((0,b.removeSource)(e)),(0,y["default"])(function(){delete t.handlers[e],delete t.types[e]})}},{key:"removeTarget",value:function(e){var t=this;(0,d["default"])(this.getTarget(e),"Expected an existing target."),this.store.dispatch((0,b.removeTarget)(e)),(0,y["default"])(function(){delete t.handlers[e],delete t.types[e]})}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,d["default"])(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,d["default"])(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}}]),e}();t["default"]=k},function(e,t,n){"use strict";function i(){if(u.length)throw u.shift()}function r(e){var t;t=a.length?a.pop():new o,t.task=e,s(t)}function o(){this.task=null}var s=n(123),a=[],u=[],l=s.makeRequestCallFromTimer(i);e.exports=r,o.prototype.call=function(){try{this.task.call()}catch(e){r.onerror?r.onerror(e):(u.push(e),l())}finally{this.task=null,a[a.length]=this}}},function(e,t,n){"use strict";(function(t){function n(e){s.length||(o(),a=!0),s[s.length]=e}function i(){for(;u<s.length;){var e=u;if(u+=1,s[e].call(),u>l){for(var t=0,n=s.length-u;n>t;t++)s[t]=s[t+u];s.length-=u,u=0}}s.length=0,u=0,a=!1}function r(e){return function(){function t(){clearTimeout(n),clearInterval(i),e()}var n=setTimeout(t,0),i=setInterval(t,50)}}e.exports=n;var o,s=[],a=!1,u=0,l=1024,c=void 0!==t?t:self,h=c.MutationObserver||c.WebKitMutationObserver;o="function"==typeof h?function(e){var t=1,n=new h(e),i=document.createTextNode("");return n.observe(i,{characterData:!0}),function(){t=-t,i.data=t}}(i):r(i),n.requestFlush=o,n.makeRequestCallFromTimer=r}).call(t,n(16))},function(e,t,n){"use strict";function i(){return r++}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var r=0},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(){i(this,e)}return r(e,[{key:"canDrag",value:function(){return!0}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}();t["default"]=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(){i(this,e)}return r(e,[{key:"canDrop",value:function(){return!0}},{key:"hover",value:function(){}},{key:"drop",value:function(){}}]),e}();t["default"]=o},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return new u(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t["default"]=r;var s=n(36),a=function(e){return e&&e.__esModule?e:{"default":e}}(s),u=function(){function e(t){i(this,e),this.actions=t.getActions()}return o(e,[{key:"setup",value:function(){this.didCallSetup=!0}},{key:"teardown",value:function(){this.didCallTeardown=!0}},{key:"connectDragSource",value:function(){return a["default"]}},{key:"connectDragPreview",value:function(){return a["default"]}},{key:"connectDropTarget",value:function(){return a["default"]}},{key:"simulateBeginDrag",value:function(e,t){this.actions.beginDrag(e,t)}},{key:"simulatePublishDragSource",value:function(){this.actions.publishDragSource()}},{key:"simulateHover",value:function(e,t){this.actions.hover(e,t)}},{key:"simulateDrop",value:function(){this.actions.drop()}},{key:"simulateEndDrag",value:function(){this.actions.endDrag()}}]),e}()},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var s,a,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,
- i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=n(2),c=n(4),h=function(e){return e&&e.__esModule?e:{"default":e}}(c),f=n(28),p=(a=s=function(e){function t(e,n){i(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.backend=(0,f.unpackBackendForEs5Users)(e.backend),o.childContext=(0,f.createChildContext)(o.backend,{window:function(){return e&&e.window?e.window:n&&n.window?n.window:"undefined"!=typeof window?window:void 0}()}),o}return o(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){if(e.backend!==this.props.backend||e.window!==this.props.window)throw new Error("DragDropContextProvider backend and window props must not change.")}},{key:"getChildContext",value:function(){return this.childContext}},{key:"render",value:function(){return l.Children.only(this.props.children)}}]),t}(l.Component),s.propTypes={backend:h["default"].oneOfType([h["default"].func,h["default"].object]).isRequired,children:h["default"].element.isRequired,window:h["default"].object},s.defaultProps={window:void 0},s.childContextTypes=f.CHILD_CONTEXT_TYPES,s.displayName="DragDropContextProvider",s.contextTypes={window:h["default"].object},a);t["default"]=p},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return E["default"].apply(void 0,["DragLayer","collect[, options]"].concat(Array.prototype.slice.call(arguments))),(0,_["default"])("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html",e),(0,_["default"])((0,y["default"])(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html',t),function(n){var i,a,p=t.arePropsEqual,g=void 0===p?C["default"]:p,m=n.displayName||n.name||"Component",y=(a=i=function(t){function i(e,t){r(this,i);var n=o(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e));return n.handleChange=n.handleChange.bind(n),n.manager=t.dragDropManager,(0,_["default"])("object"===l(n.manager),"Could not find the drag and drop manager in the context of %s. Make sure to wrap the top-level component of your app with DragDropContext. Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context",m,m),n.state=n.getCurrentState(),n}return s(i,t),c(i,[{key:"getDecoratedComponentInstance",value:function(){return(0,_["default"])(this.child,"In order to access an instance of the decorated component it can not be a stateless component."),this.child}},{key:"shouldComponentUpdate",value:function(e,t){return!g(e,this.props)||!(0,x["default"])(t,this.state)}}]),c(i,[{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0;var e=this.manager.getMonitor();this.unsubscribeFromOffsetChange=e.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=e.subscribeToStateChange(this.handleChange),this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange(),this.unsubscribeFromStateChange()}},{key:"handleChange",value:function(){if(this.isCurrentlyMounted){var e=this.getCurrentState();(0,x["default"])(e,this.state)||this.setState(e)}}},{key:"getCurrentState",value:function(){var t=this.manager.getMonitor();return e(t)}},{key:"render",value:function(){var e=this;return f["default"].createElement(n,u({},this.props,this.state,{ref:function(t){e.child=t}}))}}]),i}(h.Component),i.DecoratedComponent=n,i.displayName="DragLayer("+m+")",i.contextTypes={dragDropManager:d["default"].object.isRequired},a);return(0,v["default"])(y,n)}}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t["default"]=a;var h=n(2),f=i(h),p=n(4),d=i(p),g=n(25),v=i(g),m=n(1),y=i(m),b=n(0),_=i(b),w=n(26),x=i(w),k=n(38),C=i(k),T=n(13),E=i(T)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};c["default"].apply(void 0,["DragSource","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var r=e;"function"!=typeof e&&((0,s["default"])((0,x["default"])(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',e),r=function(){return e}),(0,s["default"])((0,u["default"])(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',t);var o=(0,v["default"])(t);return(0,s["default"])("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),(0,s["default"])((0,u["default"])(i),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',n),function(e){return(0,f["default"])({connectBackend:function(e,t){return e.connectDragSource(t)},containerDisplayName:"DragSource",createHandler:o,registerHandler:d["default"],createMonitor:y["default"],createConnector:_["default"],DecoratedComponent:e,getType:r,collect:n,options:i})}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=n(0),s=i(o),a=n(1),u=i(a),l=n(13),c=i(l),h=n(39),f=i(h),p=n(135),d=i(p),g=n(136),v=i(g),m=n(137),y=i(m),b=n(138),_=i(b),w=n(42),x=i(w)},function(e,t,n){"use strict";var i=function(e){return e&&e.__esModule?e:{"default":e}};t.__esModule=!0;var r=n(27),o=i(r);t.isDisposable=o["default"];var s=n(132),a=i(s);t.Disposable=a["default"];var u=n(133),l=i(u);t.CompositeDisposable=l["default"];var c=n(134),h=i(c);t.SerialDisposable=h["default"]},function(e,t,n){"use strict";var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.__esModule=!0;var o=function(){},s=function(){function e(t){i(this,e),this.isDisposed=!1,this.action=t||o}return e.prototype.dispose=function(){this.isDisposed||(this.action.call(null),this.isDisposed=!0)},r(e,null,[{key:"empty",enumerable:!0,value:{dispose:o}}]),e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var r=n(27),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),s=function(){function e(){for(var t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];i(this,e),Array.isArray(n[0])&&1===n.length&&(n=n[0]);for(var s=0;s<n.length;s++)if(!o["default"](n[s]))throw new Error("Expected a disposable");this.disposables=n,this.isDisposed=!1}return e.prototype.add=function(e){this.isDisposed?e.dispose():this.disposables.push(e)},e.prototype.remove=function(e){if(this.isDisposed)return!1;var t=this.disposables.indexOf(e);return-1!==t&&(this.disposables.splice(t,1),e.dispose(),!0)},e.prototype.dispose=function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;e>n;n++)t[n]=this.disposables[n];this.isDisposed=!0,this.disposables=[],this.length=0;for(var n=0;e>n;n++)t[n].dispose()}},e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";var i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")};t.__esModule=!0;var r=n(27),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),s=function(){function e(){i(this,e),this.isDisposed=!1,this.current=null}return e.prototype.getDisposable=function(){return this.current},e.prototype.setDisposable=function(){var e=void 0===arguments[0]?null:arguments[0];if(null!=e&&!o["default"](e))throw new Error("Expected either an empty value or a valid disposable");var t=this.isDisposed,n=void 0;t||(n=this.current,this.current=e),n&&n.dispose(),t&&e&&e.dispose()},e.prototype.dispose=function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=null,e&&e.dispose()}},e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function i(e,t,n){function i(){r.removeSource(o)}var r=n.getRegistry(),o=r.addSource(e,t);return{handlerId:o,unregister:i}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){Object.keys(e).forEach(function(t){(0,u["default"])(c.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html',c.join(", "),t),(0,u["default"])("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])}),h.forEach(function(t){(0,u["default"])("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html",t,t,e[t])});var t=function(){function t(e){r(this,t),this.monitor=e,this.props=null,this.component=null}return s(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrag",value:function(){return!e.canDrag||e.canDrag(this.props,this.monitor)}},{key:"isDragging",value:function(t,n){return e.isDragging?e.isDragging(this.props,this.monitor):n===t.getSourceId()}},{key:"beginDrag",value:function(){var t=e.beginDrag(this.props,this.monitor,this.component);return t}},{key:"endDrag",value:function(){e.endDrag&&e.endDrag(this.props,this.monitor,this.component)}}]),t}();return function(e){return new t(e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t["default"]=o;var a=n(0),u=i(a),l=n(1),c=(i(l),["canDrag","beginDrag","isDragging","endDrag"]),h=["beginDrag"]},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return new c(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t["default"]=r;var s=n(0),a=function(e){return e&&e.__esModule?e:{"default":e}}(s),u=!1,l=!1,c=function(){function e(t){i(this,e),this.internalMonitor=t.getMonitor()}return o(e,[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"canDrag",value:function(){(0,a["default"])(!u,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return u=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{u=!1}}},{key:"isDragging",value:function(){(0,a["default"])(!l,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html");try{return l=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{l=!1}}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}()},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){function t(){l&&(l(),l=null),r&&o&&(l=e.connectDragSource(r,o,a))}function n(){f&&(f(),f=null),r&&c&&(f=e.connectDragPreview(r,c,h))}function i(e){e!==r&&(r=e,t(),n())}var r=void 0,o=void 0,a=void 0,l=void 0,c=void 0,h=void 0,f=void 0;return{receiveHandlerId:i,hooks:(0,s["default"])({dragSource:function(e,n){e===o&&(0,u["default"])(n,a)||(o=e,a=n,t())},dragPreview:function(e,t){e===c&&(0,u["default"])(t,h)||(c=e,h=t,n())}})}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=n(40),s=i(o),a=n(41),u=i(a)},function(e,t,n){"use strict";function i(e,t){var n=e.ref;return(0,o["default"])("string"!=typeof n,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),n?(0,s.cloneElement)(e,{ref:function(e){t(e),n&&n(e)}}):(0,s.cloneElement)(e,{ref:t})}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var r=n(0),o=function(e){return e&&e.__esModule?e:{"default":e}}(r),s=n(2)},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};c["default"].apply(void 0,["DropTarget","type, spec, collect[, options]"].concat(Array.prototype.slice.call(arguments)));var r=e;"function"!=typeof e&&((0,s["default"])((0,x["default"])(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',e),r=function(){return e}),(0,s["default"])((0,u["default"])(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',t);var o=(0,v["default"])(t);return(0,s["default"])("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),(0,s["default"])((0,u["default"])(i),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',n),function(e){return(0,f["default"])({connectBackend:function(e,t){return e.connectDropTarget(t)},containerDisplayName:"DropTarget",createHandler:o,registerHandler:d["default"],createMonitor:y["default"],createConnector:_["default"],DecoratedComponent:e,getType:r,collect:n,options:i})}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=n(0),s=i(o),a=n(1),u=i(a),l=n(13),c=i(l),h=n(39),f=i(h),p=n(141),d=i(p),g=n(142),v=i(g),m=n(143),y=i(m),b=n(144),_=i(b),w=n(42),x=i(w)},function(e,t,n){"use strict";function i(e,t,n){function i(){r.removeTarget(o)}var r=n.getRegistry(),o=r.addTarget(e,t);return{handlerId:o,unregister:i}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){Object.keys(e).forEach(function(t){(0,u["default"])(c.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html',c.join(", "),t),(0,u["default"])("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html",t,t,e[t])});var t=function(){function t(e){r(this,t),this.monitor=e,this.props=null,this.component=null}return s(t,[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"receiveComponent",value:function(e){this.component=e}},{key:"canDrop",value:function(){return!e.canDrop||e.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){e.hover&&e.hover(this.props,this.monitor,this.component)}},{key:"drop",value:function(){if(e.drop){var t=e.drop(this.props,this.monitor,this.component);return t}}}]),t}();return function(e){return new t(e)}}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t["default"]=o;var a=n(0),u=i(a),l=n(1),c=(i(l),["canDrop","hover","drop"])},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return new l(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t["default"]=r;var s=n(0),a=function(e){return e&&e.__esModule?e:{"default":e}}(s),u=!1,l=function(){function e(t){i(this,e),this.internalMonitor=t.getMonitor()}return o(e,[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"canDrop",value:function(){(0,a["default"])(!u,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html");try{return u=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{u=!1}}},{key:"isOver",value:function(e){return this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),e}()},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){function t(){a&&(a(),a=null),i&&r&&(a=e.connectDropTarget(i,r,o))}function n(e){e!==i&&(i=e,t())}var i=void 0,r=void 0,o=void 0,a=void 0;return{receiveHandlerId:n,hooks:(0,s["default"])({dropTarget:function(e,n){e===r&&(0,u["default"])(n,o)||(r=e,o=n,t())}})}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=r;var o=n(40),s=i(o),a=n(41),u=i(a)}])}),/** @license React v16.13.0
- * react-dom.production.min.js
- *
- * Copyright (c) Facebook, Inc. and its affiliates.
- *
- * This source code is licensed under the MIT license found in the
- * LICENSE file in the root directory of this source tree.
- */
- function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define("react-dom",["exports","react"],t):(e=e||self,t(e.ReactDOM={},e.React))}(this,function(e,t){function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(e,t,n,i,r,o,s,a,u){Dr=!1,Or=null,Sr.apply(Ir,arguments)}function r(e,t,r,o,s,a,u,l,c){if(i.apply(this,arguments),Dr){if(!Dr)throw Error(n(198));var h=Or;Dr=!1,Or=null,Pr||(Pr=!0,Ar=h)}}function o(e,t,n){var i=e.type||"unknown-event";e.currentTarget=Rr(n),r(i,t,void 0,e),e.currentTarget=null}function s(e){return null===e||"object"!=typeof e?null:(e=Zr&&e[Zr]||e["@@iterator"],"function"==typeof e?e:null)}function a(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then(function(t){0===e._status&&(t=t["default"],e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}}function u(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Vr:return"Fragment";case zr:return"Portal";case Wr:return"Profiler";case Ur:return"StrictMode";case Xr:return"Suspense";case Gr:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case $r:return"Context.Consumer";case Br:return"Context.Provider";case Yr:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Kr:return u(e.type);case Jr:return u(e.render);case Qr:if(e=1===e._status?e._result:null)return u(e)}return null}function l(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var i=e._debugOwner,r=e._debugSource,o=u(e.type);n=null,i&&(n=u(i.type)),i=o,o="",r?o=" (at "+r.fileName.replace(Fr,"")+":"+r.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(i||"Unknown")+o}t+=n,e=e["return"]}while(e);return t}function c(){if(eo)for(var e in to){var t=to[e],i=eo.indexOf(e);if(!(i>-1))throw Error(n(96,e));if(!no[i]){if(!t.extractEvents)throw Error(n(97,e));no[i]=t,i=t.eventTypes;for(var r in i){var o=void 0,s=i[r],a=t,u=r;if(io.hasOwnProperty(u))throw Error(n(99,u));io[u]=s;var l=s.phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&h(l[o],a,u);o=!0}else s.registrationName?(h(s.registrationName,a,u),o=!0):o=!1;if(!o)throw Error(n(98,r,e))}}}}function h(e,t,i){if(ro[e])throw Error(n(100,e));ro[e]=t,oo[e]=t.eventTypes[i].dependencies}function f(e){var t,i=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!to.hasOwnProperty(t)||to[t]!==r){if(to[t])throw Error(n(102,t));to[t]=r,i=!0}}i&&c()}function p(e){if(e=jr(e)){if("function"!=typeof uo)throw Error(n(280));var t=e.stateNode;t&&(t=Nr(t),uo(e.stateNode,e.type,t))}}function d(e){lo?co?co.push(e):co=[e]:lo=e}function g(){if(lo){var e=lo,t=co;if(co=lo=null,p(e),t)for(e=0;e<t.length;e++)p(t[e])}}function v(){(null!==lo||null!==co)&&(po(),g())}function m(e,t,n){if(mo)return e(t,n);mo=!0;try{return go(e,t,n)}finally{mo=!1,v()}}function y(e){return Io.call(jo,e)?!0:Io.call(No,e)?!1:Ao.test(e)?jo[e]=!0:(No[e]=!0,!1)}function b(e,t,n,i){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:null!==n?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),"data-"!==e&&"aria-"!==e);default:return!1}}function _(e,t,n,i){if(null===t||"undefined"==typeof t||b(e,t,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function w(e,t,n,i,r,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=i,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}function x(e,t,n,i){var r=Ro.hasOwnProperty(t)?Ro[t]:null,o=null!==r?0===r.type:i?!1:!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1]?!1:!0;o||(_(t,n,r,i)&&(n=null),i||null===r?y(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3===r.type?!1:"":n:(t=r.attributeName,i=r.attributeNamespace,null===n?e.removeAttribute(t):(r=r.type,n=3===r||4===r&&!0===n?"":""+n,i?e.setAttributeNS(i,t,n):e.setAttribute(t,n))))}function k(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function C(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function T(e){var t=C(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!=typeof n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){i=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(e){i=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function E(e){e._valueTracker||(e._valueTracker=T(e))}function S(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=C(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function D(e,t){var n=t.checked;return ao({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function O(e,t){var n=null==t.defaultValue?"":t.defaultValue,i=null!=t.checked?t.checked:t.defaultChecked;n=k(null!=t.value?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function P(e,t){t=t.checked,null!=t&&x(e,"checked",t,!1)}function A(e,t){P(e,t);var n=k(t.value),i=t.type;if(null!=n)"number"===i?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===i||"reset"===i)return void e.removeAttribute("value");t.hasOwnProperty("value")?N(e,t.type,n):t.hasOwnProperty("defaultValue")&&N(e,t.type,k(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function I(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!("submit"!==i&&"reset"!==i||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,""!==n&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function N(e,t,n){("number"!==t||e.ownerDocument.activeElement!==e)&&(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function j(e){var n="";return t.Children.forEach(e,function(e){null!=e&&(n+=e)}),n}function R(e,t){return e=ao({children:void 0},t),(t=j(t.children))&&(e.children=t),e}function M(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+k(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(i&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function F(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return ao({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function L(e,t){var i=t.value;if(null==i){if(i=t.children,t=t.defaultValue,null!=i){if(null!=t)throw Error(n(92));if(Array.isArray(i)){if(!(1>=i.length))throw Error(n(93));i=i[0]}t=i}null==t&&(t=""),i=t}e._wrapperState={initialValue:k(i)}}function H(e,t){var n=k(t.value),i=k(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=i&&(e.defaultValue=""+i)}function z(e,t){t=e.textContent,t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function V(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function U(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?V(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}function W(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}function B(e){if(Uo[e])return Uo[e];if(!Vo[e])return e;var t,n=Vo[e];for(t in n)if(n.hasOwnProperty(t)&&t in Wo)return Uo[e]=n[t];return e}function $(e){var t=Go.get(e);return void 0===t&&(t=new Map,Go.set(e,t)),t}function q(e){var t=e,n=e;if(e.alternate)for(;t["return"];)t=t["return"];else{e=t;do t=e,0!==(1026&t.effectTag)&&(n=t["return"]),e=t["return"];while(e)}return 3===t.tag?n:null}function Y(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(e=e.alternate,null!==e&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function X(e){if(q(e)!==e)throw Error(n(188))}function G(e){var t=e.alternate;if(!t){if(t=q(e),null===t)throw Error(n(188));return t!==e?null:e}for(var i=e,r=t;;){var o=i["return"];if(null===o)break;var s=o.alternate;if(null===s){if(r=o["return"],null!==r){i=r;continue}break}if(o.child===s.child){for(s=o.child;s;){if(s===i)return X(o),e;if(s===r)return X(o),t;s=s.sibling}throw Error(n(188))}if(i["return"]!==r["return"])i=o,r=s;else{for(var a=!1,u=o.child;u;){if(u===i){a=!0,i=o,r=s;break}if(u===r){a=!0,r=o,i=s;break}u=u.sibling}if(!a){for(u=s.child;u;){if(u===i){a=!0,i=s,r=o;break}if(u===r){a=!0,r=s,i=o;break}u=u.sibling}if(!a)throw Error(n(189))}}if(i.alternate!==r)throw Error(n(190))}if(3!==i.tag)throw Error(n(188));return i.stateNode.current===i?e:t}function K(e){if(e=G(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child["return"]=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t["return"]||t["return"]===e)return null;t=t["return"]}t.sibling["return"]=t["return"],t=t.sibling}}return null}function Q(e,t){if(null==t)throw Error(n(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function J(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}function Z(e){if(null!==e&&(Ko=Q(Ko,e)),e=Ko,Ko=null,e){if(J(e,Qo),Ko)throw Error(n(95));if(Pr)throw e=Ar,Pr=!1,Ar=null,e}}function ee(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function te(e){if(!so)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t="function"==typeof t[e]),t}function ne(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Jo.length&&Jo.push(e)}function ie(e,t,n,i){if(Jo.length){var r=Jo.pop();return r.topLevelType=e,r.eventSystemFlags=i,r.nativeEvent=t,r.targetInst=n,r}return{topLevelType:e,eventSystemFlags:i,nativeEvent:t,targetInst:n,ancestors:[]}}function re(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var i=n;if(3===i.tag)i=i.stateNode.containerInfo;else{for(;i["return"];)i=i["return"];i=3!==i.tag?null:i.stateNode.containerInfo}if(!i)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=ze(i)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=ee(e.nativeEvent);i=e.topLevelType;var o=e.nativeEvent,s=e.eventSystemFlags;0===n&&(s|=64);for(var a=null,u=0;u<no.length;u++){var l=no[u];l&&(l=l.extractEvents(i,t,o,r,s))&&(a=Q(a,l))}Z(a)}}function oe(e,t,n){if(!n.has(e)){switch(e){case"scroll":be(t,"scroll",!0);break;case"focus":case"blur":be(t,"focus",!0),be(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":te(e)&&be(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xo.indexOf(e)&&ye(e,t)}n.set(e,null)}}function se(e,t){var n=$(t);as.forEach(function(e){oe(e,t,n)}),us.forEach(function(e){oe(e,t,n)})}function ae(e,t,n,i,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r,container:i}}function ue(e,t){switch(e){case"focus":case"blur":ts=null;break;case"dragenter":case"dragleave":ns=null;break;case"mouseover":case"mouseout":is=null;break;case"pointerover":case"pointerout":rs["delete"](t.pointerId);break;case"gotpointercapture":case"lostpointercapture":os["delete"](t.pointerId)}}function le(e,t,n,i,r,o){return null===e||e.nativeEvent!==o?(e=ae(t,n,i,r,o),null!==t&&(t=Ve(t),null!==t&&Sl(t)),e):(e.eventSystemFlags|=i,e)}function ce(e,t,n,i,r){switch(t){case"focus":return ts=le(ts,e,t,n,i,r),!0;case"dragenter":return ns=le(ns,e,t,n,i,r),!0;case"mouseover":return is=le(is,e,t,n,i,r),!0;case"pointerover":var o=r.pointerId;return rs.set(o,le(rs.get(o)||null,e,t,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,os.set(o,le(os.get(o)||null,e,t,n,i,r)),!0}return!1}function he(e){var t=ze(e.target);if(null!==t){var n=q(t);if(null!==n)if(t=n.tag,13===t){if(t=Y(n),null!==t)return e.blockedOn=t,void Co(e.priority,function(){Dl(n)})}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function fe(e){if(null!==e.blockedOn)return!1;var t=ke(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Ve(t);return null!==n&&Sl(n),e.blockedOn=t,!1}return!0}function pe(e,t,n){fe(e)&&n["delete"](t)}function de(){for(Zo=!1;0<es.length;){var e=es[0];if(null!==e.blockedOn){e=Ve(e.blockedOn),null!==e&&El(e);break}var t=ke(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:es.shift()}null!==ts&&fe(ts)&&(ts=null),null!==ns&&fe(ns)&&(ns=null),null!==is&&fe(is)&&(is=null),rs.forEach(pe),os.forEach(pe)}function ge(e,t){e.blockedOn===t&&(e.blockedOn=null,Zo||(Zo=!0,wo(Do,de)))}function ve(e){if(0<es.length){ge(es[0],e);for(var t=1;t<es.length;t++){var n=es[t];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==ts&&ge(ts,e),null!==ns&&ge(ns,e),null!==is&&ge(is,e),t=function(t){return ge(t,e)},rs.forEach(t),os.forEach(t),t=0;t<ss.length;t++)n=ss[t],n.blockedOn===e&&(n.blockedOn=null);for(;0<ss.length&&(t=ss[0],null===t.blockedOn);)he(t),null===t.blockedOn&&ss.shift()}function me(e,t){for(var n=0;n<e.length;n+=2){var i=e[n],r=e[n+1],o="on"+(r[0].toUpperCase()+r.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[i],eventPriority:t},hs.set(i,t),cs.set(i,o),ls[r]=o}}function ye(e,t){be(t,e,!1)}function be(e,t,n){var i=hs.get(t);switch(void 0===i?2:i){case 0:i=_e.bind(null,t,1,e);break;case 1:i=we.bind(null,t,1,e);break;default:i=xe.bind(null,t,1,e)}n?e.addEventListener(t,i,!0):e.addEventListener(t,i,!1)}function _e(e,t,n,i){vo||po();var r=xe,o=vo;vo=!0;try{fo(r,e,t,n,i)}finally{(vo=o)||v()}}function we(e,t,n,i){ds(ps,xe.bind(null,e,t,n,i))}function xe(e,t,n,i){if(gs)if(0<es.length&&-1<as.indexOf(e))e=ae(null,e,t,n,i),es.push(e);else{var r=ke(e,t,n,i);if(null===r)ue(e,i);else if(-1<as.indexOf(e))e=ae(r,e,t,n,i),es.push(e);else if(!ce(r,e,t,n,i)){ue(e,i),e=ie(e,i,null,t);try{m(re,e)}finally{ne(e)}}}}function ke(e,t,n,i){if(n=ee(i),n=ze(n),null!==n){var r=q(n);if(null===r)n=null;else{var o=r.tag;if(13===o){if(n=Y(r),null!==n)return n;n=null}else if(3===o){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}e=ie(e,i,n,t);try{m(re,e)}finally{ne(e)}return null}function Ce(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||vs.hasOwnProperty(e)&&vs[e]?(""+t).trim():t+"px"}function Te(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=0===n.indexOf("--"),r=Ce(n,t[n],i);"float"===n&&(n="cssFloat"),i?e.setProperty(n,r):e[n]=r}}function Ee(e,t){if(t){if(ys[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62,""))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function De(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=$(e);t=oo[t];for(var i=0;i<t.length;i++)oe(t[i],e,n)}function Oe(){}function Pe(e){if(e=e||("undefined"!=typeof document?document:void 0),"undefined"==typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ae(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ie(e,t){var n=Ae(e);e=0;for(var i;n;){if(3===n.nodeType){if(i=e+n.textContent.length,t>=e&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ae(n)}}function Ne(e,t){return e&&t?e===t?!0:e&&3===e.nodeType?!1:t&&3===t.nodeType?Ne(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}function je(){for(var e=window,t=Pe();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(i){n=!1}if(!n)break;e=t.contentWindow,t=Pe(e.document)}return t}function Re(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Me(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Fe(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function Le(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function He(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===bs||n===xs||n===ws){if(0===t)return e;t--}else n===_s&&t++}e=e.previousSibling}return null}function ze(e){var t=e[Ds];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ps]||n[Ds]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=He(e);null!==e;){if(n=e[Ds])return n;e=He(e)}return t}e=n,n=e.parentNode}return null}function Ve(e){return e=e[Ds]||e[Ps],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ue(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function We(e){return e[Os]||null}function Be(e){do e=e["return"];while(e&&5!==e.tag);return e?e:null}function $e(e,t){var i=e.stateNode;if(!i)return null;var r=Nr(i);if(!r)return null;i=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(i&&"function"!=typeof i)throw Error(n(231,t,typeof i));return i}function qe(e,t,n){(t=$e(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=Q(n._dispatchListeners,t),n._dispatchInstances=Q(n._dispatchInstances,e))}function Ye(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Be(t);for(t=n.length;0<t--;)qe(n[t],"captured",e);for(t=0;t<n.length;t++)qe(n[t],"bubbled",e)}}function Xe(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=$e(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=Q(n._dispatchListeners,t),n._dispatchInstances=Q(n._dispatchInstances,e))}function Ge(e){e&&e.dispatchConfig.registrationName&&Xe(e._targetInst,null,e)}function Ke(e){J(e,Ye)}function Qe(){if(Ns)return Ns;var e,t,n=Is,i=n.length,r="value"in As?As.value:As.textContent,o=r.length;for(e=0;i>e&&n[e]===r[e];e++);var s=i-e;for(t=1;s>=t&&n[i-t]===r[o-t];t++);return Ns=r.slice(e,t>1?1-t:void 0)}function Je(){return!0}function Ze(){return!1}function et(e,t,n,i){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface;for(var r in e)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=i:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Je:Ze,this.isPropagationStopped=Ze,this}function tt(e,t,n,i){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,i),r}return new this(e,t,n,i)}function nt(e){if(!(e instanceof this))throw Error(n(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function it(e){e.eventPool=[],e.getPooled=tt,e.release=nt}function rt(e,t){switch(e){case"keyup":return-1!==Ms.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ot(e){return e=e.detail,"object"==typeof e&&"data"in e?e.data:null}function st(e,t){switch(e){case"compositionend":return ot(t);case"keypress":return 32!==t.which?null:(Ws=!0,Vs);case"textInput":return e=t.data,e===Vs&&Ws?null:e;default:return null}}function at(e,t){if(Bs)return"compositionend"===e||!Fs&&rt(e,t)?(e=Qe(),Ns=Is=As=null,Bs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t["char"]&&1<t["char"].length)return t["char"];if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zs&&"ko"!==t.locale?null:t.data;default:return null}}function ut(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qs[e.type]:"textarea"===t?!0:!1}function lt(e,t,n){return e=et.getPooled(Ys.change,e,t,n),e.type="change",d(n),Ke(e),e}function ct(e){Z(e)}function ht(e){var t=Ue(e);return S(t)?e:void 0}function ft(e,t){return"change"===e?t:void 0}function pt(){Xs&&(Xs.detachEvent("onpropertychange",dt),Gs=Xs=null)}function dt(e){if("value"===e.propertyName&&ht(Gs))if(e=lt(Gs,e,ee(e)),vo)Z(e);else{vo=!0;try{ho(ct,e)}finally{vo=!1,v()}}}function gt(e,t,n){"focus"===e?(pt(),Xs=t,Gs=n,Xs.attachEvent("onpropertychange",dt)):"blur"===e&&pt()}function vt(e,t){return"selectionchange"===e||"keyup"===e||"keydown"===e?ht(Gs):void 0}function mt(e,t){return"click"===e?ht(t):void 0}function yt(e,t){return"input"===e||"change"===e?ht(t):void 0}function bt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zs[e])?!!t[e]:!1}function _t(e){return bt}function wt(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}function xt(e,t){if(ua(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!la.call(t,n[i])||!ua(e[n[i]],t[n[i]]))return!1;return!0}function kt(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return ga||null==fa||fa!==Pe(n)?null:(n=fa,"selectionStart"in n&&Re(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),da&&xt(da,n)?null:(da=n,e=et.getPooled(ha.select,pa,e,t),e.type="select",e.target=fa,Ke(e),e))}function Ct(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,0===e&&13===t&&(e=13)):e=t,10===e&&(e=13),e>=32||13===e?e:0}function Tt(e,t){0>Oa||(e.current=Da[Oa],Da[Oa]=null,Oa--)}function Et(e,t,n){Oa++,Da[Oa]=e.current,e.current=t}function St(e,t){var n=e.type.contextTypes;if(!n)return Pa;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var r,o={};for(r in n)o[r]=t[r];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Dt(e){return e=e.childContextTypes,null!==e&&void 0!==e}function Ot(e,t,i){if(Aa.current!==Pa)throw Error(n(168));Et(Aa,t),Et(Ia,i)}function Pt(e,t,i){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return i;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(n(108,u(t)||"Unknown",o));return ao({},i,{},r)}function At(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pa,Na=Aa.current,Et(Aa,e),Et(Ia,Ia.current),!0}function It(e,t,i){var r=e.stateNode;if(!r)throw Error(n(169));i?(e=Pt(e,t,Na),r.__reactInternalMemoizedMergedChildContext=e,Tt(Ia),Tt(Aa),Et(Aa,e)):Tt(Ia),Et(Ia,i)}function Nt(){switch(Fa()){case La:return 99;case Ha:return 98;case za:return 97;case Va:return 96;case Ua:return 95;default:throw Error(n(332))}}function jt(e){switch(e){case 99:return La;case 98:return Ha;case 97:return za;case 96:return Va;case 95:return Ua;default:throw Error(n(332))}}function Rt(e,t){return e=jt(e),ja(e,t)}function Mt(e,t,n){return e=jt(e),Ra(e,t,n)}function Ft(e){return null===qa?(qa=[e],Ya=Ra(La,Ht)):qa.push(e),Wa}function Lt(){if(null!==Ya){var e=Ya;Ya=null,Ma(e)}Ht()}function Ht(){if(!Xa&&null!==qa){Xa=!0;var e=0;try{var t=qa;Rt(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(null!==n)}}),qa=null}catch(n){throw null!==qa&&(qa=qa.slice(e+1)),Ra(La,Lt),n}finally{Xa=!1}}}function zt(e,t,n){return n/=10,1073741821-(((1073741821-e+t/10)/n|0)+1)*n}function Vt(e,t){if(e&&e.defaultProps){t=ao({},t),e=e.defaultProps;for(var n in e)void 0===t[n]&&(t[n]=e[n])}return t}function Ut(){eu=Za=Ja=null}function Wt(e){var t=Qa.current;Tt(Qa),e.type._context._currentValue=t}function Bt(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e["return"]}}function $t(e,t){Ja=e,eu=Za=null,e=e.dependencies,null!==e&&null!==e.firstContext&&(e.expirationTime>=t&&(Pu=!0),e.firstContext=null)}function qt(e,t){if(eu!==e&&!1!==t&&0!==t)if(("number"!=typeof t||1073741823===t)&&(eu=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Za){if(null===Ja)throw Error(n(308));Za=t,Ja.dependencies={expirationTime:0,firstContext:t,responders:null}}else Za=Za.next=t;return e._currentValue}function Yt(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Xt(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function Gt(e,t){return e={expirationTime:e,suspenseConfig:t,tag:tu,payload:null,callback:null,next:null},e.next=e}function Kt(e,t){if(e=e.updateQueue,null!==e){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Qt(e,t){var n=e.alternate;null!==n&&Xt(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function Jt(e,t,n,i){var r=e.updateQueue;iu=!1;var o=r.baseQueue,s=r.shared.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}o=s,r.shared.pending=null,a=e.alternate,null!==a&&(a=a.updateQueue,null!==a&&(a.baseQueue=s))}if(null!==o){a=o.next;var u=r.baseState,l=0,c=null,h=null,f=null;if(null!==a)for(var p=a;;){if(s=p.expirationTime,i>s){var d={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===f?(h=f=d,c=u):f=f.next=d,s>l&&(l=s)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),Vi(s,p.suspenseConfig);e:{var g=e,v=p;switch(s=t,d=n,v.tag){case 1:if(g=v.payload,"function"==typeof g){u=g.call(d,u,s);break e}u=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case tu:if(g=v.payload,s="function"==typeof g?g.call(d,u,s):g,null===s||void 0===s)break e;u=ao({},u,s);break e;case nu:iu=!0}}null!==p.callback&&(e.effectTag|=32,s=r.effects,null===s?r.effects=[p]:s.push(p))}if(p=p.next,null===p||p===a){if(s=r.shared.pending,null===s)break;p=o.next=s.next,s.next=a,r.baseQueue=o=s,r.shared.pending=null}}null===f?c=u:f.next=h,r.baseState=c,r.baseQueue=f,Ui(l),e.expirationTime=l,e.memoizedState=u}}function Zt(e,t,i){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=i,"function"!=typeof r)throw Error(n(191,r));r.call(o)}}}function en(e,t,n,i){t=e.memoizedState,n=n(i,t),n=null===n||void 0===n?t:ao({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}function tn(e,t,n,i,r,o,s){return e=e.stateNode,"function"==typeof e.shouldComponentUpdate?e.shouldComponentUpdate(i,o,s):t.prototype&&t.prototype.isPureReactComponent?!xt(n,i)||!xt(r,o):!0}function nn(e,t,n){var i=!1,r=Pa,o=t.contextType;return"object"==typeof o&&null!==o?o=qt(o):(r=Dt(t)?Na:Aa.current,i=t.contextTypes,o=(i=null!==i&&void 0!==i)?St(e,r):Pa),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=su,e.stateNode=t,t._reactInternalFiber=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=o),t}function rn(e,t,n,i){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,i),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&su.enqueueReplaceState(t,t.state,null)}function on(e,t,n,i){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=ou,Yt(e);var o=t.contextType;"object"==typeof o&&null!==o?r.context=qt(o):(o=Dt(t)?Na:Aa.current,r.context=St(e,o)),Jt(e,n,r,i),r.state=e.memoizedState,o=t.getDerivedStateFromProps,"function"==typeof o&&(en(e,t,o,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&su.enqueueReplaceState(r,r.state,null),Jt(e,n,r,i),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}function sn(e,t,i){if(e=i.ref,null!==e&&"function"!=typeof e&&"object"!=typeof e){if(i._owner){if(i=i._owner){if(1!==i.tag)throw Error(n(309));var r=i.stateNode}if(!r)throw Error(n(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===ou&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(n(284));if(!i._owner)throw Error(n(290,e))}return e}function an(e,t){if("textarea"!==e.type)throw Error(n(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function un(e){function t(t,n){if(e){var i=t.lastEffect;null!==i?(i.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function i(n,i){if(!e)return null;for(;null!==i;)t(n,i),i=i.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return e=ar(e,t),e.index=0,e.sibling=null,e}function a(t,n,i){return t.index=i,e?(i=t.alternate,null!==i?(i=i.index,n>i?(t.effectTag=2,n):i):(t.effectTag=2,n)):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,i){return null===t||6!==t.tag?(t=cr(n,e.mode,i),t["return"]=e,t):(t=o(t,n),t["return"]=e,t)}function c(e,t,n,i){return null!==t&&t.elementType===n.type?(i=o(t,n.props),i.ref=sn(e,t,n),i["return"]=e,i):(i=ur(n.type,n.key,n.props,null,e.mode,i),i.ref=sn(e,t,n),i["return"]=e,i)}function h(e,t,n,i){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=hr(n,e.mode,i),t["return"]=e,t):(t=o(t,n.children||[]),t["return"]=e,
- t)}function f(e,t,n,i,r){return null===t||7!==t.tag?(t=lr(n,e.mode,i,r),t["return"]=e,t):(t=o(t,n),t["return"]=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return t=cr(""+t,e.mode,n),t["return"]=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Hr:return n=ur(t.type,t.key,t.props,null,e.mode,n),n.ref=sn(e,null,t),n["return"]=e,n;case zr:return t=hr(t,e.mode,n),t["return"]=e,t}if(au(t)||s(t))return t=lr(t,e.mode,n,null),t["return"]=e,t;an(e,t)}return null}function d(e,t,n,i){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:l(e,t,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Hr:return n.key===r?n.type===Vr?f(e,t,n.props.children,i,r):c(e,t,n,i):null;case zr:return n.key===r?h(e,t,n,i):null}if(au(n)||s(n))return null!==r?null:f(e,t,n,i,null);an(e,n)}return null}function g(e,t,n,i,r){if("string"==typeof i||"number"==typeof i)return e=e.get(n)||null,l(t,e,""+i,r);if("object"==typeof i&&null!==i){switch(i.$$typeof){case Hr:return e=e.get(null===i.key?n:i.key)||null,i.type===Vr?f(t,e,i.props.children,r,i.key):c(t,e,i,r);case zr:return e=e.get(null===i.key?n:i.key)||null,h(t,e,i,r)}if(au(i)||s(i))return e=e.get(n)||null,f(t,e,i,r,null);an(t,i)}return null}function v(n,o,s,u){for(var l=null,c=null,h=o,f=o=0,v=null;null!==h&&f<s.length;f++){h.index>f?(v=h,h=null):v=h.sibling;var m=d(n,h,s[f],u);if(null===m){null===h&&(h=v);break}e&&h&&null===m.alternate&&t(n,h),o=a(m,o,f),null===c?l=m:c.sibling=m,c=m,h=v}if(f===s.length)return i(n,h),l;if(null===h){for(;f<s.length;f++)h=p(n,s[f],u),null!==h&&(o=a(h,o,f),null===c?l=h:c.sibling=h,c=h);return l}for(h=r(n,h);f<s.length;f++)v=g(h,n,f,s[f],u),null!==v&&(e&&null!==v.alternate&&h["delete"](null===v.key?f:v.key),o=a(v,o,f),null===c?l=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return t(n,e)}),l}function m(o,u,l,c){var h=s(l);if("function"!=typeof h)throw Error(n(150));if(l=h.call(l),null==l)throw Error(n(151));for(var f=h=null,v=u,m=u=0,y=null,b=l.next();null!==v&&!b.done;m++,b=l.next()){v.index>m?(y=v,v=null):y=v.sibling;var _=d(o,v,b.value,c);if(null===_){null===v&&(v=y);break}e&&v&&null===_.alternate&&t(o,v),u=a(_,u,m),null===f?h=_:f.sibling=_,f=_,v=y}if(b.done)return i(o,v),h;if(null===v){for(;!b.done;m++,b=l.next())b=p(o,b.value,c),null!==b&&(u=a(b,u,m),null===f?h=b:f.sibling=b,f=b);return h}for(v=r(o,v);!b.done;m++,b=l.next())b=g(v,o,m,b.value,c),null!==b&&(e&&null!==b.alternate&&v["delete"](null===b.key?m:b.key),u=a(b,u,m),null===f?h=b:f.sibling=b,f=b);return e&&v.forEach(function(e){return t(o,e)}),h}return function(e,r,a,l){var c="object"==typeof a&&null!==a&&a.type===Vr&&null===a.key;c&&(a=a.props.children);var h="object"==typeof a&&null!==a;if(h)switch(a.$$typeof){case Hr:e:{for(h=a.key,c=r;null!==c;){if(c.key===h){switch(c.tag){case 7:if(a.type===Vr){i(e,c.sibling),r=o(c,a.props.children),r["return"]=e,e=r;break e}break;default:if(c.elementType===a.type){i(e,c.sibling),r=o(c,a.props),r.ref=sn(e,c,a),r["return"]=e,e=r;break e}}i(e,c);break}t(e,c),c=c.sibling}a.type===Vr?(r=lr(a.props.children,e.mode,l,a.key),r["return"]=e,e=r):(l=ur(a.type,a.key,a.props,null,e.mode,l),l.ref=sn(e,r,a),l["return"]=e,e=l)}return u(e);case zr:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){i(e,r.sibling),r=o(r,a.children||[]),r["return"]=e,e=r;break e}i(e,r);break}t(e,r),r=r.sibling}r=hr(a,e.mode,l),r["return"]=e,e=r}return u(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(i(e,r.sibling),r=o(r,a),r["return"]=e,e=r):(i(e,r),r=cr(a,e.mode,l),r["return"]=e,e=r),u(e);if(au(a))return v(e,r,a,l);if(s(a))return m(e,r,a,l);if(h&&an(e,a),"undefined"==typeof a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(n(152,e.displayName||e.name||"Component"))}return i(e,r)}}function ln(e){if(e===cu)throw Error(n(174));return e}function cn(e,t){switch(Et(pu,t),Et(fu,e),Et(hu,cu),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:U(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=U(t,e)}Tt(hu),Et(hu,t)}function hn(e){Tt(hu),Tt(fu),Tt(pu)}function fn(e){ln(pu.current);var t=ln(hu.current),n=U(t,e.type);t!==n&&(Et(fu,e),Et(hu,n))}function pn(e){fu.current===e&&(Tt(hu),Tt(fu))}function dn(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||n.data===ws||n.data===xs))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child["return"]=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t["return"]||t["return"]===e)return null;t=t["return"]}t.sibling["return"]=t["return"],t=t.sibling}return null}function gn(e,t){return{responder:e,props:t}}function vn(){throw Error(n(321))}function mn(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ua(e[n],t[n]))return!1;return!0}function yn(e,t,i,r,o,s){if(mu=s,yu=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,gu.current=null===e||null===e.memoizedState?ku:Cu,e=i(r,o),t.expirationTime===mu){s=0;do{if(t.expirationTime=0,!(25>s))throw Error(n(301));s+=1,_u=bu=null,t.updateQueue=null,gu.current=Tu,e=i(r,o)}while(t.expirationTime===mu)}if(gu.current=xu,t=null!==bu&&null!==bu.next,mu=0,_u=bu=yu=null,wu=!1,t)throw Error(n(300));return e}function bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===_u?yu.memoizedState=_u=e:_u=_u.next=e,_u}function _n(){if(null===bu){var e=yu.alternate;e=null!==e?e.memoizedState:null}else e=bu.next;var t=null===_u?yu.memoizedState:_u.next;if(null!==t)_u=t,bu=e;else{if(null===e)throw Error(n(310));bu=e,e={memoizedState:bu.memoizedState,baseState:bu.baseState,baseQueue:bu.baseQueue,queue:bu.queue,next:null},null===_u?yu.memoizedState=_u=e:_u=_u.next=e}return _u}function wn(e,t){return"function"==typeof t?t(e):t}function xn(e,t,i){if(t=_n(),i=t.queue,null===i)throw Error(n(311));i.lastRenderedReducer=e;var r=bu,o=r.baseQueue,s=i.pending;if(null!==s){if(null!==o){var a=o.next;o.next=s.next,s.next=a}r.baseQueue=o=s,i.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=a=s=null,l=o;do{var c=l.expirationTime;if(mu>c){var h={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(a=u=h,s=r):u=u.next=h,c>yu.expirationTime&&(yu.expirationTime=c,Ui(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),Vi(c,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==o);null===u?s=r:u.next=a,ua(r,t.memoizedState)||(Pu=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,i.lastRenderedState=r}return[t.memoizedState,i.dispatch]}function kn(e,t,i){if(t=_n(),i=t.queue,null===i)throw Error(n(311));i.lastRenderedReducer=e;var r=i.dispatch,o=i.pending,s=t.memoizedState;if(null!==o){i.pending=null;var a=o=o.next;do s=e(s,a.action),a=a.next;while(a!==o);ua(s,t.memoizedState)||(Pu=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),i.lastRenderedState=s}return[s,r]}function Cn(e){var t=bn();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:wn,lastRenderedState:e},e=e.dispatch=Hn.bind(null,yu,e),[t.memoizedState,e]}function Tn(e,t,n,i){return e={tag:e,create:t,destroy:n,deps:i,next:null},t=yu.updateQueue,null===t?(t={lastEffect:null},yu.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e)),e}function En(e){return _n().memoizedState}function Sn(e,t,n,i){var r=bn();yu.effectTag|=e,r.memoizedState=Tn(1|t,n,void 0,void 0===i?null:i)}function Dn(e,t,n,i){var r=_n();i=void 0===i?null:i;var o=void 0;if(null!==bu){var s=bu.memoizedState;if(o=s.destroy,null!==i&&mn(i,s.deps))return void Tn(t,n,o,i)}yu.effectTag|=e,r.memoizedState=Tn(1|t,n,o,i)}function On(e,t){return Sn(516,4,e,t)}function Pn(e,t){return Dn(516,4,e,t)}function An(e,t){return Dn(4,2,e,t)}function In(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Nn(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Dn(4,2,In.bind(null,t,e),n)}function jn(e,t){}function Rn(e,t){return bn().memoizedState=[e,void 0===t?null:t],e}function Mn(e,t){var n=_n();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&mn(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Fn(e,t){var n=_n();t=void 0===t?null:t;var i=n.memoizedState;return null!==i&&null!==t&&mn(t,i[1])?i[0]:(e=e(),n.memoizedState=[e,t],e)}function Ln(e,t,n){var i=Nt();Rt(98>i?98:i,function(){e(!0)}),Rt(i>97?97:i,function(){var i=vu.suspense;vu.suspense=void 0===t?null:t;try{e(!1),n()}finally{vu.suspense=i}})}function Hn(e,t,n){var i=Di(),r=ru.suspense;i=Oi(i,e,r),r={expirationTime:i,suspenseConfig:r,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?r.next=r:(r.next=o.next,o.next=r),t.pending=r,o=e.alternate,e===yu||null!==o&&o===yu)wu=!0,r.expirationTime=mu,yu.expirationTime=mu;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&(o=t.lastRenderedReducer,null!==o))try{var s=t.lastRenderedState,a=o(s,n);if(r.eagerReducer=o,r.eagerState=a,ua(a,s))return}catch(u){}finally{}wl(e,i)}}function zn(e,t){var n=Tl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n["return"]=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Vn(e,t){switch(e.tag){case 5:var n=e.type;return t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,null!==t?(e.stateNode=t,!0):!1;case 6:return t=""===e.pendingProps||3!==t.nodeType?null:t,null!==t?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Un(e){if(Du){var t=Su;if(t){var n=t;if(!Vn(e,t)){if(t=Le(n.nextSibling),!t||!Vn(e,t))return e.effectTag=-1025&e.effectTag|2,Du=!1,void(Eu=e);zn(Eu,n)}Eu=e,Su=Le(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Du=!1,Eu=e}}function Wn(e){for(e=e["return"];null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e["return"];Eu=e}function Bn(e){if(e!==Eu)return!1;if(!Du)return Wn(e),Du=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Fe(t,e.memoizedProps))for(t=Su;t;)zn(e,t),t=Le(t.nextSibling);if(Wn(e),13===e.tag){if(e=e.memoizedState,e=null!==e?e.dehydrated:null,!e)throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var i=e.data;if(i===_s){if(0===t){Su=Le(e.nextSibling);break e}t--}else i!==bs&&i!==xs&&i!==ws||t++}e=e.nextSibling}Su=null}}else Su=Eu?Le(e.stateNode.nextSibling):null;return!0}function $n(){Su=Eu=null,Du=!1}function qn(e,t,n,i){t.child=null===e?lu(t,null,n,i):uu(t,e.child,n,i)}function Yn(e,t,n,i,r){n=n.render;var o=t.ref;return $t(t,r),i=yn(e,t,n,i,o,r),null===e||Pu?(t.effectTag|=1,qn(e,t,i,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),oi(e,t,r))}function Xn(e,t,n,i,r,o){if(null===e){var s=n.type;return"function"!=typeof s||or(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?(e=ur(n.type,null,i,null,t.mode,o),e.ref=t.ref,e["return"]=t,t.child=e):(t.tag=15,t.type=s,Gn(e,t,s,i,r,o))}return s=e.child,o>r&&(r=s.memoizedProps,n=n.compare,n=null!==n?n:xt,n(r,i)&&e.ref===t.ref)?oi(e,t,o):(t.effectTag|=1,e=ar(s,i),e.ref=t.ref,e["return"]=t,t.child=e)}function Gn(e,t,n,i,r,o){return null!==e&&xt(e.memoizedProps,i)&&e.ref===t.ref&&(Pu=!1,o>r)?(t.expirationTime=e.expirationTime,oi(e,t,o)):Qn(e,t,n,i,o)}function Kn(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Qn(e,t,n,i,r){var o=Dt(n)?Na:Aa.current;return o=St(t,o),$t(t,r),n=yn(e,t,n,i,o,r),null===e||Pu?(t.effectTag|=1,qn(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),oi(e,t,r))}function Jn(e,t,n,i,r){if(Dt(n)){var o=!0;At(t)}else o=!1;if($t(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),nn(t,n,i),on(t,n,i,r),i=!0;else if(null===e){var s=t.stateNode,a=t.memoizedProps;s.props=a;var u=s.context,l=n.contextType;"object"==typeof l&&null!==l?l=qt(l):(l=Dt(n)?Na:Aa.current,l=St(t,l));var c=n.getDerivedStateFromProps,h="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate;h||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==i||u!==l)&&rn(t,s,i,l),iu=!1;var f=t.memoizedState;s.state=f,Jt(t,i,s,r),u=t.memoizedState,a!==i||f!==u||Ia.current||iu?("function"==typeof c&&(en(t,n,c,i),u=t.memoizedState),(a=iu||tn(t,n,a,i,f,u,l))?(h||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=i,t.memoizedState=u),s.props=i,s.state=u,s.context=l,i=a):("function"==typeof s.componentDidMount&&(t.effectTag|=4),i=!1)}else s=t.stateNode,Xt(e,t),a=t.memoizedProps,s.props=t.type===t.elementType?a:Vt(t.type,a),u=s.context,l=n.contextType,"object"==typeof l&&null!==l?l=qt(l):(l=Dt(n)?Na:Aa.current,l=St(t,l)),c=n.getDerivedStateFromProps,(h="function"==typeof c||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(a!==i||u!==l)&&rn(t,s,i,l),iu=!1,u=t.memoizedState,s.state=u,Jt(t,i,s,r),f=t.memoizedState,a!==i||u!==f||Ia.current||iu?("function"==typeof c&&(en(t,n,c,i),f=t.memoizedState),(c=iu||tn(t,n,a,i,u,f,l))?(h||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(i,f,l),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(i,f,l)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=i,t.memoizedState=f),s.props=i,s.state=f,s.context=l,i=c):("function"!=typeof s.componentDidUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||a===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),i=!1);return Zn(e,t,n,i,o,r)}function Zn(e,t,n,i,r,o){Kn(e,t);var s=0!==(64&t.effectTag);if(!i&&!s)return r&&It(t,n,!1),oi(e,t,o);i=t.stateNode,Ou.current=t;var a=s&&"function"!=typeof n.getDerivedStateFromError?null:i.render();return t.effectTag|=1,null!==e&&s?(t.child=uu(t,e.child,null,o),t.child=uu(t,null,a,o)):qn(e,t,a,o),t.memoizedState=i.state,r&&It(t,n,!0),t.child}function ei(e){var t=e.stateNode;t.pendingContext?Ot(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ot(e,t.context,!1),cn(e,t.containerInfo)}function ti(e,t,n){var i,r=t.mode,o=t.pendingProps,s=du.current,a=!1;if((i=0!==(64&t.effectTag))||(i=0!==(2&s)&&(null===e||null!==e.memoizedState)),i?(a=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(s|=1),Et(du,1&s),null===e){if(void 0!==o.fallback&&Un(t),a){if(a=o.fallback,o=lr(null,r,0,null),o["return"]=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e["return"]=o,e=e.sibling;return n=lr(a,r,n,null),n["return"]=t,o.sibling=n,t.memoizedState=Au,t.child=o,n}return r=o.children,t.memoizedState=null,t.child=lu(t,null,r,n)}if(null!==e.memoizedState){if(e=e.child,r=e.sibling,a){if(o=o.fallback,n=ar(e,e.pendingProps),n["return"]=t,0===(2&t.mode)&&(a=null!==t.memoizedState?t.child.child:t.child,a!==e.child))for(n.child=a;null!==a;)a["return"]=n,a=a.sibling;return r=ar(r,o),r["return"]=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=Au,t.child=n,r}return n=uu(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,a){if(a=o.fallback,o=lr(null,r,0,null),o["return"]=t,o.child=e,null!==e&&(e["return"]=o),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e["return"]=o,e=e.sibling;return n=lr(a,r,n,null),n["return"]=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Au,t.child=o,n}return t.memoizedState=null,t.child=uu(t,e,o.children,n)}function ni(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),Bt(e["return"],t)}function ii(e,t,n,i,r,o){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailExpiration:0,tailMode:r,lastEffect:o}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=i,s.tail=n,s.tailExpiration=0,s.tailMode=r,s.lastEffect=o)}function ri(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;if(qn(e,t,i.children,n),i=du.current,0!==(2&i))i=1&i|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ni(e,n);else if(19===e.tag)ni(e,n);else if(null!==e.child){e.child["return"]=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e["return"]||e["return"]===t)break e;e=e["return"]}e.sibling["return"]=e["return"],e=e.sibling}i&=1}if(Et(du,i),0===(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)e=n.alternate,null!==e&&null===dn(e)&&(r=n),n=n.sibling;n=r,null===n?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ii(t,!1,r,n,o,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(e=r.alternate,null!==e&&null===dn(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ii(t,!0,n,null,o,t.lastEffect);break;case"together":ii(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function oi(e,t,i){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&Ui(r),t.childExpirationTime<i)return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(e=t.child,i=ar(e,e.pendingProps),t.child=i,i["return"]=t;null!==e.sibling;)e=e.sibling,i=i.sibling=ar(e,e.pendingProps),i["return"]=t;i.sibling=null}return t.child}function si(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?t||null===e.tail?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ai(e,t,i){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Dt(t.type)&&(Tt(Ia),Tt(Aa)),null;case 3:return hn(),Tt(Ia),Tt(Aa),i=t.stateNode,i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||!Bn(t)||(t.effectTag|=4),Nu(t),null;case 5:pn(t),i=ln(pu.current);var o=t.type;if(null!==e&&null!=t.stateNode)ju(e,t,o,r,i),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(n(166));return null}if(e=ln(hu.current),Bn(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[Ds]=t,r[Os]=s,o){case"iframe":case"object":case"embed":ye("load",r);break;case"video":case"audio":for(e=0;e<Xo.length;e++)ye(Xo[e],r);break;case"source":ye("error",r);break;case"img":case"image":case"link":ye("error",r),ye("load",r);break;case"form":ye("reset",r),ye("submit",r);break;case"details":ye("toggle",r);break;case"input":O(r,s),ye("invalid",r),De(i,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ye("invalid",r),De(i,"onChange");break;case"textarea":L(r,s),ye("invalid",r),De(i,"onChange")}Ee(o,s),e=null;for(var a in s)if(s.hasOwnProperty(a)){var u=s[a];"children"===a?"string"==typeof u?r.textContent!==u&&(e=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(e=["children",""+u]):ro.hasOwnProperty(a)&&null!=u&&De(i,a)}switch(o){case"input":E(r),I(r,s,!0);break;case"textarea":E(r),z(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Oe)}i=e,t.updateQueue=i,null!==i&&(t.effectTag|=4)}else{switch(a=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=V(o)),"http://www.w3.org/1999/xhtml"===e?"script"===o?(e=a.createElement("div"),e.innerHTML="<script></script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(o,{is:r.is}):(e=a.createElement(o),"select"===o&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,o),e[Ds]=t,e[Os]=r,Iu(e,t,!1,!1),t.stateNode=e,a=Se(o,r),o){case"iframe":case"object":case"embed":ye("load",e),u=r;break;case"video":case"audio":for(u=0;u<Xo.length;u++)ye(Xo[u],e);u=r;break;case"source":ye("error",e),u=r;break;case"img":case"image":case"link":ye("error",e),ye("load",e),u=r;break;case"form":ye("reset",e),ye("submit",e),u=r;break;case"details":ye("toggle",e),u=r;break;case"input":O(e,r),u=D(e,r),ye("invalid",e),De(i,"onChange");break;case"option":u=R(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=ao({},r,{value:void 0}),ye("invalid",e),De(i,"onChange");break;case"textarea":L(e,r),u=F(e,r),ye("invalid",e),De(i,"onChange");break;default:u=r}Ee(o,u);var l=u;for(s in l)if(l.hasOwnProperty(s)){var c=l[s];"style"===s?Te(e,c):"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,null!=c&&Ho(e,c)):"children"===s?"string"==typeof c?("textarea"!==o||""!==c)&&zo(e,c):"number"==typeof c&&zo(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(ro.hasOwnProperty(s)?null!=c&&De(i,s):null!=c&&x(e,s,c,a))}switch(o){case"input":E(e),I(e,r,!1);break;case"textarea":E(e),z(e);break;case"option":null!=r.value&&e.setAttribute("value",""+k(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,null!=i?M(e,!!r.multiple,i,!1):null!=r.defaultValue&&M(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof u.onClick&&(e.onclick=Oe)}Me(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ru(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(n(166));i=ln(pu.current),ln(hu.current),Bn(t)?(i=t.stateNode,r=t.memoizedProps,i[Ds]=t,i.nodeValue!==r&&(t.effectTag|=4)):(i=(9===i.nodeType?i:i.ownerDocument).createTextNode(r),i[Ds]=t,t.stateNode=i)}return null;case 13:return Tt(du),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=i,t):(i=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Bn(t):(o=e.memoizedState,r=null!==o,i||null===o||(o=e.child.sibling,null!==o&&(s=t.firstEffect,null!==s?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8))),i&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&du.current)?tl===$u&&(tl=Xu):((tl===$u||tl===Xu)&&(tl=Gu),0!==sl&&null!==Ju&&(dr(Ju,el),gr(Ju,sl)))),(i||r)&&(t.effectTag|=4),null);case 4:return hn(),Nu(t),null;case 10:return Wt(t),null;case 17:return Dt(t.type)&&(Tt(Ia),Tt(Aa)),null;case 19:if(Tt(du),r=t.memoizedState,null===r)return null;if(o=0!==(64&t.effectTag),s=r.rendering,null===s){if(o)si(r,!1);else if(tl!==$u||null!==e&&0!==(64&e.effectTag))for(s=t.child;null!==s;){if(e=dn(s),null!==e){for(t.effectTag|=64,si(r,!1),o=e.updateQueue,null!==o&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)o=r,s=i,o.effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,e=o.alternate,null===e?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return Et(du,1&du.current|2),t.child}s=s.sibling}}else{if(!o)if(e=dn(s),null!==e){if(t.effectTag|=64,o=!0,i=e.updateQueue,null!==i&&(t.updateQueue=i,t.effectTag|=4),si(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return t=t.lastEffect=r.lastEffect,null!==t&&(t.nextEffect=null),null}else 2*Ka()-r.renderingStartTime>r.tailExpiration&&i>1&&(t.effectTag|=64,o=!0,si(r,!1),t.expirationTime=t.childExpirationTime=i-1);r.isBackwards?(s.sibling=t.child,t.child=s):(i=r.last,null!==i?i.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ka()+500),i=r.tail,r.rendering=i,r.tail=i.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ka(),i.sibling=null,t=du.current,Et(du,o?1&t|2:1&t),i):null}throw Error(n(156,t.tag))}function ui(e,t){switch(e.tag){case 1:return Dt(e.type)&&(Tt(Ia),Tt(Aa)),t=e.effectTag,4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(hn(),Tt(Ia),Tt(Aa),t=e.effectTag,0!==(64&t))throw Error(n(285));return e.effectTag=-4097&t|64,e;case 5:return pn(e),null;case 13:return Tt(du),t=e.effectTag,4096&t?(e.effectTag=-4097&t|64,e):null;case 19:return Tt(du),null;case 4:return hn(),null;case 10:return Wt(e),null;default:return null}}function li(e,t){return{value:e,source:t,stack:l(t)}}function ci(e,t){var n=t.source,i=t.stack;null===i&&null!==n&&(i=l(n)),null!==n&&u(n.type),t=t.value,null!==e&&1===e.tag&&u(e.type);try{console.error(t)}catch(r){setTimeout(function(){throw r})}}function hi(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){er(e,n)}}function fi(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){er(e,n)}else t.current=null}function pi(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var i=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?i:Vt(t.type,i),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(n(163))}function di(e,t){if(t=t.updateQueue,t=null!==t?t.lastEffect:null,null!==t){var n=t=t.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,void 0!==i&&i()}n=n.next}while(n!==t)}}function gi(e,t){if(t=t.updateQueue,t=null!==t?t.lastEffect:null,null!==t){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function vi(e,t,i,r){switch(i.tag){case 0:case 11:case 15:case 22:return void gi(3,i);case 1:return e=i.stateNode,4&i.effectTag&&(null===t?e.componentDidMount():(r=i.elementType===i.type?t.memoizedProps:Vt(i.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=i.updateQueue,void(null!==t&&Zt(i,t,e));case 3:if(t=i.updateQueue,null!==t){if(e=null,null!==i.child)switch(i.child.tag){case 5:e=i.child.stateNode;break;case 1:e=i.child.stateNode}Zt(i,t,e)}return;case 5:return e=i.stateNode,void(null===t&&4&i.effectTag&&Me(i.type,i.memoizedProps)&&e.focus());case 6:return;case 4:return;case 12:return;case 13:return void(null===i.memoizedState&&(i=i.alternate,null!==i&&(i=i.memoizedState,null!==i&&(i=i.dehydrated,null!==i&&ve(i)))));case 19:case 17:case 20:case 21:return}throw Error(n(163))}function mi(e,t,n){switch("function"==typeof Cl&&Cl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,null!==e&&(e=e.lastEffect,null!==e)){var i=e.next;Rt(n>97?97:n,function(){var e=i;do{var n=e.destroy;if(void 0!==n){var r=t;try{n()}catch(o){er(r,o)}}e=e.next}while(e!==i)})}break;case 1:fi(t),n=t.stateNode,"function"==typeof n.componentWillUnmount&&hi(t,n);break;case 5:fi(t);break;case 4:ki(e,t,n)}}function yi(e){var t=e.alternate;e["return"]=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&yi(t)}function bi(e){return 5===e.tag||3===e.tag||4===e.tag}function _i(e){e:{for(var t=e["return"];null!==t;){if(bi(t)){var i=t;break e}t=t["return"]}throw Error(n(160))}switch(t=i.stateNode,i.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(n(161))}16&i.effectTag&&(zo(t,""),i.effectTag&=-17);e:t:for(i=e;;){for(;null===i.sibling;){if(null===i["return"]||bi(i["return"])){i=null;break e}i=i["return"]}for(i.sibling["return"]=i["return"],i=i.sibling;5!==i.tag&&6!==i.tag&&18!==i.tag;){if(2&i.effectTag)continue t;if(null===i.child||4===i.tag)continue t;i.child["return"]=i,i=i.child}if(!(2&i.effectTag)){i=i.stateNode;break e}}r?wi(e,i,t):xi(e,i,t)}function wi(e,t,n){var i=e.tag,r=5===i||6===i;if(r)e=r?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,null!==n&&void 0!==n||null!==t.onclick||(t.onclick=Oe));else if(4!==i&&(e=e.child,null!==e))for(wi(e,t,n),e=e.sibling;null!==e;)wi(e,t,n),e=e.sibling}function xi(e,t,n){var i=e.tag,r=5===i||6===i;if(r)e=r?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==i&&(e=e.child,null!==e))for(xi(e,t,n),e=e.sibling;null!==e;)xi(e,t,n),e=e.sibling}function ki(e,t,i){for(var r,o,s=t,a=!1;;){if(!a){a=s["return"];e:for(;;){if(null===a)throw Error(n(160));switch(r=a.stateNode,a.tag){case 5:o=!1;break e;case 3:r=r.containerInfo,o=!0;break e;case 4:r=r.containerInfo,o=!0;break e}a=a["return"]}a=!0}if(5===s.tag||6===s.tag){e:for(var u=e,l=s,c=i,h=l;;)if(mi(u,h,c),null!==h.child&&4!==h.tag)h.child["return"]=h,h=h.child;else{if(h===l)break e;for(;null===h.sibling;){if(null===h["return"]||h["return"]===l)break e;h=h["return"]}h.sibling["return"]=h["return"],h=h.sibling}o?(u=r,l=s.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(s.stateNode)}else if(4===s.tag){if(null!==s.child){r=s.stateNode.containerInfo,o=!0,s.child["return"]=s,s=s.child;continue}}else if(mi(e,s,i),null!==s.child){s.child["return"]=s,s=s.child;continue}if(s===t)break;for(;null===s.sibling;){if(null===s["return"]||s["return"]===t)return;s=s["return"],4===s.tag&&(a=!1)}s.sibling["return"]=s["return"],s=s.sibling}}function Ci(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void di(3,t);case 1:return;case 5:var i=t.stateNode;if(null!=i){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var s=t.updateQueue;if(t.updateQueue=null,null!==s){for(i[Os]=r,"input"===e&&"radio"===r.type&&null!=r.name&&P(i,r),Se(e,o),t=Se(e,r),o=0;o<s.length;o+=2){var a=s[o],u=s[o+1];"style"===a?Te(i,u):"dangerouslySetInnerHTML"===a?Ho(i,u):"children"===a?zo(i,u):x(i,a,u,t)}switch(e){case"input":A(i,r);break;case"textarea":H(i,r);break;case"select":t=i._wrapperState.wasMultiple,i._wrapperState.wasMultiple=!!r.multiple,e=r.value,null!=e?M(i,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?M(i,!!r.multiple,r.defaultValue,!0):M(i,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(n(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return t=t.stateNode,void(t.hydrate&&(t.hydrate=!1,ve(t.containerInfo)));case 12:return;case 13:if(i=t,null===t.memoizedState?r=!1:(r=!0,i=t.child,ul=Ka()),null!==i)e:for(e=i;;){if(5===e.tag)s=e.stateNode,r?(s=s.style,"function"==typeof s.setProperty?s.setProperty("display","none","important"):s.display="none"):(s=e.stateNode,o=e.memoizedProps.style,o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,s.style.display=Ce("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{
- if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){s=e.child.sibling,s["return"]=e,e=s;continue}if(null!==e.child){e.child["return"]=e,e=e.child;continue}}if(e===i)break;for(;null===e.sibling;){if(null===e["return"]||e["return"]===i)break e;e=e["return"]}e.sibling["return"]=e["return"],e=e.sibling}return void Ti(t);case 19:return void Ti(t);case 17:return}throw Error(n(163))}function Ti(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Mu),t.forEach(function(t){var i=nr.bind(null,e,t);n.has(t)||(n.add(t),t.then(i,i))})}}function Ei(e,t,n){n=Gt(n,null),n.tag=3,n.payload={element:null};var i=t.value;return n.callback=function(){hl||(hl=!0,fl=i),ci(e,t)},n}function Si(e,t,n){n=Gt(n,null),n.tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var r=t.value;n.payload=function(){return ci(e,t),i(r)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof i&&(null===pl?pl=new Set([this]):pl.add(this),ci(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}function Di(){return(Qu&(Wu|Bu))!==Vu?1073741821-(Ka()/10|0):0!==_l?_l:_l=1073741821-(Ka()/10|0)}function Oi(e,t,i){if(t=t.mode,0===(2&t))return 1073741823;var r=Nt();if(0===(4&t))return 99===r?1073741823:1073741822;if((Qu&Wu)!==Vu)return el;if(null!==i)e=zt(e,0|i.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=zt(e,150,100);break;case 97:case 96:e=zt(e,5e3,250);break;case 95:e=2;break;default:throw Error(n(326))}return null!==Ju&&e===el&&--e,e}function Pi(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var i=e["return"],r=null;if(null===i&&3===e.tag)r=e.stateNode;else for(;null!==i;){if(n=i.alternate,i.childExpirationTime<t&&(i.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===i["return"]&&3===i.tag){r=i.stateNode;break}i=i["return"]}return null!==r&&(Ju===r&&(Ui(t),tl===Gu&&dr(r,el)),gr(r,t)),r}function Ai(e){var t=e.lastExpiredTime;if(0!==t)return t;if(t=e.firstPendingTime,!pr(e,t))return t;var n=e.lastPingedTime;return e=e.nextKnownPendingLevel,e=n>e?n:e,2>=e&&t!==e?0:e}function Ii(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ft(ji.bind(null,e));else{var t=Ai(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var i=Di();if(1073741823===t?i=99:1===t||2===t?i=95:(i=10*(1073741821-t)-10*(1073741821-i),i=0>=i?99:250>=i?98:5250>=i?97:95),null!==n){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=i)return;n!==Wa&&Ma(n)}e.callbackExpirationTime=t,e.callbackPriority=i,t=1073741823===t?Ft(ji.bind(null,e)):Mt(i,Ni.bind(null,e),{timeout:10*(1073741821-t)-Ka()}),e.callbackNode=t}}}function Ni(e,t){if(_l=0,t)return t=Di(),vr(e,t),Ii(e),null;var i=Ai(e);if(0!==i){if(t=e.callbackNode,(Qu&(Wu|Bu))!==Vu)throw Error(n(327));if(Qi(),e===Ju&&i===el||Li(e,i),null!==Zu){var r=Qu;Qu|=Wu;for(var o=zi();;)try{Bi();break}catch(s){Hi(e,s)}if(Ut(),Qu=r,Hu.current=o,tl===qu)throw t=nl,Li(e,i),dr(e,i),Ii(e),t;if(null===Zu)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=i,r=tl,Ju=null,r){case $u:case qu:throw Error(n(345));case Yu:vr(e,i>2?2:i);break;case Xu:if(dr(e,i),r=e.lastSuspendedTime,i===r&&(e.nextKnownPendingLevel=Yi(o)),1073741823===il&&(o=ul+ll-Ka(),o>10)){if(al){var a=e.lastPingedTime;if(0===a||a>=i){e.lastPingedTime=i,Li(e,i);break}}if(a=Ai(e),0!==a&&a!==i)break;if(0!==r&&r!==i){e.lastPingedTime=r;break}e.timeoutHandle=Ts(Xi.bind(null,e),o);break}Xi(e);break;case Gu:if(dr(e,i),r=e.lastSuspendedTime,i===r&&(e.nextKnownPendingLevel=Yi(o)),al&&(o=e.lastPingedTime,0===o||o>=i)){e.lastPingedTime=i,Li(e,i);break}if(o=Ai(e),0!==o&&o!==i)break;if(0!==r&&r!==i){e.lastPingedTime=r;break}if(1073741823!==rl?r=10*(1073741821-rl)-Ka():1073741823===il?r=0:(r=10*(1073741821-il)-5e3,o=Ka(),i=10*(1073741821-i)-o,r=o-r,0>r&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Lu(r/1960))-r,r>i&&(r=i)),r>10){e.timeoutHandle=Ts(Xi.bind(null,e),r);break}Xi(e);break;case Ku:if(1073741823!==il&&null!==ol){a=il;var u=ol;if(r=0|u.busyMinDurationMs,0>=r?r=0:(o=0|u.busyDelayMs,a=Ka()-(10*(1073741821-a)-(0|u.timeoutMs||5e3)),r=o>=a?0:o+r-a),r>10){dr(e,i),e.timeoutHandle=Ts(Xi.bind(null,e),r);break}}Xi(e);break;default:throw Error(n(329))}if(Ii(e),e.callbackNode===t)return Ni.bind(null,e)}}return null}function ji(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Qu&(Wu|Bu))!==Vu)throw Error(n(327));if(Qi(),e===Ju&&t===el||Li(e,t),null!==Zu){var i=Qu;Qu|=Wu;for(var r=zi();;)try{Wi();break}catch(o){Hi(e,o)}if(Ut(),Qu=i,Hu.current=r,tl===qu)throw i=nl,Li(e,t),dr(e,t),Ii(e),i;if(null!==Zu)throw Error(n(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ju=null,Xi(e),Ii(e)}return null}function Ri(){if(null!==ml){var e=ml;ml=null,e.forEach(function(e,t){vr(t,e),Ii(t)}),Lt()}}function Mi(e,t){var n=Qu;Qu|=1;try{return e(t)}finally{Qu=n,Qu===Vu&&Lt()}}function Fi(e,t){var n=Qu;Qu&=-2,Qu|=Uu;try{return e(t)}finally{Qu=n,Qu===Vu&&Lt()}}function Li(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Es(n)),null!==Zu)for(n=Zu["return"];null!==n;){var i=n;switch(i.tag){case 1:i=i.type.childContextTypes,null!==i&&void 0!==i&&(Tt(Ia),Tt(Aa));break;case 3:hn(),Tt(Ia),Tt(Aa);break;case 5:pn(i);break;case 4:hn();break;case 13:Tt(du);break;case 19:Tt(du);break;case 10:Wt(i)}n=n["return"]}Ju=e,Zu=ar(e.current,null),el=t,tl=$u,nl=null,rl=il=1073741823,ol=null,sl=0,al=!1}function Hi(e,t){for(;;){try{if(Ut(),gu.current=xu,wu)for(var n=yu.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}if(mu=0,_u=bu=yu=null,wu=!1,null===Zu||null===Zu["return"])return tl=qu,nl=t,Zu=null;e:{var r=e,o=Zu["return"],s=Zu,a=t;if(t=el,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,null!==a&&"object"==typeof a&&"function"==typeof a.then){var c=a;if(0===(2&s.mode)){var h=s.alternate;h?(s.memoizedState=h.memoizedState,s.expirationTime=h.expirationTime):s.memoizedState=null}var f=0!==(1&du.current),p=o;do{var d;if(d=13===p.tag){var g=p.memoizedState;if(null!==g)d=null!==g.dehydrated?!0:!1;else{var v=p.memoizedProps;d=void 0===v.fallback?!1:!0!==v.unstable_avoidThisFallback?!0:f?!1:!0}}if(d){var m=p.updateQueue;if(null===m){var y=new Set;y.add(c),p.updateQueue=y}else m.add(c);if(0===(2&p.mode)){if(p.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var b=Gt(1073741823,null);b.tag=nu,Kt(s,b)}s.expirationTime=1073741823;break e}a=void 0,s=t;var _=r.pingCache;if(null===_?(_=r.pingCache=new Fu,a=new Set,_.set(c,a)):(a=_.get(c),void 0===a&&(a=new Set,_.set(c,a))),!a.has(s)){a.add(s);var w=tr.bind(null,r,c,s);c.then(w,w)}p.effectTag|=4096,p.expirationTime=t;break e}p=p["return"]}while(null!==p);a=Error((u(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+l(s))}tl!==Ku&&(tl=Yu),a=li(a,s),p=o;do{switch(p.tag){case 3:c=a,p.effectTag|=4096,p.expirationTime=t;var x=Ei(p,c,t);Qt(p,x);break e;case 1:c=a;var k=p.type,C=p.stateNode;if(0===(64&p.effectTag)&&("function"==typeof k.getDerivedStateFromError||null!==C&&"function"==typeof C.componentDidCatch&&(null===pl||!pl.has(C)))){p.effectTag|=4096,p.expirationTime=t;var T=Si(p,c,t);Qt(p,T);break e}}p=p["return"]}while(null!==p)}Zu=qi(Zu)}catch(E){t=E;continue}break}}function zi(e){return e=Hu.current,Hu.current=xu,null===e?xu:e}function Vi(e,t){il>e&&e>2&&(il=e),null!==t&&rl>e&&e>2&&(rl=e,ol=t)}function Ui(e){e>sl&&(sl=e)}function Wi(){for(;null!==Zu;)Zu=$i(Zu)}function Bi(){for(;null!==Zu&&!Ba();)Zu=$i(Zu)}function $i(e){var t=xl(e.alternate,e,el);return e.memoizedProps=e.pendingProps,null===t&&(t=qi(e)),zu.current=null,t}function qi(e){Zu=e;do{var t=Zu.alternate;if(e=Zu["return"],0===(2048&Zu.effectTag)){if(t=ai(t,Zu,el),1===el||1!==Zu.childExpirationTime){for(var n=0,i=Zu.child;null!==i;){var r=i.expirationTime,o=i.childExpirationTime;r>n&&(n=r),o>n&&(n=o),i=i.sibling}Zu.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Zu.firstEffect),null!==Zu.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Zu.firstEffect),e.lastEffect=Zu.lastEffect),1<Zu.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Zu:e.firstEffect=Zu,e.lastEffect=Zu))}else{if(t=ui(Zu),null!==t)return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(t=Zu.sibling,null!==t)return t;Zu=e}while(null!==Zu);return tl===$u&&(tl=Ku),null}function Yi(e){var t=e.expirationTime;return e=e.childExpirationTime,t>e?t:e}function Xi(e){var t=Nt();return Rt(99,Gi.bind(null,e,t)),null}function Gi(e,t){do Qi();while(null!==gl);if((Qu&(Wu|Bu))!==Vu)throw Error(n(327));var i=e.finishedWork,r=e.finishedExpirationTime;if(null===i)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,i===e.current)throw Error(n(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=Yi(i);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ju&&(Zu=Ju=null,el=0),1<i.effectTag?null!==i.lastEffect?(i.lastEffect.nextEffect=i,o=i.firstEffect):o=i:o=i.firstEffect,null!==o){var s=Qu;Qu|=Bu,zu.current=null,ks=gs;var a=je();if(Re(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var l=u.getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{u.nodeType,h.nodeType}catch(f){u=null;break e}var p=0,d=-1,g=-1,v=0,m=0,y=a,b=null;t:for(;;){for(var _;y!==u||0!==c&&3!==y.nodeType||(d=p+c),y!==h||0!==l&&3!==y.nodeType||(g=p+l),3===y.nodeType&&(p+=y.nodeValue.length),null!==(_=y.firstChild);)b=y,y=_;for(;;){if(y===a)break t;if(b===u&&++v===c&&(d=p),b===h&&++m===l&&(g=p),null!==(_=y.nextSibling))break;y=b,b=y.parentNode}y=_}u=-1===d||-1===g?null:{start:d,end:g}}else u=null}u=u||{start:0,end:0}}else u=null;Cs={activeElementDetached:null,focusedElem:a,selectionRange:u},gs=!1,cl=o;do try{Ki()}catch(f){if(null===cl)throw Error(n(330));er(cl,f),cl=cl.nextEffect}while(null!==cl);cl=o;do try{for(a=e,u=t;null!==cl;){var w=cl.effectTag;if(16&w&&zo(cl.stateNode,""),128&w){var x=cl.alternate;if(null!==x){var k=x.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&w){case 2:_i(cl),cl.effectTag&=-3;break;case 6:_i(cl),cl.effectTag&=-3,Ci(cl.alternate,cl);break;case 1024:cl.effectTag&=-1025;break;case 1028:cl.effectTag&=-1025,Ci(cl.alternate,cl);break;case 4:Ci(cl.alternate,cl);break;case 8:c=cl,ki(a,c,u),yi(c)}cl=cl.nextEffect}}catch(f){if(null===cl)throw Error(n(330));er(cl,f),cl=cl.nextEffect}while(null!==cl);if(k=Cs,x=je(),w=k.focusedElem,u=k.selectionRange,x!==w&&w&&w.ownerDocument&&Ne(w.ownerDocument.documentElement,w)){null!==u&&Re(w)&&(x=u.start,k=u.end,void 0===k&&(k=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(k,w.value.length)):(k=(x=w.ownerDocument||document)&&x.defaultView||window,k.getSelection&&(k=k.getSelection(),c=w.textContent.length,a=Math.min(u.start,c),u=void 0===u.end?a:Math.min(u.end,c),!k.extend&&a>u&&(c=u,u=a,a=c),c=Ie(w,a),h=Ie(w,u),c&&h&&(1!==k.rangeCount||k.anchorNode!==c.node||k.anchorOffset!==c.offset||k.focusNode!==h.node||k.focusOffset!==h.offset)&&(x=x.createRange(),x.setStart(c.node,c.offset),k.removeAllRanges(),a>u?(k.addRange(x),k.extend(h.node,h.offset)):(x.setEnd(h.node,h.offset),k.addRange(x)))))),x=[];for(k=w;k=k.parentNode;)1===k.nodeType&&x.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<x.length;w++)k=x[w],k.element.scrollLeft=k.left,k.element.scrollTop=k.top}gs=!!ks,Cs=ks=null,e.current=i,cl=o;do try{for(w=e;null!==cl;){var C=cl.effectTag;if(36&C&&vi(w,cl.alternate,cl),128&C){x=void 0;var T=cl.ref;if(null!==T){var E=cl.stateNode;switch(cl.tag){case 5:x=E;break;default:x=E}"function"==typeof T?T(x):T.current=x}}cl=cl.nextEffect}}catch(f){if(null===cl)throw Error(n(330));er(cl,f),cl=cl.nextEffect}while(null!==cl);cl=null,$a(),Qu=s}else e.current=i;if(dl)dl=!1,gl=e,vl=t;else for(cl=o;null!==cl;)t=cl.nextEffect,cl.nextEffect=null,cl=t;if(t=e.firstPendingTime,0===t&&(pl=null),1073741823===t?e===bl?yl++:(yl=0,bl=e):yl=0,"function"==typeof kl&&kl(i.stateNode,r),Ii(e),hl)throw hl=!1,e=fl,fl=null,e;return(Qu&Uu)!==Vu?null:(Lt(),null)}function Ki(){for(;null!==cl;){var e=cl.effectTag;0!==(256&e)&&pi(cl.alternate,cl),0===(512&e)||dl||(dl=!0,Mt(97,function(){return Qi(),null})),cl=cl.nextEffect}}function Qi(){if(90!==vl){var e=vl>97?97:vl;return vl=90,Rt(e,Ji)}}function Ji(){if(null===gl)return!1;var e=gl;if(gl=null,(Qu&(Wu|Bu))!==Vu)throw Error(n(331));var t=Qu;for(Qu|=Bu,e=e.current.firstEffect;null!==e;){try{var i=e;if(0!==(512&i.effectTag))switch(i.tag){case 0:case 11:case 15:case 22:di(5,i),gi(5,i)}}catch(r){if(null===e)throw Error(n(330));er(e,r)}i=e.nextEffect,e.nextEffect=null,e=i}return Qu=t,Lt(),!0}function Zi(e,t,n){t=li(n,t),t=Ei(e,t,1073741823),Kt(e,t),e=Pi(e,1073741823),null!==e&&Ii(e)}function er(e,t){if(3===e.tag)Zi(e,e,t);else for(var n=e["return"];null!==n;){if(3===n.tag){Zi(n,e,t);break}if(1===n.tag){var i=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof i.componentDidCatch&&(null===pl||!pl.has(i))){e=li(t,e),e=Si(n,e,1073741823),Kt(n,e),n=Pi(n,1073741823),null!==n&&Ii(n);break}}n=n["return"]}}function tr(e,t,n){var i=e.pingCache;null!==i&&i["delete"](t),Ju===e&&el===n?tl===Gu||tl===Xu&&1073741823===il&&Ka()-ul<ll?Li(e,el):al=!0:pr(e,n)&&(t=e.lastPingedTime,0!==t&&n>t||(e.lastPingedTime=n,Ii(e)))}function nr(e,t){var n=e.stateNode;null!==n&&n["delete"](t),t=0,0===t&&(t=Di(),t=Oi(t,e,null)),e=Pi(e,t),null!==e&&Ii(e)}function ir(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);kl=function(e,i){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},Cl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(i){}}}catch(i){}return!0}function rr(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this["return"]=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function or(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sr(e){if("function"==typeof e)return or(e)?1:0;if(void 0!==e&&null!==e){if(e=e.$$typeof,e===Yr)return 11;if(e===Kr)return 14}return 2}function ar(e,t){var n=e.alternate;return null===n?(n=Tl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ur(e,t,i,r,o,s){var a=2;if(r=e,"function"==typeof e)or(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case Vr:return lr(i.children,o,s,t);case qr:a=8,o|=7;break;case Ur:a=8,o|=1;break;case Wr:return e=Tl(12,i,t,8|o),e.elementType=Wr,e.type=Wr,e.expirationTime=s,e;case Xr:return e=Tl(13,i,t,o),e.type=Xr,e.elementType=Xr,e.expirationTime=s,e;case Gr:return e=Tl(19,i,t,o),e.elementType=Gr,e.expirationTime=s,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Br:a=10;break e;case $r:a=9;break e;case Yr:a=11;break e;case Kr:a=14;break e;case Qr:a=16,r=null;break e;case Jr:a=22;break e}throw Error(n(130,null==e?e:typeof e,""))}return t=Tl(a,i,t,o),t.elementType=e,t.type=r,t.expirationTime=s,t}function lr(e,t,n,i){return e=Tl(7,e,i,t),e.expirationTime=n,e}function cr(e,t,n){return e=Tl(6,e,null,t),e.expirationTime=n,e}function hr(e,t,n){return t=Tl(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fr(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function pr(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&t>=e}function dr(e,t){var n=e.firstSuspendedTime,i=e.lastSuspendedTime;t>n&&(e.firstSuspendedTime=t),(i>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function gr(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function vr(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function mr(e,t,i,r){var o=t.current,s=Di(),a=ru.suspense;s=Oi(s,o,a);e:if(i){i=i._reactInternalFiber;t:{if(q(i)!==i||1!==i.tag)throw Error(n(170));var u=i;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(Dt(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u["return"]}while(null!==u);throw Error(n(171))}if(1===i.tag){var l=i.type;if(Dt(l)){i=Pt(i,l,u);break e}}i=u}else i=Pa;return null===t.context?t.context=i:t.pendingContext=i,t=Gt(s,a),t.payload={element:e},r=void 0===r?null:r,null!==r&&(t.callback=r),Kt(o,t),wl(o,s),s}function yr(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function br(e,t){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function _r(e,t){br(e,t),(e=e.alternate)&&br(e,t)}function wr(e,t,n){n=null!=n&&!0===n.hydrate;var i=new fr(e,t,n),r=Tl(3,null,null,2===t?7:1===t?3:0);i.current=r,r.stateNode=i,Yt(r),e[Ps]=i.current,n&&0!==t&&se(e,9===e.nodeType?e:e.ownerDocument),this._internalRoot=i}function xr(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function kr(e,t){if(t||(t=e?9===e.nodeType?e.documentElement:e.firstChild:null,t=!(!t||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new wr(e,0,t?{hydrate:!0}:void 0)}function Cr(e,t,n,i,r){var o=n._reactRootContainer;if(o){var s=o._internalRoot;if("function"==typeof r){var a=r;r=function(){var e=yr(s);a.call(e)}}mr(t,s,e,r)}else{if(o=n._reactRootContainer=kr(n,i),s=o._internalRoot,"function"==typeof r){var u=r;r=function(){var e=yr(s);u.call(e)}}Fi(function(){mr(t,s,e,r)})}return yr(s)}function Tr(e,t,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:zr,key:null==i?null:""+i,children:e,containerInfo:t,implementation:n}}function Er(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!xr(t))throw Error(n(200));return Tr(e,t,null,i)}if(!t)throw Error(n(227));var Sr=function(e,t,n,i,r,o,s,a,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}},Dr=!1,Or=null,Pr=!1,Ar=null,Ir={onError:function(e){Dr=!0,Or=e}},Nr=null,jr=null,Rr=null,Mr=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Mr.hasOwnProperty("ReactCurrentDispatcher")||(Mr.ReactCurrentDispatcher={current:null}),Mr.hasOwnProperty("ReactCurrentBatchConfig")||(Mr.ReactCurrentBatchConfig={suspense:null});var Fr=/^(.*)[\\\/]/,Lr="function"==typeof Symbol&&Symbol["for"],Hr=Lr?Symbol["for"]("react.element"):60103,zr=Lr?Symbol["for"]("react.portal"):60106,Vr=Lr?Symbol["for"]("react.fragment"):60107,Ur=Lr?Symbol["for"]("react.strict_mode"):60108,Wr=Lr?Symbol["for"]("react.profiler"):60114,Br=Lr?Symbol["for"]("react.provider"):60109,$r=Lr?Symbol["for"]("react.context"):60110,qr=Lr?Symbol["for"]("react.concurrent_mode"):60111,Yr=Lr?Symbol["for"]("react.forward_ref"):60112,Xr=Lr?Symbol["for"]("react.suspense"):60113,Gr=Lr?Symbol["for"]("react.suspense_list"):60120,Kr=Lr?Symbol["for"]("react.memo"):60115,Qr=Lr?Symbol["for"]("react.lazy"):60116,Jr=Lr?Symbol["for"]("react.block"):60121,Zr="function"==typeof Symbol&&Symbol.iterator,eo=null,to={},no=[],io={},ro={},oo={},so=!("undefined"==typeof window||"undefined"==typeof window.document||"undefined"==typeof window.document.createElement),ao=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.assign,uo=null,lo=null,co=null,ho=function(e,t){return e(t)},fo=function(e,t,n,i,r){return e(t,n,i,r)},po=function(){},go=ho,vo=!1,mo=!1,yo=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler,bo=yo.unstable_cancelCallback,_o=yo.unstable_now,wo=yo.unstable_scheduleCallback,xo=yo.unstable_shouldYield,ko=yo.unstable_requestPaint,Co=yo.unstable_runWithPriority,To=yo.unstable_getCurrentPriorityLevel,Eo=yo.unstable_ImmediatePriority,So=yo.unstable_UserBlockingPriority,Do=yo.unstable_NormalPriority,Oo=yo.unstable_LowPriority,Po=yo.unstable_IdlePriority,Ao=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Io=Object.prototype.hasOwnProperty,No={},jo={},Ro={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ro[e]=new w(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ro[t]=new w(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ro[e]=new w(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ro[e]=new w(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ro[e]=new w(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ro[e]=new w(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){Ro[e]=new w(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){Ro[e]=new w(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){Ro[e]=new w(e,5,!1,e.toLowerCase(),null,!1)});var Mo=/[\-:]([a-z])/g,Fo=function(e){return e[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Mo,Fo);Ro[t]=new w(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Mo,Fo);Ro[t]=new w(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Mo,Fo);Ro[t]=new w(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ro[e]=new w(e,1,!1,e.toLowerCase(),null,!1)}),Ro.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){Ro[e]=new w(e,1,!1,e.toLowerCase(),null,!0)});var Lo,Ho=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,i,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,i,r)})}:e}(function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for(Lo=Lo||document.createElement("div"),Lo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Lo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}),zo=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t},Vo={animationend:W("Animation","AnimationEnd"),animationiteration:W("Animation","AnimationIteration"),animationstart:W("Animation","AnimationStart"),transitionend:W("Transition","TransitionEnd")},Uo={},Wo={};so&&(Wo=document.createElement("div").style,"AnimationEvent"in window||(delete Vo.animationend.animation,delete Vo.animationiteration.animation,delete Vo.animationstart.animation),"TransitionEvent"in window||delete Vo.transitionend.transition);var Bo=B("animationend"),$o=B("animationiteration"),qo=B("animationstart"),Yo=B("transitionend"),Xo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Go=new("function"==typeof WeakMap?WeakMap:Map),Ko=null,Qo=function(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var i=0;i<t.length&&!e.isPropagationStopped();i++)o(e,t[i],n[i]);else t&&o(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}},Jo=[],Zo=!1,es=[],ts=null,ns=null,is=null,rs=new Map,os=new Map,ss=[],as="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),us="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" "),ls={},cs=new Map,hs=new Map,fs=["abort","abort",Bo,"animationEnd",$o,"animationIteration",qo,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Yo,"transitionEnd","waiting","waiting"];me("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),me("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),me(fs,2),function(e,t){for(var n=0;n<e.length;n++)hs.set(e[n],t)}("change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),0);var ps=So,ds=Co,gs=!0,vs={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ms=["Webkit","ms","Moz","O"];Object.keys(vs).forEach(function(e){ms.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vs[t]=vs[e]})});var ys=ao({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),bs="$",_s="/$",ws="$?",xs="$!",ks=null,Cs=null,Ts="function"==typeof setTimeout?setTimeout:void 0,Es="function"==typeof clearTimeout?clearTimeout:void 0,Ss=Math.random().toString(36).slice(2),Ds="__reactInternalInstance$"+Ss,Os="__reactEventHandlers$"+Ss,Ps="__reactContainere$"+Ss,As=null,Is=null,Ns=null;ao(et.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Je)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Je)},persist:function(){this.isPersistent=Je},isPersistent:Ze,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Ze,this._dispatchInstances=this._dispatchListeners=null}}),et.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},et.extend=function(e){function t(){return n.apply(this,arguments)}var n=this,i=function(){};return i.prototype=n.prototype,i=new i,ao(i,t.prototype),t.prototype=i,t.prototype.constructor=t,t.Interface=ao({},n.Interface,e),t.extend=n.extend,it(t),t},it(et);var js=et.extend({data:null}),Rs=et.extend({data:null}),Ms=[9,13,27,32],Fs=so&&"CompositionEvent"in window,Ls=null;so&&"documentMode"in document&&(Ls=document.documentMode);var Hs=so&&"TextEvent"in window&&!Ls,zs=so&&(!Fs||Ls&&Ls>8&&11>=Ls),Vs=String.fromCharCode(32),Us={
- beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ws=!1,Bs=!1,$s={eventTypes:Us,extractEvents:function(e,t,n,i,r){var o;if(Fs)e:{switch(e){case"compositionstart":var s=Us.compositionStart;break e;case"compositionend":s=Us.compositionEnd;break e;case"compositionupdate":s=Us.compositionUpdate;break e}s=void 0}else Bs?rt(e,n)&&(s=Us.compositionEnd):"keydown"===e&&229===n.keyCode&&(s=Us.compositionStart);return s?(zs&&"ko"!==n.locale&&(Bs||s!==Us.compositionStart?s===Us.compositionEnd&&Bs&&(o=Qe()):(As=i,Is="value"in As?As.value:As.textContent,Bs=!0)),r=js.getPooled(s,t,n,i),o?r.data=o:(o=ot(n),null!==o&&(r.data=o)),Ke(r),o=r):o=null,(e=Hs?st(e,n):at(e,n))?(t=Rs.getPooled(Us.beforeInput,t,n,i),t.data=e,Ke(t)):t=null,null===o?t:null===t?o:[o,t]}},qs={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Ys={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}},Xs=null,Gs=null,Ks=!1;so&&(Ks=te("input")&&(!document.documentMode||9<document.documentMode));var Qs={eventTypes:Ys,_isInputEventSupported:Ks,extractEvents:function(e,t,n,i,r){r=t?Ue(t):window;var o=r.nodeName&&r.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===r.type)var s=ft;else if(ut(r))if(Ks)s=yt;else{s=vt;var a=gt}else(o=r.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(s=mt);return s&&(s=s(e,t))?lt(s,n,i):(a&&a(e,r,t),void("blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&N(r,"number",r.value)))}},Js=et.extend({view:null,detail:null}),Zs={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},ea=0,ta=0,na=!1,ia=!1,ra=Js.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:_t,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=ea;return ea=e.screenX,na?"mousemove"===e.type?e.screenX-t:0:(na=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=ta;return ta=e.screenY,ia?"mousemove"===e.type?e.screenY-t:0:(ia=!0,0)}}),oa=ra.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),sa={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},aa={eventTypes:sa,extractEvents:function(e,t,n,i,r){var o="mouseover"===e||"pointerover"===e,s="mouseout"===e||"pointerout"===e;if(o&&0===(32&r)&&(n.relatedTarget||n.fromElement)||!s&&!o)return null;if(o=i.window===i?i:(o=i.ownerDocument)?o.defaultView||o.parentWindow:window,s){if(s=t,t=(t=n.relatedTarget||n.toElement)?ze(t):null,null!==t){var a=q(t);(t!==a||5!==t.tag&&6!==t.tag)&&(t=null)}}else s=null;if(s===t)return null;if("mouseout"===e||"mouseover"===e)var u=ra,l=sa.mouseLeave,c=sa.mouseEnter,h="mouse";else("pointerout"===e||"pointerover"===e)&&(u=oa,l=sa.pointerLeave,c=sa.pointerEnter,h="pointer");if(e=null==s?o:Ue(s),o=null==t?o:Ue(t),l=u.getPooled(l,s,n,i),l.type=h+"leave",l.target=e,l.relatedTarget=o,n=u.getPooled(c,t,n,i),n.type=h+"enter",n.target=o,n.relatedTarget=e,i=s,h=t,i&&h)e:{for(u=i,c=h,s=0,e=u;e;e=Be(e))s++;for(e=0,t=c;t;t=Be(t))e++;for(;s-e>0;)u=Be(u),s--;for(;e-s>0;)c=Be(c),e--;for(;s--;){if(u===c||u===c.alternate)break e;u=Be(u),c=Be(c)}u=null}else u=null;for(c=u,u=[];i&&i!==c&&(s=i.alternate,null===s||s!==c);)u.push(i),i=Be(i);for(i=[];h&&h!==c&&(s=h.alternate,null===s||s!==c);)i.push(h),h=Be(h);for(h=0;h<u.length;h++)Xe(u[h],"bubbled",l);for(h=i.length;0<h--;)Xe(i[h],"captured",n);return 0===(64&r)?[l]:[l,n]}},ua="function"==typeof Object.is?Object.is:wt,la=Object.prototype.hasOwnProperty,ca=so&&"documentMode"in document&&11>=document.documentMode,ha={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},fa=null,pa=null,da=null,ga=!1,va={eventTypes:ha,extractEvents:function(e,t,n,i,r,o){if(r=o||(i.window===i?i.document:9===i.nodeType?i:i.ownerDocument),!(o=!r)){e:{r=$(r),o=oo.onSelect;for(var s=0;s<o.length;s++)if(!r.has(o[s])){r=!1;break e}r=!0}o=!r}if(o)return null;switch(r=t?Ue(t):window,e){case"focus":(ut(r)||"true"===r.contentEditable)&&(fa=r,pa=t,da=null);break;case"blur":da=pa=fa=null;break;case"mousedown":ga=!0;break;case"contextmenu":case"mouseup":case"dragend":return ga=!1,kt(n,i);case"selectionchange":if(ca)break;case"keydown":case"keyup":return kt(n,i)}return null}},ma=et.extend({animationName:null,elapsedTime:null,pseudoElement:null}),ya=et.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ba=Js.extend({relatedTarget:null}),_a={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wa={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xa=Js.extend({key:function(e){if(e.key){var t=_a[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=Ct(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?wa[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:_t,charCode:function(e){return"keypress"===e.type?Ct(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ct(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ka=ra.extend({dataTransfer:null}),Ca=Js.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:_t}),Ta=et.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Ea=ra.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),Sa={eventTypes:ls,extractEvents:function(e,t,n,i,r){if(r=cs.get(e),!r)return null;switch(e){case"keypress":if(0===Ct(n))return null;case"keydown":case"keyup":e=xa;break;case"blur":case"focus":e=ba;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=ra;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ka;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=Ca;break;case Bo:case $o:case qo:e=ma;break;case Yo:e=Ta;break;case"scroll":e=Js;break;case"wheel":e=Ea;break;case"copy":case"cut":case"paste":e=ya;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=oa;break;default:e=et}return t=e.getPooled(r,t,n,i),Ke(t),t}};!function(e){if(eo)throw Error(n(101));eo=Array.prototype.slice.call(e),c()}("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),function(e,t,n){Nr=e,jr=t,Rr=n}(We,Ve,Ue),f({SimpleEventPlugin:Sa,EnterLeaveEventPlugin:aa,ChangeEventPlugin:Qs,SelectEventPlugin:va,BeforeInputEventPlugin:$s});var Da=[],Oa=-1,Pa={},Aa={current:Pa},Ia={current:!1},Na=Pa,ja=Co,Ra=wo,Ma=bo,Fa=To,La=Eo,Ha=So,za=Do,Va=Oo,Ua=Po,Wa={},Ba=xo,$a=void 0!==ko?ko:function(){},qa=null,Ya=null,Xa=!1,Ga=_o(),Ka=1e4>Ga?_o:function(){return _o()-Ga},Qa={current:null},Ja=null,Za=null,eu=null,tu=0,nu=2,iu=!1,ru=Mr.ReactCurrentBatchConfig,ou=(new t.Component).refs,su={isMounted:function(e){return(e=e._reactInternalFiber)?q(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var i=Di(),r=ru.suspense;i=Oi(i,e,r),r=Gt(i,r),r.payload=t,void 0!==n&&null!==n&&(r.callback=n),Kt(e,r),wl(e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var i=Di(),r=ru.suspense;i=Oi(i,e,r),r=Gt(i,r),r.tag=1,r.payload=t,void 0!==n&&null!==n&&(r.callback=n),Kt(e,r),wl(e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Di(),i=ru.suspense;n=Oi(n,e,i),i=Gt(n,i),i.tag=nu,void 0!==t&&null!==t&&(i.callback=t),Kt(e,i),wl(e,n)}},au=Array.isArray,uu=un(!0),lu=un(!1),cu={},hu={current:cu},fu={current:cu},pu={current:cu},du={current:0},gu=Mr.ReactCurrentDispatcher,vu=Mr.ReactCurrentBatchConfig,mu=0,yu=null,bu=null,_u=null,wu=!1,xu={readContext:qt,useCallback:vn,useContext:vn,useEffect:vn,useImperativeHandle:vn,useLayoutEffect:vn,useMemo:vn,useReducer:vn,useRef:vn,useState:vn,useDebugValue:vn,useResponder:vn,useDeferredValue:vn,useTransition:vn},ku={readContext:qt,useCallback:Rn,useContext:qt,useEffect:On,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Sn(4,2,In.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sn(4,2,e,t)},useMemo:function(e,t){var n=bn();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=bn();return t=void 0!==n?n(t):t,i.memoizedState=i.baseState=t,e=i.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Hn.bind(null,yu,e),[i.memoizedState,e]},useRef:function(e){var t=bn();return e={current:e},t.memoizedState=e},useState:Cn,useDebugValue:jn,useResponder:gn,useDeferredValue:function(e,t){var n=Cn(e),i=n[0],r=n[1];return On(function(){var n=vu.suspense;vu.suspense=void 0===t?null:t;try{r(e)}finally{vu.suspense=n}},[e,t]),i},useTransition:function(e){var t=Cn(!1),n=t[0];return t=t[1],[Rn(Ln.bind(null,t,e),[t,e]),n]}},Cu={readContext:qt,useCallback:Mn,useContext:qt,useEffect:Pn,useImperativeHandle:Nn,useLayoutEffect:An,useMemo:Fn,useReducer:xn,useRef:En,useState:function(e){return xn(wn)},useDebugValue:jn,useResponder:gn,useDeferredValue:function(e,t){var n=xn(wn),i=n[0],r=n[1];return Pn(function(){var n=vu.suspense;vu.suspense=void 0===t?null:t;try{r(e)}finally{vu.suspense=n}},[e,t]),i},useTransition:function(e){var t=xn(wn),n=t[0];return t=t[1],[Mn(Ln.bind(null,t,e),[t,e]),n]}},Tu={readContext:qt,useCallback:Mn,useContext:qt,useEffect:Pn,useImperativeHandle:Nn,useLayoutEffect:An,useMemo:Fn,useReducer:kn,useRef:En,useState:function(e){return kn(wn)},useDebugValue:jn,useResponder:gn,useDeferredValue:function(e,t){var n=kn(wn),i=n[0],r=n[1];return Pn(function(){var n=vu.suspense;vu.suspense=void 0===t?null:t;try{r(e)}finally{vu.suspense=n}},[e,t]),i},useTransition:function(e){var t=kn(wn),n=t[0];return t=t[1],[Mn(Ln.bind(null,t,e),[t,e]),n]}},Eu=null,Su=null,Du=!1,Ou=Mr.ReactCurrentOwner,Pu=!1,Au={dehydrated:null,retryTime:0},Iu=function(e,t,n,i){for(n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child["return"]=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n["return"]||n["return"]===t)return;n=n["return"]}n.sibling["return"]=n["return"],n=n.sibling}},Nu=function(e){},ju=function(e,t,n,i,r){var o=e.memoizedProps;if(o!==i){var s=t.stateNode;switch(ln(hu.current),e=null,n){case"input":o=D(s,o),i=D(s,i),e=[];break;case"option":o=R(s,o),i=R(s,i),e=[];break;case"select":o=ao({},o,{value:void 0}),i=ao({},i,{value:void 0}),e=[];break;case"textarea":o=F(s,o),i=F(s,i),e=[];break;default:"function"!=typeof o.onClick&&"function"==typeof i.onClick&&(s.onclick=Oe)}Ee(n,i);var a,u;n=null;for(a in o)if(!i.hasOwnProperty(a)&&o.hasOwnProperty(a)&&null!=o[a])if("style"===a)for(u in s=o[a])s.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(ro.hasOwnProperty(a)?e||(e=[]):(e=e||[]).push(a,null));for(a in i){var l=i[a];if(s=null!=o?o[a]:void 0,i.hasOwnProperty(a)&&l!==s&&(null!=l||null!=s))if("style"===a)if(s){for(u in s)!s.hasOwnProperty(u)||l&&l.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in l)l.hasOwnProperty(u)&&s[u]!==l[u]&&(n||(n={}),n[u]=l[u])}else n||(e||(e=[]),e.push(a,n)),n=l;else"dangerouslySetInnerHTML"===a?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(e=e||[]).push(a,l)):"children"===a?s===l||"string"!=typeof l&&"number"!=typeof l||(e=e||[]).push(a,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(ro.hasOwnProperty(a)?(null!=l&&De(r,a),e||s===l||(e=[])):(e=e||[]).push(a,l))}n&&(e=e||[]).push("style",n),r=e,(t.updateQueue=r)&&(t.effectTag|=4)}},Ru=function(e,t,n,i){n!==i&&(t.effectTag|=4)},Mu="function"==typeof WeakSet?WeakSet:Set,Fu="function"==typeof WeakMap?WeakMap:Map,Lu=Math.ceil,Hu=Mr.ReactCurrentDispatcher,zu=Mr.ReactCurrentOwner,Vu=0,Uu=8,Wu=16,Bu=32,$u=0,qu=1,Yu=2,Xu=3,Gu=4,Ku=5,Qu=Vu,Ju=null,Zu=null,el=0,tl=$u,nl=null,il=1073741823,rl=1073741823,ol=null,sl=0,al=!1,ul=0,ll=500,cl=null,hl=!1,fl=null,pl=null,dl=!1,gl=null,vl=90,ml=null,yl=0,bl=null,_l=0,wl=function(e,t){if(yl>50)throw yl=0,bl=null,Error(n(185));if(e=Pi(e,t),null!==e){var i=Nt();1073741823===t?(Qu&Uu)!==Vu&&(Qu&(Wu|Bu))===Vu?ji(e):(Ii(e),Qu===Vu&&Lt()):Ii(e),(4&Qu)===Vu||98!==i&&99!==i||(null===ml?ml=new Map([[e,t]]):(i=ml.get(e),(void 0===i||i>t)&&ml.set(e,t)))}},xl=function(e,t,i){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||Ia.current)Pu=!0;else{if(i>r){switch(Pu=!1,t.tag){case 3:ei(t),$n();break;case 5:if(fn(t),4&t.mode&&1!==i&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Dt(t.type)&&At(t);break;case 4:cn(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,Et(Qa,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return r=t.child.childExpirationTime,0!==r&&r>=i?ti(e,t,i):(Et(du,1&du.current),t=oi(e,t,i),null!==t?t.sibling:null);Et(du,1&du.current);break;case 19:if(r=t.childExpirationTime>=i,0!==(64&e.effectTag)){if(r)return ri(e,t,i);t.effectTag|=64}if(o=t.memoizedState,null!==o&&(o.rendering=null,o.tail=null),Et(du,du.current),!r)return null}return oi(e,t,i)}Pu=!1}}else Pu=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=St(t,Aa.current),$t(t,i),o=yn(null,t,r,e,o,i),t.effectTag|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Dt(r)){var s=!0;At(t)}else s=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Yt(t);var u=r.getDerivedStateFromProps;"function"==typeof u&&en(t,r,u,e),o.updater=su,t.stateNode=o,o._reactInternalFiber=t,on(t,r,e,i),t=Zn(null,t,r,!0,s,i)}else t.tag=0,qn(null,t,o,i),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,s=t.tag=sr(o),e=Vt(o,e),s){case 0:t=Qn(null,t,o,e,i);break e;case 1:t=Jn(null,t,o,e,i);break e;case 11:t=Yn(null,t,o,e,i);break e;case 14:t=Xn(null,t,o,Vt(o.type,e),r,i);break e}throw Error(n(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Vt(r,o),Qn(e,t,r,o,i);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Vt(r,o),Jn(e,t,r,o,i);case 3:if(ei(t),r=t.updateQueue,null===e||null===r)throw Error(n(282));if(r=t.pendingProps,o=t.memoizedState,o=null!==o?o.element:null,Xt(e,t),Jt(t,r,null,i),r=t.memoizedState.element,r===o)$n(),t=oi(e,t,i);else{if((o=t.stateNode.hydrate)&&(Su=Le(t.stateNode.containerInfo.firstChild),Eu=t,o=Du=!0),o)for(i=lu(t,null,r,i),t.child=i;i;)i.effectTag=-3&i.effectTag|1024,i=i.sibling;else qn(e,t,r,i),$n();t=t.child}return t;case 5:return fn(t),null===e&&Un(t),r=t.type,o=t.pendingProps,s=null!==e?e.memoizedProps:null,u=o.children,Fe(r,o)?u=null:null!==s&&Fe(r,s)&&(t.effectTag|=16),Kn(e,t),4&t.mode&&1!==i&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(qn(e,t,u,i),t=t.child),t;case 6:return null===e&&Un(t),null;case 13:return ti(e,t,i);case 4:return cn(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=uu(t,null,r,i):qn(e,t,r,i),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Vt(r,o),Yn(e,t,r,o,i);case 7:return qn(e,t,t.pendingProps,i),t.child;case 8:return qn(e,t,t.pendingProps.children,i),t.child;case 12:return qn(e,t,t.pendingProps.children,i),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,u=t.memoizedProps,s=o.value;var l=t.type._context;if(Et(Qa,l._currentValue),l._currentValue=s,null!==u)if(l=u.value,s=ua(l,s)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,s):1073741823),0===s){if(u.children===o.children&&!Ia.current){t=oi(e,t,i);break e}}else for(l=t.child,null!==l&&(l["return"]=t);null!==l;){var c=l.dependencies;if(null!==c){u=l.child;for(var h=c.firstContext;null!==h;){if(h.context===r&&0!==(h.observedBits&s)){1===l.tag&&(h=Gt(i,null),h.tag=nu,Kt(l,h)),l.expirationTime<i&&(l.expirationTime=i),h=l.alternate,null!==h&&h.expirationTime<i&&(h.expirationTime=i),Bt(l["return"],i),c.expirationTime<i&&(c.expirationTime=i);break}h=h.next}}else u=10===l.tag&&l.type===t.type?null:l.child;if(null!==u)u["return"]=l;else for(u=l;null!==u;){if(u===t){u=null;break}if(l=u.sibling,null!==l){l["return"]=u["return"],u=l;break}u=u["return"]}l=u}qn(e,t,o.children,i),t=t.child}return t;case 9:return o=t.type,s=t.pendingProps,r=s.children,$t(t,i),o=qt(o,s.unstable_observedBits),r=r(o),t.effectTag|=1,qn(e,t,r,i),t.child;case 14:return o=t.type,s=Vt(o,t.pendingProps),s=Vt(o.type,s),Xn(e,t,o,s,r,i);case 15:return Gn(e,t,t.type,t.pendingProps,r,i);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Vt(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Dt(r)?(e=!0,At(t)):e=!1,$t(t,i),nn(t,r,o),on(t,r,o,i),Zn(null,t,r,!0,e,i);case 19:return ri(e,t,i)}throw Error(n(156,t.tag))},kl=null,Cl=null,Tl=function(e,t,n,i){return new rr(e,t,n,i)};wr.prototype.render=function(e){mr(e,this._internalRoot,null,null)},wr.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;mr(null,e,null,function(){t[Ps]=null})};var El=function(e){if(13===e.tag){var t=zt(Di(),150,100);wl(e,t),_r(e,t)}},Sl=function(e){13===e.tag&&(wl(e,3),_r(e,3))},Dl=function(e){if(13===e.tag){var t=Di();t=Oi(t,e,null),wl(e,t),_r(e,t)}};uo=function(e,t,i){switch(t){case"input":if(A(e,i),t=i.name,"radio"===i.type&&null!=t){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<i.length;t++){var r=i[t];if(r!==e&&r.form===e.form){var o=We(r);if(!o)throw Error(n(90));S(r),A(r,o)}}}break;case"textarea":H(e,i);break;case"select":t=i.value,null!=t&&M(e,!!i.multiple,t,!1)}},function(e,t,n,i){ho=e,fo=t,po=n,go=i}(Mi,function(e,t,n,i,r){var o=Qu;Qu|=4;try{return Rt(98,e.bind(null,t,n,i,r))}finally{Qu=o,Qu===Vu&&Lt()}},function(){(Qu&(1|Wu|Bu))===Vu&&(Ri(),Qi())},function(e,t){var n=Qu;Qu|=2;try{return e(t)}finally{Qu=n,Qu===Vu&&Lt()}});var Ol={Events:[Ve,Ue,We,f,io,Ke,function(e){J(e,Ge)},d,g,xe,Z,Qi,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;return ir(ao({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=K(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:ze,bundleType:0,version:"16.13.0",rendererPackageName:"react-dom"}),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ol,e.createPortal=Er,e.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw Error(n(268,Object.keys(e)))}return e=K(t),e=null===e?null:e.stateNode},e.flushSync=function(e,t){if((Qu&(Wu|Bu))!==Vu)throw Error(n(187));var i=Qu;Qu|=1;try{return Rt(99,e.bind(null,t))}finally{Qu=i,Lt()}},e.hydrate=function(e,t,i){if(!xr(t))throw Error(n(200));return Cr(null,e,t,!0,i)},e.render=function(e,t,i){if(!xr(t))throw Error(n(200));return Cr(null,e,t,!1,i)},e.unmountComponentAtNode=function(e){if(!xr(e))throw Error(n(40));return e._reactRootContainer?(Fi(function(){Cr(null,null,e,!1,function(){e._reactRootContainer=null,e[Ps]=null})}),!0):!1},e.unstable_batchedUpdates=Mi,e.unstable_createPortal=function(e,t){return Er(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(e,t,i,r){if(!xr(i))throw Error(n(200));if(null==e||void 0===e._reactInternalFiber)throw Error(n(38));return Cr(e,t,i,!1,r)},e.version="16.13.0"}),!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("react-dnd-html5-backend",[],t):"object"==typeof exports?exports.ReactDnDHTML5Backend=t():e.ReactDnDHTML5Backend=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=30)}([function(e,t,n){var i=n(15),r="object"==typeof self&&self&&self.Object===Object&&self,o=i||r||Function("return this")();e.exports=o},function(e,t,n){function i(e,t){var n=o(e,t);return r(n)?n:void 0}var r=n(39),o=n(46);e.exports=i},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},function(e,t,n){var i=n(1),r=i(Object,"create");e.exports=r},function(e,t,n){function i(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}var r=n(10);e.exports=i},function(e,t,n){function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}var r=n(83);e.exports=i},function(e,t,n){function i(e,t){return s(o(e,t,r),e+"")}var r=n(13),o=n(33),s=n(35);e.exports=i},function(e,t,n){function i(e){return null==e?void 0===e?u:a:l&&l in Object(e)?o(e):s(e)}var r=n(9),o=n(41),s=n(42),a="[object Null]",u="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=i},function(e,t,n){var i=n(0),r=i.Symbol;e.exports=r},function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},function(e,t,n){function i(e){return null!=e&&o(e.length)&&!r(e)}var r=n(14),o=n(16);e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FILE="__NATIVE_FILE__",t.URL="__NATIVE_URL__",t.TEXT="__NATIVE_TEXT__"},function(e,t){function n(e){return e}e.exports=n},function(e,t,n){function i(e){if(!o(e))return!1;var t=r(e);return t==a||t==u||t==s||t==l}var r=n(8),o=n(2),s="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",l="[object Proxy]";e.exports=i},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(t,n(40))},function(e,t){function n(e){return"number"==typeof e&&e>-1&&e%1==0&&i>=e}var i=9007199254740991;e.exports=n},function(e,t){function n(e,t){var n=typeof e;return!!(t=null==t?i:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&t>e}var i=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=n},function(e,t,n){var i=n(52),r=n(3),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=i(function(){return arguments}())?i:function(e){return r(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=u},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}var r=n(23),o=n(87),s=n(88);i.prototype.add=i.prototype.push=o,i.prototype.has=s,e.exports=i},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}var r=n(68),o=n(82),s=n(84),a=n(85),u=n(86);i.prototype.clear=r,i.prototype["delete"]=o,i.prototype.get=s,i.prototype.has=a,i.prototype.set=u,e.exports=i},function(e,t,n){function i(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}var r=n(89);e.exports=i},function(e,t){function n(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}e.exports=n},function(e,t){function n(e,t){return e.has(t)}e.exports=n},function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=n},function(e,t,n){function i(e){return o(e)&&r(e)}var r=n(11),o=n(3);e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSafari=t.isFirefox=void 0;var i=n(99),r=function(e){return e&&e.__esModule?e:{"default":e}}(i);t.isFirefox=(0,r["default"])(function(){return/firefox/i.test(navigator.userAgent)}),t.isSafari=(0,r["default"])(function(){return Boolean(window.safari)})},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e){return new s["default"](e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyImage=t.NativeTypes=void 0,t["default"]=r;var o=n(31),s=i(o),a=n(103),u=i(a),l=n(12),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}(l);t.NativeTypes=c,t.getEmptyImage=u["default"]},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(32),a=i(s),u=n(61),l=i(u),c=n(62),h=i(c),f=n(29),p=n(100),d=n(102),g=n(12),v=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}(g),m=function(){function e(t){r(this,e),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.context=t.getContext(),this.sourcePreviewNodes={},this.sourcePreviewNodeOptions={},this.sourceNodes={},this.sourceNodeOptions={},this.enterLeaveCounter=new h["default"],this.dragStartSourceIds=[],this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.altKeyPressed=!1,this.getSourceClientOffset=this.getSourceClientOffset.bind(this),this.handleTopDragStart=this.handleTopDragStart.bind(this),this.handleTopDragStartCapture=this.handleTopDragStartCapture.bind(this),this.handleTopDragEndCapture=this.handleTopDragEndCapture.bind(this),this.handleTopDragEnter=this.handleTopDragEnter.bind(this),this.handleTopDragEnterCapture=this.handleTopDragEnterCapture.bind(this),this.handleTopDragLeaveCapture=this.handleTopDragLeaveCapture.bind(this),this.handleTopDragOver=this.handleTopDragOver.bind(this),this.handleTopDragOverCapture=this.handleTopDragOverCapture.bind(this),this.handleTopDrop=this.handleTopDrop.bind(this),this.handleTopDropCapture=this.handleTopDropCapture.bind(this),this.handleSelectStart=this.handleSelectStart.bind(this),this.endDragIfSourceWasRemovedFromDOM=this.endDragIfSourceWasRemovedFromDOM.bind(this),this.endDragNativeItem=this.endDragNativeItem.bind(this),this.asyncEndDragNativeItem=this.asyncEndDragNativeItem.bind(this),this.isNodeInDocument=this.isNodeInDocument.bind(this)}return o(e,[{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"connectDragPreview",value:function(e,t,n){var i=this;return this.sourcePreviewNodeOptions[e]=n,this.sourcePreviewNodes[e]=t,function(){delete i.sourcePreviewNodes[e],delete i.sourcePreviewNodeOptions[e]}}},{key:"connectDragSource",value:function(e,t,n){var i=this;this.sourceNodes[e]=t,this.sourceNodeOptions[e]=n;var r=function(t){return i.handleDragStart(t,e)},o=function(t){return i.handleSelectStart(t,e);
- };return t.setAttribute("draggable",!0),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),function(){delete i.sourceNodes[e],delete i.sourceNodeOptions[e],t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable",!1)}}},{key:"connectDropTarget",value:function(e,t){var n=this,i=function(t){return n.handleDragEnter(t,e)},r=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",i),t.addEventListener("dragover",r),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",i),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions[e];return(0,a["default"])(t||{},{dropEffect:this.altKeyPressed?"copy":"move"})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions[e];return(0,a["default"])(t||{},{anchorX:.5,anchorY:.5,captureDraggingState:!1})}},{key:"getSourceClientOffset",value:function(e){return(0,p.getNodeClientOffset)(this.sourceNodes[e])}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(v).some(function(t){return v[t]===e})}},{key:"beginDragNativeItem",value:function(e){this.clearCurrentDragSourceNode();var t=(0,d.createNativeDragSource)(e);this.currentNativeSource=new t,this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle]),(0,f.isFirefox)()&&this.window.addEventListener("mouseover",this.asyncEndDragNativeItem,!0)}},{key:"asyncEndDragNativeItem",value:function(){this.asyncEndDragFrameId=this.window.requestAnimationFrame(this.endDragNativeItem),(0,f.isFirefox)()&&(this.window.removeEventListener("mouseover",this.asyncEndDragNativeItem,!0),this.enterLeaveCounter.reset())}},{key:"endDragNativeItem",value:function(){this.isDraggingNativeItem()&&(this.actions.endDrag(),this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)}},{key:"isNodeInDocument",value:function(e){return!(!document.body.contains(e)&&!this.window)&&this.window.document.body.contains(e)}},{key:"endDragIfSourceWasRemovedFromDOM",value:function(){var e=this.currentDragSourceNode;this.isNodeInDocument(e)||this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"setCurrentDragSourceNode",value:function(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.currentDragSourceNodeOffset=(0,p.getNodeClientOffset)(e),this.currentDragSourceNodeOffsetChanged=!1,this.window.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.currentDragSourceNodeOffset=null,this.currentDragSourceNodeOffsetChanged=!1,this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0),!0)}},{key:"checkIfCurrentDragSourceRectChanged",value:function(){var e=this.currentDragSourceNode;return!!e&&(!!this.currentDragSourceNodeOffsetChanged||(this.currentDragSourceNodeOffsetChanged=!(0,l["default"])((0,p.getNodeClientOffset)(e),this.currentDragSourceNodeOffset),this.currentDragSourceNodeOffsetChanged))}},{key:"handleTopDragStartCapture",value:function(){this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]}},{key:"handleDragStart",value:function(e,t){this.dragStartSourceIds.unshift(t)}},{key:"handleTopDragStart",value:function(e){var t=this,n=this.dragStartSourceIds;this.dragStartSourceIds=null;var i=(0,p.getEventClientOffset)(e);this.monitor.isDragging()&&this.actions.endDrag(),this.actions.beginDrag(n,{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:i});var r=e.dataTransfer,o=(0,d.matchNativeItemType)(r);if(this.monitor.isDragging()){if("function"==typeof r.setDragImage){var s=this.monitor.getSourceId(),a=this.sourceNodes[s],u=this.sourcePreviewNodes[s]||a,l=this.getCurrentSourcePreviewNodeOptions(),c=l.anchorX,h=l.anchorY,f=l.offsetX,g=l.offsetY,v={anchorX:c,anchorY:h},m={offsetX:f,offsetY:g},y=(0,p.getDragPreviewOffset)(a,u,i,v,m);r.setDragImage(u,y.x,y.y)}try{r.setData("application/json",{})}catch(e){}this.setCurrentDragSourceNode(e.target),this.getCurrentSourcePreviewNodeOptions().captureDraggingState?this.actions.publishDragSource():setTimeout(function(){return t.actions.publishDragSource()})}else if(o)this.beginDragNativeItem(o);else{if(!(r.types||e.target.hasAttribute&&e.target.hasAttribute("draggable")))return;e.preventDefault()}}},{key:"handleTopDragEndCapture",value:function(){this.clearCurrentDragSourceNode()&&this.actions.endDrag()}},{key:"handleTopDragEnterCapture",value:function(e){if(this.dragEnterTargetIds=[],this.enterLeaveCounter.enter(e.target)&&!this.monitor.isDragging()){var t=e.dataTransfer,n=(0,d.matchNativeItemType)(t);n&&this.beginDragNativeItem(n)}}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleTopDragEnter",value:function(e){var t=this,n=this.dragEnterTargetIds;this.dragEnterTargetIds=[],this.monitor.isDragging()&&(this.altKeyPressed=e.altKey,(0,f.isFirefox)()||this.actions.hover(n,{clientOffset:(0,p.getEventClientOffset)(e)}),n.some(function(e){return t.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()))}},{key:"handleTopDragOverCapture",value:function(){this.dragOverTargetIds=[]}},{key:"handleDragOver",value:function(e,t){this.dragOverTargetIds.unshift(t)}},{key:"handleTopDragOver",value:function(e){var t=this,n=this.dragOverTargetIds;return this.dragOverTargetIds=[],this.monitor.isDragging()?(this.altKeyPressed=e.altKey,this.actions.hover(n,{clientOffset:(0,p.getEventClientOffset)(e)}),n.some(function(e){return t.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer.dropEffect=this.getCurrentDropEffect()):this.isDraggingNativeItem()?(e.preventDefault(),e.dataTransfer.dropEffect="none"):this.checkIfCurrentDragSourceRectChanged()&&(e.preventDefault(),e.dataTransfer.dropEffect="move"),void 0):(e.preventDefault(),void(e.dataTransfer.dropEffect="none"))}},{key:"handleTopDragLeaveCapture",value:function(e){this.isDraggingNativeItem()&&e.preventDefault(),this.enterLeaveCounter.leave(e.target)&&this.isDraggingNativeItem()&&this.endDragNativeItem()}},{key:"handleTopDropCapture",value:function(e){this.dropTargetIds=[],e.preventDefault(),this.isDraggingNativeItem()&&this.currentNativeSource.mutateItemByReadingDataTransfer(e.dataTransfer),this.enterLeaveCounter.reset()}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"handleTopDrop",value:function(e){var t=this.dropTargetIds;this.dropTargetIds=[],this.actions.hover(t,{clientOffset:(0,p.getEventClientOffset)(e)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.endDragIfSourceWasRemovedFromDOM()}},{key:"handleSelectStart",value:function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}},{key:"window",get:function(){return this.context&&this.context.window?this.context.window:"undefined"!=typeof window?window:void 0}}]),e}();t["default"]=m},function(e,t,n){var i=n(7),r=n(10),o=n(48),s=n(49),a=Object.prototype,u=a.hasOwnProperty,l=i(function(e,t){e=Object(e);var n=-1,i=t.length,l=i>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(i=1);++n<i;)for(var c=t[n],h=s(c),f=-1,p=h.length;++f<p;){var d=h[f],g=e[d];(void 0===g||r(g,a[d])&&!u.call(e,d))&&(e[d]=c[d])}return e});e.exports=l},function(e,t,n){function i(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,a=o(i.length-t,0),u=Array(a);++s<a;)u[s]=i[t+s];s=-1;for(var l=Array(t+1);++s<t;)l[s]=i[s];return l[t]=n(u),r(e,this,l)}}var r=n(34),o=Math.max;e.exports=i},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=n},function(e,t,n){var i=n(36),r=n(47),o=r(i);e.exports=o},function(e,t,n){var i=n(37),r=n(38),o=n(13),s=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:o;e.exports=s},function(e,t){function n(e){return function(){return e}}e.exports=n},function(e,t,n){var i=n(1),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},function(e,t,n){function i(e){return!(!s(e)||o(e))&&(r(e)?d:l).test(a(e))}var r=n(14),o=n(43),s=n(2),a=n(45),u=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,h=Object.prototype,f=c.toString,p=h.hasOwnProperty,d=RegExp("^"+f.call(p).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=i},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){function i(e){var t=s.call(e,u),n=e[u];try{e[u]=void 0;var i=!0}catch(e){}var r=a.call(e);return i&&(t?e[u]=n:delete e[u]),r}var r=n(9),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=i},function(e,t){function n(e){return r.call(e)}var i=Object.prototype,r=i.toString;e.exports=n},function(e,t,n){function i(e){return!!o&&o in e}var r=n(44),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=i},function(e,t,n){var i=n(0),r=i["__core-js_shared__"];e.exports=r},function(e,t){function n(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var i=Function.prototype,r=i.toString;e.exports=n},function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},function(e,t){function n(e){var t=0,n=0;return function(){var s=o(),a=r-(s-n);if(n=s,a>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i=800,r=16,o=Date.now;e.exports=n},function(e,t,n){function i(e,t,n){if(!a(n))return!1;var i=typeof t;return!!("number"==i?o(n)&&s(t,n.length):"string"==i&&t in n)&&r(n[t],e)}var r=n(10),o=n(11),s=n(17),a=n(2);e.exports=i},function(e,t,n){function i(e){return s(e)?r(e,!0):o(e)}var r=n(50),o=n(58),s=n(11);e.exports=i},function(e,t,n){function i(e,t){var n=s(e),i=!n&&o(e),c=!n&&!i&&a(e),f=!n&&!i&&!c&&l(e),p=n||i||c||f,d=p?r(e.length,String):[],g=d.length;for(var v in e)!t&&!h.call(e,v)||p&&("length"==v||c&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,g))||d.push(v);return d}var r=n(51),o=n(18),s=n(19),a=n(53),u=n(17),l=n(55),c=Object.prototype,h=c.hasOwnProperty;e.exports=i},function(e,t){function n(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}e.exports=n},function(e,t,n){function i(e){return o(e)&&r(e)==s}var r=n(8),o=n(3),s="[object Arguments]";e.exports=i},function(e,t,n){(function(e){var i=n(0),r=n(54),o="object"==typeof t&&t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===o,u=a?i.Buffer:void 0,l=u?u.isBuffer:void 0,c=l||r;e.exports=c}).call(t,n(20)(e))},function(e,t){function n(){return!1}e.exports=n},function(e,t,n){var i=n(56),r=n(21),o=n(57),s=o&&o.isTypedArray,a=s?r(s):i;e.exports=a},function(e,t,n){function i(e){return s(e)&&o(e.length)&&!!a[r(e)]}var r=n(8),o=n(16),s=n(3),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=i},function(e,t,n){(function(e){var i=n(15),r="object"==typeof t&&t&&!t.nodeType&&t,o=r&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===r,a=s&&i.process,u=function(){try{return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u}).call(t,n(20)(e))},function(e,t,n){function i(e){if(!r(e))return s(e);var t=o(e),n=[];for(var i in e)("constructor"!=i||!t&&u.call(e,i))&&n.push(i);return n}var r=n(2),o=n(59),s=n(60),a=Object.prototype,u=a.hasOwnProperty;e.exports=i},function(e,t){function n(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||i)}var i=Object.prototype;e.exports=n},function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},function(e,t,n){"use strict";function i(e,t){if(e===t)return!0;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=Object.prototype.hasOwnProperty,o=0;o<n.length;o+=1){if(!r.call(t,n[o])||e[n[o]]!==t[n[o]])return!1;if(e[n[o]]!==t[n[o]])return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),s=n(63),a=i(s),u=n(96),l=i(u),c=function(){function e(){r(this,e),this.entered=[]}return o(e,[{key:"enter",value:function(e){var t=this.entered.length,n=function(t){return document.documentElement.contains(t)&&(!t.contains||t.contains(e))};return this.entered=(0,a["default"])(this.entered.filter(n),[e]),0===t&&this.entered.length>0}},{key:"leave",value:function(e){var t=this.entered.length;return this.entered=(0,l["default"])(this.entered.filter(function(e){return document.documentElement.contains(e)}),e),t>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}]),e}();t["default"]=c},function(e,t,n){var i=n(64),r=n(7),o=n(67),s=n(28),a=r(function(e){return o(i(e,1,s,!0))});e.exports=a},function(e,t,n){function i(e,t,n,s,a){var u=-1,l=e.length;for(n||(n=o),a||(a=[]);++u<l;){var c=e[u];t>0&&n(c)?t>1?i(c,t-1,n,s,a):r(a,c):s||(a[a.length]=c)}return a}var r=n(65),o=n(66);e.exports=i},function(e,t){function n(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}e.exports=n},function(e,t,n){function i(e){return s(e)||o(e)||!!(a&&e&&e[a])}var r=n(9),o=n(18),s=n(19),a=r?r.isConcatSpreadable:void 0;e.exports=i},function(e,t,n){function i(e,t,n){var i=-1,h=o,f=e.length,p=!0,d=[],g=d;if(n)p=!1,h=s;else if(f>=c){var v=t?null:u(e);if(v)return l(v);p=!1,h=a,g=new r}else g=t?[]:d;e:for(;++i<f;){var m=e[i],y=t?t(m):m;if(m=n||0!==m?m:0,p&&y===y){for(var b=g.length;b--;)if(g[b]===y)continue e;t&&g.push(y),d.push(m)}else h(g,y,n)||(g!==d&&g.push(y),d.push(m))}return d}var r=n(22),o=n(24),s=n(25),a=n(26),u=n(93),l=n(27),c=200;e.exports=i},function(e,t,n){function i(){this.size=0,this.__data__={hash:new r,map:new(s||o),string:new r}}var r=n(69),o=n(75),s=n(81);e.exports=i},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}var r=n(70),o=n(71),s=n(72),a=n(73),u=n(74);i.prototype.clear=r,i.prototype["delete"]=o,i.prototype.get=s,i.prototype.has=a,i.prototype.set=u,e.exports=i},function(e,t,n){function i(){this.__data__=r?r(null):{},this.size=0}var r=n(4);e.exports=i},function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},function(e,t,n){function i(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return a.call(t,e)?t[e]:void 0}var r=n(4),o="__lodash_hash_undefined__",s=Object.prototype,a=s.hasOwnProperty;e.exports=i},function(e,t,n){function i(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}var r=n(4),o=Object.prototype,s=o.hasOwnProperty;e.exports=i},function(e,t,n){function i(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}var r=n(4),o="__lodash_hash_undefined__";e.exports=i},function(e,t,n){function i(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}var r=n(76),o=n(77),s=n(78),a=n(79),u=n(80);i.prototype.clear=r,i.prototype["delete"]=o,i.prototype.get=s,i.prototype.has=a,i.prototype.set=u,e.exports=i},function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},function(e,t,n){function i(e){var t=this.__data__,n=r(t,e);return!(0>n||(n==t.length-1?t.pop():s.call(t,n,1),--this.size,0))}var r=n(5),o=Array.prototype,s=o.splice;e.exports=i},function(e,t,n){function i(e){var t=this.__data__,n=r(t,e);return 0>n?void 0:t[n][1]}var r=n(5);e.exports=i},function(e,t,n){function i(e){return r(this.__data__,e)>-1}var r=n(5);e.exports=i},function(e,t,n){function i(e,t){var n=this.__data__,i=r(n,e);return 0>i?(++this.size,n.push([e,t])):n[i][1]=t,this}var r=n(5);e.exports=i},function(e,t,n){var i=n(1),r=n(0),o=i(r,"Map");e.exports=o},function(e,t,n){function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}var r=n(6);e.exports=i},function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},function(e,t,n){function i(e){return r(this,e).get(e)}var r=n(6);e.exports=i},function(e,t,n){function i(e){return r(this,e).has(e)}var r=n(6);e.exports=i},function(e,t,n){function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var r=n(6);e.exports=i},function(e,t){function n(e){return this.__data__.set(e,i),this}var i="__lodash_hash_undefined__";e.exports=n},function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},function(e,t,n){function i(e,t,n){return t===t?s(e,t,n):r(e,o,n)}var r=n(90),o=n(91),s=n(92);e.exports=i},function(e,t){function n(e,t,n,i){for(var r=e.length,o=n+(i?1:-1);i?o--:++o<r;)if(t(e[o],o,e))return o;return-1}e.exports=n},function(e,t){function n(e){return e!==e}e.exports=n},function(e,t){function n(e,t,n){for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}e.exports=n},function(e,t,n){var i=n(94),r=n(95),o=n(27),s=i&&1/o(new i([,-0]))[1]==1/0?function(e){return new i(e)}:r;e.exports=s},function(e,t,n){var i=n(1),r=n(0),o=i(r,"Set");e.exports=o},function(e,t){function n(){}e.exports=n},function(e,t,n){var i=n(97),r=n(7),o=n(28),s=r(function(e,t){return o(e)?i(e,t):[]});e.exports=s},function(e,t,n){function i(e,t,n,i){var h=-1,f=o,p=!0,d=e.length,g=[],v=t.length;if(!d)return g;n&&(t=a(t,u(n))),i?(f=s,p=!1):t.length>=c&&(f=l,p=!1,t=new r(t));e:for(;++h<d;){var m=e[h],y=null==n?m:n(m);if(m=i||0!==m?m:0,p&&y===y){for(var b=v;b--;)if(t[b]===y)continue e;g.push(m)}else f(t,y,i)||g.push(m)}return g}var r=n(22),o=n(24),s=n(25),a=n(98),u=n(21),l=n(26),c=200;e.exports=i},function(e,t){function n(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}e.exports=n},function(e,t,n){function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var s=e.apply(this,i);return n.cache=o.set(r,s)||o,s};return n.cache=new(i.Cache||r),n}var r=n(23),o="Expected a function";i.Cache=r,e.exports=i},function(e,t,n){"use strict";function i(e){var t=e.nodeType===h?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),i=n.top;return{x:n.left,y:i}}function r(e){return{x:e.clientX,y:e.clientY}}function o(e){return"IMG"===e.nodeName&&((0,u.isFirefox)()||!document.documentElement.contains(e))}function s(e,t,n,i){var r=e?t.width:n,o=e?t.height:i;return(0,u.isSafari)()&&e&&(o/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:o}}function a(e,t,n,r,a){var l=o(t),h=l?e:t,f=i(h),p={x:n.x-f.x,y:n.y-f.y},d=e.offsetWidth,g=e.offsetHeight,v=r.anchorX,m=r.anchorY,y=s(l,t,d,g),b=y.dragPreviewWidth,_=y.dragPreviewHeight,w=a.offsetX,x=a.offsetY,k=0===w||w,C=0===x||x;return{x:k?w:function(){return new c["default"]([0,.5,1],[p.x,p.x/d*b,p.x+b-d]).interpolate(v)}(),y:C?x:function(){var e=new c["default"]([0,.5,1],[p.y,p.y/g*_,p.y+_-g]),t=e.interpolate(m);return(0,u.isSafari)()&&l&&(t+=(window.devicePixelRatio-1)*_),t}()}}Object.defineProperty(t,"__esModule",{value:!0}),t.getNodeClientOffset=i,t.getEventClientOffset=r,t.getDragPreviewOffset=a;var u=n(29),l=n(101),c=function(e){return e&&e.__esModule?e:{"default":e}}(l),h=1},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(t,n){i(this,e);for(var r=t.length,o=[],s=0;r>s;s++)o.push(s);o.sort(function(e,n){return t[e]<t[n]?-1:1});for(var a=[],u=[],l=[],c=void 0,h=void 0,f=0;r-1>f;f++)c=t[f+1]-t[f],h=n[f+1]-n[f],u.push(c),a.push(h),l.push(h/c);for(var p=[l[0]],d=0;d<u.length-1;d++){var g=l[d],v=l[d+1];if(0>=g*v)p.push(0);else{c=u[d];var m=u[d+1],y=c+m;p.push(3*y/((y+m)/g+(y+c)/v))}}p.push(l[l.length-1]);for(var b=[],_=[],w=void 0,x=0;x<p.length-1;x++){w=l[x];var k=p[x],C=1/u[x],T=k+p[x+1]-w-w;b.push((w-k-T)*C),_.push(T*C*C)}this.xs=t,this.ys=n,this.c1s=p,this.c2s=b,this.c3s=_}return r(e,[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,i=this.c1s,r=this.c2s,o=this.c3s,s=t.length-1;if(e===t[s])return n[s];for(var a=0,u=o.length-1,l=void 0;u>=a;){l=Math.floor(.5*(a+u));var c=t[l];if(e>c)a=l+1;else{if(!(c>e))return n[l];u=l-1}}s=Math.max(0,u);var h=e-t[s],f=h*h;return n[s]+i[s]*h+r[s]*f+o[s]*h*f}}]),e}();t["default"]=o},function(e,t,n){"use strict";function i(e,t){for(var n in t){var i=t[n];i.configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n,i)}return e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n){var i=t.reduce(function(t,n){return t||e.getData(n)},null);return null!=i?i:n}function a(e){var t=p[e],n=t.exposeProperty,o=t.matchesTypes,s=t.getData;return function(){function e(){var t,o;r(this,e),this.item=(t={},o={},o[n]=o[n]||{},o[n].get=function(){return console.warn("Browser doesn't allow reading \""+n+'" until the drop event.'),null},i(t,o),t)}return c(e,[{key:"mutateItemByReadingDataTransfer",value:function(e){delete this.item[n],this.item[n]=s(e,o)}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}]),e}()}function u(e){var t=Array.prototype.slice.call(e.types||[]);return Object.keys(p).filter(function(e){return p[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}Object.defineProperty(t,"__esModule",{value:!0});var l,c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();t.createNativeDragSource=a,t.matchNativeItemType=u;var h=n(12),f=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}(h),p=(l={},o(l,f.FILE,{exposeProperty:"files",matchesTypes:["Files"],getData:function(e){return Array.prototype.slice.call(e.files)}}),o(l,f.URL,{exposeProperty:"urls",matchesTypes:["Url","text/uri-list"],getData:function(e,t){return s(e,t,"").split("\n")}}),o(l,f.TEXT,{exposeProperty:"text",matchesTypes:["Text","text/plain"],getData:function(e,t){return s(e,t,"")}}),l)},function(e,t,n){"use strict";function i(){return r||(r=new Image,r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),r}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=i;var r=void 0}])}),/**
- * Licensed Materials - Property of IBM
- * IBM Business Analytics (C) Copyright IBM Corp. 2018, 2020
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define("corsair_ship/ba-react-html5-dnd",["react-dnd","react-dnd-html5-backend"],function(e,t){return e.DragDropContext(t)}),/** MobX - (c) Michel Weststrate 2015 - 2018 - MIT Licensed */
- function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("mobx",["exports"],t):(e=e||self,t(e.mobx={}))}(this,function(e){"use strict";function t(e,t){function n(){this.constructor=e}_n(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function n(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return s}function i(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(n(arguments[t]));return e}function r(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:Tn}function o(){return++ni.mobxGuid}function s(e){throw a(!1,e),"X"}function a(e,t){if(!e)throw new Error("[mobx] "+(t||xn))}function u(e,t){return"production"===process.env.NODE_ENV?!1:t?u("'"+e+"', use '"+t+"' instead."):-1!==En.indexOf(e)?!1:(En.push(e),console.error("[mobx] Deprecated: "+e),!0)}function l(e){var t=!1;return function(){return t?void 0:(t=!0,e.apply(this,arguments))}}function c(e){var t=[];return e.forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),t}function h(e){return null!==e&&"object"==typeof e}function f(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function p(e){return x(e)||xi(e)?e:Array.isArray(e)?new Map(e):f(e)?new Map(Object.entries(e)):s("Cannot convert to map from '"+e+"'")}function d(e,t){for(var n=0;n<t.length;n++)g(e,t[n],e[t[n]])}function g(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function v(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function m(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!n||n.configurable!==!1&&n.writable!==!1}function y(e,t){"production"===process.env.NODE_ENV||m(e,t)||s("Cannot make property '"+t+"' observable, it is not configurable and writable in the target object")}function b(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return h(e)&&e[n]===!0}}function _(e,t){return"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function w(e){return Array.isArray(e)||nn(e)}function x(e){return void 0!==r().Map&&e instanceof r().Map?!0:!1}function k(e){return e instanceof Set}function C(e){for(var t=[];;){var n=e.next();if(n.done)break;t.push(n.value)}return t}function T(){return"function"==typeof Symbol&&Symbol.toPrimitive||"@@toPrimitive"}function E(e){return null===e?null:"object"==typeof e?""+e:e}function S(){return"function"==typeof Symbol&&Symbol.iterator||"@@iterator"}function D(e,t){v(e,S(),t)}function O(e){return e[S()]=A,e}function P(){return"function"==typeof Symbol&&Symbol.toStringTag||"@@toStringTag"}function A(){return this}function I(e,t,n){void 0===t&&(t=Sn),void 0===n&&(n=Sn);var i=new Dn(e);return nt(i,t),it(i,n),i}function N(e,t){return e===t}function j(e,t){return vn(e,t)}function R(e,t){return vn(e,t,1)}function M(e,t){return _(e,t)||N(e,t)}function F(e,t){var n=t?An:In;return n[e]||(n[e]={configurable:!0,enumerable:t,get:function(){return L(this),this[e]},set:function(t){L(this),this[e]=t}})}function L(e){if(e.__mobxDidRunLazyInitializers!==!0){var t=e.__mobxDecorators;if(t){g(e,"__mobxDidRunLazyInitializers",!0);for(var n in t){var i=t[n];i.propertyCreator(e,i.prop,i.descriptor,i.decoratorTarget,i.decoratorArguments)}}}}function H(e,t){return function(){var n,i=function(i,r,o,a){if(a===!0)return t(i,r,o,i,n),null;if("production"===process.env.NODE_ENV||z(arguments)||s("This function is a decorator, but it wasn't invoked like a decorator"),!Object.prototype.hasOwnProperty.call(i,"__mobxDecorators")){var u=i.__mobxDecorators;g(i,"__mobxDecorators",wn({},u))}return i.__mobxDecorators[r]={prop:r,propertyCreator:t,descriptor:o,decoratorTarget:i,decoratorArguments:n},F(r,e)};return z(arguments)?(n=kn,i.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),i)}}function z(e){return(2===e.length||3===e.length)&&"string"==typeof e[1]||4===e.length&&e[3]===!0}function V(e,t,n){return Tt(e)?e:Array.isArray(e)?zn.array(e,{name:n}):f(e)?zn.object(e,void 0,{name:n}):x(e)?zn.map(e,{name:n}):k(e)?zn.set(e,{name:n}):e}function U(e,t,n){return void 0===e||null===e?e:fn(e)||nn(e)||xi(e)||Ti(e)?e:Array.isArray(e)?zn.array(e,{name:n,deep:!1}):f(e)?zn.object(e,void 0,{name:n,deep:!1}):x(e)?zn.map(e,{name:n,deep:!1}):k(e)?zn.set(e,{name:n,deep:!1}):s("production"!==process.env.NODE_ENV&&"The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets")}function W(e){return e}function B(e,t,n){if("production"!==process.env.NODE_ENV&&Tt(e))throw"observable.struct should not be used with observable values";return vn(e,t)?t:e}function $(e){var t=H(!0,function(t,n,i,r,o){"production"!==process.env.NODE_ENV&&a(!i||!i.get,'@observable cannot be used on getter (property "'+n+'"), use @computed instead.');var s=i?i.initializer?i.initializer.call(t):i.value:void 0;sn(t,n,s,e)}),n="undefined"!=typeof process&&process.env&&"production"!==process.env.NODE_ENV?function(){return arguments.length<2?s("Incorrect decorator invocation. @observable decorator doesn't expect any arguments"):t.apply(null,arguments)}:t;return n.enhancer=e,n}function q(e){/^(deep|name|equals|defaultDecorator)$/.test(e)||s("invalid option for (extend)observable: "+e)}function Y(e){if(null===e||void 0===e)return Nn;if("string"==typeof e)return{name:e,deep:!0};if("production"!==process.env.NODE_ENV){if("object"!=typeof e)return s("expected options object");Object.keys(e).forEach(q)}return e}function X(e){return e.defaultDecorator?e.defaultDecorator.enhancer:e.deep===!1?W:V}function G(e,t,n){if("string"==typeof arguments[1])return Rn.apply(null,arguments);if(Tt(e))return e;var i=f(e)?zn.object(e,t,n):Array.isArray(e)?zn.array(e,t):x(e)?zn.map(e,t):k(e)?zn.set(e,t):e;return i!==e?i:void s("production"!==process.env.NODE_ENV&&"The provided value could not be converted into an observable. If you want just create an observable reference to the object use 'observable.box(value)'")}function K(e){s("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function Q(e){return e instanceof $n}function J(t){switch(t.dependenciesState){case e.IDerivationState.UP_TO_DATE:return!1;case e.IDerivationState.NOT_TRACKING:case e.IDerivationState.STALE:return!0;case e.IDerivationState.POSSIBLY_STALE:for(var n=ae(),i=t.observing,r=i.length,o=0;r>o;o++){var s=i[o];if(Qn(s)){if(ni.disableErrorBoundaries)s.get();else try{s.get()}catch(a){return ue(n),!0}if(t.dependenciesState===e.IDerivationState.STALE)return ue(n),!0}}return he(t),ue(n),!1}}function Z(){return null!==ni.trackingDerivation}function ee(e){var t=e.observers.length>0;ni.computationDepth>0&&t&&s("production"!==process.env.NODE_ENV&&"Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: "+e.name),ni.allowStateChanges||!t&&"strict"!==ni.enforceActions||s("production"!==process.env.NODE_ENV&&(ni.enforceActions?"Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ")+e.name)}function te(e){"production"!==process.env.NODE_ENV&&!ni.allowStateReads&&ni.observableRequiresReaction&&console.warn("[mobx] Observable "+e.name+" being read outside a reactive context")}function ne(e,t,n){var i=le(!0);he(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++ni.runId;var r=ni.trackingDerivation;ni.trackingDerivation=e;var o;if(ni.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(s){o=new $n(s)}return ni.trackingDerivation=r,re(e),0===e.observing.length&&ie(e),ce(i),o}function ie(e){"production"!==process.env.NODE_ENV&&(ni.reactionRequiresObservable||e.requiresObservable)&&console.warn("[mobx] Derivation "+e.name+" is created/updated without reading any observable value")}function re(t){for(var n=t.observing,i=t.observing=t.newObserving,r=e.IDerivationState.UP_TO_DATE,o=0,s=t.unboundDepsCount,a=0;s>a;a++){var u=i[a];0===u.diffValue&&(u.diffValue=1,o!==a&&(i[o]=u),o++),u.dependenciesState>r&&(r=u.dependenciesState)}for(i.length=o,t.newObserving=null,s=n.length;s--;){var u=n[s];0===u.diffValue&&Ee(u,t),u.diffValue=0}for(;o--;){var u=i[o];1===u.diffValue&&(u.diffValue=0,Te(u,t))}r!==e.IDerivationState.UP_TO_DATE&&(t.dependenciesState=r,t.onBecomeStale())}function oe(t){var n=t.observing;t.observing=[];for(var i=n.length;i--;)Ee(n[i],t);t.dependenciesState=e.IDerivationState.NOT_TRACKING}function se(e){var t=ae(),n=e();return ue(t),n}function ae(){var e=ni.trackingDerivation;return ni.trackingDerivation=null,e}function ue(e){ni.trackingDerivation=e}function le(e){var t=ni.allowStateReads;return ni.allowStateReads=e,t}function ce(e){ni.allowStateReads=e}function he(t){if(t.dependenciesState!==e.IDerivationState.UP_TO_DATE){t.dependenciesState=e.IDerivationState.UP_TO_DATE;for(var n=t.observing,i=n.length;i--;)n[i].lowestObserverState=e.IDerivationState.UP_TO_DATE}}function fe(e,t){"production"!==process.env.NODE_ENV&&(a("function"==typeof t,"`action` can only be invoked on functions"),"string"==typeof e&&e||s("actions should have valid names, got: '"+e+"'"));var n=function(){return pe(e,t,this,arguments)};return n.isMobxAction=!0,n}function pe(e,t,n,i){var r=de(e,n,i);try{return t.apply(n,i)}catch(o){throw r.error=o,o}finally{ge(r)}}function de(e,t,n){var i=ze()&&!!e,r=0;if(i){r=Date.now();var o=n&&n.length||0,s=new Array(o);if(o>0)for(var a=0;o>a;a++)s[a]=n[a];Ue({type:"action",name:e,object:t,arguments:s})}var u=ae();De();var l=me(!0),c=le(!0),h={prevDerivation:u,prevAllowStateChanges:l,prevAllowStateReads:c,notifySpy:i,startTime:r,actionId:Yn++,parentActionId:qn};return qn=h.actionId,h}function ge(e){qn!==e.actionId&&s("invalid action stack. did you forget to finish an action?"),qn=e.parentActionId,void 0!==e.error&&(ni.suppressReactionErrors=!0),ye(e.prevAllowStateChanges),ce(e.prevAllowStateReads),Oe(),ue(e.prevDerivation),e.notifySpy&&We({time:Date.now()-e.startTime}),ni.suppressReactionErrors=!1}function ve(e,t){var n,i=me(e);try{n=t()}finally{ye(i)}return n}function me(e){var t=ni.allowStateChanges;return ni.allowStateChanges=e,t}function ye(e){ni.allowStateChanges=e}function be(e){var t=ni.computationDepth;ni.computationDepth=0;var n;try{n=e()}finally{ni.computationDepth=t}return n}function _e(){(ni.pendingReactions.length||ni.inBatch||ni.isRunningReactions)&&s("isolateGlobalState should be called before MobX is running any reactions"),ti=!0,ei&&(0===--r().__mobxInstanceCount&&(r().__mobxGlobals=void 0),ni=new Zn)}function we(){return ni}function xe(){var e=new Zn;for(var t in e)-1===Jn.indexOf(t)&&(ni[t]=e[t]);ni.allowStateChanges=!ni.enforceActions}function ke(e){return e.observers&&e.observers.length>0}function Ce(e){return e.observers}function Te(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ee(e,t){if(1===e.observers.length)e.observers.length=0,Se(e);else{var n=e.observers,i=e.observersIndexes,r=n.pop();if(r!==t){var o=i[t.__mapid]||0;o?i[r.__mapid]=o:delete i[r.__mapid],n[o]=r}delete i[t.__mapid]}}function Se(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,ni.pendingUnobservations.push(e))}function De(){ni.inBatch++}function Oe(){if(0===--ni.inBatch){Fe();for(var e=ni.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,0===n.observers.length&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof Kn&&n.suspend())}ni.pendingUnobservations=[]}}function Pe(e){te(e);var t=ni.trackingDerivation;return null!==t?(t.runId!==e.lastAccessedBy&&(e.lastAccessedBy=t.runId,t.newObserving[t.unboundDepsCount++]=e,e.isBeingObserved||(e.isBeingObserved=!0,e.onBecomeObserved())),!0):(0===e.observers.length&&ni.inBatch>0&&Se(e),!1)}function Ae(t){if(t.lowestObserverState!==e.IDerivationState.STALE){t.lowestObserverState=e.IDerivationState.STALE;for(var n=t.observers,i=n.length;i--;){var r=n[i];r.dependenciesState===e.IDerivationState.UP_TO_DATE&&(r.isTracing!==Bn.NONE&&je(r,t),r.onBecomeStale()),r.dependenciesState=e.IDerivationState.STALE}}}function Ie(t){if(t.lowestObserverState!==e.IDerivationState.STALE){t.lowestObserverState=e.IDerivationState.STALE;for(var n=t.observers,i=n.length;i--;){var r=n[i];r.dependenciesState===e.IDerivationState.POSSIBLY_STALE?r.dependenciesState=e.IDerivationState.STALE:r.dependenciesState===e.IDerivationState.UP_TO_DATE&&(t.lowestObserverState=e.IDerivationState.UP_TO_DATE)}}}function Ne(t){if(t.lowestObserverState===e.IDerivationState.UP_TO_DATE){t.lowestObserverState=e.IDerivationState.POSSIBLY_STALE;for(var n=t.observers,i=n.length;i--;){var r=n[i];r.dependenciesState===e.IDerivationState.UP_TO_DATE&&(r.dependenciesState=e.IDerivationState.POSSIBLY_STALE,r.isTracing!==Bn.NONE&&je(r,t),r.onBecomeStale())}}}function je(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Bn.BREAK){var n=[];Re(lt(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof Kn?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function Re(e,t,n){return t.length>=1e3?void t.push("(and many more)"):(t.push(""+new Array(n).join(" ")+e.name),void(e.dependencies&&e.dependencies.forEach(function(e){return Re(e,t,n+1)})))}function Me(e){return ni.globalReactionErrorHandlers.push(e),function(){var t=ni.globalReactionErrorHandlers.indexOf(e);t>=0&&ni.globalReactionErrorHandlers.splice(t,1)}}function Fe(){ni.inBatch>0||ni.isRunningReactions||oi(Le)}function Le(){ni.isRunningReactions=!0;for(var e=ni.pendingReactions,t=0;e.length>0;){++t===ri&&(console.error("Reaction doesn't converge to a stable state after "+ri+" iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),i=0,r=n.length;r>i;i++)n[i].runReaction()}ni.isRunningReactions=!1}function He(e){var t=oi;oi=function(n){return e(function(){return t(n)})}}function ze(){return!!ni.spyListeners.length}function Ve(e){if(ni.spyListeners.length)for(var t=ni.spyListeners,n=0,i=t.length;i>n;n++)t[n](e)}function Ue(e){var t=wn(wn({},e),{spyReportStart:!0});Ve(t)}function We(e){Ve(e?wn(wn({},e),{spyReportEnd:!0}):ai)}function Be(e){return ni.spyListeners.push(e),l(function(){ni.spyListeners=ni.spyListeners.filter(function(t){return t!==e})})}function $e(){s("production"!==process.env.NODE_ENV&&"@action fields are not reassignable")}function qe(e){return function(t,n,i){if(i){if("production"!==process.env.NODE_ENV&&void 0!==i.get)return s("@action cannot be used with getters");if(i.value)return{value:fe(e,i.value),enumerable:!1,configurable:!0,writable:!0};var r=i.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return fe(e,r.call(this))}}}return Ye(e).apply(this,arguments)}}function Ye(e){return function(t,n,i){Object.defineProperty(t,n,{configurable:!0,enumerable:!1,get:function(){},set:function(t){g(this,n,ui(e,t))}})}}function Xe(e,t,n,i){return i===!0?(Qe(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return Qe(this,t,n.value||n.initializer.call(this)),this[t]},set:$e}:{enumerable:!1,configurable:!0,set:function(e){Qe(this,t,e)},get:function(){}}}function Ge(e,t){var n="string"==typeof e?e:e.name||"<unnamed action>",i="function"==typeof e?e:t;return"production"!==process.env.NODE_ENV&&(a("function"==typeof i&&0===i.length,"`runInAction` expects a function without arguments"),"string"==typeof n&&n||s("actions should have valid names, got: '"+n+"'")),pe(n,i,this,void 0)}function Ke(e){return"function"==typeof e&&e.isMobxAction===!0}function Qe(e,t,n){g(e,t,fe(t,n.bind(e)))}function Je(e,t){function n(){e(i)}void 0===t&&(t=Cn),"production"!==process.env.NODE_ENV&&(a("function"==typeof e,"Autorun expects a function as first argument"),a(Ke(e)===!1,"Autorun does not accept actions since actions are untrackable"));var i,r=t&&t.name||e.name||"Autorun@"+o(),s=!t.scheduler&&!t.delay;if(s)i=new ii(r,function(){this.track(n)},t.onError,t.requiresObservable);else{var u=Ze(t),l=!1;i=new ii(r,function(){l||(l=!0,u(function(){l=!1,i.isDisposed||i.track(n)}))},t.onError,t.requiresObservable)}return i.schedule(),i.getDisposer()}function Ze(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:li}function et(e,t,n){function i(){if(p=!1,!g.isDisposed){var t=!1;g.track(function(){var n=e(g);t=f||!d(r,n),r=n}),f&&n.fireImmediately&&l(r,g),f||t!==!0||l(r,g),f&&(f=!1)}}void 0===n&&(n=Cn),"boolean"==typeof n&&(n={fireImmediately:n},u("Using fireImmediately as argument is deprecated. Use '{ fireImmediately: true }' instead")),"production"!==process.env.NODE_ENV&&(a("function"==typeof e,"First argument to reaction should be a function"),a("object"==typeof n,"Third argument of reactions should be an object"));var r,s=n.name||"Reaction@"+o(),l=ui(s,n.onError?tt(n.onError,t):t),c=!n.scheduler&&!n.delay,h=Ze(n),f=!0,p=!1,d=n.compareStructural?Pn.structural:n.equals||Pn["default"],g=new ii(s,function(){f||c?i():p||(p=!0,h(i))},n.onError,n.requiresObservable);return g.schedule(),g.getDisposer()}function tt(e,t){return function(){try{return t.apply(this,arguments)}catch(n){e.call(this,n)}}}function nt(e,t,n){return rt("onBecomeObserved",e,t,n)}function it(e,t,n){return rt("onBecomeUnobserved",e,t,n)}function rt(e,t,n,i){var r="function"==typeof i?pn(t,n):pn(t),o="function"==typeof i?i:n,a=r[e];return"function"!=typeof a?s("production"!==process.env.NODE_ENV&&"Not an atom that can be (un)observed"):(r[e]=function(){a.call(this),o.call(this)},function(){r[e]=a})}function ot(e){var t=e.enforceActions,n=e.computedRequiresReaction,i=e.computedConfigurable,r=e.disableErrorBoundaries,o=e.arrayBuffer,a=e.reactionScheduler,l=e.reactionRequiresObservable,c=e.observableRequiresReaction;if(e.isolateGlobalState===!0&&_e(),void 0!==t){("boolean"==typeof t||"strict"===t)&&u("Deprecated value for 'enforceActions', use 'false' => '\"never\"', 'true' => '\"observed\"', '\"strict\"' => \"'always'\" instead");var h=void 0;switch(t){case!0:case"observed":h=!0;break;case!1:case"never":h=!1;break;case"strict":case"always":h="strict";break;default:s("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}ni.enforceActions=h,ni.allowStateChanges=h===!0||"strict"===h?!1:!0}void 0!==n&&(ni.computedRequiresReaction=!!n),void 0!==l&&(ni.reactionRequiresObservable=!!l),void 0!==c&&(ni.observableRequiresReaction=!!c,ni.allowStateReads=!ni.observableRequiresReaction),void 0!==i&&(ni.computedConfigurable=!!i),void 0!==r&&(r===!0&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors if this is on."),ni.disableErrorBoundaries=!!r),"number"==typeof o&&tn(o),a&&He(a)}function st(e,t){"production"===process.env.NODE_ENV||f(t)||s("Decorators should be a key value map");var n="function"==typeof e?e.prototype:e,i=function(e){var i=t[e];Array.isArray(i)||(i=[i]),"production"===process.env.NODE_ENV||i.every(function(e){return"function"==typeof e})||s("Decorate: expected a decorator function or array of decorator functions for '"+e+"'");var r=Object.getOwnPropertyDescriptor(n,e),o=i.reduce(function(t,i){return i(n,e,t)},r);o&&Object.defineProperty(n,e,o)};for(var r in t)i(r);return e}function at(e,t,n){return u("'extendShallowObservable' is deprecated, use 'extendObservable(target, props, { deep: false })' instead"),ut(e,t,n,jn)}function ut(e,t,n,i){if("production"!==process.env.NODE_ENV&&(a(arguments.length>=2&&arguments.length<=4,"'extendObservable' expected 2-4 arguments"),a("object"==typeof e,"'extendObservable' expects an object as first argument"),a(!xi(e),"'extendObservable' should not be used on maps, use map.merge instead"),a(!Tt(t),"Extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540"),n))for(var r in n)r in t||s("Trying to declare a decorator for unspecified property '"+r+"'");i=Y(i);var o=i.defaultDecorator||(i.deep===!1?Fn:Rn);L(e),on(e,i.name,o.enhancer),De();try{for(var r in t){var u=Object.getOwnPropertyDescriptor(t,r);"production"!==process.env.NODE_ENV&&(Object.getOwnPropertyDescriptor(e,r)&&s("'extendObservable' can only be used to introduce new properties. Use 'set' or 'decorate' instead. The property '"+r+"' already exists on '"+e+"'"),xt(u.value)&&s("Passing a 'computed' as initial property value is no longer supported by extendObservable. Use a getter or decorator instead"));var l=n&&r in n?n[r]:u.get?Vn:o;if("production"!==process.env.NODE_ENV&&"function"!=typeof l)return s("Not a valid decorator for '"+r+"', got: "+l);var c=l(e,r,u,!0);c&&Object.defineProperty(e,r,c)}}finally{Oe()}return e}function lt(e,t){return ct(pn(e,t))}function ct(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=c(e.observing).map(ct)),t}function ht(e,t){return ft(pn(e,t))}function ft(e){var t={name:e.name};return ke(e)&&(t.observers=Ce(e).map(ft)),t}function pt(){this.message="FLOW_CANCELLED"}function dt(e){return e instanceof pt}function gt(e){1!==arguments.length&&s(!!process.env.NODE_ENV&&"Flow expects one 1 argument and cannot be used as decorator");var t=e.name||"<unnamed flow>";return function(){var n,i=this,r=arguments,o=++ci,s=ui(t+" - runid: "+o+" - init",e).apply(i,r),a=void 0,u=new Promise(function(e,i){function r(e){a=void 0;var n;try{n=ui(t+" - runid: "+o+" - yield "+c++,s.next).call(s,e)}catch(r){return i(r)}l(n)}function u(e){a=void 0;var n;try{n=ui(t+" - runid: "+o+" - yield "+c++,s["throw"]).call(s,e)}catch(r){return i(r)}l(n)}function l(t){return t&&"function"==typeof t.then?void t.then(l,i):t.done?e(t.value):(a=Promise.resolve(t.value),a.then(r,u))}var c=0;n=i,r(void 0)});return u.cancel=ui(t+" - runid: "+o+" - cancel",function(){try{a&&vt(a);var e=s["return"](),t=Promise.resolve(e.value);t.then(Sn,Sn),vt(t),n(new pt)}catch(i){n(i)}}),u}}function vt(e){"function"==typeof e.cancel&&e.cancel()}function mt(e,t,n){var i;if(xi(e)||nn(e)||Gn(e))i=dn(e);else{if(!fn(e))return s("production"!==process.env.NODE_ENV&&"Expected observable map, object or array as first array");if("string"!=typeof t)return s("production"!==process.env.NODE_ENV&&"InterceptReads can only be used with a specific property, not with an object in general");i=dn(e,t)}return void 0!==i.dehancer?s("production"!==process.env.NODE_ENV&&"An intercept reader was already established"):(i.dehancer="function"==typeof t?t:n,function(){i.dehancer=void 0})}function yt(e,t,n){return"function"==typeof n?_t(e,t,n):bt(e,t)}function bt(e,t){return dn(e).intercept(t)}function _t(e,t,n){return dn(e,t).intercept(n)}function wt(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(fn(e)===!1)return!1;if(!e.$mobx.values[t])return!1;var n=pn(e,t);return Qn(n)}return Qn(e)}function xt(e){return arguments.length>1?s("production"!==process.env.NODE_ENV&&"isComputed expects only 1 argument. Use isObservableProp to inspect the observability of a property"):wt(e)}function kt(e,t){return"string"!=typeof t?s("production"!==process.env.NODE_ENV&&"isComputed expected a property name as second argument"):wt(e,t)}function Ct(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if("production"!==process.env.NODE_ENV&&(xi(e)||nn(e)))return s("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");if(fn(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return fn(e)||!!e.$mobx||On(e)||si(e)||Qn(e)}function Tt(e){return 1!==arguments.length&&s("production"!==process.env.NODE_ENV&&"isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),Ct(e)}function Et(e,t){return"string"!=typeof t?s("production"!==process.env.NODE_ENV&&"expected a property name as second argument"):Ct(e,t)}function St(e){return fn(e)?e.$mobx.getKeys():xi(e)?e._keys.slice():Ti(e)?C(e.keys()):nn(e)?e.map(function(e,t){return t}):s("production"!==process.env.NODE_ENV&&"'keys()' can only be used on observable objects, arrays, sets and maps")}function Dt(e){return fn(e)?St(e).map(function(t){return e[t]}):xi(e)?St(e).map(function(t){return e.get(t)}):Ti(e)?C(e.values()):nn(e)?e.slice():s("production"!==process.env.NODE_ENV&&"'values()' can only be used on observable objects, arrays, sets and maps")}function Ot(e){return fn(e)?St(e).map(function(t){return[t,e[t]]}):xi(e)?St(e).map(function(t){return[t,e.get(t)]}):Ti(e)?C(e.entries()):nn(e)?e.map(function(e,t){return[t,e]}):s("production"!==process.env.NODE_ENV&&"'entries()' can only be used on observable objects, arrays and maps")}function Pt(e,t,n){if(2!==arguments.length||Ti(e))if(fn(e)){var i=e.$mobx,r=i.values[t];r?i.write(e,t,n):sn(e,t,n,i.defaultEnhancer)}else if(xi(e))e.set(t,n);else if(Ti(e))e.add(t);else{if(!nn(e))return s("production"!==process.env.NODE_ENV&&"'set()' can only be used on observable objects, arrays and maps");"number"!=typeof t&&(t=parseInt(t,10)),a(t>=0,"Not a valid index: '"+t+"'"),De(),t>=e.length&&(e.length=t+1),e[t]=n,Oe()}else{De();var o=t;try{for(var u in o)Pt(e,u,o[u])}finally{Oe()}}}function At(e,t){if(fn(e))e.$mobx.remove(t);else if(xi(e))e["delete"](t);else if(Ti(e))e["delete"](t);else{if(!nn(e))return s("production"!==process.env.NODE_ENV&&"'remove()' can only be used on observable objects, arrays and maps");"number"!=typeof t&&(t=parseInt(t,10)),a(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}}function It(e,t){if(fn(e)){var n=dn(e);return n.getKeys(),!!n.values[t]}return xi(e)?e.has(t):Ti(e)?e.has(t):nn(e)?t>=0&&t<e.length:s("production"!==process.env.NODE_ENV&&"'has()' can only be used on observable objects, arrays and maps")}function Nt(e,t){return It(e,t)?fn(e)?e[t]:xi(e)?e.get(t):nn(e)?e[t]:s("production"!==process.env.NODE_ENV&&"'get()' can only be used on observable objects, arrays and maps"):void 0}function jt(e,t,n,i){return"function"==typeof n?Mt(e,t,n,i):Rt(e,t,n)}function Rt(e,t,n){return dn(e).observe(t,n)}function Mt(e,t,n,i){return dn(e,t).observe(n,i)}function Ft(e,t,n,i){return i.detectCycles&&e.set(t,n),n}function Lt(e,t,n){if(!t.recurseEverything&&!Tt(e))return e;if("object"!=typeof e)return e;if(null===e)return null;if(e instanceof Date)return e;if(Gn(e))return Lt(e.get(),t,n);Tt(e)&&St(e);var i=t.detectCycles===!0;if(i&&null!==e&&n.has(e))return n.get(e);if(nn(e)||Array.isArray(e)){var r=Ft(n,e,[],t),o=e.map(function(e){return Lt(e,t,n)});r.length=o.length;for(var s=0,a=o.length;a>s;s++)r[s]=o[s];return r}if(Ti(e)||Object.getPrototypeOf(e)===Set.prototype){if(t.exportMapsAsObjects===!1){var u=Ft(n,e,new Set,t);return e.forEach(function(e){u.add(Lt(e,t,n))}),u}var l=Ft(n,e,[],t);return e.forEach(function(e){l.push(Lt(e,t,n))}),l}if(xi(e)||Object.getPrototypeOf(e)===Map.prototype){if(t.exportMapsAsObjects===!1){var c=Ft(n,e,new Map,t);return e.forEach(function(e,i){c.set(i,Lt(e,t,n))}),c}var h=Ft(n,e,{},t);return e.forEach(function(e,i){h[i]=Lt(e,t,n)}),h}var f=Ft(n,e,{},t);for(var p in e)f[p]=Lt(e[p],t,n);return f}function Ht(e,t){"boolean"==typeof t&&(t={detectCycles:t}),t||(t=hi),t.detectCycles=void 0===t.detectCycles?t.recurseEverything===!0:t.detectCycles===!0;var n;return t.detectCycles&&(n=new Map),Lt(e,t,n)}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!1;"boolean"==typeof e[e.length-1]&&(n=e.pop());var i=Vt(e);return i?(i.isTracing===Bn.NONE&&console.log("[mobx.trace] '"+i.name+"' tracing enabled"),void(i.isTracing=n?Bn.BREAK:Bn.LOG)):s("production"!==process.env.NODE_ENV&&"'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly")}function Vt(e){switch(e.length){case 0:return ni.trackingDerivation;case 1:return pn(e[0]);case 2:return pn(e[0],e[1])}}function Ut(e,t){void 0===t&&(t=void 0),De();try{return e.apply(t)}finally{Oe()}}function Wt(e,t,n){return 1===arguments.length||t&&"object"==typeof t?$t(e,t):Bt(e,t,n||{})}function Bt(e,t,n){var i;"number"==typeof n.timeout&&(i=setTimeout(function(){if(!s.$mobx.isDisposed){s();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}},n.timeout)),n.name=n.name||"When@"+o();var r=fe(n.name+"-effect",t),s=Je(function(t){e()&&(t.dispose(),i&&clearTimeout(i),r())},n);return s}function $t(e,t){if("production"!==process.env.NODE_ENV&&t&&t.onError)return s("the options 'onError' and 'promise' cannot be combined");var n,i=new Promise(function(i,r){var o=Bt(e,i,wn(wn({},t),{onError:r}));n=function(){o(),r("WHEN_CANCELLED")}});return i.cancel=n,i}function qt(e){return void 0!==e.interceptors&&e.interceptors.length>0}function Yt(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),l(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Xt(e,t){var n=ae();try{var i=e.interceptors;if(i)for(var r=0,o=i.length;o>r&&(t=i[r](t),a(!t||t.type,"Intercept handlers should return nothing or a change object"),t);r++);return t}finally{ue(n)}}function Gt(e){return void 0!==e.changeListeners&&e.changeListeners.length>0}function Kt(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),l(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Qt(e,t){var n=ae(),i=e.changeListeners;if(i){i=i.slice();for(var r=0,o=i.length;o>r;r++)i[r](t);ue(n)}}function Jt(e,t){"undefined"!=typeof Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):"undefined"!=typeof e.prototype.__proto__?e.prototype.__proto__=t:e.prototype=t}function Zt(e){return{enumerable:!1,configurable:!1,get:function(){return this.get(e)},set:function(t){this.set(e,t)}}}function en(e){Object.defineProperty(mi.prototype,""+e,Zt(e))}function tn(e){for(var t=di;e>t;t++)en(t);di=e}function nn(e){return h(e)&&bi(e.$mobx)}function rn(e){return e&&e.toString?e.toString():new String(e).toString()}function on(e,t,n){void 0===t&&(t=""),void 0===n&&(n=V);var i=e.$mobx;return i?i:("production"!==process.env.NODE_ENV&&a(Object.isExtensible(e),"Cannot make the designated object observable; it is not extensible"),f(e)||(t=(e.constructor.name||"ObservableObject")+"@"+o()),t||(t="ObservableObject@"+o()),i=new Ei(e,t,n),v(e,"$mobx",i),i)}function sn(e,t,n,i){var r=on(e);if(y(e,t),qt(r)){var o=Xt(r,{object:e,name:t,type:"add",newValue:n});if(!o)return;n=o.newValue}var s=r.values[t]=new Xn(n,i,r.name+"."+t,!1);n=s.value,Object.defineProperty(e,t,un(t)),r.keys&&r.keys.push(t),hn(r,e,t,n)}function an(e,t,n){var i=on(e);n.name=i.name+"."+t,n.context=e,i.values[t]=new Kn(n),Object.defineProperty(e,t,cn(t))}function un(e){return Si[e]||(Si[e]={configurable:!0,enumerable:!0,get:function(){return this.$mobx.read(this,e)},set:function(t){this.$mobx.write(this,e,t)}})}function ln(e){var t=e.$mobx;return t?t:(L(e),e.$mobx)}function cn(e){return Di[e]||(Di[e]={configurable:ni.computedConfigurable,enumerable:!1,get:function(){return ln(this).read(this,e)},set:function(t){ln(this).write(this,e,t)}})}function hn(e,t,n,i){var r=Gt(e),o=ze(),s=r||o?{type:"add",object:t,name:n,newValue:i}:null;o&&Ue(wn(wn({},s),{name:e.name,key:n})),r&&Qt(e,s),o&&We()}function fn(e){
- return h(e)?(L(e),Oi(e.$mobx)):!1}function pn(e,t){if("object"==typeof e&&null!==e){if(nn(e))return void 0!==t&&s("production"!==process.env.NODE_ENV&&"It is not possible to get index atoms from arrays"),e.$mobx.atom;if(Ti(e))return e.$mobx;if(xi(e)){var n=e;if(void 0===t)return pn(n._keys);var i=n._data.get(t)||n._hasMap.get(t);return i||s("production"!==process.env.NODE_ENV&&"the entry '"+t+"' does not exist in the observable map '"+gn(e)+"'"),i}if(L(e),t&&!e.$mobx&&e[t],fn(e)){if(!t)return s("production"!==process.env.NODE_ENV&&"please specify a property");var i=e.$mobx.values[t];return i||s("production"!==process.env.NODE_ENV&&"no observable property '"+t+"' found on the observable object '"+gn(e)+"'"),i}if(On(e)||Qn(e)||si(e))return e}else if("function"==typeof e&&si(e.$mobx))return e.$mobx;return s("production"!==process.env.NODE_ENV&&"Cannot obtain atom from "+e)}function dn(e,t){return e||s("Expecting some object"),void 0!==t?dn(pn(e,t)):On(e)||Qn(e)||si(e)?e:xi(e)||Ti(e)?e:(L(e),e.$mobx?e.$mobx:void s("production"!==process.env.NODE_ENV&&"Cannot obtain administration from "+e))}function gn(e,t){var n;return n=void 0!==t?pn(e,t):fn(e)||xi(e)||Ti(e)?dn(e):pn(e),n.name}function vn(e,t,n){return void 0===n&&(n=-1),mn(e,t,n)}function mn(e,t,n,i,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var o=typeof e;if("function"!==o&&"object"!==o&&"object"!=typeof t)return!1;e=yn(e),t=yn(t);var s=Pi.call(e);if(s!==Pi.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var a="[object Array]"===s;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!("function"==typeof u&&u instanceof u&&"function"==typeof l&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;0>n&&(n=-1),i=i||[],r=r||[];for(var c=i.length;c--;)if(i[c]===e)return r[c]===t;if(i.push(e),r.push(t),a){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!mn(e[c],t[c],n-1,i,r))return!1}else{var h=Object.keys(e),f=void 0;if(c=h.length,Object.keys(t).length!==c)return!1;for(;c--;)if(f=h[c],!bn(t,f)||!mn(e[f],t[f],n-1,i,r))return!1}return i.pop(),r.pop(),!0}function yn(e){return nn(e)?e.peek():x(e)||xi(e)?C(e.entries()):k(e)||Ti(e)?C(e.entries()):e}function bn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- var _n=function(e,t){return(_n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},wn=function(){return wn=Object.assign||function(e){for(var t,n=1,i=arguments.length;i>n;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},wn.apply(this,arguments)},xn="An invariant failed, however the error is obfuscated because this is an production build.",kn=[];Object.freeze(kn);var Cn={};Object.freeze(Cn);var Tn={},En=[],Sn=function(){},Dn=function(){function t(t){void 0===t&&(t="Atom@"+o()),this.name=t,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=e.IDerivationState.NOT_TRACKING}return t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.reportObserved=function(){return Pe(this)},t.prototype.reportChanged=function(){De(),Ae(this),Oe()},t.prototype.toString=function(){return this.name},t}(),On=b("Atom",Dn),Pn={identity:N,structural:j,"default":M,shallow:R},An={},In={},Nn={deep:!0,name:void 0,defaultDecorator:void 0},jn={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(Nn),Object.freeze(jn);var Rn=$(V),Mn=$(U),Fn=$(W),Ln=$(B),Hn={box:function(e,t){arguments.length>2&&K("box");var n=Y(t);return new Xn(e,X(n),n.name,!0,n.equals)},shallowBox:function(e,t){return arguments.length>2&&K("shallowBox"),u("observable.shallowBox","observable.box(value, { deep: false })"),zn.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&K("array");var n=Y(t);return new mi(e,X(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&K("shallowArray"),u("observable.shallowArray","observable.array(values, { deep: false })"),zn.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&K("map");var n=Y(t);return new wi(e,X(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&K("shallowMap"),u("observable.shallowMap","observable.map(values, { deep: false })"),zn.map(e,{name:t,deep:!1})},set:function(e,t){arguments.length>2&&K("set");var n=Y(t);return new Ci(e,X(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&K("object");var i=Y(n);return ut({},e,t,i)},shallowObject:function(e,t){return"string"==typeof arguments[1]&&K("shallowObject"),u("observable.shallowObject","observable.object(values, {}, { deep: false })"),zn.object(e,{},{name:t,deep:!1})},ref:Fn,shallow:Mn,deep:Rn,struct:Ln},zn=G;Object.keys(Hn).forEach(function(e){return zn[e]=Hn[e]});var Vn=H(!1,function(e,t,n,i,r){var o=n.get,s=n.set,a=r[0]||{};an(e,t,wn({get:o,set:s},a))}),Un=Vn({equals:Pn.structural}),Wn=function(e,t,n){if("string"==typeof t)return Vn.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return Vn.apply(null,arguments);"production"!==process.env.NODE_ENV&&(a("function"==typeof e,"First argument to `computed` should be an expression."),a(arguments.length<3,"Computed takes one or two arguments if used as function"));var i="object"==typeof t?t:{};return i.get=e,i.set="function"==typeof t?t:i.set,i.name=i.name||e.name||"",new Kn(i)};Wn.struct=Un,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(e.IDerivationState||(e.IDerivationState={}));var Bn;!function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Bn||(Bn={}));var $n=function(){function e(e){this.cause=e}return e}(),qn=0,Yn=1,Xn=function(e){function n(t,n,i,r,s){void 0===i&&(i="ObservableValue@"+o()),void 0===r&&(r=!0),void 0===s&&(s=Pn["default"]);var a=e.call(this,i)||this;return a.enhancer=n,a.name=i,a.equals=s,a.hasUnreportedChange=!1,a.value=n(t,void 0,i),r&&ze()&&Ve({type:"create",name:a.name,newValue:""+a.value}),a}return t(n,e),n.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.prototype.set=function(e){var t=this.value;if(e=this.prepareNewValue(e),e!==ni.UNCHANGED){var n=ze();n&&Ue({type:"update",name:this.name,newValue:e,oldValue:t}),this.setNewValue(e),n&&We()}},n.prototype.prepareNewValue=function(e){if(ee(this),qt(this)){var t=Xt(this,{object:this,type:"update",newValue:e});if(!t)return ni.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?ni.UNCHANGED:e},n.prototype.setNewValue=function(e){var t=this.value;this.value=e,this.reportChanged(),Gt(this)&&Qt(this,{type:"update",object:this,newValue:e,oldValue:t})},n.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},n.prototype.intercept=function(e){return Yt(this,e)},n.prototype.observe=function(e,t){return t&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),Kt(this,e)},n.prototype.toJSON=function(){return this.get()},n.prototype.toString=function(){return this.name+"["+this.value+"]"},n.prototype.valueOf=function(){return E(this.get())},n}(Dn);Xn.prototype[T()]=Xn.prototype.valueOf;var Gn=b("ObservableValue",Xn),Kn=function(){function t(t){return this.dependenciesState=e.IDerivationState.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=e.IDerivationState.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+o(),this.value=new $n(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Bn.NONE,"production"===process.env.NODE_ENV||t.get?(this.derivation=t.get,this.name=t.name||"ComputedValue@"+o(),t.set&&(this.setter=fe(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?Pn.structural:Pn["default"]),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,void(this.keepAlive=!!t.keepAlive)):s("missing option for computed: get")}return t.prototype.onBecomeStale=function(){Ne(this)},t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.get=function(){this.isComputing&&s("Cycle detected in computation "+this.name+": "+this.derivation),0!==ni.inBatch||0!==this.observers.length||this.keepAlive?(Pe(this),J(this)&&this.trackAndCompute()&&Ie(this)):J(this)&&(this.warnAboutUntrackedRead(),De(),this.value=this.computeValue(!1),Oe());var e=this.value;if(Q(e))throw e.cause;return e},t.prototype.peek=function(){var e=this.computeValue(!1);if(Q(e))throw e.cause;return e},t.prototype.set=function(e){if(this.setter){a(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else a(!1,"production"!==process.env.NODE_ENV&&"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},t.prototype.trackAndCompute=function(){ze()&&Ve({object:this.scope,type:"compute",name:this.name});var t=this.value,n=this.dependenciesState===e.IDerivationState.NOT_TRACKING,i=this.computeValue(!0),r=n||Q(t)||Q(i)||!this.equals(t,i);return r&&(this.value=i),r},t.prototype.computeValue=function(e){this.isComputing=!0,ni.computationDepth++;var t;if(e)t=ne(this,this.derivation,this.scope);else if(ni.disableErrorBoundaries===!0)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(n){t=new $n(n)}return ni.computationDepth--,this.isComputing=!1,t},t.prototype.suspend=function(){this.keepAlive||(oe(this),this.value=void 0)},t.prototype.observe=function(e,t){var n=this,i=!0,r=void 0;return Je(function(){var o=n.get();if(!i||t){var s=ae();e({type:"update",object:n,newValue:o,oldValue:r}),ue(s)}i=!1,r=o})},t.prototype.warnAboutUntrackedRead=function(){"production"!==process.env.NODE_ENV&&(this.requiresReaction===!0&&s("[mobx] Computed value "+this.name+" is read outside a reactive context"),this.isTracing!==Bn.NONE&&console.log("[mobx.trace] '"+this.name+"' is being read outside a reactive context. Doing a full recompute"),ni.computedRequiresReaction&&console.warn("[mobx] Computed value "+this.name+" is being read outside a reactive context. Doing a full recompute"))},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return E(this.get())},t}();Kn.prototype[T()]=Kn.prototype.valueOf;var Qn=b("ComputedValue",Kn),Jn=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED"],Zn=function(){function e(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return e}(),ei=!0,ti=!1,ni=function(){var e=r();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ei=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Zn).version&&(ei=!1),ei?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Zn):(setTimeout(function(){ti||s("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Zn)}(),ii=function(){function t(t,n,i,r){void 0===t&&(t="Reaction@"+o()),void 0===r&&(r=!1),this.name=t,this.onInvalidate=n,this.errorHandler=i,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=e.IDerivationState.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+o(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=Bn.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,ni.pendingReactions.push(this),Fe())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(De(),this._isScheduled=!1,J(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&ze()&&Ve({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Oe()}},t.prototype.track=function(e){De();var t,n=ze();n&&(t=Date.now(),Ue({name:this.name,type:"reaction"})),this._isRunning=!0;var i=ne(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&oe(this),Q(i)&&this.reportExceptionInDerivation(i.cause),n&&We({time:Date.now()-t}),Oe()},t.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)return void this.errorHandler(e,this);if(ni.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";ni.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),ze()&&Ve({type:"error",name:this.name,message:n,error:""+e}),ni.globalReactionErrorHandlers.forEach(function(n){return n(e,t)})},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(De(),oe(this),Oe()))},t.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(e){void 0===e&&(e=!1),zt(this,e)},t}(),ri=100,oi=function(e){return e()},si=b("Reaction",ii),ai={spyReportEnd:!0},ui=function(e,t,n,i){return 1===arguments.length&&"function"==typeof e?fe(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof t?fe(e,t):1===arguments.length&&"string"==typeof e?qe(e):i!==!0?qe(t).apply(null,arguments):void(e[t]=fe(e.name||t,n.value))};ui.bound=Xe;var li=function(e){return e()},ci=0;pt.prototype=Object.create(Error.prototype);var hi={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1},fi=1e4,pi=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),di=0,gi=function(){function e(){}return e}();Jt(gi,Array.prototype),Object.isFrozen(Array)&&["constructor","push","shift","concat","pop","unshift","replace","find","findIndex","splice","reverse","sort"].forEach(function(e){Object.defineProperty(gi.prototype,e,{configurable:!0,writable:!0,value:Array.prototype[e]})});var vi=function(){function e(e,t,n,i){this.array=n,this.owned=i,this.values=[],this.lastKnownLength=0,this.atom=new Dn(e||"ObservableArray@"+o()),this.enhancer=function(n,i){return t(n,i,e+"[..]")}}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.dehanceValues=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return Yt(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Kt(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||0>e)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;e-t>i;i++)n[i]=void 0;this.spliceWithArray(t,0,n)}else this.spliceWithArray(e,t-e)},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>di&&tn(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var i=this;ee(this.atom);var r=this.values.length;if(void 0===e?e=0:e>r?e=r:0>e&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:void 0===t||null===t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=kn),qt(this)){var o=Xt(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return kn;t=o.removedCount,n=o.added}n=0===n.length?n:n.map(function(e){return i.enhancer(e,void 0)});var s=n.length-t;this.updateArrayLength(r,s);var a=this.spliceItemsIntoValues(e,t,n);return(0!==t||0!==n.length)&&this.notifyArraySplice(e,n,a),this.dehanceValues(a)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<fi)return(r=this.values).splice.apply(r,i([e,t],n));var o=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),o},e.prototype.notifyArrayChildUpdate=function(e,t,n){var i=!this.owned&&ze(),r=Gt(this),o=r||i?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;i&&Ue(wn(wn({},o),{name:this.atom.name})),this.atom.reportChanged(),r&&Qt(this,o),i&&We()},e.prototype.notifyArraySplice=function(e,t,n){var i=!this.owned&&ze(),r=Gt(this),o=r||i?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;i&&Ue(wn(wn({},o),{name:this.atom.name})),this.atom.reportChanged(),r&&Qt(this,o),i&&We()},e}(),mi=function(e){function n(t,n,i,r){void 0===i&&(i="ObservableArray@"+o()),void 0===r&&(r=!1);var s=e.call(this)||this,a=new vi(i,n,s,r);if(v(s,"$mobx",a),t&&t.length){var u=me(!0);s.spliceWithArray(0,0,t),ye(u)}return pi&&Object.defineProperty(a.array,"0",yi),s}return t(n,e),n.prototype.intercept=function(e){return this.$mobx.intercept(e)},n.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},n.prototype.clear=function(){return this.splice(0)},n.prototype.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.$mobx.atom.reportObserved(),Array.prototype.concat.apply(this.peek(),e.map(function(e){return nn(e)?e.peek():e}))},n.prototype.replace=function(e){return this.$mobx.spliceWithArray(0,this.$mobx.values.length,e)},n.prototype.toJS=function(){return this.slice()},n.prototype.toJSON=function(){return this.toJS()},n.prototype.peek=function(){return this.$mobx.atom.reportObserved(),this.$mobx.dehanceValues(this.$mobx.values)},n.prototype.find=function(e,t,n){void 0===n&&(n=0),3===arguments.length&&u("The array.find fromIndex argument to find will not be supported anymore in the next major");var i=this.findIndex.apply(this,arguments);return-1===i?void 0:this.get(i)},n.prototype.findIndex=function(e,t,n){void 0===n&&(n=0),3===arguments.length&&u("The array.findIndex fromIndex argument to find will not be supported anymore in the next major");for(var i=this.peek(),r=i.length,o=n;r>o;o++)if(e.call(t,i[o],o,this))return o;return-1},n.prototype.splice=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];switch(arguments.length){case 0:return[];case 1:return this.$mobx.spliceWithArray(e);case 2:return this.$mobx.spliceWithArray(e,t)}return this.$mobx.spliceWithArray(e,t,n)},n.prototype.spliceWithArray=function(e,t,n){return this.$mobx.spliceWithArray(e,t,n)},n.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(n.values.length,0,e),n.values.length},n.prototype.pop=function(){return this.splice(Math.max(this.$mobx.values.length-1,0),1)[0]},n.prototype.shift=function(){return this.splice(0,1)[0]},n.prototype.unshift=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.$mobx;return n.spliceWithArray(0,0,e),n.values.length},n.prototype.reverse=function(){var e=this.slice();return e.reverse.apply(e,arguments)},n.prototype.sort=function(e){var t=this.slice();return t.sort.apply(t,arguments)},n.prototype.remove=function(e){var t=this.$mobx.dehanceValues(this.$mobx.values).indexOf(e);return t>-1?(this.splice(t,1),!0):!1},n.prototype.move=function(e,t){function n(e){if(0>e)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(u("observableArray.move is deprecated, use .slice() & .replace() instead"),n.call(this,e),n.call(this,t),e!==t){var r,o=this.$mobx.values;r=t>e?i(o.slice(0,e),o.slice(e+1,t+1),[o[e]],o.slice(t+1)):i(o.slice(0,t),[o[e]],o.slice(t,e),o.slice(e+1)),this.replace(r)}},n.prototype.get=function(e){var t=this.$mobx;if(t){if(e<t.values.length)return t.atom.reportObserved(),t.dehanceValue(t.values[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+t.values.length+"). Please check length first. Out of bound indices will not be tracked by MobX")}},n.prototype.set=function(e,t){var n=this.$mobx,i=n.values;if(e<i.length){ee(n.atom);var r=i[e];if(qt(n)){var o=Xt(n,{type:"update",object:this,index:e,newValue:t});if(!o)return;t=o.newValue}t=n.enhancer(t,r);var s=t!==r;s&&(i[e]=t,n.notifyArrayChildUpdate(e,t,r))}else{if(e!==i.length)throw new Error("[mobx.array] Index out of bounds, "+e+" is larger than "+i.length);n.spliceWithArray(e,0,[t])}},n}(gi);D(mi.prototype,function(){this.$mobx.atom.reportObserved();var e=this,t=0;return O({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})}),Object.defineProperty(mi.prototype,"length",{enumerable:!1,configurable:!0,get:function(){return this.$mobx.getArrayLength()},set:function(e){this.$mobx.setArrayLength(e)}}),g(mi.prototype,P(),"Array"),["every","filter","forEach","indexOf","join","lastIndexOf","map","reduce","reduceRight","slice","some","toString","toLocaleString"].forEach(function(e){var t=Array.prototype[e];a("function"==typeof t,"Base function not defined on Array prototype: '"+e+"'"),g(mi.prototype,e,function(){return t.apply(this.peek(),arguments)})}),d(mi.prototype,["constructor","intercept","observe","clear","concat","get","replace","toJS","toJSON","peek","find","findIndex","splice","spliceWithArray","push","pop","set","shift","unshift","reverse","sort","remove","move","toString","toLocaleString"]);var yi=Zt(0);tn(1e3);var bi=b("ObservableArrayAdministration",vi),_i={},wi=function(){function e(e,t,n){if(void 0===t&&(t=V),void 0===n&&(n="ObservableMap@"+o()),this.enhancer=t,this.name=n,this.$mobx=_i,this._keys=new mi(void 0,W,this.name+".keys()",!0),"function"!=typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){var t=this;if(!ni.trackingDerivation)return this._has(e);var n=this._hasMap.get(e);if(!n){var i=n=new Xn(this._has(e),W,this.name+"."+rn(e)+"?",!1);this._hasMap.set(e,i),it(i,function(){return t._hasMap["delete"](e)})}return n.get()},e.prototype.set=function(e,t){var n=this._has(e);if(qt(this)){var i=Xt(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!i)return this;t=i.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype["delete"]=function(e){var t=this;if(qt(this)){var n=Xt(this,{type:"delete",object:this,name:e});if(!n)return!1}if(this._has(e)){var i=ze(),r=Gt(this),n=r||i?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return i&&Ue(wn(wn({},n),{name:this.name,key:e})),Ut(function(){t._keys.remove(e),t._updateHasMapEntry(e,!1);var n=t._data.get(e);n.setNewValue(void 0),t._data["delete"](e)}),r&&Qt(this,n),i&&We(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);n&&n.setNewValue(t)},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if(t=n.prepareNewValue(t),t!==ni.UNCHANGED){var i=ze(),r=Gt(this),o=r||i?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;i&&Ue(wn(wn({},o),{name:this.name,key:e})),n.setNewValue(t),r&&Qt(this,o),i&&We()}},e.prototype._addValue=function(e,t){var n=this;Ut(function(){var i=new Xn(t,n.enhancer,n.name+"."+rn(e),!1);n._data.set(e,i),t=i.value,n._updateHasMapEntry(e,!0),n._keys.push(e)});var i=ze(),r=Gt(this),o=r||i?{type:"add",object:this,name:e,newValue:t}:null;i&&Ue(wn(wn({},o),{name:this.name,key:e})),r&&Qt(this,o),i&&We()},e.prototype.get=function(e){return this.has(e)?this.dehanceValue(this._data.get(e).get()):this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.keys=function(){return this._keys[S()]()},e.prototype.values=function(){var e=this,t=0;return O({next:function(){return t<e._keys.length?{value:e.get(e._keys[t++]),done:!1}:{value:void 0,done:!0}}})},e.prototype.entries=function(){var e=this,t=0;return O({next:function(){if(t<e._keys.length){var n=e._keys[t++];return{value:[n,e.get(n)],done:!1}}return{done:!0}}})},e.prototype.forEach=function(e,t){var n=this;this._keys.forEach(function(i){return e.call(t,n.get(i),i,n)})},e.prototype.merge=function(e){var t=this;return xi(e)&&(e=e.toJS()),Ut(function(){f(e)?Object.keys(e).forEach(function(n){return t.set(n,e[n])}):Array.isArray(e)?e.forEach(function(e){var i=n(e,2),r=i[0],o=i[1];return t.set(r,o)}):x(e)?e.constructor!==Map?s("Cannot initialize from classes that inherit from Map: "+e.constructor.name):e.forEach(function(e,n){return t.set(n,e)}):null!==e&&void 0!==e&&s("Cannot initialize map from "+e)}),this},e.prototype.clear=function(){var e=this;Ut(function(){se(function(){e._keys.slice().forEach(function(t){return e["delete"](t)})})})},e.prototype.replace=function(e){var t=this;return Ut(function(){for(var n=p(e),i=t._keys,r=Array.from(n.keys()),o=!1,s=0;s<i.length;s++){var a=i[s];i.length===r.length&&a!==r[s]&&(o=!0),n.has(a)||(o=!0,t["delete"](a))}n.forEach(function(e,n){t._data.has(n)||(o=!0),t.set(n,e)}),o&&t._keys.replace(r)}),this},Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.toPOJO=function(){var e=this,t={};return this._keys.forEach(function(n){return t["symbol"==typeof n?n:rn(n)]=e.get(n)}),t},e.prototype.toJS=function(){var e=this,t=new Map;return this._keys.forEach(function(n){return t.set(n,e.get(n))}),t},e.prototype.toJSON=function(){return this.toPOJO()},e.prototype.toString=function(){var e=this;return this.name+"[{ "+this._keys.map(function(t){return rn(t)+": "+e.get(t)}).join(", ")+" }]"},e.prototype.observe=function(e,t){return"production"!==process.env.NODE_ENV&&a(t!==!0,"`observe` doesn't support fireImmediately=true in combination with maps."),Kt(this,e)},e.prototype.intercept=function(e){return Yt(this,e)},e}();D(wi.prototype,function(){return this.entries()}),v(wi.prototype,P(),"Map");var xi=b("ObservableMap",wi),ki={},Ci=function(){function e(e,t,n){if(void 0===t&&(t=V),void 0===n&&(n="ObservableSet@"+o()),this.name=n,this.$mobx=ki,this._data=new Set,this._atom=I(this.name),"function"!=typeof Set)throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(e,i){return t(e,i,n)},e&&this.replace(e)}return e.prototype.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},e.prototype.clear=function(){var e=this;Ut(function(){se(function(){e._data.forEach(function(t){e["delete"](t)})})})},e.prototype.forEach=function(e,t){var n=this;this._data.forEach(function(i){e.call(t,i,i,n)})},Object.defineProperty(e.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this;if(ee(this._atom),qt(this)){var n=Xt(this,{type:"add",object:this,newValue:e});if(!n)return this}if(!this.has(e)){Ut(function(){t._data.add(t.enhancer(e,void 0)),t._atom.reportChanged()});var i=ze(),r=Gt(this),n=r||i?{type:"add",object:this,newValue:e}:null;i&&"production"!==process.env.NODE_ENV&&Ue(n),r&&Qt(this,n),i&&"production"!==process.env.NODE_ENV&&We()}return this},e.prototype["delete"]=function(e){var t=this;if(qt(this)){var n=Xt(this,{type:"delete",object:this,oldValue:e});if(!n)return!1}if(this.has(e)){var i=ze(),r=Gt(this),n=r||i?{type:"delete",object:this,oldValue:e}:null;return i&&"production"!==process.env.NODE_ENV&&Ue(wn(wn({},n),{name:this.name})),Ut(function(){t._atom.reportChanged(),t._data["delete"](e)}),r&&Qt(this,n),i&&"production"!==process.env.NODE_ENV&&We(),!0}return!1},e.prototype.has=function(e){return this._atom.reportObserved(),this._data.has(this.dehanceValue(e))},e.prototype.entries=function(){var e=0,t=C(this.keys()),n=C(this.values());return O({next:function(){var i=e;return e+=1,i<n.length?{value:[t[i],n[i]],done:!1}:{done:!0}}})},e.prototype.keys=function(){return this.values()},e.prototype.values=function(){this._atom.reportObserved();var e,t=this,n=0;return void 0!==this._data.values?e=C(this._data.values()):(e=[],this._data.forEach(function(t){return e.push(t)})),O({next:function(){return n<e.length?{value:t.dehanceValue(e[n++]),done:!1}:{done:!0}}})},e.prototype.replace=function(e){var t=this;return Ti(e)&&(e=e.toJS()),Ut(function(){Array.isArray(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):k(e)?(t.clear(),e.forEach(function(e){return t.add(e)})):null!==e&&void 0!==e&&s("Cannot initialize set from "+e)}),this},e.prototype.observe=function(e,t){return"production"!==process.env.NODE_ENV&&a(t!==!0,"`observe` doesn't support fireImmediately=true in combination with sets."),Kt(this,e)},e.prototype.intercept=function(e){return Yt(this,e)},e.prototype.toJS=function(){return new Set(this)},e.prototype.toString=function(){return this.name+"[ "+C(this.keys()).join(", ")+" ]"},e}();D(Ci.prototype,function(){return this.values()}),v(Ci.prototype,P(),"Set");var Ti=b("ObservableSet",Ci),Ei=function(){function e(e,t,n){this.target=e,this.name=t,this.defaultEnhancer=n,this.values={}}return e.prototype.read=function(e,t){return"production"!==process.env.NODE_ENV||this.target===e||(this.illegalAccess(e,t),this.values[t])?this.values[t].get():void 0},e.prototype.write=function(e,t,n){var i=this.target;"production"===process.env.NODE_ENV&&i!==e&&this.illegalAccess(e,t);var r=this.values[t];if(r instanceof Kn)return void r.set(n);if(qt(this)){var o=Xt(this,{type:"update",object:i,name:t,newValue:n});if(!o)return;n=o.newValue}if(n=r.prepareNewValue(n),n!==ni.UNCHANGED){var s=Gt(this),a=ze(),o=s||a?{type:"update",object:i,oldValue:r.value,name:t,newValue:n}:null;a&&Ue(wn(wn({},o),{name:this.name,key:t})),r.setNewValue(n),s&&Qt(this,o),a&&We()}},e.prototype.remove=function(e){if(this.values[e]){var t=this.target;if(qt(this)){var n=Xt(this,{object:t,name:e,type:"remove"});if(!n)return}try{De();var i=Gt(this),r=ze(),o=this.values[e].get();this.keys&&this.keys.remove(e),delete this.values[e],delete this.target[e];var n=i||r?{type:"remove",object:t,oldValue:o,name:e}:null;r&&Ue(wn(wn({},n),{name:this.name,key:e})),i&&Qt(this,n),r&&We()}finally{Oe()}}},e.prototype.illegalAccess=function(e,t){console.warn("Property '"+t+"' of '"+e+"' was accessed through the prototype chain. Use 'decorate' instead to declare the prop or access it statically through it's owner")},e.prototype.observe=function(e,t){return"production"!==process.env.NODE_ENV&&a(t!==!0,"`observe` doesn't support the fire immediately property for observable objects."),Kt(this,e)},e.prototype.intercept=function(e){return Yt(this,e)},e.prototype.getKeys=function(){var e=this;return void 0===this.keys&&(this.keys=new mi(Object.keys(this.values).filter(function(t){return e.values[t]instanceof Xn}),W,"keys("+this.name+")",!0)),this.keys.slice()},e}(),Si=Object.create(null),Di=Object.create(null),Oi=b("ObservableObjectAdministration",Ei),Pi=Object.prototype.toString;/**
- * (c) Michel Weststrate 2015 - 2019
- * MIT Licensed
- *
- * Welcome to the mobx sources! To get an global overview of how MobX internally works,
- * this is a good place to start:
- * https://medium.com/@mweststrate/becoming-fully-reactive-an-in-depth-explanation-of-mobservable-55995262a254#.xvbh6qd74
- *
- * Source folders:
- * ===============
- *
- * - api/ Most of the public static methods exposed by the module can be found here.
- * - core/ Implementation of the MobX algorithm; atoms, derivations, reactions, dependency trees, optimizations. Cool stuff can be found here.
- * - types/ All the magic that is need to have observable objects, arrays and values is in this folder. Including the modifiers like `asFlat`.
- * - utils/ Utility stuff.
- *
- */
- try{process.env.NODE_ENV}catch(Ai){var Ii=r();"undefined"==typeof process&&(Ii.process={}),Ii.process.env={}}!function(){function e(){}if("testCodeMinification"!==e.name&&"production"!==process.env.NODE_ENV&&"true"!==process.env.IGNORE_MOBX_MINIFY_WARNING){var t=["process","env","NODE_ENV"].join(".");console.warn("[mobx] you are running a minified build, but '"+t+"' was not set to 'production' in your bundler. This results in an unnecessarily large and slow bundle")}}();var Ni="$mobx";if("object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Be,extras:{getDebugName:gn},$mobx:Ni}),"production"!==process.env.NODE_ENV&&"undefined"!=typeof module&&"undefined"!=typeof module.exports){var ji=!1;Object.defineProperty(module.exports,"default",{enumerable:!1,get:function(){ji||(ji=!0,console.warn('The MobX package does not have a default export. Use \'import { thing } from "mobx"\' (recommended) or \'import * as mobx from "mobx"\' instead."'))}}),["extras","Atom","BaseAtom","asFlat","asMap","asReference","asStructure","autorunAsync","createTranformer","expr","isModifierDescriptor","isStrictModeEnabled","map","useStrict","whyRun"].forEach(function(e){Object.defineProperty(module.exports,e,{enumerable:!1,get:function(){s("'"+e+"' is no longer part of the public MobX api. Please consult the changelog to find out where this functionality went")},set:function(){}})})}e.$mobx=Ni,e.FlowCancellationError=pt,e.ObservableMap=wi,e.ObservableSet=Ci,e.Reaction=ii,e._allowStateChanges=ve,e._allowStateChangesInsideComputed=be,e._endAction=ge,e._getAdministration=dn,e._getGlobalState=we,e._interceptReads=mt,e._isComputingDerivation=Z,e._resetGlobalState=xe,e._startAction=de,e.action=ui,e.autorun=Je,e.comparer=Pn,e.computed=Wn,e.configure=ot,e.createAtom=I,e.decorate=st,e.entries=Ot,e.extendObservable=ut,e.extendShallowObservable=at,e.flow=gt,e.get=Nt,e.getAtom=pn,e.getDebugName=gn,e.getDependencyTree=lt,e.getObserverTree=ht,e.has=It,e.intercept=yt,e.isAction=Ke,e.isArrayLike=w,e.isBoxedObservable=Gn,e.isComputed=xt,e.isComputedProp=kt,e.isFlowCancellationError=dt,e.isObservable=Tt,e.isObservableArray=nn,e.isObservableMap=xi,e.isObservableObject=fn,e.isObservableProp=Et,e.isObservableSet=Ti,e.keys=St,e.observable=zn,e.observe=jt,e.onBecomeObserved=nt,e.onBecomeUnobserved=it,e.onReactionError=Me,e.reaction=et,e.remove=At,e.runInAction=Ge,e.set=Pt,e.spy=Be,e.toJS=Ht,e.trace=zt,e.transaction=Ut,e.untracked=se,e.values=Dt,e.when=Wt,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mobx"),require("react")):"function"==typeof define&&define.amd?define("mobx-react-lite",["exports","mobx","react"],t):(e=e||self,t(e.mobxReactLite={},e.mobx,e.React))}(this,function(e,t,n){"use strict";function i(e){var i=n.useRef(null);return i.current||(i.current=t.observable(e)),i.current}function r(e,i){void 0===i&&(i=[]);var r=n.useMemo(function(){return t.computed(e)},i);return r.get()}function o(e,t){function i(t){if(o.current)return k;if(!r.current){var n=e();if("function"!=typeof n){var i=new Error("generated disposer must be a function");return console.error(i),k}r.current=n}return function(){r.current&&(r.current(),r.current=null),t&&(o.current=!0)}}void 0===t&&(t=[]);var r=n.useRef(null),o=n.useRef(!1);return n.useEffect(function(){return i(!1)},t),i(!0)}function s(e){C=e}function a(){return C}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return s}function l(e){return e.current?t.getDependencyTree(e.current):"<unknown>"}function c(e){n.useEffect(function(){return e},E)}function h(){var e=u(n.useState(0),2),t=e[1],i=n.useCallback(function(){t(function(e){return e+1})},[]);return i}function f(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype}function p(e,i,r){if(void 0===i&&(i="observed"),void 0===r&&(r=S),a())return e();var o=r.useForceUpdate||h,s=o(),u=n.useRef(null);u.current||(u.current=new t.Reaction("observer("+i+")",function(){s()}));var f=function(){u.current&&!u.current.isDisposed&&(u.current.dispose(),u.current=null)};n.useDebugValue(u,l),c(function(){f()});var p,d;if(u.current.track(function(){try{p=e()}catch(t){d=t}}),d)throw f(),d;return p}function d(e,t){if(a())return e;var i=T({forwardRef:!1},t),r=e.displayName||e.name,o=function(t,n){return p(function(){return e(t,n)},r)};o.displayName=r;var s;return s=i.forwardRef?n.memo(n.forwardRef(o)):n.memo(o),g(e,s),s.displayName=r,s}function g(e,t){Object.keys(e).forEach(function(n){e.hasOwnProperty(n)&&!D[n]&&Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}function v(e){var t=e.children,n=e.render,i=t||n;return"function"!=typeof i?null:p(i)}function m(e,t,n,i,r){var o="children"===t?"render":"children",s="function"==typeof e[t],a="function"==typeof e[o];return s&&a?new Error("MobX Observer: Do not use children and render in the same time in`"+n):s||a?null:new Error("Invalid prop `"+r+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}function y(e,n){if(!n||void 0!==e){var i=u(x.useState(function(){return t.observable(e,{},{deep:!1})}),1),r=i[0];return t.runInAction(function(){Object.assign(r,e)}),r}}function b(e){return y(e,!1)}function _(e,n){var i=y(n,!0);return x.useState(function(){var n=t.observable(e(i));return f(n)&&t.runInAction(function(){Object.keys(n).forEach(function(e){var t=n[e];"function"==typeof t&&(n[e]=w(t,n))})}),n})[0]}function w(e,n){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];return t.transaction(function(){return e.apply(n,i)})}}var x="default"in n?n["default"]:n;if(!n.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!t.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var k=function(){},C=!1,T=function(){return T=Object.assign||function(e){for(var t,n=1,i=arguments.length;i>n;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},T.apply(this,arguments)},E=[],S={},D={$$typeof:!0,render:!0,compare:!0,type:!0};v.propTypes={children:m,render:m},v.displayName="Observer";var O=function(e){"function"==typeof e&&t.configure({reactionScheduler:e})};e.Observer=v,e.isUsingStaticRendering=a,e.observer=d,e.optimizeScheduler=O,e.useAsObservableSource=b,e.useComputed=r,e.useDisposable=o,e.useForceUpdate=h,e.useLocalStore=_,e.useObservable=i,e.useObserver=p,e.useStaticRendering=s,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mobx"),require("react"),require("react-dom"),require("mobx-react-lite")):"function"==typeof define&&define.amd?define("mobx-react",["exports","mobx","react","react-dom","mobx-react-lite"],t):(e=e||self,t(e.mobxReact={},e.mobx,e.React,e.ReactDOM,e.mobxReactLite))}(this,function(e,t,n,i,r){"use strict";function o(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+L+")";return L++,t}function s(e){return H[e]||(H[e]=o(e)),H[e]}function a(e,t){if(u(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++)if(!Object.hasOwnProperty.call(t,n[r])||!u(e[n[r]],t[n[r]]))return!1;return!0}function u(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function l(e,t){var n=Object.getOwnPropertyNames(Object.getPrototypeOf(e));Object.getOwnPropertyNames(e).forEach(function(i){z[i]||-1!==n.indexOf(i)||Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))})}function c(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}function h(e,t){var n=e[V]=e[V]||{},i=n[t]=n[t]||{};return i.locks=i.locks||0,i.methods=i.methods||[],i}function f(e,t){for(var n=this,i=arguments.length,r=new Array(i>2?i-2:0),o=2;i>o;o++)r[o-2]=arguments[o];t.locks++;try{var s;return void 0!==e&&null!==e&&(s=e.apply(this,r)),s}finally{t.locks--,0===t.locks&&t.methods.forEach(function(e){e.apply(n,r)})}}function p(e,t){var n=function(){for(var n=arguments.length,i=new Array(n),r=0;n>r;r++)i[r]=arguments[r];f.call.apply(f,[this,e,t].concat(i))};return n}function d(e,t,n){var i=h(e,t);i.methods.indexOf(n)<0&&i.methods.push(n);var r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r[U]){var o=e[t],s=g(e,t,r?r.enumerable:void 0,i,o);Object.defineProperty(e,t,s)}}function g(e,t,n,i,r){var o,s=p(r,i);return o={},o[U]=!0,o.get=function(){return s},o.set=function(r){if(this===e)s=p(r,i);else{var o=g(this,t,n,i,r);Object.defineProperty(this,t,o)}},o.configurable=!0,o.enumerable=n,o}function v(e){var t=e.prototype;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==n.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==b)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=b;_(t,"props"),_(t,"state");var i=t.render;return t.render=function(){return y.call(this,i)},d(t,"componentWillUnmount",function(){if(r.isUsingStaticRendering()!==!0){if(this.render[W])this.render[W].dispose();else{var e=m(this);console.warn("The render function for an observer component ("+e+") was modified after MobX attached. This is not supported, since the new function can't be triggered by MobX.")}this[B]=!0}}),e}function m(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function y(e){function i(){u=!1;var e=void 0,n=void 0;if(l.track(function(){try{n=t._allowStateChanges(!1,a)}catch(i){e=i}}),e)throw e;return n}var o=this;if(r.isUsingStaticRendering()===!0)return e.call(this);c(this,$,!1),c(this,q,!1);var s=m(this),a=e.bind(this),u=!1,l=new t.Reaction(s+".render()",function(){if(!u&&(u=!0,o[B]!==!0)){var e=!0;try{c(o,q,!0),o[$]||n.Component.prototype.forceUpdate.call(o),e=!1}finally{c(o,q,!1),e&&l.dispose()}}});return l.reactComponent=this,i[W]=l,this.render=i,i.call(this)}function b(e,t){return r.isUsingStaticRendering()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t?!0:!a(this.props,e)}function _(e,n){function i(){return this[o]||c(this,o,t.createAtom("reactive "+n)),this[o]}var r=s("reactProp_"+n+"_valueHolder"),o=s("reactProp_"+n+"_atomHolder");Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get:function(){var e=!1;return t._allowStateReadsStart&&t._allowStateReadsEnd&&(e=t._allowStateReadsStart(!0)),i.call(this).reportObserved(),t._allowStateReadsStart&&t._allowStateReadsEnd&&t._allowStateReadsEnd(e),this[r]},set:function(e){this[q]||a(this[r],e)?c(this,r,e):(c(this,r,e),c(this,$,!0),i.call(this).reportChanged(),c(this,$,!1))}})}function w(e){if(e.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),G&&e.$$typeof===G)throw new Error("Mobx observer: You are trying to use 'observer' on function component wrapped to either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(X&&e.$$typeof===X){var t=e.render;if("function"!=typeof t)throw new Error("render property of ForwardRef was not a function");return n.forwardRef(function(){var e=arguments;return n.createElement(r.Observer,null,function(){return t.apply(void 0,e)})})}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(n.Component,e)?v(e):r.observer(e)}function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},x.apply(this,arguments)}function k(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function C(e){var t=e.children,n=k(e,["children"]),i=F.useContext(K),r=F.useRef(x({},i,{},n)),o=r.current,s=x({},o,{},n);if(!a(o,s))throw new Error("MobX Provider: The set of provided stores has changed. See: https://github.com/mobxjs/mobx-react#the-set-of-provided-stores-has-changed-error.");return F.createElement(K.Provider,{value:o},t)}function T(e,t,n,i){var r=F.forwardRef(function(n,i){var r=x({},n),o=F.useContext(K);return Object.assign(r,e(o||{},r)||{}),i&&(r.ref=i),F.createElement(t,r)});return i&&(r=w(r)),r.isMobxInjector=!0,l(t,r),r.wrappedComponent=t,r.displayName=E(t,n),r}function E(e,t){var n,i=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return n=t?"inject-with-"+t+"("+i+")":"inject("+i+")"}function S(e){return function(t,n){return e.forEach(function(e){if(!(e in n)){if(!(e in t))throw new Error("MobX injector: Store '"+e+"' is not available! Make sure it is provided by some Provider");n[e]=t[e]}}),n}}function D(){for(var e=arguments.length,t=new Array(e),n=0;e>n;n++)t[n]=arguments[n];if("function"==typeof arguments[0]){var i=arguments[0];return function(e){return T(i,e,i.name,!0)}}return function(e){return T(S(t),e,t.join("-"),!1)}}function O(){var e=this;[].concat(this[Q]||[],this[J]||[]).forEach(function(t){var n="string"==typeof t?e[t]:t;void 0!==n&&null!==n&&(Array.isArray(n)?n.map(function(e){return e()}):n())})}function P(e,t){if(Array.isArray(t))return t.map(function(t){return P(e,t)});var n=Object.getPrototypeOf(e).constructor||Object.getPrototypeOf(e.constructor),i=Object.getPrototypeOf(e.constructor);if(n!==F.Component&&n!==F.PureComponent&&i!==F.Component&&i!==F.PureComponent)throw new Error("[mobx-react] disposeOnUnmount only supports direct subclasses of React.Component or React.PureComponent.");if("string"!=typeof t&&"function"!=typeof t&&!Array.isArray(t))throw new Error("[mobx-react] disposeOnUnmount only works if the parameter is either a property key or a function.");var r="string"==typeof t,o=!!e[Q]||!!e[J],s=r?e[Q]||(e[Q]=[]):e[J]||(e[J]=[]);return s.push(t),o||d(e,"componentWillUnmount",O),"string"!=typeof t?t:void 0}function A(e){function n(n,i,r,o,s,a){for(var u=arguments.length,l=new Array(u>6?u-6:0),c=6;u>c;c++)l[c-6]=arguments[c];return t.untracked(function(){if(o=o||"<<anonymous>>",a=a||r,null==i[r]){if(n){var t=null===i[r]?"null":"undefined";return new Error("The "+s+" `"+a+"` is marked as required in `"+o+"`, but its value is `"+t+"`.")}return null}return e.apply(void 0,[i,r,o,s,a].concat(l))})}var i=n.bind(null,!1);return i.isRequired=n.bind(null,!0),i}function I(e,t){return"symbol"===e?!0:"Symbol"===t["@@toStringTag"]?!0:"function"==typeof Symbol&&t instanceof Symbol?!0:!1}function N(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":I(t,e)?"symbol":t}function j(e){var t=N(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function R(e,n){return A(function(i,r,o,s,a){return t.untracked(function(){if(e&&N(i[r])===n.toLowerCase())return null;var s;switch(n){case"Array":s=t.isObservableArray;break;case"Object":s=t.isObservableObject;break;case"Map":s=t.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+n)}var u=i[r];if(!s(u)){var l=j(u),c=e?" or javascript `"+n.toLowerCase()+"`":"";return new Error("Invalid prop `"+a+"` of type `"+l+"` supplied to `"+o+"`, expected `mobx.Observable"+n+"`"+c+".")}return null})})}function M(e,n){return A(function(i,r,o,s,a){for(var u=arguments.length,l=new Array(u>5?u-5:0),c=5;u>c;c++)l[c-5]=arguments[c];return t.untracked(function(){if("function"!=typeof n)return new Error("Property `"+a+"` of component `"+o+"` has invalid PropType notation.");var t=R(e,"Array")(i,r,o,s,a);if(t instanceof Error)return t;for(var u=i[r],c=0;c<u.length;c++)if(t=n.apply(void 0,[u,c,o,s,a+"["+c+"]"].concat(l)),t instanceof Error)return t;return null})})}var F="default"in n?n["default"]:n,L=0,H={},z={$$typeof:1,render:1,compare:1,type:1,childContextTypes:1,contextType:1,contextTypes:1,defaultProps:1,getDefaultProps:1,getDerivedStateFromError:1,getDerivedStateFromProps:1,mixins:1,propTypes:1},V=s("patchMixins"),U=s("patchedDefinition"),W=t.$mobx||"$mobx",B=s("isUnmounted"),$=s("skipRender"),q=s("isForcingUpdate"),Y="function"==typeof Symbol&&Symbol["for"],X=Y?Symbol["for"]("react.forward_ref"):"function"==typeof n.forwardRef&&n.forwardRef(function(e){return null}).$$typeof,G=Y?Symbol["for"]("react.memo"):"function"==typeof n.memo&&n.memo(function(e){return null}).$$typeof,K=F.createContext({});C.displayName="MobXProvider";var Q=s("disposeOnUnmountProto"),J=s("disposeOnUnmountInst"),Z=R(!1,"Array"),ee=M.bind(null,!1),te=R(!1,"Map"),ne=R(!1,"Object"),ie=R(!0,"Array"),re=M.bind(null,!0),oe=R(!0,"Object"),se={observableArray:Z,observableArrayOf:ee,observableMap:te,observableObject:ne,arrayOrObservableArray:ie,arrayOrObservableArrayOf:re,objectOrObservableObject:oe};if(!n.Component)throw new Error("mobx-react requires React to be available");if(!t.observable)throw new Error("mobx-react requires mobx to be available");"function"==typeof i.unstable_batchedUpdates&&t.configure({reactionScheduler:i.unstable_batchedUpdates}),Object.defineProperty(e,"Observer",{enumerable:!0,get:function(){return r.Observer}}),Object.defineProperty(e,"isUsingStaticRendering",{enumerable:!0,get:function(){return r.isUsingStaticRendering}}),Object.defineProperty(e,"useAsObservableSource",{enumerable:!0,get:function(){return r.useAsObservableSource}}),Object.defineProperty(e,"useLocalStore",{enumerable:!0,get:function(){return r.useLocalStore}}),Object.defineProperty(e,"useObserver",{enumerable:!0,get:function(){return r.useObserver}}),Object.defineProperty(e,"useStaticRendering",{enumerable:!0,get:function(){return r.useStaticRendering}}),e.MobXProviderContext=K,e.PropTypes=se,e.Provider=C,e.disposeOnUnmount=P,e.inject=D,e.observer=w,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mobx")):"function"==typeof define&&define.amd?define("mobx-state-tree",["exports","mobx"],t):(e=e||self,t(e.mobxStateTree={},e.mobx))}(this,function(e,t){"use strict";function n(e){hn=e}function i(){return hn}function r(e){n(e)}function o(e,t){function n(){this.constructor=e}pn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function s(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n}function a(e,t,n,i){var r,o=arguments.length,s=3>o?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(3>o?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function u(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(r)throw r.error}}return s}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}function h(e){return je(e,1),Re(e).type}function f(e,t){return je(e,1),Re(e).getChildType(t)}function p(e,t){return je(e,1),at(t,2),Re(e).onPatch(t)}function d(e,t){return je(e,1),at(t,2),Re(e).onSnapshot(t)}function g(e,t){je(e,1),st(t,function(e){return"object"==typeof e},"object or array",2),Re(e).applyPatches(qe(t))}function v(e,t){je(e,1);var n,i={patches:[],reversedInversePatches:[]},r={},o={get recording(){return!!n},get patches(){return r.patches||(r.patches=i.patches.slice()),r.patches},get reversedInversePatches(){return r.reversedInversePatches||(r.reversedInversePatches=i.reversedInversePatches.slice()),r.reversedInversePatches},get inversePatches(){return r.inversePatches||(r.inversePatches=i.reversedInversePatches.slice().reverse()),r.inversePatches},stop:function(){n&&(n(),n=void 0)},resume:function(){n||(n=p(e,function(e,n){(!t||t(e,n,ge()))&&(i.patches.push(e),i.reversedInversePatches.unshift(n),r.patches=void 0,r.inversePatches=void 0,r.reversedInversePatches=void 0)}))},replay:function(t){g(t||e,i.patches)},undo:function(t){g(t||e,i.reversedInversePatches)}};return o.resume(),o}function m(e){je(e,1);var t=Re(e);if(!t.isRoot)throw We("`protect` can only be invoked on root nodes");t.isProtectionEnabled=!0}function y(e){je(e,1);var t=Re(e);if(!t.isRoot)throw We("`unprotect` can only be invoked on root nodes");t.isProtectionEnabled=!1}function b(e){return Re(e).isProtected}function _(e,t){return je(e,1),Re(e).applySnapshot(t)}function w(e,t){void 0===t&&(t=!0),je(e,1);var n=Re(e);return t?n.snapshot:Qe(n.type.getSnapshot(n,!1))}function x(e,t){void 0===t&&(t=1),je(e,1),ut(t,2,0);for(var n=Re(e).parent;n;){if(0===--t)return!0;n=n.parent}return!1}function k(e,t){void 0===t&&(t=1),je(e,1),ut(t,2,0);for(var n=t,i=Re(e).parent;i;){if(0===--n)return i.storedValue;i=i.parent}throw We("Failed to find the parent of "+Re(e)+" at depth "+t)}function C(e,t){je(e,1),Q(t,2);for(var n=Re(e).parent;n;){if(t.is(n.storedValue))return!0;n=n.parent}return!1}function T(e,t){je(e,1),Q(t,2);for(var n=Re(e).parent;n;){if(t.is(n.storedValue))return n.storedValue;n=n.parent}throw We("Failed to find the parent of "+Re(e)+" of a given type")}function E(e){return je(e,1),Re(e).root.storedValue}function S(e){return je(e,1),Re(e).path}function D(e){return je(e,1),_t(Re(e).path)}function O(e){return je(e,1),Re(e).isRoot}function P(e,t){je(e,1),lt(t,2);var n=He(Re(e),t);return n?n.value:void 0}function A(e,t,n){Q(e,1),je(t,2),un(n,3);var i=Re(t).root.identifierCache.resolve(e,sn(n));return i?i.value:void 0}function I(e){return je(e,1),Re(e).identifier}function N(e,t){void 0===t&&(t=!0);try{var n=e();if(void 0===n||null===n)return;if(Ne(n))return t?z(n)?n:void 0:n;throw We("The reference to be checked is not one of node, null or undefined")}catch(i){if(i instanceof mi)return;throw i}}function j(e,t){void 0===t&&(t=!0);try{var n=e();if(void 0===n||null===n)return!1;if(Ne(n))return t?z(n):!0;throw We("The reference to be checked is not one of node, null or undefined")}catch(i){if(i instanceof mi)return!1;throw i}}function R(e,t){je(e,1),lt(t,2);var n=He(Re(e),t,!1);if(void 0!==n)try{return n.value}catch(i){return}}function M(e,t){return je(e,1),je(t,2),Le(Re(e),Re(t))}function F(e,t){void 0===t&&(t=!0),je(e,1);var n=Re(e);return n.type.create(n.snapshot,t===!0?n.root.environment:t===!1?void 0:t)}function L(e){return je(e,1),Re(e).detach(),e}function H(e){je(e,1);var t=Re(e);t.isRoot?t.die():t.parent.removeChild(t.subpath)}function z(e){return je(e,1),Re(e).observableIsAlive}function V(e,t){je(e,1),at(t,2);var n=Re(e);return n.addDisposer(t),t}function U(e){je(e,1);var t=Re(e),n=t.root.environment;return n?n:Rn}function W(e,t){je(e,1),at(t,2);var n=Re(e);n.getChildren().forEach(function(e){Ne(e.storedValue)&&W(e.storedValue,t)}),t(n.storedValue)}function B(e){var t;return t=Ne(e)?h(e):e,st(t,function(e){return Rt(e)},"model type or model instance",1),{name:t.name,properties:dn({},t.properties)}}function $(e){var n=Re(e).type,i=dn(dn({},B(n)),{actions:[],"volatile":[],views:[]}),r=Object.getOwnPropertyNames(e);return r.forEach(function(n){if(!(n in i.properties)){var r=Object.getOwnPropertyDescriptor(e,n);return r.get?void(t.isComputedProp(e,n)?i.views.push(n):i["volatile"].push(n)):void(r.value._isMSTAction===!0?i.actions.push(n):t.isObservableProp(e,n)?i["volatile"].push(n):i.views.push(n))}}),i}function q(e){return e}function Y(e){return e}function X(e){return e}function G(e){return je(e,1),Re(e).nodeId}function K(e){return"object"==typeof e&&e&&e.isType===!0}function Q(e,t){st(e,K,"mobx-state-tree type",t)}function J(e){return function(t,n,i){switch(t.type){case"action":if(e.filter&&e.filter(t)!==!0)return n(t);var r=e.onStart(t);e.onResume(t,r),En.set(t.id,{call:t,context:r,async:!1});try{var o=n(t);return e.onSuspend(t,r),En.get(t.id).async===!1&&(En["delete"](t.id),e.onSuccess(t,r,o)),o}catch(s){throw En["delete"](t.id),e.onFail(t,r,s),s}case"flow_spawn":var a=En.get(t.rootId);return a.async=!0,n(t);case"flow_resume":case"flow_resume_error":var a=En.get(t.rootId);e.onResume(t,a.context);try{return n(t)}finally{e.onSuspend(t,a.context)}case"flow_throw":var a=En.get(t.rootId);return En["delete"](t.rootId),e.onFail(t,a.context,t.args[0]),n(t);case"flow_return":var a=En.get(t.rootId);return En["delete"](t.rootId),e.onSuccess(t,a.context,t.args[0]),n(t)}}}function Z(e){var t=new WeakMap;return function(n,i){var r=n.parentActionEvent?t.get(n.parentActionEvent):void 0;if("action"===n.type){var o=dn(dn({},n),{env:r&&r.call.env,parentCall:r&&r.call}),s=!e.filter||e.filter(o),a=s?e:void 0,u=new Sn(a,o);t.set(n,u);var l=void 0;try{l=i(n)}catch(c){throw u.finish(c),c}return u.hasFlowsPending||u.finish(),l}if(!r)return i(n);switch(n.type){case"flow_spawn":return r.incFlowsPending(),i(n);case"flow_resume":case"flow_resume_error":return i(n);case"flow_throw":var h=n.args[0];try{return i(n)}finally{r.decFlowsPending(),r.hasFlowsPending||r.finish(h)}case"flow_return":try{return i(n)}finally{r.decFlowsPending(),r.hasFlowsPending||r.finish()}}}}function ee(e,t,n,i){if(i instanceof Date)return{$MST_DATE:i.getTime()};if(Ke(i))return i;if(Ne(i))return ne("[MSTNode: "+h(i).name+"]");if("function"==typeof i)return ne("[function]");if("object"==typeof i&&!Xe(i)&&!$e(i))return ne("[object "+(i&&i.constructor&&i.constructor.name||"Complex Object")+"]");try{return JSON.stringify(i),i}catch(r){return ne(""+r)}}function te(e,t){return t&&"object"==typeof t&&"$MST_DATE"in t?new Date(t.$MST_DATE):t}function ne(e){return{$MST_UNSERIALIZABLE:!0,type:e}}function ie(e,n){je(e,1),st(n,function(e){return"object"==typeof e},"object or array",2),t.runInAction(function(){qe(n).forEach(function(t){return re(e,t)})})}function re(e,t){var n=R(e,t.path||"");if(!n)throw We("Invalid action path: "+(t.path||""));var i=Re(n);if("@APPLY_PATCHES"===t.name)return g.call(null,n,t.args[0]);if("@APPLY_SNAPSHOT"===t.name)return _.call(null,n,t.args[0]);if("function"!=typeof n[t.name])throw We("Action '"+t.name+"' does not exist in '"+i.path+"'");return n[t.name].apply(n,t.args?t.args.map(function(e){return te(i,e)}):[])}function oe(e,t){je(e,1);var n,i=[],r=function(e){var n=t?t(e,ge()):!0;n&&i.push(e)},o={actions:i,get recording(){return!!n},stop:function(){n&&(n(),n=void 0)},resume:function(){n||(n=se(e,r))},replay:function(e){ie(e,i)}};return o.resume(),o}function se(e,t,n){return void 0===n&&(n=!1),je(e,1),O(e)||ot("Warning: Attaching onAction listeners to non root nodes is dangerous: No events will be emitted for actions initiated higher up in the tree."),b(e)||ot("Warning: Attaching onAction listeners to non protected nodes is dangerous: No events will be emitted for direct modifications without action."),fe(e,function(i,r){if("action"===i.type&&i.id===i.rootId){var o=Re(i.context),s={name:i.name,path:Le(Re(e),o),args:i.args.map(function(e,t){return ee(o,i.name,t,e)})};if(n){var a=r(i);return t(s),a}return t(s),r(i)}return r(i)})}function ae(){return _n}function ue(){return Dn++}function le(e,t){var n=Re(e.context);"action"===e.type&&n.assertAlive({actionContext:e});var i=n._isRunningAction;n._isRunningAction=!0;var r=_n;_n=e;try{return de(n,e,t)}finally{_n=r,n._isRunningAction=i}}function ce(e){return e?"action"===e.type?e:e.parentActionEvent:void 0}function he(e,t,n){var i=function(){var i=ue(),r=_n,o=ce(r);return le({type:"action",name:t,id:i,args:nt(arguments),context:e,tree:E(e),rootId:r?r.rootId:i,parentId:r?r.id:0,allParentIds:r?c(r.allParentIds,[r.id]):[],parentEvent:r,parentActionEvent:o},n)};return i._isMSTAction=!0,i}function fe(e,t,n){void 0===n&&(n=!0);var i=Re(e);return i.isProtectionEnabled||ot("It is recommended to protect the state tree before attaching action middleware, as otherwise it cannot be guaranteed that all changes are passed through middleware. See `protect`"),i.addMiddleWare(t,n)}function pe(e,t,n){void 0===n&&(n=!0);var i={handler:e,includeHooks:n};return t.$mst_middleware=t.$mst_middleware||[],t.$mst_middleware.push(i),t}function de(e,n,i){function r(e){function n(e,t){c=!0,s=r(e),t&&(s=t(s))}function a(e){h=!0,s=e}var u=o.getNextMiddleware(),l=u&&u.handler;if(!l)return t.action(i).apply(null,e.args);if(!u.includeHooks&&cn[e.name])return r(e);var c=!1,h=!1;if(l(e,n,a),!c&&!h){var f=Re(e.tree);throw We("Neither the next() nor the abort() callback within the middleware "+l.name+' for the action: "'+e.name+'" on the node: '+f.type.name+" was invoked.")}if(c&&h){var f=Re(e.tree);throw We("The next() and abort() callback within the middleware "+l.name+' for the action: "'+e.name+'" on the node: '+f.type.name+" were invoked.")}return s}var o=new On(e,i);if(o.isEmpty)return t.action(i).apply(null,n.args);var s=null;return r(n)}function ge(){for(var e=ae();e&&"action"!==e.type;)e=e.parentActionEvent;return e}function ve(e,t,n){for(var i="number"==typeof t?t:t.id,r=n?e:e.parentActionEvent;r;){if(r.id===i)return!0;r=r.parentActionEvent}return!1}function me(e,t){return ve(e,t,!1)}function ye(e,t){return ve(e,t,!0)}function be(e){try{return JSON.stringify(e)}catch(t){return"<Unserializable: "+t+">"}}function _e(e){return"function"==typeof e?"<function"+(e.name?" "+e.name:"")+">":Ne(e)?"<"+e+">":"`"+be(e)+"`"}function we(e){return e.length<280?e:e.substring(0,272)+"......"+e.substring(e.length-8)}function xe(e){var t=e.value,n=e.context[e.context.length-1].type,i=e.context.map(function(e){var t=e.path;return t}).filter(function(e){return e.length>0}).join("/"),r=i.length>0?'at path "/'+i+'" ':"",o=Ne(t)?"value of type "+Re(t).type.name+":":Ke(t)?"value":"snapshot",s=n&&Ne(t)&&n.is(Re(t).snapshot);return""+r+o+" "+_e(t)+" is not assignable "+(n?"to type: `"+n.name+"`":"")+(e.message?" ("+e.message+")":"")+(n?Ft(n)||Ke(t)?".":", expected an instance of `"+n.name+"` or a snapshot like `"+n.describe()+"` instead."+(s?" (Note that a snapshot of the provided value is compatible with the targeted type)":""):".")}function ke(e,t,n){return e.concat([{path:t,type:n}])}function Ce(){return jn}function Te(e,t,n){return[{context:e,value:t,message:n}]}function Ee(e){return e.reduce(function(e,t){return e.concat(t)},[])}function Se(e,t){De(e,t)}function De(e,t){var n=e.validate(t,[{path:"",type:e}]);if(n.length>0)throw We(Oe(e,t,n))}function Oe(e,t,n){return 0!==n.length?"Error while converting "+we(_e(t))+" to `"+e.name+"`:\n\n "+n.map(xe).join("\n "):void 0}function Pe(e,t,n,i,r){var o=Me(r);if(o){if(o.parent)throw We("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+(t?t.path:"")+"/"+n+"', but it lives already at '"+o.path+"'");return t&&o.setParent(t,n),o}return new bn(e,t,n,i,r)}function Ae(e,t,n,i,r){return new vn(e,t,n,i,r)}function Ie(e){return e instanceof vn||e instanceof bn}function Ne(e){return!(!e||!e.$treenode)}function je(e,t){st(e,Ne,"mobx-state-tree node",t)}function Re(e){if(!Ne(e))throw We("Value "+e+" is no MST Node");return e.$treenode}function Me(e){return e&&e.$treenode||null}function Fe(){return Re(this).snapshot}function Le(e,t){if(e.root!==t.root)throw We("Cannot calculate relative path: objects '"+e+"' and '"+t+"' are not part of the same object tree");
- for(var n=_t(e.path),i=_t(t.path),r=0;r<n.length&&n[r]===i[r];r++);return n.slice(r).map(In).join("/")+bt(i.slice(r))}function He(e,t,n){return void 0===n&&(n=!0),ze(e,_t(t),n)}function ze(e,t,n){void 0===n&&(n=!0);for(var i=e,r=0;r<t.length;r++){var o=t[r];if(".."===o){if(i=i.parent)continue}else{if("."===o)continue;if(i){if(i instanceof vn)try{var s=i.value;Ne(s)&&(i=Re(s))}catch(a){if(!n)return;throw a}if(i instanceof bn){var u=i.getChildType(o);if(u&&(i=i.getChildNode(o)))continue}}}if(n)throw We("Could not resolve '"+o+"' in path '"+(bt(t.slice(0,r))||"/")+"' while resolving '"+bt(t)+"'");return}return i}function Ve(e){if(!e)return jn;var t=Object.keys(e);if(!t.length)return jn;var n=new Array(t.length);return t.forEach(function(t,i){n[i]=e[t]}),n}function Ue(e){return zn("process","`process()` has been renamed to `flow()`. "+Nn),ct(e)}function We(e){return void 0===e&&(e="Illegal state"),new Error("[mobx-state-tree] "+e)}function Be(e){return e}function $e(e){return Array.isArray(e)||t.isObservableArray(e)}function qe(e){return e?$e(e)?e:[e]:jn}function Ye(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++){var r=t[i];for(var o in r)e[o]=r[o]}return e}function Xe(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Ge(e){return!(null===e||"object"!=typeof e||e instanceof Date||e instanceof RegExp)}function Ke(e,t){return void 0===t&&(t=!0),null===e||void 0===e?!0:"string"==typeof e||"number"==typeof e||"boolean"==typeof e||t&&e instanceof Date?!0:!1}function Qe(e){return Ke(e)||t.isObservableArray(e)?e:Object.freeze(e)}function Je(e){return Qe(e),Xe(e)&&Object.keys(e).forEach(function(t){Ke(e[t])||Object.isFrozen(e[t])||Je(e[t])}),e}function Ze(e){return"function"!=typeof e}function et(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function tt(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function nt(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e[n];return t}function it(e,n){var i=t.getAtom(e,n);i.trackAndCompute()}function rt(e,t){return 0===e.indexOf(t)}function ot(e){console.warn(new Error("[mobx-state-tree] "+e))}function st(e,t,n,i){if(!t(e))throw We("expected "+n+" as argument "+qe(i).join(" or ")+", got "+e+" instead")}function at(e,t){st(e,function(e){return"function"==typeof e},"function",t)}function ut(e,t,n,i){st(e,function(e){return"number"==typeof e},"number",t),void 0!==n&&st(e,function(e){return e>=n},"number greater than "+n,t),void 0!==i&&st(e,function(e){return i>=e},"number lesser than "+i,t)}function lt(e,t,n){void 0===n&&(n=!0),st(e,function(e){return"string"==typeof e},"string",t),n||st(e,function(e){return""!==e},"not empty string",t)}function ct(e){return ft(e.name,e)}function ht(e){return e}function ft(e,t){var n=function(){function i(e,t,i){e.$mst_middleware=n.$mst_middleware,le(dn(dn({},a),{type:t,args:[i]}),e)}var r=ue(),o=ae();if(!o)throw We("a mst flow must always have a parent context");var s=ce(o);if(!s)throw We("a mst flow must always have a parent action context");var a={name:e,id:r,tree:o.tree,context:o.context,parentId:o.id,allParentIds:c(o.allParentIds,[o.id]),rootId:o.rootId,parentEvent:o,parentActionEvent:s},u=arguments;return new Promise(function(e,r){function o(e){var t;try{i(function(e){t=c.next(e)},"flow_resume",e)}catch(n){return void setImmediate(function(){i(function(e){r(n)},"flow_throw",n)})}l(t)}function s(e){var t;try{i(function(e){t=c["throw"](e)},"flow_resume_error",e)}catch(n){return void setImmediate(function(){i(function(e){r(n)},"flow_throw",n)})}l(t)}function l(t){if(t.done)return void setImmediate(function(){i(function(t){e(t)},"flow_return",t.value)});if(!t.value||"function"!=typeof t.value.then)throw We("Only promises can be yielded to `async`, got: "+t);return t.value.then(o,s)}var c,h=function(){c=t.apply(null,arguments),o(void 0)};h.$mst_middleware=n.$mst_middleware,le(dn(dn({},a),{type:"flow_spawn",args:nt(u)}),h)})};return n}function pt(e){if(!("oldValue"in e))throw We("Patches without `oldValue` field cannot be inversed");return[dt(e),gt(e)]}function dt(e){switch(e.op){case"add":return{op:"add",path:e.path,value:e.value};case"remove":return{op:"remove",path:e.path};case"replace":return{op:"replace",path:e.path,value:e.value}}}function gt(e){switch(e.op){case"add":return{op:"remove",path:e.path};case"remove":return{op:"add",path:e.path,value:e.oldValue};case"replace":return{op:"replace",path:e.path,value:e.oldValue}}}function vt(e){return"number"==typeof e}function mt(e){return vt(e)===!0?""+e:-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function yt(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function bt(e){if(0===e.length)return"";var t=function(e){return e.map(mt).join("/")};return"."===e[0]||".."===e[0]?t(e):"/"+t(e)}function _t(e){var t=e.split("/").map(yt),n=""===e||"."===e||".."===e||rt(e,"/")||rt(e,"./")||rt(e,"../");if(!n)throw We("a json path must be either rooted, empty or relative, but got '"+e+"'");return""===t[0]&&t.shift(),t}function wt(e,t){for(var n,i,r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];try{for(var s=u(r),a=s.next();!a.done;a=s.next()){var l=a.value;e[l]=t[l].bind(t)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s["return"])&&i.call(s)}finally{if(n)throw n.error}}}function xt(e,t,n){if(Q(e,1),t.postProcessor&&"function"!=typeof t.postProcessor)throw fail("postSnapshotProcessor must be a function");if(t.preProcessor&&"function"!=typeof t.preProcessor)throw fail("preSnapshotProcessor must be a function");return new Un(e,t,n)}function kt(e,t){var n,i,r=e.getSubTypes();if(r===xn)return!1;if(r){var o=qe(r);try{for(var s=u(o),a=s.next();!a.done;a=s.next()){var l=a.value;if(!kt(l,t))return!1}}catch(c){n={error:c}}finally{try{a&&!a.done&&(i=s["return"])&&i.call(s)}finally{if(n)throw n.error}}}return e instanceof Kn&&t.push(e),!0}function Ct(e){return new $n("map<string, "+e.name+">",e)}function Tt(e){return K(e)&&(e.flags&fn.Map)>0}function Et(e){return Q(e,1),new qn(e.name+"[]",e)}function St(e,t,n,i,r){for(var o=!0,s=0;;s++){var a=s<=i.length-1,u=n[s],l=a?i[s]:void 0,c=""+r[s];if(Ie(l)&&(l=l.storedValue),!u&&!a)break;if(a)if(u)if(Ot(u,l))n[s]=Dt(t,e,c,l,u);else{for(var h=void 0,f=s;f<n.length;f++)if(Ot(n[f],l)){h=n.splice(f,1)[0];break}o=!1;var p=Dt(t,e,c,l,h);n.splice(s,0,p)}else{if(Ne(l)&&Re(l).parent===e)throw We("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+e.path+"/"+c+"', but it lives already at '"+Re(l).path+"'");o=!1;var p=Dt(t,e,c,l);n.splice(s,0,p)}else o=!1,n.splice(s,1),u instanceof bn&&u.createObservableInstanceIfNeeded(),u.die(),s--}return o?null:n}function Dt(e,t,n,i,r){function o(){if(Ne(i)){var o=Re(i);if(o.assertAlive(Rn),null!==o.parent&&o.parent===t)return o.setParent(t,n),o}return r?e.reconcile(r,i,t,n):e.instantiate(t,n,void 0,i)}Se(e,i);var s=o();return r&&r!==s&&(r instanceof bn&&r.createObservableInstanceIfNeeded(),r.die()),s}function Ot(e,t){if(!e.isAlive)return!1;if(Ne(t)){var n=Re(t);return n.isAlive&&n===e}return e.snapshot===t?!0:e instanceof bn&&null!==e.identifier&&e.identifierAttribute&&Xe(t)&&e.identifier===sn(t[e.identifierAttribute])&&e.type.is(t)}function Pt(e){return K(e)&&(e.flags&fn.Array)>0}function At(){return Re(this).toString()}function It(e){return Object.keys(e).reduce(function(e,t){var n,i,r;if(t in cn)throw We("Hook '"+t+"' was defined as property. Hooks should be defined as part of the actions");var o=Object.getOwnPropertyDescriptor(e,t);if("get"in o)throw We("Getters are not supported as properties. Please use views instead");var s=o.value;if(null===s||void 0===s)throw We("The default value of an attribute cannot be null or undefined as the type cannot be inferred. Did you mean `types.maybe(someType)`?");if(Ke(s))return Object.assign({},e,(n={},n[t]=qt(Mt(s),s),n));if(s instanceof $n)return Object.assign({},e,(i={},i[t]=qt(s,{}),i));if(s instanceof qn)return Object.assign({},e,(r={},r[t]=qt(s,[]),r));if(K(s))return e;throw We("function"==typeof s?"Invalid type definition for property '"+t+"', it looks like you passed a function. Did you forget to invoke it, or did you intend to declare a view / action?":"object"==typeof s?"Invalid type definition for property '"+t+"', it looks like you passed an object. Try passing another model type or a types.frozen.":"Invalid type definition for property '"+t+"', cannot infer a type from a value like '"+s+"' ("+typeof s+")")},e)}function Nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="string"==typeof e[0]?e.shift():"AnonymousModel",i=e.shift()||{};return new Kn({name:n,properties:i})}function jt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="string"==typeof e[0],i=n?e[0]:"AnonymousModel";return n&&e.shift(),e.forEach(function(e,t){st(e,Rt,"mobx-state-tree model type",n?t+2:t+1)}),e.reduce(function(e,t){return e.cloneAndEnhance({name:e.name+"_"+t.name,properties:t.properties,initializers:t.initializers,preProcessor:function(n){return t.applySnapshotPreProcessor(e.applySnapshotPreProcessor(n))},postProcessor:function(n){return t.applySnapshotPostProcessor(e.applySnapshotPostProcessor(n))}})}).named(i)}function Rt(e){return K(e)&&(e.flags&fn.Object)>0}function Mt(e){switch(typeof e){case"string":return Jn;case"number":return Zn;case"boolean":return ti;case"object":if(e instanceof Date)return oi}throw We("Cannot determine primitive type from value "+e)}function Ft(e){return K(e)&&(e.flags&(fn.String|fn.Number|fn.Integer|fn.Boolean|fn.Date))>0}function Lt(e){return st(e,Ke,"primitive",1),new si(e)}function Ht(e){return K(e)&&(e.flags&fn.Literal)>0}function zt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="string"==typeof e[0]?e.shift():K(e[0])?e[0].name:null,i=e[0],r=e[1],o=e[2]?e[2]:function(e){return"Value does not respect the refinement predicate"};return Q(i,[1,2]),lt(n,1),at(r,[2,3]),at(o,[3,4]),new ai(n,i,r,o)}function Vt(e){return(e.flags&fn.Refinement)>0}function Ut(e,t){var n="string"==typeof e?t:e;n.forEach(function(e,t){lt(e,t+1)});var i=Wt.apply(void 0,c(n.map(function(e){return Lt(""+e)})));return"string"==typeof e&&(i.name=e),i}function Wt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=K(e)?void 0:e,r=K(e)?c([e],t):t,o="("+r.map(function(e){return e.name}).join(" | ")+")";return i&&st(i,function(e){return Xe(e)},"object { eager?: boolean, dispatcher?: Function }",1),r.forEach(function(e,t){Q(e,i?t+2:t+1)}),new ui(o,r,i)}function Bt(e){return(e.flags&fn.Union)>0}function $t(e,t){if("function"!=typeof t&&Ne(t))throw We("default value cannot be an instance, pass a snapshot or a function that creates an instance/snapshot instead");Q(e,1),"function"!=typeof t&&Se(e,t)}function qt(e,t,n){return $t(e,t),new li(e,t,n?n:ci)}function Yt(e){return K(e)&&(e.flags&fn.Optional)>0}function Xt(e){return Q(e,1),Wt(e,hi)}function Gt(e){return Q(e,1),Wt(e,fi)}function Kt(e,t){var n="string"==typeof e?e:"late("+e.toString()+")",i="string"==typeof e?t:e;if("function"!=typeof i||0!==i.length)throw We("Invalid late type, expected a function with zero arguments that returns a type, got: "+i);return new pi(n,i)}function Qt(e){return K(e)&&(e.flags&fn.Late)>0}function Jt(e){return 0===arguments.length?gi:K(e)?new di(e):qt(gi,e)}function Zt(e){return K(e)&&(e.flags&fn.Frozen)>0}function en(e){switch(e){case cn.beforeDestroy:return"destroy";case cn.beforeDetach:return"detach";default:return}}function tn(e,t){if(Q(e,1),2===arguments.length&&"string"==typeof arguments[1])throw We("References with base path are no longer supported. Please remove the base path.");var n=t?t:void 0,i=t?t.onInvalidated:void 0;if(n&&(n.get||n.set)){if(!n.get||!n.set)throw We("reference options must either contain both a 'get' and a 'set' method or none of them");return new _i(e,{get:n.get,set:n.set},i)}return new bi(e,i)}function nn(e){return(e.flags&fn.Reference)>0}function rn(e,t){var n=tn(e,dn(dn({},t),{onInvalidated:function(e){e.removeRef()}}));return t&&t.acceptsUndefined===!1?n:Xt(n)}function on(e){return K(e)&&(e.flags&fn.Identifier)>0}function sn(e){return""+e}function an(e){return"string"==typeof e||"number"==typeof e}function un(e,t){st(e,an,"string or number (identifier)",t)}function ln(e){return new Ei(e)}var cn,hn="warn";!function(e){e.afterCreate="afterCreate",e.afterAttach="afterAttach",e.afterCreationFinalization="afterCreationFinalization",e.beforeDetach="beforeDetach",e.beforeDestroy="beforeDestroy"}(cn||(cn={}));/*! *****************************************************************************
- Copyright (c) Microsoft Corporation. All rights reserved.
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
- this file except in compliance with the License. You may obtain a copy of the
- License at http://www.apache.org/licenses/LICENSE-2.0
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
- MERCHANTABLITY OR NON-INFRINGEMENT.
- See the Apache Version 2.0 License for specific language governing permissions
- and limitations under the License.
- ***************************************************************************** */
- var fn,pn=function(e,t){return(pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},dn=function(){return dn=Object.assign||function(e){for(var t,n=1,i=arguments.length;i>n;n++){t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},dn.apply(this,arguments)},gn=function(){function e(e,t,n,i){this.type=e,this.environment=i,this._state=wn.INITIALIZING,this.environment=i,this.baseSetParent(t,n)}return Object.defineProperty(e.prototype,"subpath",{get:function(){return this._subpath},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"subpathUponDeath",{get:function(){return this._subpathUponDeath},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathUponDeath",{get:function(){return this._pathUponDeath},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.type.getValue(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},set:function(e){var t=this.isAlive;this._state=e;var n=this.isAlive;this.aliveAtom&&t!==n&&this.aliveAtom.reportChanged()},enumerable:!0,configurable:!0}),e.prototype.fireInternalHook=function(e){this._hookSubscribers&&this._hookSubscribers.emit(e,this,e)},e.prototype.registerHook=function(e,t){return this._hookSubscribers||(this._hookSubscribers=new Hn),this._hookSubscribers.register(e,t)},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),e.prototype.baseSetParent=function(e,t){this._parent=e,this._subpath=t,this._escapedSubpath=void 0,this.pathAtom&&this.pathAtom.reportChanged()},Object.defineProperty(e.prototype,"path",{get:function(){return this.getEscapedPath(!0)},enumerable:!0,configurable:!0}),e.prototype.getEscapedPath=function(e){return e&&(this.pathAtom||(this.pathAtom=t.createAtom("path")),this.pathAtom.reportObserved()),this.parent?(void 0===this._escapedSubpath&&(this._escapedSubpath=this._subpath?mt(this._subpath):""),this.parent.getEscapedPath(e)+"/"+this._escapedSubpath):""},Object.defineProperty(e.prototype,"isRoot",{get:function(){return null===this.parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAlive",{get:function(){return this.state!==wn.DEAD},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDetaching",{get:function(){return this.state===wn.DETACHING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"observableIsAlive",{get:function(){return this.aliveAtom||(this.aliveAtom=t.createAtom("alive")),this.aliveAtom.reportObserved(),this.isAlive},enumerable:!0,configurable:!0}),e.prototype.baseFinalizeCreation=function(e){if(!this.isAlive)throw fail("assertion failed: cannot finalize the creation of a node that is already dead");if(this.state===wn.CREATED){if(this.parent){if(this.parent.state!==wn.FINALIZED)return;this.fireHook(cn.afterAttach)}this.state=wn.FINALIZED,e&&e()}},e.prototype.baseFinalizeDeath=function(){this._hookSubscribers&&this._hookSubscribers.clearAll(),this._subpathUponDeath=this._subpath,this._pathUponDeath=this.getEscapedPath(!1),this.baseSetParent(null,""),this.state=wn.DEAD},e.prototype.baseAboutToDie=function(){this.fireHook(cn.beforeDestroy)},e}(),vn=function(e){function n(t,n,i,r,o){var s=e.call(this,t,n,i,r)||this;try{s.storedValue=t.createNewInstance(o)}catch(a){throw s.state=wn.DEAD,a}return s.state=wn.CREATED,s.finalizeCreation(),s}return o(n,e),Object.defineProperty(n.prototype,"root",{get:function(){if(!this.parent)throw We("This scalar node is not part of a tree");return this.parent.root},enumerable:!0,configurable:!0}),n.prototype.setParent=function(e,t){var n=this.parent!==e,i=this.subpath!==t;if(n||i){if(!t)throw We("assertion failed: subpath expected");if(!e)throw We("assertion failed: parent expected");if(n)throw We("assertion failed: scalar nodes cannot change their parent");this.environment=void 0,this.baseSetParent(this.parent,t)}},Object.defineProperty(n.prototype,"snapshot",{get:function(){return Qe(this.getSnapshot())},enumerable:!0,configurable:!0}),n.prototype.getSnapshot=function(){return this.type.getSnapshot(this)},n.prototype.toString=function(){var e=(this.isAlive?this.path:this.pathUponDeath)||"<root>";return this.type.name+"@"+e+(this.isAlive?"":" [dead]")},n.prototype.die=function(){this.isAlive&&this.state!==wn.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},n.prototype.finalizeCreation=function(){this.baseFinalizeCreation()},n.prototype.aboutToDie=function(){this.baseAboutToDie()},n.prototype.finalizeDeath=function(){this.baseFinalizeDeath()},n.prototype.fireHook=function(e){this.fireInternalHook(e)},a([t.action],n.prototype,"die",null),n}(gn),mn=1,yn={onError:function(e){throw e}},bn=function(e){function n(t,n,i,r,o){var s=e.call(this,t,n,i,r)||this;if(s.nodeId=++mn,s.isProtectionEnabled=!0,s._autoUnbox=!0,s._isRunningAction=!1,s._hasSnapshotReaction=!1,s._observableInstanceState=0,s._cachedInitialSnapshotCreated=!1,s.unbox=s.unbox.bind(s),s._initialSnapshot=Qe(o),s.identifierAttribute=t.identifierAttribute,n||(s.identifierCache=new An),s._childNodes=t.initializeChildNodes(s,s._initialSnapshot),s.identifier=null,s.unnormalizedIdentifier=null,s.identifierAttribute&&s._initialSnapshot){var a=s._initialSnapshot[s.identifierAttribute];if(void 0===a){var u=s._childNodes[s.identifierAttribute];u&&(a=u.value)}if("string"!=typeof a&&"number"!=typeof a)throw We("Instance identifier '"+s.identifierAttribute+"' for type '"+s.type.name+"' must be a string or a number");s.identifier=sn(a),s.unnormalizedIdentifier=a}return n?n.root.identifierCache.addNodeToCache(s):s.identifierCache.addNodeToCache(s),s}return o(n,e),n.prototype.applyPatches=function(e){this.createObservableInstanceIfNeeded(),this._applyPatches(e)},n.prototype.applySnapshot=function(e){this.createObservableInstanceIfNeeded(),this._applySnapshot(e)},n.prototype.createObservableInstanceIfNeeded=function(){var e,t;if(0===this._observableInstanceState){if(this.state!==wn.INITIALIZING)throw We("assertion failed: the creation of the observable instance must be done on the initializing phase");this._observableInstanceState=1;for(var n=[],i=this.parent;i&&0===i._observableInstanceState;)n.unshift(i),i=i.parent;try{for(var r=u(n),o=r.next();!o.done;o=r.next()){var s=o.value;s.createObservableInstanceIfNeeded()}}catch(a){e={error:a}}finally{try{o&&!o.done&&(t=r["return"])&&t.call(r)}finally{if(e)throw e.error}}var l=this.type;try{this.storedValue=l.createNewInstance(this._childNodes),this.preboot(),this._isRunningAction=!0,l.finalizeNewInstance(this,this.storedValue)}catch(c){throw this.state=wn.DEAD,c}finally{this._isRunningAction=!1}this._observableInstanceState=2,it(this,"snapshot"),this.isRoot&&this._addSnapshotReaction(),this._childNodes=Rn,this.state=wn.CREATED,this.fireHook(cn.afterCreate),this.finalizeCreation()}},Object.defineProperty(n.prototype,"root",{get:function(){var e=this.parent;return e?e.root:this},enumerable:!0,configurable:!0}),n.prototype.clearParent=function(){if(this.parent){this.fireHook(cn.beforeDetach);var e=this.state;this.state=wn.DETACHING;var t=this.root,n=t.environment,i=t.identifierCache.splitCache(this);try{this.parent.removeChild(this.subpath),this.baseSetParent(null,""),this.environment=n,this.identifierCache=i}finally{this.state=e}}},n.prototype.setParent=function(e,t){var n=e!==this.parent,i=t!==this.subpath;if(n||i){if(!t)throw We("assertion failed: subpath expected");if(!e)throw We("assertion failed: new parent expected");if(this.parent&&n)throw We("A node cannot exists twice in the state tree. Failed to add "+this+" to path '"+e.path+"/"+t+"'.");if(!this.parent&&e.root===this)throw We("A state tree is not allowed to contain itself. Cannot assign "+this+" to path '"+e.path+"/"+t+"'");if(!this.parent&&this.environment&&this.environment!==e.root.environment)throw We("A state tree cannot be made part of another state tree as long as their environments are different.");n?(this.environment=void 0,e.root.identifierCache.mergeCache(this),this.baseSetParent(e,t),this.fireHook(cn.afterAttach)):i&&this.baseSetParent(this.parent,t)}},n.prototype.fireHook=function(e){var n=this;this.fireInternalHook(e);var i=this.storedValue&&"object"==typeof this.storedValue&&this.storedValue[e];"function"==typeof i&&(t._allowStateChangesInsideComputed?t._allowStateChangesInsideComputed(function(){i.apply(n.storedValue)}):i.apply(this.storedValue))},Object.defineProperty(n.prototype,"snapshot",{get:function(){return Qe(this.getSnapshot())},enumerable:!0,configurable:!0}),n.prototype.getSnapshot=function(){return this.isAlive?2===this._observableInstanceState?this._getActualSnapshot():this._getCachedInitialSnapshot():this._snapshotUponDeath},n.prototype._getActualSnapshot=function(){return this.type.getSnapshot(this)},n.prototype._getCachedInitialSnapshot=function(){if(!this._cachedInitialSnapshotCreated){var e=this.type,t=this._childNodes,n=this._initialSnapshot;this._cachedInitialSnapshot=e.processInitialSnapshot(t,n),this._cachedInitialSnapshotCreated=!0}return this._cachedInitialSnapshot},n.prototype.isRunningAction=function(){return this._isRunningAction?!0:this.isRoot?!1:this.parent.isRunningAction()},n.prototype.assertAlive=function(e){var t=i();if(!this.isAlive&&"ignore"!==t){var n=this._getAssertAliveError(e);switch(t){case"error":throw We(n);case"warn":ot(n)}}},n.prototype._getAssertAliveError=function(e){var t=this.getEscapedPath(!1)||this.pathUponDeath||"",n=e.subpath&&mt(e.subpath)||"",i=e.actionContext||ae();i&&"action"!==i.type&&i.parentActionEvent&&(i=i.parentActionEvent);var r="";if(i&&null!=i.name){var o=i&&i.context&&S(i.context)||t;r=o+"."+i.name+"()"}return"You are trying to read or write to an object that is no longer part of a state tree. (Object type: '"+this.type.name+"', Path upon death: '"+t+"', Subpath: '"+n+"', Action: '"+r+"'). Either detach nodes first, or don't use objects after removing / replacing them in the tree."},n.prototype.getChildNode=function(e){this.assertAlive({subpath:e}),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildNode(this,e):this._childNodes[e]}finally{this._autoUnbox=!0}},n.prototype.getChildren=function(){this.assertAlive(Rn),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildren(this):Ve(this._childNodes)}finally{this._autoUnbox=!0}},n.prototype.getChildType=function(e){return this.type.getChildType(e)},Object.defineProperty(n.prototype,"isProtected",{get:function(){return this.root.isProtectionEnabled},enumerable:!0,configurable:!0}),n.prototype.assertWritable=function(e){if(this.assertAlive(e),!this.isRunningAction()&&this.isProtected)throw We("Cannot modify '"+this+"', the object is protected and can only be modified by using an action.")},n.prototype.removeChild=function(e){this.type.removeChild(this,e)},n.prototype.unbox=function(e){return e?(this.assertAlive({subpath:e.subpath||e.subpathUponDeath}),this._autoUnbox?e.value:e):e},n.prototype.toString=function(){var e=(this.isAlive?this.path:this.pathUponDeath)||"<root>",t=this.identifier?"(id: "+this.identifier+")":"";return this.type.name+"@"+e+t+(this.isAlive?"":" [dead]")},n.prototype.finalizeCreation=function(){var e=this;this.baseFinalizeCreation(function(){var t,n;try{for(var i=u(e.getChildren()),r=i.next();!r.done;r=i.next()){var o=r.value;o.finalizeCreation()}}catch(s){t={error:s}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(t)throw t.error}}e.fireInternalHook(cn.afterCreationFinalization)})},n.prototype.detach=function(){if(!this.isAlive)throw We("Error while detaching, node is not alive.");this.clearParent()},n.prototype.preboot=function(){var e=this;this._applyPatches=he(this.storedValue,"@APPLY_PATCHES",function(t){t.forEach(function(t){var n=_t(t.path),i=ze(e,n.slice(0,-1));i.applyPatchLocally(n[n.length-1],t)})}),this._applySnapshot=he(this.storedValue,"@APPLY_SNAPSHOT",function(t){return t!==e.snapshot?e.type.applySnapshot(e,t):void 0}),et(this.storedValue,"$treenode",this),et(this.storedValue,"toJSON",Fe)},n.prototype.die=function(){this.isAlive&&this.state!==wn.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},n.prototype.aboutToDie=function(){0!==this._observableInstanceState&&(this.getChildren().forEach(function(e){e.aboutToDie()}),this.baseAboutToDie(),this._internalEventsEmit("dispose"),this._internalEventsClear("dispose"))},n.prototype.finalizeDeath=function(){this.getChildren().forEach(function(e){e.finalizeDeath()}),this.root.identifierCache.notifyDied(this);var e=this.snapshot;this._snapshotUponDeath=e,this._internalEventsClearAll(),this.baseFinalizeDeath()},n.prototype.onSnapshot=function(e){return this._addSnapshotReaction(),this._internalEventsRegister("snapshot",e)},n.prototype.emitSnapshot=function(e){this._internalEventsEmit("snapshot",e)},n.prototype.onPatch=function(e){return this._internalEventsRegister("patch",e)},n.prototype.emitPatch=function(e,t){if(this._internalEventsHasSubscribers("patch")){var n=Ye({},e,{path:t.path.substr(this.path.length)+"/"+e.path}),i=l(pt(n),2),r=i[0],o=i[1];this._internalEventsEmit("patch",r,o)}this.parent&&this.parent.emitPatch(e,t)},n.prototype.hasDisposer=function(e){return this._internalEventsHas("dispose",e)},n.prototype.addDisposer=function(e){if(!this.hasDisposer(e))return void this._internalEventsRegister("dispose",e,!0);throw We("cannot add a disposer when it is already registered for execution")},n.prototype.removeDisposer=function(e){if(!this._internalEventsHas("dispose",e))throw We("cannot remove a disposer which was never registered for execution");this._internalEventsUnregister("dispose",e)},n.prototype.removeMiddleware=function(e){if(this.middlewares){var t=this.middlewares.indexOf(e);t>=0&&this.middlewares.splice(t,1)}},n.prototype.addMiddleWare=function(e,t){var n=this;void 0===t&&(t=!0);var i={handler:e,includeHooks:t};return this.middlewares?this.middlewares.push(i):this.middlewares=[i],function(){n.removeMiddleware(i)}},n.prototype.applyPatchLocally=function(e,t){this.assertWritable({subpath:e}),this.createObservableInstanceIfNeeded(),this.type.applyPatchLocally(this,e,t)},n.prototype._addSnapshotReaction=function(){var e=this;if(!this._hasSnapshotReaction){var n=t.reaction(function(){return e.snapshot},function(t){return e.emitSnapshot(t)},yn);this.addDisposer(n),this._hasSnapshotReaction=!0}},n.prototype._internalEventsHasSubscribers=function(e){return!!this._internalEvents&&this._internalEvents.hasSubscribers(e)},n.prototype._internalEventsRegister=function(e,t,n){return void 0===n&&(n=!1),this._internalEvents||(this._internalEvents=new Hn),this._internalEvents.register(e,t,n)},n.prototype._internalEventsHas=function(e,t){return!!this._internalEvents&&this._internalEvents.has(e,t)},n.prototype._internalEventsUnregister=function(e,t){this._internalEvents&&this._internalEvents.unregister(e,t)},n.prototype._internalEventsEmit=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];this._internalEvents&&(t=this._internalEvents).emit.apply(t,c([e],n))},n.prototype._internalEventsClear=function(e){this._internalEvents&&this._internalEvents.clear(e)},n.prototype._internalEventsClearAll=function(){this._internalEvents&&this._internalEvents.clearAll()},a([t.action],n.prototype,"createObservableInstanceIfNeeded",null),a([t.computed],n.prototype,"snapshot",null),a([t.action],n.prototype,"detach",null),a([t.action],n.prototype,"die",null),n}(gn);!function(e){e[e.String=1]="String",e[e.Number=2]="Number",e[e.Boolean=4]="Boolean",e[e.Date=8]="Date",e[e.Literal=16]="Literal",e[e.Array=32]="Array",e[e.Map=64]="Map",e[e.Object=128]="Object",e[e.Frozen=256]="Frozen",e[e.Optional=512]="Optional",e[e.Reference=1024]="Reference",e[e.Identifier=2048]="Identifier",e[e.Late=4096]="Late",e[e.Refinement=8192]="Refinement",e[e.Union=16384]="Union",e[e.Null=32768]="Null",e[e.Undefined=65536]="Undefined",e[e.Integer=131072]="Integer",e[e.Custom=262144]="Custom",e[e.SnapshotProcessor=524288]="SnapshotProcessor"}(fn||(fn={}));var _n,wn,xn="cannotDetermine",kn=function(){function e(e){this.isType=!0,this.name=e}return e.prototype.create=function(e,t){return Se(this,e),this.instantiate(null,"",t,e).value},e.prototype.getSnapshot=function(e,t){throw We("unimplemented method")},e.prototype.isAssignableFrom=function(e){return e===this},e.prototype.validate=function(e,t){var n=Me(e);if(n){var i=h(e);return this.isAssignableFrom(i)?Ce():Te(t,e)}return this.isValidSnapshot(e,t)},e.prototype.is=function(e){return 0===this.validate(e,[{path:"",type:this}]).length},Object.defineProperty(e.prototype,"Type",{get:function(){throw We("Factory.Type should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.Type`")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"TypeWithoutSTN",{get:function(){throw We("Factory.TypeWithoutSTN should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.TypeWithoutSTN`")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"SnapshotType",{get:function(){throw We("Factory.SnapshotType should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.SnapshotType`")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CreationType",{get:function(){throw We("Factory.CreationType should not be actually called. It is just a Type signature that can be used at compile time with Typescript, by using `typeof type.CreationType`")},enumerable:!0,configurable:!0}),a([t.action],e.prototype,"create",null),e}(),Cn=function(e){function n(t){return e.call(this,t)||this}return o(n,e),n.prototype.create=function(t,n){return void 0===t&&(t=this.getDefaultSnapshot()),e.prototype.create.call(this,t,n)},n.prototype.getValue=function(e){return e.createObservableInstanceIfNeeded(),e.storedValue},n.prototype.tryToReconcileNode=function(e,t){return e.isDetaching?!1:e.snapshot===t?!0:Ne(t)&&Re(t)===e?!0:e.type!==this||!Ge(t)||Ne(t)||e.identifierAttribute&&e.identifier!==sn(t[e.identifierAttribute])?!1:(e.applySnapshot(t),!0)},n.prototype.reconcile=function(e,t,n,i){var r=this.tryToReconcileNode(e,t);if(r)return e.setParent(n,i),e;if(e.die(),Ne(t)&&this.isAssignableFrom(h(t))){var o=Re(t);return o.setParent(n,i),o}return this.instantiate(n,i,void 0,t)},n.prototype.getSubTypes=function(){return null},a([t.action],n.prototype,"create",null),n}(kn),Tn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.createNewInstance=function(e){return e},t.prototype.getValue=function(e){return e.storedValue},t.prototype.getSnapshot=function(e){return e.storedValue},t.prototype.reconcile=function(e,t,n,i){if(!e.isDetaching&&e.type===this&&e.storedValue===t)return e;var r=this.instantiate(n,i,void 0,t);return e.die(),r},t.prototype.getSubTypes=function(){return null},t}(kn),En=new Map,Sn=function(){function e(e,t){this.hooks=e,this.call=t,this.flowsPending=0,this.running=!0,e&&e.onStart(t)}return e.prototype.finish=function(e){this.running&&(this.running=!1,this.hooks&&this.hooks.onFinish(this.call,e))},e.prototype.incFlowsPending=function(){this.flowsPending++},e.prototype.decFlowsPending=function(){this.flowsPending--},Object.defineProperty(e.prototype,"hasFlowsPending",{get:function(){return this.flowsPending>0},enumerable:!0,configurable:!0}),e}(),Dn=1,On=function(){function e(e,t){this.arrayIndex=0,this.inArrayIndex=0,this.middlewares=[],t.$mst_middleware&&this.middlewares.push(t.$mst_middleware);for(var n=e;n;)n.middlewares&&this.middlewares.push(n.middlewares),n=n.parent}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.middlewares.length<=0},enumerable:!0,configurable:!0}),e.prototype.getNextMiddleware=function(){var e=this.middlewares[this.arrayIndex];if(e){var t=e[this.inArrayIndex++];return t?t:(this.arrayIndex++,this.inArrayIndex=0,this.getNextMiddleware())}},e}(),Pn=0,An=function(){function e(){this.cacheId=Pn++,this.cache=t.observable.map(),this.lastCacheModificationPerId=t.observable.map()}return e.prototype.updateLastCacheModificationPerId=function(e){var t=this.lastCacheModificationPerId.get(e);this.lastCacheModificationPerId.set(e,void 0===t?1:t+1)},e.prototype.getLastCacheModificationPerId=function(e){var t=this.lastCacheModificationPerId.get(e)||0;return this.cacheId+"-"+t},e.prototype.addNodeToCache=function(e,n){if(void 0===n&&(n=!0),e.identifierAttribute){var i=e.identifier;this.cache.has(i)||this.cache.set(i,t.observable.array([],Mn));var r=this.cache.get(i);if(-1!==r.indexOf(e))throw We("Already registered");r.push(e),n&&this.updateLastCacheModificationPerId(i)}},e.prototype.mergeCache=function(e){var n=this;t.values(e.identifierCache.cache).forEach(function(e){return e.forEach(function(e){n.addNodeToCache(e)})})},e.prototype.notifyDied=function(e){if(e.identifierAttribute){var t=e.identifier,n=this.cache.get(t);n&&(n.remove(e),n.length||this.cache["delete"](t),this.updateLastCacheModificationPerId(e.identifier))}},e.prototype.splitCache=function(n){var i=this,r=new e,o=n.path;return t.entries(this.cache).forEach(function(e){for(var t=l(e,2),n=t[0],s=t[1],a=!1,u=s.length-1;u>=0;u--)0===s[u].path.indexOf(o)&&(r.addNodeToCache(s[u],!1),s.splice(u,1),a=!0);a&&i.updateLastCacheModificationPerId(n)}),r},e.prototype.has=function(e,t){var n=this.cache.get(t);return n?n.some(function(t){return e.isAssignableFrom(t.type)}):!1},e.prototype.resolve=function(e,t){var n=this.cache.get(t);if(!n)return null;var i=n.filter(function(t){return e.isAssignableFrom(t.type)});switch(i.length){case 0:return null;case 1:return i[0];default:throw We("Cannot resolve a reference to type '"+e.name+"' with id: '"+t+"' unambigously, there are multiple candidates: "+i.map(function(e){return e.path}).join(", "))}},e}();!function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CREATED=1]="CREATED",e[e.FINALIZED=2]="FINALIZED",e[e.DETACHING=3]="DETACHING",e[e.DEAD=4]="DEAD"}(wn||(wn={}));var In=function(e){return".."},Nn="See https://github.com/mobxjs/mobx-state-tree/issues/399 for more information. Note that the middleware event types starting with `process` now start with `flow`.",jn=Object.freeze([]),Rn=Object.freeze({}),Mn="string"==typeof t.$mobx?{deep:!1}:{deep:!1,proxy:!1};Object.freeze(Mn);var Fn=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Ln=function(){function e(){this.handlers=[]}return Object.defineProperty(e.prototype,"hasSubscribers",{get:function(){return this.handlers.length>0},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this;return void 0===t&&(t=!1),t?this.handlers.unshift(e):this.handlers.push(e),function(){n.unregister(e)}},e.prototype.has=function(e){return this.handlers.indexOf(e)>=0},e.prototype.unregister=function(e){var t=this.handlers.indexOf(e);t>=0&&this.handlers.splice(t,1)},e.prototype.clear=function(){this.handlers.length=0},e.prototype.emit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.handlers.slice();n.forEach(function(t){return t.apply(void 0,c(e))})},e}(),Hn=function(){function e(){}return e.prototype.hasSubscribers=function(e){var t=this.eventHandlers&&this.eventHandlers[e];return!!t&&t.hasSubscribers},e.prototype.register=function(e,t,n){void 0===n&&(n=!1),this.eventHandlers||(this.eventHandlers={});var i=this.eventHandlers[e];return i||(i=this.eventHandlers[e]=new Ln),i.register(t,n)},e.prototype.has=function(e,t){var n=this.eventHandlers&&this.eventHandlers[e];return!!n&&n.has(t)},e.prototype.unregister=function(e,t){var n=this.eventHandlers&&this.eventHandlers[e];n&&n.unregister(t)},e.prototype.clear=function(e){this.eventHandlers&&delete this.eventHandlers[e]},e.prototype.clearAll=function(){this.eventHandlers=void 0},e.prototype.emit=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this.eventHandlers&&this.eventHandlers[e];r&&(t=r).emit.apply(t,c(n))},e}(),zn=function(e,t){zn.ids&&!zn.ids.hasOwnProperty(e)&&ot("Deprecation warning: "+t),zn.ids&&(zn.ids[e]=!0)};zn.ids={};var Vn,Un=function(e){function t(t,n,i){var r=e.call(this,i||t.name)||this;return r._subtype=t,r._processors=n,r}return o(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return this._subtype.flags|fn.SnapshotProcessor},enumerable:!0,configurable:!0}),t.prototype.describe=function(){return"snapshotProcessor("+this._subtype.describe()+")"},t.prototype.preProcessSnapshot=function(e){return this._processors.preProcessor?this._processors.preProcessor.call(null,e):e},t.prototype.postProcessSnapshot=function(e){return this._processors.postProcessor?this._processors.postProcessor.call(null,e):e},t.prototype._fixNode=function(e){var t=this;wt(e.type,this,"isAssignableFrom","create");var n=e.getSnapshot;e.getSnapshot=function(){return t.postProcessSnapshot(n.call(e))}},t.prototype.instantiate=function(e,t,n,i){var r=Ne(i)?i:this.preProcessSnapshot(i),o=this._subtype.instantiate(e,t,n,r);return this._fixNode(o),o},t.prototype.reconcile=function(e,t,n,i){var r=this._subtype.reconcile(e,Ne(t)?t:this.preProcessSnapshot(t),n,i);return r!==e&&this._fixNode(r),r},t.prototype.getSnapshot=function(e,t){void 0===t&&(t=!0);var n=this._subtype.getSnapshot(e);return t?this.postProcessSnapshot(n):n},t.prototype.isValidSnapshot=function(e,t){var n=this.preProcessSnapshot(e);return this._subtype.validate(n,t)},t.prototype.getSubTypes=function(){return this._subtype},t.prototype.is=function(e){return 0===this._subtype.validate(K(e)?this._subtype:this.preProcessSnapshot(e),[{path:"",type:this._subtype}]).length},t}(kn),Wn="Map.put can only be used to store complex values that have an identifier type attribute";!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.YES=1]="YES",e[e.NO=2]="NO"}(Vn||(Vn={}));var Bn=function(e){function n(n){return e.call(this,n,t.observable.ref.enhancer)||this}return o(n,e),n.prototype.get=function(t){return e.prototype.get.call(this,""+t)},n.prototype.has=function(t){return e.prototype.has.call(this,""+t)},n.prototype["delete"]=function(t){return e.prototype["delete"].call(this,""+t)},n.prototype.set=function(t,n){return e.prototype.set.call(this,""+t,n)},n.prototype.put=function(e){if(!e)throw We("Map.put cannot be used to set empty values");if(Ne(e)){var t=Re(e);if(!t.identifierAttribute)throw We(Wn);if(null===t.identifier)throw We(Wn);return this.set(t.identifier,e),e}if(Ge(e)){var n=Re(this),i=n.type;if(i.identifierMode!==Vn.YES)throw We(Wn);var r=i.mapIdentifierAttribute,o=e[r];if(!an(o)){var s=this.put(i.getChildType().create(e,n.environment));return this.put(w(s))}var a=sn(o);return this.set(a,e),this.get(a)}throw We("Map.put can only be used to store complex values")},n}(t.ObservableMap),$n=function(e){function n(t,n,i){void 0===i&&(i=[]);var r=e.call(this,t)||this;return r._subType=n,r.identifierMode=Vn.UNKNOWN,r.mapIdentifierAttribute=void 0,r.flags=fn.Map,r.hookInitializers=[],r._determineIdentifierMode(),r.hookInitializers=i,r}return o(n,e),n.prototype.hooks=function(e){var t=this.hookInitializers.length>0?this.hookInitializers.concat(e):[e];return new n(this.name,this._subType,t)},n.prototype.instantiate=function(e,t,n,i){return this._determineIdentifierMode(),Pe(this,e,t,n,i)},n.prototype._determineIdentifierMode=function(){if(this.identifierMode===Vn.UNKNOWN){var e=[];if(kt(this._subType,e)){var t=void 0;e.forEach(function(e){if(e.identifierAttribute){if(t&&t!==e.identifierAttribute)throw We("The objects in a map should all have the same identifier attribute, expected '"+t+"', but child of type '"+e.name+"' declared attribute '"+e.identifierAttribute+"' as identifier");t=e.identifierAttribute}}),t?(this.identifierMode=Vn.YES,this.mapIdentifierAttribute=t):this.identifierMode=Vn.NO}}},n.prototype.initializeChildNodes=function(e,t){void 0===t&&(t={});var n=e.type._subType,i={};return Object.keys(t).forEach(function(r){i[r]=n.instantiate(e,r,void 0,t[r])}),i},n.prototype.createNewInstance=function(e){return new Bn(e)},n.prototype.finalizeNewInstance=function(e,n){t._interceptReads(n,e.unbox);var i=e.type;i.hookInitializers.forEach(function(e){var t=e(n);Object.keys(t).forEach(function(e){var i=t[e],r=he(n,e,i);tt(n,e,r)})}),t.intercept(n,this.willChange),t.observe(n,this.didChange)},n.prototype.describe=function(){return"Map<string, "+this._subType.describe()+">"},n.prototype.getChildren=function(e){return t.values(e.storedValue)},n.prototype.getChildNode=function(e,t){var n=e.storedValue.get(""+t);if(!n)throw We("Not a child "+t);return n},n.prototype.willChange=function(e){var t=Re(e.object),n=e.name;t.assertWritable({subpath:n});var i=t.type,r=i._subType;switch(e.type){case"update":var o=e.newValue,s=e.object.get(n);if(o===s)return null;Se(r,o),e.newValue=r.reconcile(t.getChildNode(n),e.newValue,t,n),i.processIdentifier(n,e.newValue);break;case"add":Se(r,e.newValue),e.newValue=r.instantiate(t,n,void 0,e.newValue),i.processIdentifier(n,e.newValue)}return e},n.prototype.processIdentifier=function(e,t){if(this.identifierMode===Vn.YES&&t instanceof bn){var n=t.identifier;if(n!==e)throw We("A map of objects containing an identifier should always store the object under their own identifier. Trying to store key '"+n+"', but expected: '"+e+"'")}},n.prototype.getSnapshot=function(e){var t={};return e.getChildren().forEach(function(e){t[e.subpath]=e.snapshot}),t},n.prototype.processInitialSnapshot=function(e){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n].getSnapshot()}),t},n.prototype.didChange=function(e){var t=Re(e.object);switch(e.type){case"update":return void t.emitPatch({op:"replace",path:mt(e.name),value:e.newValue.snapshot,oldValue:e.oldValue?e.oldValue.snapshot:void 0},t);case"add":return void t.emitPatch({op:"add",path:mt(e.name),value:e.newValue.snapshot,oldValue:void 0},t);case"delete":var n=e.oldValue.snapshot;return e.oldValue.die(),void t.emitPatch({op:"remove",path:mt(e.name),oldValue:n},t)}},n.prototype.applyPatchLocally=function(e,t,n){var i=e.storedValue;switch(n.op){case"add":case"replace":i.set(t,n.value);break;case"remove":i["delete"](t)}},n.prototype.applySnapshot=function(e,t){Se(this,t);var n=e.storedValue,i={};if(Array.from(n.keys()).forEach(function(e){i[e]=!1}),t)for(var r in t)n.set(r,t[r]),i[""+r]=!0;Object.keys(i).forEach(function(e){i[e]===!1&&n["delete"](e)})},n.prototype.getChildType=function(){return this._subType},n.prototype.isValidSnapshot=function(e,t){var n=this;return Xe(e)?Ee(Object.keys(e).map(function(i){return n._subType.validate(e[i],ke(t,i,n._subType))})):Te(t,e,"Value is not a plain object")},n.prototype.getDefaultSnapshot=function(){return Rn},n.prototype.removeChild=function(e,t){e.storedValue["delete"](t)},a([t.action],n.prototype,"applySnapshot",null),n}(Cn),qn=function(e){function n(t,n,i){void 0===i&&(i=[]);var r=e.call(this,t)||this;return r._subType=n,r.flags=fn.Array,r.hookInitializers=[],r.hookInitializers=i,r}return o(n,e),n.prototype.hooks=function(e){var t=this.hookInitializers.length>0?this.hookInitializers.concat(e):[e];return new n(this.name,this._subType,t)},n.prototype.instantiate=function(e,t,n,i){return Pe(this,e,t,n,i)},n.prototype.initializeChildNodes=function(e,t){void 0===t&&(t=[]);var n=e.type._subType,i={};return t.forEach(function(t,r){var o=""+r;i[o]=n.instantiate(e,o,void 0,t)}),i},n.prototype.createNewInstance=function(e){return t.observable.array(Ve(e),Mn)},n.prototype.finalizeNewInstance=function(e,n){t._getAdministration(n).dehancer=e.unbox;var i=e.type;i.hookInitializers.forEach(function(e){var t=e(n);Object.keys(t).forEach(function(e){var i=t[e],r=he(n,e,i);tt(n,e,r)})}),t.intercept(n,this.willChange),t.observe(n,this.didChange)},n.prototype.describe=function(){return this._subType.describe()+"[]"},n.prototype.getChildren=function(e){
- return e.storedValue.slice()},n.prototype.getChildNode=function(e,t){var n=Number(t);if(n<e.storedValue.length)return e.storedValue[n];throw We("Not a child: "+t)},n.prototype.willChange=function(e){var t=Re(e.object);t.assertWritable({subpath:""+e.index});var n=t.type._subType,i=t.getChildren();switch(e.type){case"update":if(e.newValue===e.object[e.index])return null;var r=St(t,n,[i[e.index]],[e.newValue],[e.index]);if(!r)return null;e.newValue=r[0];break;case"splice":var o=e.index,s=e.removedCount,a=e.added,u=St(t,n,i.slice(o,o+s),a,a.map(function(e,t){return o+t}));if(!u)return null;e.added=u;for(var l=o+s;l<i.length;l++)i[l].setParent(t,""+(l+a.length-s))}return e},n.prototype.getSnapshot=function(e){return e.getChildren().map(function(e){return e.snapshot})},n.prototype.processInitialSnapshot=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push(e[n].getSnapshot())}),t},n.prototype.didChange=function(e){var t=Re(e.object);switch(e.type){case"update":return void t.emitPatch({op:"replace",path:""+e.index,value:e.newValue.snapshot,oldValue:e.oldValue?e.oldValue.snapshot:void 0},t);case"splice":for(var n=e.removedCount-1;n>=0;n--)t.emitPatch({op:"remove",path:""+(e.index+n),oldValue:e.removed[n].snapshot},t);for(var n=0;n<e.addedCount;n++)t.emitPatch({op:"add",path:""+(e.index+n),value:t.getChildNode(""+(e.index+n)).snapshot,oldValue:void 0},t);return}},n.prototype.applyPatchLocally=function(e,t,n){var i=e.storedValue,r="-"===t?i.length:Number(t);switch(n.op){case"replace":i[r]=n.value;break;case"add":i.splice(r,0,n.value);break;case"remove":i.splice(r,1)}},n.prototype.applySnapshot=function(e,t){Se(this,t);var n=e.storedValue;n.replace(t)},n.prototype.getChildType=function(){return this._subType},n.prototype.isValidSnapshot=function(e,t){var n=this;return $e(e)?Ee(e.map(function(e,i){return n._subType.validate(e,ke(t,""+i,n._subType))})):Te(t,e,"Value is not an array")},n.prototype.getDefaultSnapshot=function(){return jn},n.prototype.removeChild=function(e,t){e.storedValue.splice(Number(t),1)},a([t.action],n.prototype,"applySnapshot",null),n}(Cn),Yn="preProcessSnapshot",Xn="postProcessSnapshot",Gn={name:"AnonymousModel",properties:{},initializers:jn},Kn=function(e){function n(t){var n=e.call(this,t.name||Gn.name)||this;return n.flags=fn.Object,n.named=function(e){return n.cloneAndEnhance({name:e})},n.props=function(e){return n.cloneAndEnhance({properties:e})},n.preProcessSnapshot=function(e){var t=n.preProcessor;return t?n.cloneAndEnhance({preProcessor:function(n){return t(e(n))}}):n.cloneAndEnhance({preProcessor:e})},n.postProcessSnapshot=function(e){var t=n.postProcessor;return t?n.cloneAndEnhance({postProcessor:function(n){return e(t(n))}}):n.cloneAndEnhance({postProcessor:e})},Object.assign(n,Gn,t),n.properties=It(n.properties),Qe(n.properties),n.propertyNames=Object.keys(n.properties),n.identifierAttribute=n._getIdentifierAttribute(),n}return o(n,e),n.prototype._getIdentifierAttribute=function(){var e=void 0;return this.forAllProps(function(t,n){if(n.flags&fn.Identifier){if(e)throw We("Cannot define property '"+t+"' as object identifier, property '"+e+"' is already defined as identifier property");e=t}}),e},n.prototype.cloneAndEnhance=function(e){return new n({name:e.name||this.name,properties:Object.assign({},this.properties,e.properties),initializers:this.initializers.concat(e.initializers||[]),preProcessor:e.preProcessor||this.preProcessor,postProcessor:e.postProcessor||this.postProcessor})},n.prototype.actions=function(e){var t=this,n=function(n){return t.instantiateActions(n,e(n)),n};return this.cloneAndEnhance({initializers:[n]})},n.prototype.instantiateActions=function(e,t){if(!Xe(t))throw We("actions initializer should return a plain object containing actions");Object.keys(t).forEach(function(n){if(n===Yn)throw We("Cannot define action '"+Yn+"', it should be defined using 'type.preProcessSnapshot(fn)' instead");if(n===Xn)throw We("Cannot define action '"+Xn+"', it should be defined using 'type.postProcessSnapshot(fn)' instead");var i=t[n],r=e[n];if(n in cn&&r){var o=i;i=function(){r.apply(null,arguments),o.apply(null,arguments)}}var s=i.$mst_middleware,a=i.bind(t);a.$mst_middleware=s;var u=he(e,n,a);t[n]=u,tt(e,n,u)})},n.prototype["volatile"]=function(e){var t=this,n=function(n){return t.instantiateVolatileState(n,e(n)),n};return this.cloneAndEnhance({initializers:[n]})},n.prototype.instantiateVolatileState=function(e,n){if(!Xe(n))throw We("volatile state initializer should return a plain object containing state");t.set(e,n)},n.prototype.extend=function(e){var t=this,n=function(n){var i=e(n),r=i.actions,o=i.views,a=i.state,u=s(i,["actions","views","state"]);for(var l in u)throw We("The `extend` function should return an object with a subset of the fields 'actions', 'views' and 'state'. Found invalid key '"+l+"'");return a&&t.instantiateVolatileState(n,a),o&&t.instantiateViews(n,o),r&&t.instantiateActions(n,r),n};return this.cloneAndEnhance({initializers:[n]})},n.prototype.views=function(e){var t=this,n=function(n){return t.instantiateViews(n,e(n)),n};return this.cloneAndEnhance({initializers:[n]})},n.prototype.instantiateViews=function(e,n){if(!Xe(n))throw We("views initializer should return a plain object containing views");Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);if("get"in r)if(t.isComputedProp(e,i)){var o=t._getAdministration(e,i);o.derivation=r.get,o.scope=e,r.set&&(o.setter=t.action(o.name+"-setter",r.set))}else t.computed(e,i,r,!0);else{if("function"!=typeof r.value)throw We("A view member should either be a function or getter based property");tt(e,i,r.value)}})},n.prototype.instantiate=function(e,t,n,i){var r=Ne(i)?i:this.applySnapshotPreProcessor(i);return Pe(this,e,t,n,r)},n.prototype.initializeChildNodes=function(e,t){void 0===t&&(t={});var n=e.type,i={};return n.forAllProps(function(n,r){i[n]=r.instantiate(e,n,void 0,t[n])}),i},n.prototype.createNewInstance=function(e){return t.observable.object(e,Rn,Mn)},n.prototype.finalizeNewInstance=function(e,n){et(n,"toString",At),this.forAllProps(function(i){t._interceptReads(n,i,e.unbox)}),this.initializers.reduce(function(e,t){return t(e)},n),t.intercept(n,this.willChange),t.observe(n,this.didChange)},n.prototype.willChange=function(e){var t=e,n=Re(t.object),i=t.name;n.assertWritable({subpath:i});var r=n.type.properties[i];return r&&(Se(r,t.newValue),t.newValue=r.reconcile(n.getChildNode(i),t.newValue,n,i)),t},n.prototype.didChange=function(e){var t=e,n=Re(t.object),i=n.type.properties[t.name];if(i){var r=t.oldValue?t.oldValue.snapshot:void 0;n.emitPatch({op:"replace",path:mt(t.name),value:t.newValue.snapshot,oldValue:r},n)}},n.prototype.getChildren=function(e){var t=this,n=[];return this.forAllProps(function(i){n.push(t.getChildNode(e,i))}),n},n.prototype.getChildNode=function(e,n){if(!(n in this.properties))throw We("Not a value property: "+n);var i=t._getAdministration(e.storedValue,n).value;if(!i)throw We("Node not available for property "+n);return i},n.prototype.getSnapshot=function(e,n){var i=this;void 0===n&&(n=!0);var r={};return this.forAllProps(function(n,o){t.getAtom(e.storedValue,n).reportObserved(),r[n]=i.getChildNode(e,n).snapshot}),n?this.applySnapshotPostProcessor(r):r},n.prototype.processInitialSnapshot=function(e){var t={};return Object.keys(e).forEach(function(n){t[n]=e[n].getSnapshot()}),this.applySnapshotPostProcessor(t)},n.prototype.applyPatchLocally=function(e,t,n){if("replace"!==n.op&&"add"!==n.op)throw We("object does not support operation "+n.op);e.storedValue[t]=n.value},n.prototype.applySnapshot=function(e,t){var n=this.applySnapshotPreProcessor(t);Se(this,n),this.forAllProps(function(t){e.storedValue[t]=n[t]})},n.prototype.applySnapshotPreProcessor=function(e){var t=this.preProcessor;return t?t.call(null,e):e},n.prototype.applySnapshotPostProcessor=function(e){var t=this.postProcessor;return t?t.call(null,e):e},n.prototype.getChildType=function(e){return lt(e,1),this.properties[e]},n.prototype.isValidSnapshot=function(e,t){var n=this,i=this.applySnapshotPreProcessor(e);return Xe(i)?Ee(this.propertyNames.map(function(e){return n.properties[e].validate(i[e],ke(t,e,n.properties[e]))})):Te(t,i,"Value is not a plain object")},n.prototype.forAllProps=function(e){var t=this;this.propertyNames.forEach(function(n){return e(n,t.properties[n])})},n.prototype.describe=function(){var e=this;return"{ "+this.propertyNames.map(function(t){return t+": "+e.properties[t].describe()}).join("; ")+" }"},n.prototype.getDefaultSnapshot=function(){return Rn},n.prototype.removeChild=function(e,t){e.storedValue[t]=void 0},a([t.action],n.prototype,"applySnapshot",null),n}(Cn),Qn=function(e){function t(t,n,i,r){void 0===r&&(r=Be);var o=e.call(this,t)||this;return o.flags=n,o.checker=i,o.initializer=r,o.flags=n,o}return o(t,e),t.prototype.describe=function(){return this.name},t.prototype.instantiate=function(e,t,n,i){return Ae(this,e,t,n,i)},t.prototype.createNewInstance=function(e){return this.initializer(e)},t.prototype.isValidSnapshot=function(e,t){if(Ke(e)&&this.checker(e))return Ce();var n="Date"===this.name?"Date or a unix milliseconds timestamp":this.name;return Te(t,e,"Value is not a "+n)},t}(Tn),Jn=new Qn("string",fn.String,function(e){return"string"==typeof e}),Zn=new Qn("number",fn.Number,function(e){return"number"==typeof e}),ei=new Qn("integer",fn.Integer,function(e){return Fn(e)}),ti=new Qn("boolean",fn.Boolean,function(e){return"boolean"==typeof e}),ni=new Qn("null",fn.Null,function(e){return null===e}),ii=new Qn("undefined",fn.Undefined,function(e){return void 0===e}),ri=new Qn("Date",fn.Date,function(e){return"number"==typeof e||e instanceof Date},function(e){return e instanceof Date?e:new Date(e)});ri.getSnapshot=function(e){return e.storedValue.getTime()};var oi=ri,si=function(e){function t(t){var n=e.call(this,JSON.stringify(t))||this;return n.flags=fn.Literal,n.value=t,n}return o(t,e),t.prototype.instantiate=function(e,t,n,i){return Ae(this,e,t,n,i)},t.prototype.describe=function(){return JSON.stringify(this.value)},t.prototype.isValidSnapshot=function(e,t){return Ke(e)&&e===this.value?Ce():Te(t,e,"Value is not a literal "+JSON.stringify(this.value))},t}(Tn),ai=function(e){function t(t,n,i,r){var o=e.call(this,t)||this;return o._subtype=n,o._predicate=i,o._message=r,o}return o(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return this._subtype.flags|fn.Refinement},enumerable:!0,configurable:!0}),t.prototype.describe=function(){return this.name},t.prototype.instantiate=function(e,t,n,i){return this._subtype.instantiate(e,t,n,i)},t.prototype.isAssignableFrom=function(e){return this._subtype.isAssignableFrom(e)},t.prototype.isValidSnapshot=function(e,t){var n=this._subtype.validate(e,t);if(n.length>0)return n;var i=Ne(e)?Re(e).snapshot:e;return this._predicate(i)?Ce():Te(t,e,this._message(e))},t.prototype.reconcile=function(e,t,n,i){return this._subtype.reconcile(e,t,n,i)},t.prototype.getSubTypes=function(){return this._subtype},t}(kn),ui=function(e){function t(t,n,i){var r=e.call(this,t)||this;return r._types=n,r._eager=!0,i=dn({eager:!0,dispatcher:void 0},i),r._dispatcher=i.dispatcher,i.eager||(r._eager=!1),r}return o(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){var e=fn.Union;return this._types.forEach(function(t){e|=t.flags}),e},enumerable:!0,configurable:!0}),t.prototype.isAssignableFrom=function(e){return this._types.some(function(t){return t.isAssignableFrom(e)})},t.prototype.describe=function(){return"("+this._types.map(function(e){return e.describe()}).join(" | ")+")"},t.prototype.instantiate=function(e,t,n,i){var r=this.determineType(i,void 0);if(!r)throw We("No matching type for union "+this.describe());return r.instantiate(e,t,n,i)},t.prototype.reconcile=function(e,t,n,i){var r=this.determineType(t,e.type);if(!r)throw We("No matching type for union "+this.describe());return r.reconcile(e,t,n,i)},t.prototype.determineType=function(e,t){return this._dispatcher?this._dispatcher(e):t?t.is(e)?t:this._types.filter(function(e){return e!==t}).find(function(t){return t.is(e)}):this._types.find(function(t){return t.is(e)})},t.prototype.isValidSnapshot=function(e,t){if(this._dispatcher)return this._dispatcher(e).validate(e,t);for(var n=[],i=0,r=0;r<this._types.length;r++){var o=this._types[r],s=o.validate(e,t);if(0===s.length){if(this._eager)return Ce();i++}else n.push(s)}return 1===i?Ce():Te(t,e,"No type is applicable for the union").concat(Ee(n))},t.prototype.getSubTypes=function(){return this._types},t}(kn),li=function(e){function t(t,n,i){var r=e.call(this,t.name)||this;return r._subtype=t,r._defaultValue=n,r.optionalValues=i,r}return o(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return this._subtype.flags|fn.Optional},enumerable:!0,configurable:!0}),t.prototype.describe=function(){return this._subtype.describe()+"?"},t.prototype.instantiate=function(e,t,n,i){if(this.optionalValues.indexOf(i)>=0){var r=this.getDefaultInstanceOrSnapshot();return this._subtype.instantiate(e,t,n,r)}return this._subtype.instantiate(e,t,n,i)},t.prototype.reconcile=function(e,t,n,i){return this._subtype.reconcile(e,this.optionalValues.indexOf(t)<0&&this._subtype.is(t)?t:this.getDefaultInstanceOrSnapshot(),n,i)},t.prototype.getDefaultInstanceOrSnapshot=function(){var e="function"==typeof this._defaultValue?this._defaultValue():this._defaultValue;return"function"==typeof this._defaultValue&&Se(this,e),e},t.prototype.isValidSnapshot=function(e,t){return this.optionalValues.indexOf(e)>=0?Ce():this._subtype.validate(e,t)},t.prototype.isAssignableFrom=function(e){return this._subtype.isAssignableFrom(e)},t.prototype.getSubTypes=function(){return this._subtype},t}(kn),ci=[void 0],hi=qt(ii,void 0),fi=qt(ni,null),pi=function(e){function t(t,n){var i=e.call(this,t)||this;return i._definition=n,i}return o(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return(this._subType?this._subType.flags:0)|fn.Late},enumerable:!0,configurable:!0}),t.prototype.getSubType=function(e){if(!this._subType){var t=void 0;try{t=this._definition()}catch(n){if(!(n instanceof ReferenceError))throw n;t=void 0}if(e&&void 0===t)throw We("Late type seems to be used too early, the definition (still) returns undefined");if(t){if(!K(t))throw We("Failed to determine subtype, make sure types.late returns a type definition.");this._subType=t}}return this._subType},t.prototype.instantiate=function(e,t,n,i){return this.getSubType(!0).instantiate(e,t,n,i)},t.prototype.reconcile=function(e,t,n,i){return this.getSubType(!0).reconcile(e,t,n,i)},t.prototype.describe=function(){var e=this.getSubType(!1);return e?e.name:"<uknown late type>"},t.prototype.isValidSnapshot=function(e,t){var n=this.getSubType(!1);return n?n.validate(e,t):Ce()},t.prototype.isAssignableFrom=function(e){var t=this.getSubType(!1);return t?t.isAssignableFrom(e):!1},t.prototype.getSubTypes=function(){var e=this.getSubType(!1);return e?e:xn},t}(kn),di=function(e){function t(t){var n=e.call(this,t?"frozen("+t.name+")":"frozen")||this;return n.subType=t,n.flags=fn.Frozen,n}return o(t,e),t.prototype.describe=function(){return"<any immutable value>"},t.prototype.instantiate=function(e,t,n,i){return Ae(this,e,t,n,Je(i))},t.prototype.isValidSnapshot=function(e,t){return Ze(e)?this.subType?this.subType.validate(e,t):Ce():Te(t,e,"Value is not serializable and cannot be frozen")},t}(Tn),gi=new di,vi=function(){function e(e,t){if(this.targetType=t,an(e))this.identifier=e;else{if(!Ne(e))throw We("Can only store references to tree nodes or identifiers, got: '"+e+"'");var n=Re(e);if(!n.identifierAttribute)throw We("Can only store references with a defined identifier attribute.");var i=n.unnormalizedIdentifier;if(null===i||void 0===i)throw We("Can only store references to tree nodes with a defined identifier.");this.identifier=i}}return e.prototype.updateResolvedReference=function(e){var t=sn(this.identifier),n=e.root,i=n.identifierCache.getLastCacheModificationPerId(t);if(!this.resolvedReference||this.resolvedReference.lastCacheModification!==i){var r=this.targetType,o=n.identifierCache.resolve(r,t);if(!o)throw new mi("[mobx-state-tree] Failed to resolve reference '"+this.identifier+"' to type '"+this.targetType.name+"' (from node: "+e.path+")");this.resolvedReference={node:o,lastCacheModification:i}}},Object.defineProperty(e.prototype,"resolvedValue",{get:function(){return this.updateResolvedReference(this.node),this.resolvedReference.node.value},enumerable:!0,configurable:!0}),e}(),mi=function(e){function t(n){var i=e.call(this,n)||this;return Object.setPrototypeOf(i,t.prototype),i}return o(t,e),t}(Error),yi=function(e){function t(t,n){var i=e.call(this,"reference("+t.name+")")||this;return i.targetType=t,i.onInvalidated=n,i.flags=fn.Reference,i}return o(t,e),t.prototype.describe=function(){return this.name},t.prototype.isAssignableFrom=function(e){return this.targetType.isAssignableFrom(e)},t.prototype.isValidSnapshot=function(e,t){return an(e)?Ce():Te(t,e,"Value is not a valid identifier, which is a string or a number")},t.prototype.fireInvalidated=function(e,t,n,i){var r=t.parent;if(r&&r.isAlive){var o=r.storedValue;o&&this.onInvalidated({cause:e,parent:o,invalidTarget:i?i.storedValue:void 0,invalidId:n,replaceRef:function(e){g(t.root.storedValue,{op:"replace",value:e,path:t.path})},removeRef:function(){Rt(r.type)?this.replaceRef(void 0):g(t.root.storedValue,{op:"remove",path:t.path})}})}},t.prototype.addTargetNodeWatcher=function(e,t){var n=this,i=this.getValue(e);if(i){var r=Re(i),o=function(i,o){var s=en(o);s&&n.fireInvalidated(s,e,t,r)},s=r.registerHook(cn.beforeDetach,o),a=r.registerHook(cn.beforeDestroy,o);return function(){s(),a()}}},t.prototype.watchTargetNodeForInvalidations=function(e,t,n){var i=this;if(this.onInvalidated){var r;e.registerHook(cn.beforeDestroy,function(){r&&r()});var o=function(o){r&&r();var s=e.parent,a=s&&s.storedValue;if(s&&s.isAlive&&a){var u=void 0;u=n?!!n.get(t,a):e.root.identifierCache.has(i.targetType,sn(t)),u?r=i.addTargetNodeWatcher(e,t):o||i.fireInvalidated("invalidSnapshotReference",e,t,null)}};e.state===wn.FINALIZED?o(!0):(e.isRoot||e.root.registerHook(cn.afterCreationFinalization,function(){e.parent&&e.parent.createObservableInstanceIfNeeded()}),e.registerHook(cn.afterAttach,function(){o(!1)}))}},t}(Tn),bi=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t.prototype.getValue=function(e){if(e.isAlive){var t=e.storedValue;return t.resolvedValue}},t.prototype.getSnapshot=function(e){var t=e.storedValue;return t.identifier},t.prototype.instantiate=function(e,t,n,i){var r=Ne(i)?I(i):i,o=new vi(i,this.targetType),s=Ae(this,e,t,n,o);return o.node=s,this.watchTargetNodeForInvalidations(s,r,void 0),s},t.prototype.reconcile=function(e,t,n,i){if(!e.isDetaching&&e.type===this){var r=Ne(t),o=e.storedValue;if(!r&&o.identifier===t||r&&o.resolvedValue===t)return e.setParent(n,i),e}var s=this.instantiate(n,i,void 0,t);return e.die(),s},t}(yi),_i=function(e){function t(t,n,i){var r=e.call(this,t,i)||this;return r.options=n,r}return o(t,e),t.prototype.getValue=function(e){if(e.isAlive){var t=this.options.get(e.storedValue,e.parent?e.parent.storedValue:null);return t}},t.prototype.getSnapshot=function(e){return e.storedValue},t.prototype.instantiate=function(e,t,n,i){var r=Ne(i)?this.options.set(i,e?e.storedValue:null):i,o=Ae(this,e,t,n,r);return this.watchTargetNodeForInvalidations(o,r,this.options),o},t.prototype.reconcile=function(e,t,n,i){var r=Ne(t)?this.options.set(t,e?e.storedValue:null):t;if(!e.isDetaching&&e.type===this&&e.storedValue===r)return e.setParent(n,i),e;var o=this.instantiate(n,i,void 0,r);return e.die(),o},t}(yi),wi=function(e){function t(t,n){var i=e.call(this,t)||this;return i.validType=n,i.flags=fn.Identifier,i}return o(t,e),t.prototype.instantiate=function(e,t,n,i){if(!(e&&e.type instanceof Kn))throw We("Identifier types can only be instantiated as direct child of a model type");return Ae(this,e,t,n,i)},t.prototype.reconcile=function(e,t,n,i){if(e.storedValue!==t)throw We("Tried to change identifier from '"+e.storedValue+"' to '"+t+"'. Changing identifiers is not allowed.");return e.setParent(n,i),e},t.prototype.isValidSnapshot=function(e,t){return typeof e!==this.validType?Te(t,e,"Value is not a valid "+this.describe()+", expected a "+this.validType):Ce()},t}(Tn),xi=function(e){function t(){var t=e.call(this,"identifier","string")||this;return t.flags=fn.Identifier,t}return o(t,e),t.prototype.describe=function(){return"identifier"},t}(wi),ki=function(e){function t(){return e.call(this,"identifierNumber","number")||this}return o(t,e),t.prototype.getSnapshot=function(e){return e.storedValue},t.prototype.describe=function(){return"identifierNumber"},t}(wi),Ci=new xi,Ti=new ki,Ei=function(e){function t(t){var n=e.call(this,t.name)||this;return n.options=t,n.flags=fn.Custom,n}return o(t,e),t.prototype.describe=function(){return this.name},t.prototype.isValidSnapshot=function(e,t){if(this.options.isTargetType(e))return Ce();var n=this.options.getValidationMessage(e);return n?Te(t,e,"Invalid value for type '"+this.name+"': "+n):Ce()},t.prototype.getSnapshot=function(e){return this.options.toSnapshot(e.storedValue)},t.prototype.instantiate=function(e,t,n,i){var r=this.options.isTargetType(i)?i:this.options.fromSnapshot(i);return Ae(this,e,t,n,r)},t.prototype.reconcile=function(e,t,n,i){var r=!this.options.isTargetType(t);if(!e.isDetaching){var o=e.type===this&&(r?t===e.snapshot:t===e.storedValue);if(o)return e.setParent(n,i),e}var s=r?this.options.fromSnapshot(t):t,a=this.instantiate(n,i,void 0,s);return e.die(),a},t}(Tn),Si={enumeration:Ut,model:Nt,compose:jt,custom:ln,reference:tn,safeReference:rn,union:Wt,optional:qt,literal:Lt,maybe:Xt,maybeNull:Gt,refinement:zt,string:Jn,"boolean":ti,number:Zn,integer:ei,Date:oi,map:Ct,array:Et,frozen:Jt,identifier:Ci,identifierNumber:Ti,late:Kt,undefined:ii,"null":ni,snapshotProcessor:xt};e.addDisposer=V,e.addMiddleware=fe,e.applyAction=ie,e.applyPatch=g,e.applySnapshot=_,e.cast=q,e.castFlowReturn=ht,e.castToReferenceSnapshot=X,e.castToSnapshot=Y,e.clone=F,e.createActionTrackingMiddleware=J,e.createActionTrackingMiddleware2=Z,e.decorate=pe,e.destroy=H,e.detach=L,e.escapeJsonPath=mt,e.flow=ct,e.getChildType=f,e.getEnv=U,e.getIdentifier=I,e.getLivelinessChecking=i,e.getMembers=$,e.getNodeId=G,e.getParent=k,e.getParentOfType=T,e.getPath=S,e.getPathParts=D,e.getPropertyMembers=B,e.getRelativePath=M,e.getRoot=E,e.getRunningActionContext=ge,e.getSnapshot=w,e.getType=h,e.hasParent=x,e.hasParentOfType=C,e.isActionContextChildOf=me,e.isActionContextThisOrChildOf=ye,e.isAlive=z,e.isArrayType=Pt,e.isFrozenType=Zt,e.isIdentifierType=on,e.isLateType=Qt,e.isLiteralType=Ht,e.isMapType=Tt,e.isModelType=Rt,e.isOptionalType=Yt,e.isPrimitiveType=Ft,e.isProtected=b,e.isReferenceType=nn,e.isRefinementType=Vt,e.isRoot=O,e.isStateTreeNode=Ne,e.isType=K,e.isUnionType=Bt,e.isValidReference=j,e.joinJsonPath=bt,e.onAction=se,e.onPatch=p,e.onSnapshot=d,e.process=Ue,e.protect=m,e.recordActions=oe,e.recordPatches=v,e.resolveIdentifier=A,e.resolvePath=P,e.setLivelinessChecking=n,e.setLivelynessChecking=r,e.splitJsonPath=_t,e.tryReference=N,e.tryResolve=R,e.typecheck=De,e.types=Si,e.unescapeJsonPath=yt,e.unprotect=y,e.walk=W,Object.defineProperty(e,"__esModule",{value:!0})}),function(e){var t=document,n="appendChild",i="styleSheet",r=t.createElement("style");r.type="text/css",t.getElementsByTagName("head")[0][n](r),r[i]?r[i].cssText=e:r[n](t.createTextNode(e))}('.toast-title {\n font-weight: bold;\n}\n.toast-message {\n -ms-word-wrap: break-word;\n word-wrap: break-word;\n}\n.toast-message a,\n.toast-message label {\n color: #ffffff;\n}\n.toast-message a:hover {\n color: #cccccc;\n text-decoration: none;\n}\n.toast-close-button {\n position: relative;\n right: -0.3em;\n top: -0.3em;\n float: right;\n font-size: 20px;\n font-weight: bold;\n color: #ffffff;\n -webkit-text-shadow: 0 1px 0 #ffffff;\n text-shadow: 0 1px 0 #ffffff;\n opacity: 0.8;\n -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);\n filter: alpha(opacity=80);\n}\n.toast-close-button:hover,\n.toast-close-button:focus {\n color: #000000;\n text-decoration: none;\n cursor: pointer;\n opacity: 0.4;\n -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);\n filter: alpha(opacity=40);\n}\nbutton.toast-close-button {\n padding: 0;\n cursor: pointer;\n background: transparent;\n border: 0;\n -webkit-appearance: none;\n}\n.toast-top-center {\n top: 0;\n right: 0;\n width: 100%;\n}\n.toast-bottom-center {\n bottom: 0;\n right: 0;\n width: 100%;\n}\n.toast-top-full-width {\n top: 0;\n right: 0;\n width: 100%;\n}\n.toast-bottom-full-width {\n bottom: 0;\n right: 0;\n width: 100%;\n}\n.toast-top-left {\n top: 12px;\n left: 12px;\n}\n.toast-top-right {\n top: 12px;\n right: 12px;\n}\n.toast-bottom-right {\n right: 12px;\n bottom: 12px;\n}\n.toast-bottom-left {\n bottom: 12px;\n left: 12px;\n}\n#toast-container {\n position: fixed;\n z-index: 999999;\n pointer-events: none;\n \n}\n#toast-container * {\n -moz-box-sizing: border-box;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n#toast-container > div {\n position: relative;\n pointer-events: auto;\n overflow: hidden;\n margin: 0 0 6px;\n padding: 15px 15px 15px 50px;\n width: 300px;\n -moz-border-radius: 3px 3px 3px 3px;\n -webkit-border-radius: 3px 3px 3px 3px;\n border-radius: 3px 3px 3px 3px;\n background-position: 15px center;\n background-repeat: no-repeat;\n -moz-box-shadow: 0 0 12px #999999;\n -webkit-box-shadow: 0 0 12px #999999;\n box-shadow: 0 0 12px #999999;\n color: #ffffff;\n opacity: 0.8;\n -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80);\n filter: alpha(opacity=80);\n}\n#toast-container > :hover {\n -moz-box-shadow: 0 0 12px #000000;\n -webkit-box-shadow: 0 0 12px #000000;\n box-shadow: 0 0 12px #000000;\n opacity: 1;\n -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);\n filter: alpha(opacity=100);\n cursor: pointer;\n}\n#toast-container > .toast-info {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=") !important;\n}\n#toast-container > .toast-error {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=") !important;\n}\n#toast-container > .toast-success {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==") !important;\n}\n#toast-container > .toast-warning {\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=") !important;\n}\n#toast-container.toast-top-center > div,\n#toast-container.toast-bottom-center > div {\n width: 300px;\n margin-left: auto;\n margin-right: auto;\n}\n#toast-container.toast-top-full-width > div,\n#toast-container.toast-bottom-full-width > div {\n width: 96%;\n margin-left: auto;\n margin-right: auto;\n}\n.toast {\n background-color: #030303;\n}\n.toast-success {\n background-color: #51a351;\n}\n.toast-error {\n background-color: #bd362f;\n}\n.toast-info {\n background-color: #2f96b4;\n}\n.toast-warning {\n background-color: #f89406;\n}\n.toast-progress {\n position: absolute;\n left: 0;\n bottom: 0;\n height: 4px;\n background-color: #000000;\n opacity: 0.4;\n -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);\n filter: alpha(opacity=40);\n}\n@media all and (max-width: 240px) {\n #toast-container > div {\n padding: 8px 8px 8px 50px;\n width: 11em;\n }\n #toast-container .toast-close-button {\n right: -0.2em;\n top: -0.2em;\n }\n}\n@media all and (min-width: 241px) and (max-width: 480px) {\n #toast-container > div {\n padding: 8px 8px 8px 50px;\n width: 18em;\n }\n #toast-container .toast-close-button {\n right: -0.2em;\n top: -0.2em;\n }\n}\n@media all and (min-width: 481px) and (max-width: 768px) {\n #toast-container > div {\n padding: 15px 15px 15px 50px;\n width: 25em;\n }\n}\n'),define("lib/coreBundle",function(){});
|