UNPKG

universalviewer

Version:

The Universal Viewer is a community-developed open source project on a mission to help you share your 📚📜📰📽️📻🗿 with the 🌎

1 lines 892 kB
import{a as Wi,h as hr}from"./chunk-CLWCACQD.js";import{a as Ar}from"./chunk-3WK2UTJS.js";import{a as pr}from"./chunk-527KPBCP.js";import"./chunk-BYXBJQAS.js";import{b as cr,e as fr,g as gr,h as mr,i as vr,j as yr,k as _r}from"./chunk-K2YFIJ7N.js";import{a as zo,c as Ni}from"./chunk-FEXGFX4C.js";import{a as Yt}from"./chunk-M4MN2QTO.js";import{a as ki,c as ji,p as ur}from"./chunk-YB7AEQFU.js";import{b as dr,g as Yn}from"./chunk-5XPHF4E5.js";import{a as $i,c as lr,d as Mi}from"./chunk-L67DAW3A.js";var Dr=lr(()=>{(function(t){"use strict";typeof define=="function"&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){"use strict";t.ui=t.ui||{};var d=t.ui.version="1.13.2";var o=0,l=Array.prototype.hasOwnProperty,f=Array.prototype.slice;t.cleanData=function(e){return function(i){var n,r,h;for(h=0;(r=i[h])!=null;h++)n=t._data(r,"events"),n&&n.remove&&t(r).triggerHandler("remove");e(i)}}(t.cleanData),t.widget=function(e,i,n){var r,h,_,N={},z=e.split(".")[0];e=e.split(".")[1];var ee=z+"-"+e;return n||(n=i,i=t.Widget),Array.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr.pseudos[ee.toLowerCase()]=function(be){return!!t.data(be,ee)},t[z]=t[z]||{},r=t[z][e],h=t[z][e]=function(be,we){if(!this||!this._createWidget)return new h(be,we);arguments.length&&this._createWidget(be,we)},t.extend(h,r,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),_=new i,_.options=t.widget.extend({},_.options),t.each(n,function(be,we){if(typeof we!="function"){N[be]=we;return}N[be]=function(){function Re(){return i.prototype[be].apply(this,arguments)}function ke(Te){return i.prototype[be].apply(this,Te)}return function(){var Te=this._super,xe=this._superApply,Ue;return this._super=Re,this._superApply=ke,Ue=we.apply(this,arguments),this._super=Te,this._superApply=xe,Ue}}()}),h.prototype=t.widget.extend(_,{widgetEventPrefix:r&&_.widgetEventPrefix||e},N,{constructor:h,namespace:z,widgetName:e,widgetFullName:ee}),r?(t.each(r._childConstructors,function(be,we){var Re=we.prototype;t.widget(Re.namespace+"."+Re.widgetName,h,we._proto)}),delete r._childConstructors):i._childConstructors.push(h),t.widget.bridge(e,h),h},t.widget.extend=function(e){for(var i=f.call(arguments,1),n=0,r=i.length,h,_;n<r;n++)for(h in i[n])_=i[n][h],l.call(i[n],h)&&_!==void 0&&(t.isPlainObject(_)?e[h]=t.isPlainObject(e[h])?t.widget.extend({},e[h],_):t.widget.extend({},_):e[h]=_);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(r){var h=typeof r=="string",_=f.call(arguments,1),N=this;return h?!this.length&&r==="instance"?N=void 0:this.each(function(){var z,ee=t.data(this,n);if(r==="instance")return N=ee,!1;if(!ee)return t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'");if(typeof ee[r]!="function"||r.charAt(0)==="_")return t.error("no such method '"+r+"' for "+e+" widget instance");if(z=ee[r].apply(ee,_),z!==ee&&z!==void 0)return N=z&&z.jquery?N.pushStack(z.get()):z,!1}):(_.length&&(r=t.widget.extend.apply(null,[r].concat(_))),this.each(function(){var z=t.data(this,n);z?(z.option(r||{}),z._init&&z._init()):t.data(this,n,new i(r,this))})),N}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=o++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(n){n.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(i,n){e._removeClass(n,i)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n=e,r,h,_;if(arguments.length===0)return t.widget.extend({},this.options);if(typeof e=="string")if(n={},r=e.split("."),e=r.shift(),r.length){for(h=n[e]=t.widget.extend({},this.options[e]),_=0;_<r.length-1;_++)h[r[_]]=h[r[_]]||{},h=h[r[_]];if(e=r.pop(),arguments.length===1)return h[e]===void 0?null:h[e];h[e]=i}else{if(arguments.length===1)return this.options[e]===void 0?null:this.options[e];n[e]=i}return this._setOptions(n),this},_setOptions:function(e){var i;for(i in e)this._setOption(i,e[i]);return this},_setOption:function(e,i){return e==="classes"&&this._setOptionClasses(i),this.options[e]=i,e==="disabled"&&this._setOptionDisabled(i),this},_setOptionClasses:function(e){var i,n,r;for(i in e)r=this.classesElementLookup[i],!(e[i]===this.options.classes[i]||!r||!r.length)&&(n=t(r.get()),this._removeClass(r,i),n.addClass(this._classes({element:n,keys:i,classes:e,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(e){var i=[],n=this;e=t.extend({element:this.element,classes:this.options.classes||{}},e);function r(){var _=[];e.element.each(function(N,z){var ee=t.map(n.classesElementLookup,function(be){return be}).some(function(be){return be.is(z)});ee||_.push(z)}),n._on(t(_),{remove:"_untrackClassesElement"})}function h(_,N){var z,ee;for(ee=0;ee<_.length;ee++)z=n.classesElementLookup[_[ee]]||t(),e.add?(r(),z=t(t.uniqueSort(z.get().concat(e.element.get())))):z=t(z.not(e.element).get()),n.classesElementLookup[_[ee]]=z,i.push(_[ee]),N&&e.classes[_[ee]]&&i.push(e.classes[_[ee]])}return e.keys&&h(e.keys.match(/\S+/g)||[],!0),e.extra&&h(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(n,r){t.inArray(e.target,r)!==-1&&(i.classesElementLookup[n]=t(r.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(e,i,n){return this._toggleClass(e,i,n,!1)},_addClass:function(e,i,n){return this._toggleClass(e,i,n,!0)},_toggleClass:function(e,i,n,r){r=typeof r=="boolean"?r:n;var h=typeof e=="string"||e===null,_={extra:h?i:n,keys:h?e:i,element:h?this.element:e,add:r};return _.element.toggleClass(this._classes(_),r),this},_on:function(e,i,n){var r,h=this;typeof e!="boolean"&&(n=i,i=e,e=!1),n?(i=r=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,r=this.widget()),t.each(n,function(_,N){function z(){if(!(!e&&(h.options.disabled===!0||t(this).hasClass("ui-state-disabled"))))return(typeof N=="string"?h[N]:N).apply(h,arguments)}typeof N!="string"&&(z.guid=N.guid=N.guid||z.guid||t.guid++);var ee=_.match(/^([\w:-]*)\s*(.*)$/),be=ee[1]+h.eventNamespace,we=ee[2];we?r.on(be,we,z):i.on(be,z)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(e,i){function n(){return(typeof e=="string"?r[e]:e).apply(r,arguments)}var r=this;return setTimeout(n,i||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(i){this._addClass(t(i.currentTarget),null,"ui-state-hover")},mouseleave:function(i){this._removeClass(t(i.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(i){this._addClass(t(i.currentTarget),null,"ui-state-focus")},focusout:function(i){this._removeClass(t(i.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var r,h,_=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],h=i.originalEvent,h)for(r in h)r in i||(i[r]=h[r]);return this.element.trigger(i,n),!(typeof _=="function"&&_.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,r,h){typeof r=="string"&&(r={effect:r});var _,N=r?r===!0||typeof r=="number"?i:r.effect||i:e;r=r||{},typeof r=="number"?r={duration:r}:r===!0&&(r={}),_=!t.isEmptyObject(r),r.complete=h,r.delay&&n.delay(r.delay),_&&t.effects&&t.effects.effect[N]?n[e](r):N!==e&&n[N]?n[N](r.duration,r.easing,h):n.queue(function(z){t(this)[e](),h&&h.call(n[0]),z()})}});var A=t.widget;(function(){var e,i=Math.max,n=Math.abs,r=/left|center|right/,h=/top|center|bottom/,_=/[\+\-]\d+(\.[\d]+)?%?/,N=/^\w+/,z=/%$/,ee=t.fn.position;function be(Te,xe,Ue){return[parseFloat(Te[0])*(z.test(Te[0])?xe/100:1),parseFloat(Te[1])*(z.test(Te[1])?Ue/100:1)]}function we(Te,xe){return parseInt(t.css(Te,xe),10)||0}function Re(Te){return Te!=null&&Te===Te.window}function ke(Te){var xe=Te[0];return xe.nodeType===9?{width:Te.width(),height:Te.height(),offset:{top:0,left:0}}:Re(xe)?{width:Te.width(),height:Te.height(),offset:{top:Te.scrollTop(),left:Te.scrollLeft()}}:xe.preventDefault?{width:0,height:0,offset:{top:xe.pageY,left:xe.pageX}}:{width:Te.outerWidth(),height:Te.outerHeight(),offset:Te.offset()}}t.position={scrollbarWidth:function(){if(e!==void 0)return e;var Te,xe,Ue=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),Ge=Ue.children()[0];return t("body").append(Ue),Te=Ge.offsetWidth,Ue.css("overflow","scroll"),xe=Ge.offsetWidth,Te===xe&&(xe=Ue[0].clientWidth),Ue.remove(),e=Te-xe},getScrollInfo:function(Te){var xe=Te.isWindow||Te.isDocument?"":Te.element.css("overflow-x"),Ue=Te.isWindow||Te.isDocument?"":Te.element.css("overflow-y"),Ge=xe==="scroll"||xe==="auto"&&Te.width<Te.element[0].scrollWidth,ot=Ue==="scroll"||Ue==="auto"&&Te.height<Te.element[0].scrollHeight;return{width:ot?t.position.scrollbarWidth():0,height:Ge?t.position.scrollbarWidth():0}},getWithinInfo:function(Te){var xe=t(Te||window),Ue=Re(xe[0]),Ge=!!xe[0]&&xe[0].nodeType===9,ot=!Ue&&!Ge;return{element:xe,isWindow:Ue,isDocument:Ge,offset:ot?t(Te).offset():{left:0,top:0},scrollLeft:xe.scrollLeft(),scrollTop:xe.scrollTop(),width:xe.outerWidth(),height:xe.outerHeight()}}},t.fn.position=function(Te){if(!Te||!Te.of)return ee.apply(this,arguments);Te=t.extend({},Te);var xe,Ue,Ge,ot,ct,yt,bt=typeof Te.of=="string"?t(document).find(Te.of):t(Te.of),_t=t.position.getWithinInfo(Te.within),vt=t.position.getScrollInfo(_t),ze=(Te.collision||"flip").split(" "),ut={};return yt=ke(bt),bt[0].preventDefault&&(Te.at="left top"),Ue=yt.width,Ge=yt.height,ot=yt.offset,ct=t.extend({},ot),t.each(["my","at"],function(){var ft=(Te[this]||"").split(" "),Et,Tt;ft.length===1&&(ft=r.test(ft[0])?ft.concat(["center"]):h.test(ft[0])?["center"].concat(ft):["center","center"]),ft[0]=r.test(ft[0])?ft[0]:"center",ft[1]=h.test(ft[1])?ft[1]:"center",Et=_.exec(ft[0]),Tt=_.exec(ft[1]),ut[this]=[Et?Et[0]:0,Tt?Tt[0]:0],Te[this]=[N.exec(ft[0])[0],N.exec(ft[1])[0]]}),ze.length===1&&(ze[1]=ze[0]),Te.at[0]==="right"?ct.left+=Ue:Te.at[0]==="center"&&(ct.left+=Ue/2),Te.at[1]==="bottom"?ct.top+=Ge:Te.at[1]==="center"&&(ct.top+=Ge/2),xe=be(ut.at,Ue,Ge),ct.left+=xe[0],ct.top+=xe[1],this.each(function(){var ft,Et,Tt=t(this),Mt=Tt.outerWidth(),It=Tt.outerHeight(),Dt=we(this,"marginLeft"),kt=we(this,"marginTop"),Pt=Mt+Dt+we(this,"marginRight")+vt.width,Ot=It+kt+we(this,"marginBottom")+vt.height,Le=t.extend({},ct),dt=be(ut.my,Tt.outerWidth(),Tt.outerHeight());Te.my[0]==="right"?Le.left-=Mt:Te.my[0]==="center"&&(Le.left-=Mt/2),Te.my[1]==="bottom"?Le.top-=It:Te.my[1]==="center"&&(Le.top-=It/2),Le.left+=dt[0],Le.top+=dt[1],ft={marginLeft:Dt,marginTop:kt},t.each(["left","top"],function(ie,Se){t.ui.position[ze[ie]]&&t.ui.position[ze[ie]][Se](Le,{targetWidth:Ue,targetHeight:Ge,elemWidth:Mt,elemHeight:It,collisionPosition:ft,collisionWidth:Pt,collisionHeight:Ot,offset:[xe[0]+dt[0],xe[1]+dt[1]],my:Te.my,at:Te.at,within:_t,elem:Tt})}),Te.using&&(Et=function(ie){var Se=ot.left-Le.left,Ye=Se+Ue-Mt,Ke=ot.top-Le.top,nt=Ke+Ge-It,gt={target:{element:bt,left:ot.left,top:ot.top,width:Ue,height:Ge},element:{element:Tt,left:Le.left,top:Le.top,width:Mt,height:It},horizontal:Ye<0?"left":Se>0?"right":"center",vertical:nt<0?"top":Ke>0?"bottom":"middle"};Ue<Mt&&n(Se+Ye)<Ue&&(gt.horizontal="center"),Ge<It&&n(Ke+nt)<Ge&&(gt.vertical="middle"),i(n(Se),n(Ye))>i(n(Ke),n(nt))?gt.important="horizontal":gt.important="vertical",Te.using.call(this,ie,gt)}),Tt.offset(t.extend(Le,{using:Et}))})},t.ui.position={fit:{left:function(Te,xe){var Ue=xe.within,Ge=Ue.isWindow?Ue.scrollLeft:Ue.offset.left,ot=Ue.width,ct=Te.left-xe.collisionPosition.marginLeft,yt=Ge-ct,bt=ct+xe.collisionWidth-ot-Ge,_t;xe.collisionWidth>ot?yt>0&&bt<=0?(_t=Te.left+yt+xe.collisionWidth-ot-Ge,Te.left+=yt-_t):bt>0&&yt<=0?Te.left=Ge:yt>bt?Te.left=Ge+ot-xe.collisionWidth:Te.left=Ge:yt>0?Te.left+=yt:bt>0?Te.left-=bt:Te.left=i(Te.left-ct,Te.left)},top:function(Te,xe){var Ue=xe.within,Ge=Ue.isWindow?Ue.scrollTop:Ue.offset.top,ot=xe.within.height,ct=Te.top-xe.collisionPosition.marginTop,yt=Ge-ct,bt=ct+xe.collisionHeight-ot-Ge,_t;xe.collisionHeight>ot?yt>0&&bt<=0?(_t=Te.top+yt+xe.collisionHeight-ot-Ge,Te.top+=yt-_t):bt>0&&yt<=0?Te.top=Ge:yt>bt?Te.top=Ge+ot-xe.collisionHeight:Te.top=Ge:yt>0?Te.top+=yt:bt>0?Te.top-=bt:Te.top=i(Te.top-ct,Te.top)}},flip:{left:function(Te,xe){var Ue=xe.within,Ge=Ue.offset.left+Ue.scrollLeft,ot=Ue.width,ct=Ue.isWindow?Ue.scrollLeft:Ue.offset.left,yt=Te.left-xe.collisionPosition.marginLeft,bt=yt-ct,_t=yt+xe.collisionWidth-ot-ct,vt=xe.my[0]==="left"?-xe.elemWidth:xe.my[0]==="right"?xe.elemWidth:0,ze=xe.at[0]==="left"?xe.targetWidth:xe.at[0]==="right"?-xe.targetWidth:0,ut=-2*xe.offset[0],ft,Et;bt<0?(ft=Te.left+vt+ze+ut+xe.collisionWidth-ot-Ge,(ft<0||ft<n(bt))&&(Te.left+=vt+ze+ut)):_t>0&&(Et=Te.left-xe.collisionPosition.marginLeft+vt+ze+ut-ct,(Et>0||n(Et)<_t)&&(Te.left+=vt+ze+ut))},top:function(Te,xe){var Ue=xe.within,Ge=Ue.offset.top+Ue.scrollTop,ot=Ue.height,ct=Ue.isWindow?Ue.scrollTop:Ue.offset.top,yt=Te.top-xe.collisionPosition.marginTop,bt=yt-ct,_t=yt+xe.collisionHeight-ot-ct,vt=xe.my[1]==="top",ze=vt?-xe.elemHeight:xe.my[1]==="bottom"?xe.elemHeight:0,ut=xe.at[1]==="top"?xe.targetHeight:xe.at[1]==="bottom"?-xe.targetHeight:0,ft=-2*xe.offset[1],Et,Tt;bt<0?(Tt=Te.top+ze+ut+ft+xe.collisionHeight-ot-Ge,(Tt<0||Tt<n(bt))&&(Te.top+=ze+ut+ft)):_t>0&&(Et=Te.top-xe.collisionPosition.marginTop+ze+ut+ft-ct,(Et>0||n(Et)<_t)&&(Te.top+=ze+ut+ft))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}})();var u=t.ui.position;var m=t.extend(t.expr.pseudos,{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])}});var g=t.fn.extend({disableSelection:function(){var e="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(e+".ui-disableSelection",function(i){i.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}}),v=t;var p="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",y={},E=y.toString,b=/^([\-+])=\s*(\d+\.?\d*)/,M=[{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[e[1]*2.55,e[2]*2.55,e[3]*2.55,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]]}}],R=v.Color=function(e,i,n,r){return new v.Color.fn.parse(e,i,n,r)},C={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"}}}},B={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},L=R.support={},F=v("<p>")[0],T,x=v.each;F.style.cssText="background-color:rgba(1,1,1,.5)",L.rgba=F.style.backgroundColor.indexOf("rgba")>-1,x(C,function(e,i){i.cache="_"+e,i.props.alpha={idx:3,type:"percent",def:1}}),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,i){y["[object "+i+"]"]=i.toLowerCase()});function j(e){return e==null?e+"":typeof e=="object"?y[E.call(e)]||"object":typeof e}function w(e,i,n){var r=B[i.type]||{};return e==null?n||!i.def?null:i.def:(e=r.floor?~~e:parseFloat(e),isNaN(e)?i.def:r.mod?(e+r.mod)%r.mod:Math.min(r.max,Math.max(0,e)))}function S(e){var i=R(),n=i._rgba=[];return e=e.toLowerCase(),x(M,function(r,h){var _,N=h.re.exec(e),z=N&&h.parse(N),ee=h.space||"rgba";if(z)return _=i[ee](z),i[C[ee].cache]=_[C[ee].cache],n=i._rgba=_._rgba,!1}),n.length?(n.join()==="0,0,0,0"&&v.extend(n,T.transparent),i):T[e]}R.fn=v.extend(R.prototype,{parse:function(e,i,n,r){if(e===void 0)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=v(e).css(i),i=void 0);var h=this,_=j(e),N=this._rgba=[];if(i!==void 0&&(e=[e,i,n,r],_="array"),_==="string")return this.parse(S(e)||T._default);if(_==="array")return x(C.rgba.props,function(z,ee){N[ee.idx]=w(e[ee.idx],ee)}),this;if(_==="object")return e instanceof R?x(C,function(z,ee){e[ee.cache]&&(h[ee.cache]=e[ee.cache].slice())}):x(C,function(z,ee){var be=ee.cache;x(ee.props,function(we,Re){if(!h[be]&&ee.to){if(we==="alpha"||e[we]==null)return;h[be]=ee.to(h._rgba)}h[be][Re.idx]=w(e[we],Re,!0)}),h[be]&&v.inArray(null,h[be].slice(0,3))<0&&(h[be][3]==null&&(h[be][3]=1),ee.from&&(h._rgba=ee.from(h[be])))}),this},is:function(e){var i=R(e),n=!0,r=this;return x(C,function(h,_){var N,z=i[_.cache];return z&&(N=r[_.cache]||_.to&&_.to(r._rgba)||[],x(_.props,function(ee,be){if(z[be.idx]!=null)return n=z[be.idx]===N[be.idx],n})),n}),n},_space:function(){var e=[],i=this;return x(C,function(n,r){i[r.cache]&&e.push(n)}),e.pop()},transition:function(e,i){var n=R(e),r=n._space(),h=C[r],_=this.alpha()===0?R("transparent"):this,N=_[h.cache]||h.to(_._rgba),z=N.slice();return n=n[h.cache],x(h.props,function(ee,be){var we=be.idx,Re=N[we],ke=n[we],Te=B[be.type]||{};ke!==null&&(Re===null?z[we]=ke:(Te.mod&&(ke-Re>Te.mod/2?Re+=Te.mod:Re-ke>Te.mod/2&&(Re-=Te.mod)),z[we]=w((ke-Re)*i+Re,be)))}),this[r](z)},blend:function(e){if(this._rgba[3]===1)return this;var i=this._rgba.slice(),n=i.pop(),r=R(e)._rgba;return R(v.map(i,function(h,_){return(1-n)*r[_]+n*h}))},toRgbaString:function(){var e="rgba(",i=v.map(this._rgba,function(n,r){return n??(r>2?1:0)});return i[3]===1&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=v.map(this.hsla(),function(n,r){return n==null&&(n=r>2?1:0),r&&r<3&&(n=Math.round(n*100)+"%"),n});return i[3]===1&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(n*255)),"#"+v.map(i,function(r){return r=(r||0).toString(16),r.length===1?"0"+r:r}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),R.fn.parse.prototype=R.fn;function U(e,i,n){return n=(n+1)%1,n*6<1?e+(i-e)*n*6:n*2<1?i:n*3<2?e+(i-e)*(2/3-n)*6:e}C.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var i=e[0]/255,n=e[1]/255,r=e[2]/255,h=e[3],_=Math.max(i,n,r),N=Math.min(i,n,r),z=_-N,ee=_+N,be=ee*.5,we,Re;return N===_?we=0:i===_?we=60*(n-r)/z+360:n===_?we=60*(r-i)/z+120:we=60*(i-n)/z+240,z===0?Re=0:be<=.5?Re=z/ee:Re=z/(2-ee),[Math.round(we)%360,Re,be,h??1]},C.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var i=e[0]/360,n=e[1],r=e[2],h=e[3],_=r<=.5?r*(1+n):r+n-r*n,N=2*r-_;return[Math.round(U(N,_,i+1/3)*255),Math.round(U(N,_,i)*255),Math.round(U(N,_,i-1/3)*255),h]},x(C,function(e,i){var n=i.props,r=i.cache,h=i.to,_=i.from;R.fn[e]=function(N){if(h&&!this[r]&&(this[r]=h(this._rgba)),N===void 0)return this[r].slice();var z,ee=j(N),be=ee==="array"||ee==="object"?N:arguments,we=this[r].slice();return x(n,function(Re,ke){var Te=be[ee==="object"?Re:ke.idx];Te==null&&(Te=we[ke.idx]),we[ke.idx]=w(Te,ke)}),_?(z=R(_(we)),z[r]=we,z):R(we)},x(n,function(N,z){R.fn[N]||(R.fn[N]=function(ee){var be,we,Re,ke,Te=j(ee);return N==="alpha"?ke=this._hsla?"hsla":"rgba":ke=e,be=this[ke](),we=be[z.idx],Te==="undefined"?we:(Te==="function"&&(ee=ee.call(this,we),Te=j(ee)),ee==null&&z.empty?this:(Te==="string"&&(Re=b.exec(ee),Re&&(ee=we+parseFloat(Re[2])*(Re[1]==="+"?1:-1))),be[z.idx]=ee,this[ke](be)))})})}),R.hook=function(e){var i=e.split(" ");x(i,function(n,r){v.cssHooks[r]={set:function(h,_){var N,z,ee="";if(_!=="transparent"&&(j(_)!=="string"||(N=S(_)))){if(_=R(N||_),!L.rgba&&_._rgba[3]!==1){for(z=r==="backgroundColor"?h.parentNode:h;(ee===""||ee==="transparent")&&z&&z.style;)try{ee=v.css(z,"backgroundColor"),z=z.parentNode}catch{}_=_.blend(ee&&ee!=="transparent"?ee:"_default")}_=_.toRgbaString()}try{h.style[r]=_}catch{}}},v.fx.step[r]=function(h){h.colorInit||(h.start=R(h.elem,r),h.end=R(h.end),h.colorInit=!0),v.cssHooks[r].set(h.elem,h.start.transition(h.end,h.pos))}})},R.hook(p),v.cssHooks.borderColor={expand:function(e){var i={};return x(["Top","Right","Bottom","Left"],function(n,r){i["border"+r+"Color"]=e}),i}},T=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"};var Y="ui-effects-",ue="ui-effects-style",J="ui-effects-animated";t.effects={effect:{}},function(){var e=["add","remove","toggle"],i={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(_,N){t.fx.step[N]=function(z){(z.end!=="none"&&!z.setAttr||z.pos===1&&!z.setAttr)&&(v.style(z.elem,N,z.end),z.setAttr=!0)}});function n(_){return _.replace(/-([\da-z])/gi,function(N,z){return z.toUpperCase()})}function r(_){var N,z,ee=_.ownerDocument.defaultView?_.ownerDocument.defaultView.getComputedStyle(_,null):_.currentStyle,be={};if(ee&&ee.length&&ee[0]&&ee[ee[0]])for(z=ee.length;z--;)N=ee[z],typeof ee[N]=="string"&&(be[n(N)]=ee[N]);else for(N in ee)typeof ee[N]=="string"&&(be[N]=ee[N]);return be}function h(_,N){var z={},ee,be;for(ee in N)be=N[ee],_[ee]!==be&&(i[ee]||(t.fx.step[ee]||!isNaN(parseFloat(be)))&&(z[ee]=be));return z}t.fn.addBack||(t.fn.addBack=function(_){return this.add(_==null?this.prevObject:this.prevObject.filter(_))}),t.effects.animateClass=function(_,N,z,ee){var be=t.speed(N,z,ee);return this.queue(function(){var we=t(this),Re=we.attr("class")||"",ke,Te=be.children?we.find("*").addBack():we;Te=Te.map(function(){var xe=t(this);return{el:xe,start:r(this)}}),ke=function(){t.each(e,function(xe,Ue){_[Ue]&&we[Ue+"Class"](_[Ue])})},ke(),Te=Te.map(function(){return this.end=r(this.el[0]),this.diff=h(this.start,this.end),this}),we.attr("class",Re),Te=Te.map(function(){var xe=this,Ue=t.Deferred(),Ge=t.extend({},be,{queue:!1,complete:function(){Ue.resolve(xe)}});return this.el.animate(this.diff,Ge),Ue.promise()}),t.when.apply(t,Te.get()).done(function(){ke(),t.each(arguments,function(){var xe=this.el;t.each(this.diff,function(Ue){xe.css(Ue,"")})}),be.complete.call(we[0])})})},t.fn.extend({addClass:function(_){return function(N,z,ee,be){return z?t.effects.animateClass.call(this,{add:N},z,ee,be):_.apply(this,arguments)}}(t.fn.addClass),removeClass:function(_){return function(N,z,ee,be){return arguments.length>1?t.effects.animateClass.call(this,{remove:N},z,ee,be):_.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(_){return function(N,z,ee,be,we){return typeof z=="boolean"||z===void 0?ee?t.effects.animateClass.call(this,z?{add:N}:{remove:N},ee,be,we):_.apply(this,arguments):t.effects.animateClass.call(this,{toggle:N},z,ee,be)}}(t.fn.toggleClass),switchClass:function(_,N,z,ee,be){return t.effects.animateClass.call(this,{add:N,remove:_},z,ee,be)}})}(),function(){t.expr&&t.expr.pseudos&&t.expr.pseudos.animated&&(t.expr.pseudos.animated=function(r){return function(h){return!!t(h).data(J)||r(h)}}(t.expr.pseudos.animated)),t.uiBackCompat!==!1&&t.extend(t.effects,{save:function(r,h){for(var _=0,N=h.length;_<N;_++)h[_]!==null&&r.data(Y+h[_],r[0].style[h[_]])},restore:function(r,h){for(var _,N=0,z=h.length;N<z;N++)h[N]!==null&&(_=r.data(Y+h[N]),r.css(h[N],_))},setMode:function(r,h){return h==="toggle"&&(h=r.is(":hidden")?"show":"hide"),h},createWrapper:function(r){if(r.parent().is(".ui-effects-wrapper"))return r.parent();var h={width:r.outerWidth(!0),height:r.outerHeight(!0),float:r.css("float")},_=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),N={width:r.width(),height:r.height()},z=document.activeElement;try{z.id}catch{z=document.body}return r.wrap(_),(r[0]===z||t.contains(r[0],z))&&t(z).trigger("focus"),_=r.parent(),r.css("position")==="static"?(_.css({position:"relative"}),r.css({position:"relative"})):(t.extend(h,{position:r.css("position"),zIndex:r.css("z-index")}),t.each(["top","left","bottom","right"],function(ee,be){h[be]=r.css(be),isNaN(parseInt(h[be],10))&&(h[be]="auto")}),r.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),r.css(N),_.css(h).show()},removeWrapper:function(r){var h=document.activeElement;return r.parent().is(".ui-effects-wrapper")&&(r.parent().replaceWith(r),(r[0]===h||t.contains(r[0],h))&&t(h).trigger("focus")),r}}),t.extend(t.effects,{version:"1.13.2",define:function(r,h,_){return _||(_=h,h="effect"),t.effects.effect[r]=_,t.effects.effect[r].mode=h,_},scaledDimensions:function(r,h,_){if(h===0)return{height:0,width:0,outerHeight:0,outerWidth:0};var N=_!=="horizontal"?(h||100)/100:1,z=_!=="vertical"?(h||100)/100:1;return{height:r.height()*z,width:r.width()*N,outerHeight:r.outerHeight()*z,outerWidth:r.outerWidth()*N}},clipToBox:function(r){return{width:r.clip.right-r.clip.left,height:r.clip.bottom-r.clip.top,left:r.clip.left,top:r.clip.top}},unshift:function(r,h,_){var N=r.queue();h>1&&N.splice.apply(N,[1,0].concat(N.splice(h,_))),r.dequeue()},saveStyle:function(r){r.data(ue,r[0].style.cssText)},restoreStyle:function(r){r[0].style.cssText=r.data(ue)||"",r.removeData(ue)},mode:function(r,h){var _=r.is(":hidden");return h==="toggle"&&(h=_?"show":"hide"),(_?h==="hide":h==="show")&&(h="none"),h},getBaseline:function(r,h){var _,N;switch(r[0]){case"top":_=0;break;case"middle":_=.5;break;case"bottom":_=1;break;default:_=r[0]/h.height}switch(r[1]){case"left":N=0;break;case"center":N=.5;break;case"right":N=1;break;default:N=r[1]/h.width}return{x:N,y:_}},createPlaceholder:function(r){var h,_=r.css("position"),N=r.position();return r.css({marginTop:r.css("marginTop"),marginBottom:r.css("marginBottom"),marginLeft:r.css("marginLeft"),marginRight:r.css("marginRight")}).outerWidth(r.outerWidth()).outerHeight(r.outerHeight()),/^(static|relative)/.test(_)&&(_="absolute",h=t("<"+r[0].nodeName+">").insertAfter(r).css({display:/^(inline|ruby)/.test(r.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:r.css("marginTop"),marginBottom:r.css("marginBottom"),marginLeft:r.css("marginLeft"),marginRight:r.css("marginRight"),float:r.css("float")}).outerWidth(r.outerWidth()).outerHeight(r.outerHeight()).addClass("ui-effects-placeholder"),r.data(Y+"placeholder",h)),r.css({position:_,left:N.left,top:N.top}),h},removePlaceholder:function(r){var h=Y+"placeholder",_=r.data(h);_&&(_.remove(),r.removeData(h))},cleanUp:function(r){t.effects.restoreStyle(r),t.effects.removePlaceholder(r)},setTransition:function(r,h,_,N){return N=N||{},t.each(h,function(z,ee){var be=r.cssUnit(ee);be[0]>0&&(N[ee]=be[0]*_+be[1])}),N}});function e(r,h,_,N){return t.isPlainObject(r)&&(h=r,r=r.effect),r={effect:r},h==null&&(h={}),typeof h=="function"&&(N=h,_=null,h={}),(typeof h=="number"||t.fx.speeds[h])&&(N=_,_=h,h={}),typeof _=="function"&&(N=_,_=null),h&&t.extend(r,h),_=_||h.duration,r.duration=t.fx.off?0:typeof _=="number"?_:_ in t.fx.speeds?t.fx.speeds[_]:t.fx.speeds._default,r.complete=N||h.complete,r}function i(r){return!!(!r||typeof r=="number"||t.fx.speeds[r]||typeof r=="string"&&!t.effects.effect[r]||typeof r=="function"||typeof r=="object"&&!r.effect)}t.fn.extend({effect:function(){var r=e.apply(this,arguments),h=t.effects.effect[r.effect],_=h.mode,N=r.queue,z=N||"fx",ee=r.complete,be=r.mode,we=[],Re=function(Te){var xe=t(this),Ue=t.effects.mode(xe,be)||_;xe.data(J,!0),we.push(Ue),_&&(Ue==="show"||Ue===_&&Ue==="hide")&&xe.show(),(!_||Ue!=="none")&&t.effects.saveStyle(xe),typeof Te=="function"&&Te()};if(t.fx.off||!h)return be?this[be](r.duration,ee):this.each(function(){ee&&ee.call(this)});function ke(Te){var xe=t(this);function Ue(){xe.removeData(J),t.effects.cleanUp(xe),r.mode==="hide"&&xe.hide(),Ge()}function Ge(){typeof ee=="function"&&ee.call(xe[0]),typeof Te=="function"&&Te()}r.mode=we.shift(),t.uiBackCompat!==!1&&!_?(xe.is(":hidden")?be==="hide":be==="show")?(xe[be](),Ge()):h.call(xe[0],r,Ge):r.mode==="none"?(xe[be](),Ge()):h.call(xe[0],r,Ue)}return N===!1?this.each(Re).each(ke):this.queue(z,Re).queue(z,ke)},show:function(r){return function(h){if(i(h))return r.apply(this,arguments);var _=e.apply(this,arguments);return _.mode="show",this.effect.call(this,_)}}(t.fn.show),hide:function(r){return function(h){if(i(h))return r.apply(this,arguments);var _=e.apply(this,arguments);return _.mode="hide",this.effect.call(this,_)}}(t.fn.hide),toggle:function(r){return function(h){if(i(h)||typeof h=="boolean")return r.apply(this,arguments);var _=e.apply(this,arguments);return _.mode="toggle",this.effect.call(this,_)}}(t.fn.toggle),cssUnit:function(r){var h=this.css(r),_=[];return t.each(["em","px","%","pt"],function(N,z){h.indexOf(z)>0&&(_=[parseFloat(h),z])}),_},cssClip:function(r){return r?this.css("clip","rect("+r.top+"px "+r.right+"px "+r.bottom+"px "+r.left+"px)"):n(this.css("clip"),this)},transfer:function(r,h){var _=t(this),N=t(r.to),z=N.css("position")==="fixed",ee=t("body"),be=z?ee.scrollTop():0,we=z?ee.scrollLeft():0,Re=N.offset(),ke={top:Re.top-be,left:Re.left-we,height:N.innerHeight(),width:N.innerWidth()},Te=_.offset(),xe=t("<div class='ui-effects-transfer'></div>");xe.appendTo("body").addClass(r.className).css({top:Te.top-be,left:Te.left-we,height:_.innerHeight(),width:_.innerWidth(),position:z?"fixed":"absolute"}).animate(ke,r.duration,r.easing,function(){xe.remove(),typeof h=="function"&&h()})}});function n(r,h){var _=h.outerWidth(),N=h.outerHeight(),z=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,ee=z.exec(r)||["",0,_,N,0];return{top:parseFloat(ee[1])||0,right:ee[2]==="auto"?_:parseFloat(ee[2]),bottom:ee[3]==="auto"?N:parseFloat(ee[3]),left:parseFloat(ee[4])||0}}t.fx.step.clip=function(r){r.clipInit||(r.start=t(r.elem).cssClip(),typeof r.end=="string"&&(r.end=n(r.end,r.elem)),r.clipInit=!0),t(r.elem).cssClip({top:r.pos*(r.end.top-r.start.top)+r.start.top,right:r.pos*(r.end.right-r.start.right)+r.start.right,bottom:r.pos*(r.end.bottom-r.start.bottom)+r.start.bottom,left:r.pos*(r.end.left-r.start.left)+r.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(i,n){e[n]=function(r){return Math.pow(r,i+2)}}),t.extend(e,{Sine:function(i){return 1-Math.cos(i*Math.PI/2)},Circ:function(i){return 1-Math.sqrt(1-i*i)},Elastic:function(i){return i===0||i===1?i:-Math.pow(2,8*(i-1))*Math.sin(((i-1)*80-7.5)*Math.PI/15)},Back:function(i){return i*i*(3*i-2)},Bounce:function(i){for(var n,r=4;i<((n=Math.pow(2,--r))-1)/11;);return 1/Math.pow(4,3-r)-7.5625*Math.pow((n*3-2)/22-i,2)}}),t.each(e,function(i,n){t.easing["easeIn"+i]=n,t.easing["easeOut"+i]=function(r){return 1-n(1-r)},t.easing["easeInOut"+i]=function(r){return r<.5?n(r*2)/2:1-n(r*-2+2)/2}})}();var le=t.effects;var re=t.effects.define("blind","hide",function(e,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},r=t(this),h=e.direction||"up",_=r.cssClip(),N={clip:t.extend({},_)},z=t.effects.createPlaceholder(r);N.clip[n[h][0]]=N.clip[n[h][1]],e.mode==="show"&&(r.cssClip(N.clip),z&&z.css(t.effects.clipToBox(N)),N.clip=_),z&&z.animate(t.effects.clipToBox(N),e.duration,e.easing),r.animate(N,{queue:!1,duration:e.duration,easing:e.easing,complete:i})});var q=t.effects.define("bounce",function(e,i){var n,r,h,_=t(this),N=e.mode,z=N==="hide",ee=N==="show",be=e.direction||"up",we=e.distance,Re=e.times||5,ke=Re*2+(ee||z?1:0),Te=e.duration/ke,xe=e.easing,Ue=be==="up"||be==="down"?"top":"left",Ge=be==="up"||be==="left",ot=0,ct=_.queue().length;for(t.effects.createPlaceholder(_),h=_.css(Ue),we||(we=_[Ue==="top"?"outerHeight":"outerWidth"]()/3),ee&&(r={opacity:1},r[Ue]=h,_.css("opacity",0).css(Ue,Ge?-we*2:we*2).animate(r,Te,xe)),z&&(we=we/Math.pow(2,Re-1)),r={},r[Ue]=h;ot<Re;ot++)n={},n[Ue]=(Ge?"-=":"+=")+we,_.animate(n,Te,xe).animate(r,Te,xe),we=z?we*2:we/2;z&&(n={opacity:0},n[Ue]=(Ge?"-=":"+=")+we,_.animate(n,Te,xe)),_.queue(i),t.effects.unshift(_,ct,ke+1)});var pe=t.effects.define("clip","hide",function(e,i){var n,r={},h=t(this),_=e.direction||"vertical",N=_==="both",z=N||_==="horizontal",ee=N||_==="vertical";n=h.cssClip(),r.clip={top:ee?(n.bottom-n.top)/2:n.top,right:z?(n.right-n.left)/2:n.right,bottom:ee?(n.bottom-n.top)/2:n.bottom,left:z?(n.right-n.left)/2:n.left},t.effects.createPlaceholder(h),e.mode==="show"&&(h.cssClip(r.clip),r.clip=n),h.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})});var Z=t.effects.define("drop","hide",function(e,i){var n,r=t(this),h=e.mode,_=h==="show",N=e.direction||"left",z=N==="up"||N==="down"?"top":"left",ee=N==="up"||N==="left"?"-=":"+=",be=ee==="+="?"-=":"+=",we={opacity:0};t.effects.createPlaceholder(r),n=e.distance||r[z==="top"?"outerHeight":"outerWidth"](!0)/2,we[z]=ee+n,_&&(r.css(we),we[z]=be+n,we.opacity=1),r.animate(we,{queue:!1,duration:e.duration,easing:e.easing,complete:i})});var ce=t.effects.define("explode","hide",function(e,i){var n,r,h,_,N,z,ee=e.pieces?Math.round(Math.sqrt(e.pieces)):3,be=ee,we=t(this),Re=e.mode,ke=Re==="show",Te=we.show().css("visibility","hidden").offset(),xe=Math.ceil(we.outerWidth()/be),Ue=Math.ceil(we.outerHeight()/ee),Ge=[];function ot(){Ge.push(this),Ge.length===ee*be&&ct()}for(n=0;n<ee;n++)for(_=Te.top+n*Ue,z=n-(ee-1)/2,r=0;r<be;r++)h=Te.left+r*xe,N=r-(be-1)/2,we.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-r*xe,top:-n*Ue}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:xe,height:Ue,left:h+(ke?N*xe:0),top:_+(ke?z*Ue:0),opacity:ke?0:1}).animate({left:h+(ke?0:N*xe),top:_+(ke?0:z*Ue),opacity:ke?1:0},e.duration||500,e.easing,ot);function ct(){we.css({visibility:"visible"}),t(Ge).remove(),i()}});var de=t.effects.define("fade","toggle",function(e,i){var n=e.mode==="show";t(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})});var ne=t.effects.define("fold","hide",function(e,i){var n=t(this),r=e.mode,h=r==="show",_=r==="hide",N=e.size||15,z=/([0-9]+)%/.exec(N),ee=!!e.horizFirst,be=ee?["right","bottom"]:["bottom","right"],we=e.duration/2,Re=t.effects.createPlaceholder(n),ke=n.cssClip(),Te={clip:t.extend({},ke)},xe={clip:t.extend({},ke)},Ue=[ke[be[0]],ke[be[1]]],Ge=n.queue().length;z&&(N=parseInt(z[1],10)/100*Ue[_?0:1]),Te.clip[be[0]]=N,xe.clip[be[0]]=N,xe.clip[be[1]]=0,h&&(n.cssClip(xe.clip),Re&&Re.css(t.effects.clipToBox(xe)),xe.clip=ke),n.queue(function(ot){Re&&Re.animate(t.effects.clipToBox(Te),we,e.easing).animate(t.effects.clipToBox(xe),we,e.easing),ot()}).animate(Te,we,e.easing).animate(xe,we,e.easing).queue(i),t.effects.unshift(n,Ge,4)});var ge=t.effects.define("highlight","show",function(e,i){var n=t(this),r={backgroundColor:n.css("backgroundColor")};e.mode==="hide"&&(r.opacity=0),t.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})});var ve=t.effects.define("size",function(e,i){var n,r,h,_=t(this),N=["fontSize"],z=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],ee=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],be=e.mode,we=be!=="effect",Re=e.scale||"both",ke=e.origin||["middle","center"],Te=_.css("position"),xe=_.position(),Ue=t.effects.scaledDimensions(_),Ge=e.from||Ue,ot=e.to||t.effects.scaledDimensions(_,0);t.effects.createPlaceholder(_),be==="show"&&(h=Ge,Ge=ot,ot=h),r={from:{y:Ge.height/Ue.height,x:Ge.width/Ue.width},to:{y:ot.height/Ue.height,x:ot.width/Ue.width}},(Re==="box"||Re==="both")&&(r.from.y!==r.to.y&&(Ge=t.effects.setTransition(_,z,r.from.y,Ge),ot=t.effects.setTransition(_,z,r.to.y,ot)),r.from.x!==r.to.x&&(Ge=t.effects.setTransition(_,ee,r.from.x,Ge),ot=t.effects.setTransition(_,ee,r.to.x,ot))),(Re==="content"||Re==="both")&&r.from.y!==r.to.y&&(Ge=t.effects.setTransition(_,N,r.from.y,Ge),ot=t.effects.setTransition(_,N,r.to.y,ot)),ke&&(n=t.effects.getBaseline(ke,Ue),Ge.top=(Ue.outerHeight-Ge.outerHeight)*n.y+xe.top,Ge.left=(Ue.outerWidth-Ge.outerWidth)*n.x+xe.left,ot.top=(Ue.outerHeight-ot.outerHeight)*n.y+xe.top,ot.left=(Ue.outerWidth-ot.outerWidth)*n.x+xe.left),delete Ge.outerHeight,delete Ge.outerWidth,_.css(Ge),(Re==="content"||Re==="both")&&(z=z.concat(["marginTop","marginBottom"]).concat(N),ee=ee.concat(["marginLeft","marginRight"]),_.find("*[width]").each(function(){var ct=t(this),yt=t.effects.scaledDimensions(ct),bt={height:yt.height*r.from.y,width:yt.width*r.from.x,outerHeight:yt.outerHeight*r.from.y,outerWidth:yt.outerWidth*r.from.x},_t={height:yt.height*r.to.y,width:yt.width*r.to.x,outerHeight:yt.height*r.to.y,outerWidth:yt.width*r.to.x};r.from.y!==r.to.y&&(bt=t.effects.setTransition(ct,z,r.from.y,bt),_t=t.effects.setTransition(ct,z,r.to.y,_t)),r.from.x!==r.to.x&&(bt=t.effects.setTransition(ct,ee,r.from.x,bt),_t=t.effects.setTransition(ct,ee,r.to.x,_t)),we&&t.effects.saveStyle(ct),ct.css(bt),ct.animate(_t,e.duration,e.easing,function(){we&&t.effects.restoreStyle(ct)})})),_.animate(ot,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var ct=_.offset();ot.opacity===0&&_.css("opacity",Ge.opacity),we||(_.css("position",Te==="static"?"relative":Te).offset(ct),t.effects.saveStyle(_)),i()}})});var G=t.effects.define("scale",function(e,i){var n=t(this),r=e.mode,h=parseInt(e.percent,10)||(parseInt(e.percent,10)===0||r!=="effect"?0:100),_=t.extend(!0,{from:t.effects.scaledDimensions(n),to:t.effects.scaledDimensions(n,h,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(_.from.opacity=1,_.to.opacity=0),t.effects.effect.size.call(this,_,i)});var ae=t.effects.define("puff","hide",function(e,i){var n=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,n,i)});var Ae=t.effects.define("pulsate","show",function(e,i){var n=t(this),r=e.mode,h=r==="show",_=r==="hide",N=h||_,z=(e.times||5)*2+(N?1:0),ee=e.duration/z,be=0,we=1,Re=n.queue().length;for((h||!n.is(":visible"))&&(n.css("opacity",0).show(),be=1);we<z;we++)n.animate({opacity:be},ee,e.easing),be=1-be;n.animate({opacity:be},ee,e.easing),n.queue(i),t.effects.unshift(n,Re,z+1)});var _e=t.effects.define("shake",function(e,i){var n=1,r=t(this),h=e.direction||"left",_=e.distance||20,N=e.times||3,z=N*2+1,ee=Math.round(e.duration/z),be=h==="up"||h==="down"?"top":"left",we=h==="up"||h==="left",Re={},ke={},Te={},xe=r.queue().length;for(t.effects.createPlaceholder(r),Re[be]=(we?"-=":"+=")+_,ke[be]=(we?"+=":"-=")+_*2,Te[be]=(we?"-=":"+=")+_*2,r.animate(Re,ee,e.easing);n<N;n++)r.animate(ke,ee,e.easing).animate(Te,ee,e.easing);r.animate(ke,ee,e.easing).animate(Re,ee/2,e.easing).queue(i),t.effects.unshift(r,xe,z+1)});var te=t.effects.define("slide","show",function(e,i){var n,r,h=t(this),_={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},N=e.mode,z=e.direction||"left",ee=z==="up"||z==="down"?"top":"left",be=z==="up"||z==="left",we=e.distance||h[ee==="top"?"outerHeight":"outerWidth"](!0),Re={};t.effects.createPlaceholder(h),n=h.cssClip(),r=h.position()[ee],Re[ee]=(be?-1:1)*we+r,Re.clip=h.cssClip(),Re.clip[_[z][1]]=Re.clip[_[z][0]],N==="show"&&(h.cssClip(Re.clip),h.css(ee,Re[ee]),Re.clip=n,Re[ee]=r),h.animate(Re,{queue:!1,duration:e.duration,easing:e.easing,complete:i})});var le;t.uiBackCompat!==!1&&(le=t.effects.define("transfer",function(e,i){t(this).transfer(e,i)}));var me=le;t.ui.focusable=function(e,i){var n,r,h,_,N,z=e.nodeName.toLowerCase();return z==="area"?(n=e.parentNode,r=n.name,!e.href||!r||n.nodeName.toLowerCase()!=="map"?!1:(h=t("img[usemap='#"+r+"']"),h.length>0&&h.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(z)?(_=!e.disabled,_&&(N=t(e).closest("fieldset")[0],N&&(_=!N.disabled))):z==="a"?_=e.href||i:_=i,_&&t(e).is(":visible")&&ye(t(e)))};function ye(e){for(var i=e.css("visibility");i==="inherit";)e=e.parent(),i=e.css("visibility");return i==="visible"}t.extend(t.expr.pseudos,{focusable:function(e){return t.ui.focusable(e,t.attr(e,"tabindex")!=null)}});var oe=t.ui.focusable,Ee=t.fn._form=function(){return typeof this[0].form=="string"?this.closest("form"):t(this[0].form)};var D=t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,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 e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}};if(t.expr.pseudos||(t.expr.pseudos=t.expr[":"]),t.uniqueSort||(t.uniqueSort=t.unique),!t.escapeSelector){var V=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,P=function(e,i){return i?e==="\0"?"\uFFFD":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e};t.escapeSelector=function(e){return(e+"").replace(V,P)}}(!t.fn.even||!t.fn.odd)&&t.fn.extend({even:function(){return this.filter(function(e){return e%2===0})},odd:function(){return this.filter(function(e){return e%2===1})}});var k=t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};var X=t.fn.labels=function(){var e,i,n,r,h;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(r=this.eq(0).parents("label"),n=this.attr("id"),n&&(e=this.eq(0).parents().last(),h=e.add(e.length?e.siblings():this.siblings()),i="label[for='"+t.escapeSelector(n)+"']",r=r.add(h.find(i).addBack(i))),this.pushStack(r)):this.pushStack([])};var W=t.fn.scrollParent=function(e){var i=this.css("position"),n=i==="absolute",r=e?/(auto|scroll|hidden)/:/(auto|scroll)/,h=this.parents().filter(function(){var _=t(this);return n&&_.css("position")==="static"?!1:r.test(_.css("overflow")+_.css("overflow-y")+_.css("overflow-x"))}).eq(0);return i==="fixed"||!h.length?t(this[0].ownerDocument||document):h};var se=t.extend(t.expr.pseudos,{tabbable:function(e){var i=t.attr(e,"tabindex"),n=i!=null;return(!n||i>=0)&&t.ui.focusable(e,n)}});var fe=t.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)&&t(this).removeAttr("id")})}});var c=t.widget("ui.accordion",{version:"1.13.2",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 e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),!e.collapsible&&(e.active===!1||e.active==null)&&(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,i,n=this.options.icons;n&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+n.header),e.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,n.header)._addClass(i,null,n.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(),this.options.heightStyle!=="content"&&e.css("height","")},_setOption:function(e,i){if(e==="active"){this._activate(i);return}e==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(i)),this._super(e,i),e==="collapsible"&&!i&&this.options.active===!1&&this._activate(0),e==="icons"&&(this._destroyIcons(),i&&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(e){if(!(e.altKey||e.ctrlKey)){var i=t.ui.keyCode,n=this.headers.length,r=this.headers.index(e.target),h=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:h=this.headers[(r+1)%n];break;case i.LEFT:case i.UP:h=this.headers[(r-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:h=this.headers[0];break;case i.END:h=this.headers[n-1];break}h&&(t(e.target).attr("tabIndex",-1),t(h).attr("tabIndex",0),t(h).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,i=this.panels;typeof this.options.header=="function"?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"),i&&(this._off(e.not(this.headers)),this._off(i.not(this.panels)))},_refresh:function(){var e,i=this.options,n=i.heightStyle,r=this.element.parent();this.active=this._findActive(i.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 h=t(this),_=h.uniqueId().attr("id"),N=h.next(),z=N.uniqueId().attr("id");h.attr("aria-controls",z),N.attr("aria-labelledby",_)}).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._createI