vliz-be-theme 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +50 -0
  4. data/_config.yml +4 -0
  5. data/_data/articles.yml +43 -0
  6. data/_data/bg_with_block.yml +5 -0
  7. data/_data/carrousel.yml +28 -0
  8. data/_data/carrousel_two.yml +33 -0
  9. data/_data/main_banner.yml +24 -0
  10. data/_data/simple_questions.yml +16 -0
  11. data/_includes/banner/banner.html +50 -0
  12. data/_includes/banner/main.html +35 -0
  13. data/_includes/banner/topic.html +20 -0
  14. data/_includes/block_gallery_cards/card.html +36 -0
  15. data/_includes/block_gallery_cards/first_card.html +50 -0
  16. data/_includes/block_gallery_cards/main.html +40 -0
  17. data/_includes/carrousel_block/item.html +21 -0
  18. data/_includes/carrousel_block/main.html +22 -0
  19. data/_includes/carrousel_w_waves/item.html +27 -0
  20. data/_includes/carrousel_w_waves/main.html +39 -0
  21. data/_includes/footer/main.html +312 -0
  22. data/_includes/image_bg_white_card/main.html +26 -0
  23. data/_includes/image_w_descr_curly/main.html +48 -0
  24. data/_includes/light_bg_block/item.html +12 -0
  25. data/_includes/light_bg_block/main.html +19 -0
  26. data/_includes/mobile-overlay/main.html +419 -0
  27. data/_includes/navigation/main.html +515 -0
  28. data/_includes/navigation/search-overlay.html +49 -0
  29. data/_includes/no_bg_cards/item.html +24 -0
  30. data/_includes/no_bg_cards/main.html +21 -0
  31. data/_includes/no_bg_colored_blocks/item.html +19 -0
  32. data/_includes/no_bg_colored_blocks/main.html +34 -0
  33. data/_includes/simple_color_boxes/item.html +11 -0
  34. data/_includes/simple_color_boxes/main.html +29 -0
  35. data/_layouts/default.html +150 -0
  36. data/_layouts/page.html +5 -0
  37. data/_layouts/post.html +5 -0
  38. data/assets/core/misc/Vlaanderen_verbeelding werkt.png +0 -0
  39. data/assets/core/misc/bib_publications_bg.jpg +0 -0
  40. data/assets/core/misc/calendar.svg +1 -0
  41. data/assets/core/misc/check.svg +1 -0
  42. data/assets/core/misc/close.png +0 -0
  43. data/assets/core/misc/error.svg +1 -0
  44. data/assets/core/misc/gradient.png +0 -0
  45. data/assets/core/misc/loading-small.gif +0 -0
  46. data/assets/core/misc/move.svg +1 -0
  47. data/assets/core/misc/person.svg +1 -0
  48. data/assets/core/misc/privacyshield.png +0 -0
  49. data/assets/core/misc/share-Facebook.png +0 -0
  50. data/assets/core/misc/share-Fave.png +0 -0
  51. data/assets/core/misc/share-LinkedIn.png +0 -0
  52. data/assets/core/misc/share-Mailto.png +0 -0
  53. data/assets/core/misc/share-Print.png +0 -0
  54. data/assets/core/misc/share-RSS.png +0 -0
  55. data/assets/core/misc/share-Twitter.png +0 -0
  56. data/assets/core/misc/swoosh.svg +3 -0
  57. data/assets/core/misc/swoosh_bg.svg +11 -0
  58. data/assets/core/misc/throbber-active.gif +0 -0
  59. data/assets/core/misc/throbber-inactive.png +0 -0
  60. data/assets/core/misc/tree-bottom.png +0 -0
  61. data/assets/core/misc/tree.png +0 -0
  62. data/assets/core/misc/twistie-down.svg +1 -0
  63. data/assets/core/misc/twistie-up.svg +1 -0
  64. data/assets/core/misc/warning.svg +1 -0
  65. data/assets/core/misc/west_vlaanderen_logo.png +0 -0
  66. data/assets/css/custom_style.css +5 -0
  67. data/assets/css/stylesheet_one.css +2461 -0
  68. data/assets/css/stylesheet_two.css +9753 -0
  69. data/assets/css/tablesaw-base.css +601 -0
  70. data/assets/css/tablesaw-responsive.css +189 -0
  71. data/assets/js/brands.js +3448 -0
  72. data/assets/js/fontawesome-icons.js +6 -0
  73. data/assets/js/fontawesome.js +2355 -0
  74. data/assets/js/regular.js +1354 -0
  75. data/assets/js/script_one.js +3361 -0
  76. data/assets/js/script_three.js +1160 -0
  77. data/assets/js/script_two.js +3913 -0
  78. data/assets/js/solid.js +9921 -0
  79. data/assets/js/tablesaw-init.js +18 -0
  80. data/assets/js/tablesaw.min.js +1408 -0
  81. data/assets/media/img/SquidRNA.webp +0 -0
  82. data/assets/media/img/graph_concept_art.jpg +0 -0
  83. data/assets/media/img/placeholder.png +0 -0
  84. data/assets/media/video/Homepage_website_SimonStevin.mp4 +0 -0
  85. metadata +140 -0
@@ -0,0 +1,3361 @@
1
+ /*! jQuery v3.6.3 | (c) OpenJS Foundation and other contributors | jquery.org/license */
2
+ !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(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},S=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||S).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.3",E=function(e,t){return new E.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}E.fn=E.prototype={jquery:f,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(n){return this.pushStack(E.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(E.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},E.extend=E.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(E.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||E.isPlainObject(n)?n:{},i=!1,a[t]=E.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},E.extend({expando:"jQuery"+(f+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]"!==o.call(e))&&(!(t=r(e))||"function"==typeof(n=y.call(t,"constructor")&&t.constructor)&&a.call(n)===l)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(p(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(p(Object(e))?E.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(p(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:v}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=t[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var d=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,S,y,s,c,v,E="sizzle"+1*new Date,p=n.document,k=0,r=0,m=ue(),x=ue(),A=ue(),N=ue(),j=function(e,t){return e===t&&(l=!0),0},D={}.hasOwnProperty,t=[],q=t.pop,L=t.push,H=t.push,O=t.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+M+"*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),_=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,S)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!y||!y.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ve(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=E)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{if(d.cssSupportsSelector&&!CSS.supports("selector(:is("+c+"))"))throw new Error;return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===E&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[E]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ye(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,S=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.cssSupportsSelector=ce(function(){return CSS.supports("selector(*)")&&C.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&S){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&S){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&S)return t.getElementsByClassName(e)},s=[],y=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+E+"-]").length||y.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),d.cssSupportsSelector||y.push(":has"),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&v(p,e)?-1:t==C||t.ownerDocument==p&&v(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&S&&!N[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0<se(t,C,null,[e]).length},se.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),v(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&D.call(b.attrHandle,t.toLowerCase())?n(e,t,!S):void 0;return void 0!==r?r:d.attributes||!S?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(j),l){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)e.splice(n[r],1)}return u=null,e},o=se.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else while(t=e[r++])n+=o(t);return n},(b=se.selectors={cacheLength:50,createPseudo:le,match:G,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||se.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]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace($," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,y){var v="nth"!==h.slice(0,3),m="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===y?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=v!==m?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(v){while(l){a=e;while(a=a[l])if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[m?c.firstChild:c.lastChild],m&&p){d=(s=(r=(i=(o=(a=c)[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1])&&r[2],a=s&&c.childNodes[s];while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if(1===a.nodeType&&++d&&a===e){i[h]=[k,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===k&&r[1]),!1===d)while(a=++s&&a&&a[l]||(d=s=0)||u.pop())if((x?a.nodeName.toLowerCase()===f:1===a.nodeType)&&++d&&(p&&((i=(o=a[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[k,d]),a===e))break;return(d-=y)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[E]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?le(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=P(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:le(function(e){var r=[],i=[],s=f(e.replace(B,"$1"));return s[E]?le(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:le(function(t){return function(e){return 0<se(t,e).length}}),contains:le(function(t){return t=t.replace(te,ne),function(e){return-1<(e.textContent||o(e)).indexOf(t)}}),lang:le(function(n){return V.test(n||"")||se.error("unsupported lang: "+n),n=n.replace(te,ne).toLowerCase(),function(e){var t;do{if(t=S?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.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:ye(function(){return[0]}),last:ye(function(e,t){return[t-1]}),eq:ye(function(e,t,n){return[n<0?n+t:n]}),even:ye(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ye(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ye(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:ye(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=de(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){while(e=e[u])if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[k,p];if(n){while(e=e[u])if((1===e.nodeType||f)&&s(e,t,n))return!0}else while(e=e[u])if(1===e.nodeType||f)if(i=(o=e[E]||(e[E]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===k&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function we(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(d,h,g,y,v,e){return y&&!y[E]&&(y=Ce(y)),v&&!v[E]&&(v=Ce(v,e)),le(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:Te(c,s,d,n,r),p=g?v||(e?d:l||y)?[]:t:f;if(g&&g(f,p,n,r),y){i=Te(p,u),y(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a))}if(e){if(v||d){if(v){i=[],o=p.length;while(o--)(a=p[o])&&i.push(f[o]=a);v(null,p=[],i,r)}o=p.length;while(o--)(a=p[o])&&-1<(i=v?P(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=Te(p===t?p.splice(l,p.length):p),v?v(null,t,p,r):H.apply(t,p)})}function Se(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=be(function(e){return e===i},a,!0),l=be(function(e){return-1<P(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[be(we(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[E]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return Ce(1<s&&we(c),1<s&&xe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(B,"$1"),t,s<n&&Se(e.slice(s,n)),n<r&&Se(e=e.slice(n)),n<r&&xe(e))}c.push(t)}return we(c)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,h=se.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=_.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(B," ")}),a=a.slice(n.length)),b.filter)!(r=G[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):x(e,s).slice(0)},f=se.compile=function(e,t){var n,y,v,m,x,r,i=[],o=[],a=A[e+" "];if(!a){t||(t=h(e)),n=t.length;while(n--)(a=Se(t[n]))[E]?i.push(a):o.push(a);(a=A(e,(y=o,m=0<(v=i).length,x=0<y.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=k+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==C||(T(o),n=!S);while(s=y[a++])if(s(o,t||C,n)){r.push(o);break}i&&(k=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=v[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=q.call(r));f=Te(f)}H.apply(r,f),i&&!e&&0<f.length&&1<u+v.length&&se.uniqueSort(r)}return i&&(k=h,w=p),c},m?le(r):r))).selector=e}return a},g=se.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&S&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(te,ne),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=G.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(te,ne),ee.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&xe(o)))return H.apply(n,r),n;break}}}return(l||f(e,c))(r,t,!S,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},d.sortStable=E.split("").sort(j).join("")===E,d.detectDuplicates=!!l,T(),d.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||fe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||fe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||fe(R,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),se}(C);E.find=d,E.expr=d.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=d.uniqueSort,E.text=d.getText,E.isXMLDoc=d.isXML,E.contains=d.contains,E.escapeSelector=d.escape;var h=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&E(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=E.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?E.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?E.grep(e,function(e){return e===n!==r}):"string"!=typeof n?E.grep(e,function(e){return-1<i.call(n,e)!==r}):E.filter(n,e,r)}E.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?E.find.matchesSelector(r,e)?[r]:[]:E.find.matches(e,E.grep(t,function(e){return 1===e.nodeType}))},E.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(E(e).filter(function(){for(t=0;t<r;t++)if(E.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)E.find(e,i[t],n);return 1<r?E.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&k.test(e)?E(e):e||[],!1).length}});var D,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),N.test(r[1])&&E.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=S.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,D=E(S);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&E(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&E.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?E.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(E(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},function(r,i){E.fn[r]=function(e,t){var n=E.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=E.filter(t,n)),1<this.length&&(H[r]||E.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var P=/[^\x20\t\r\n\f]+/g;function R(e){return e}function M(e){throw e}function I(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},E.each(e.match(P)||[],function(e,t){n[t]=!0}),n):E.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){E.each(e,function(e,t){m(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==w(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return E.each(arguments,function(e,t){var n;while(-1<(n=E.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<E.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},E.extend({Deferred:function(e){var o=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return E.Deferred(function(r){E.each(o,function(e,t){var n=m(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&m(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(t)?s?t.call(e,l(u,o,R,s),l(u,o,M,s)):(u++,t.call(e,l(u,o,R,s),l(u,o,M,s),l(u,o,R,o.notifyWith))):(a!==R&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==M&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(E.Deferred.getStackHook&&(t.stackTrace=E.Deferred.getStackHook()),C.setTimeout(t))}}return E.Deferred(function(e){o[0][3].add(l(0,e,m(r)?r:R,e.notifyWith)),o[1][3].add(l(0,e,m(t)?t:R)),o[2][3].add(l(0,e,m(n)?n:M))}).promise()},promise:function(e){return null!=e?E.extend(e,a):a}},s={};return E.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=E.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(I(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||m(i[t]&&i[t].then)))return o.then();while(t--)I(i[t],a(t),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&W.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){C.setTimeout(function(){throw e})};var F=E.Deferred();function $(){S.removeEventListener("DOMContentLoaded",$),C.removeEventListener("load",$),E.ready()}E.fn.ready=function(e){return F.then(e)["catch"](function(e){E.readyException(e)}),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0)!==e&&0<--E.readyWait||F.resolveWith(S,[E])}}),E.ready.then=F.then,"complete"===S.readyState||"loading"!==S.readyState&&!S.documentElement.doScroll?C.setTimeout(E.ready):(S.addEventListener("DOMContentLoaded",$),C.addEventListener("load",$));var B=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===w(n))for(s in i=!0,n)B(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,m(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(E(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=/^-ms-/,z=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function X(e){return e.replace(_,"ms-").replace(z,U)}var V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=E.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[X(t)]=n;else for(r in t)i[X(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][X(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,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(X):(t=X(t))in r?[t]:t.match(P)||[]).length;while(n--)delete r[t[n]]}(void 0===t||E.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var Y=new G,Q=new G,J=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function Z(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(K,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:J.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return Q.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),E.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=X(r.slice(5)),Z(o,r,i[r]));Y.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){Q.set(this,n)}):B(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=Q.get(o,n))?t:void 0!==(t=Z(o,n))?t:void 0;this.each(function(){Q.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),E.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),r=n.length,i=n.shift(),o=E._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){E.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:E.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),E.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?E.queue(this[0],t):void 0===n?this:this.each(function(){var e=E.queue(this,t,n);E._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&E.dequeue(this,t)})},dequeue:function(e){return this.each(function(){E.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=E.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=Y.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],re=S.documentElement,ie=function(e){return E.contains(e.ownerDocument,e)},oe={composed:!0};re.getRootNode&&(ie=function(e){return E.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ae=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ie(e)&&"none"===E.css(e,"display")};function se(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return E.css(e,t,"")},u=s(),l=n&&n[3]||(E.cssNumber[t]?"":"px"),c=e.nodeType&&(E.cssNumber[t]||"px"!==l&&+u)&&te.exec(E.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)E.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,E.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ue={};function le(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=Y.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ae(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ue[s])||(o=a.body.appendChild(a.createElement(s)),u=E.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ue[s]=u)))):"none"!==n&&(l[c]="none",Y.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}E.fn.extend({show:function(){return le(this,!0)},hide:function(){return le(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ae(this)?E(this).show():E(this).hide()})}});var ce,fe,pe=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=S.createDocumentFragment().appendChild(S.createElement("div")),(fe=S.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),v.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",v.option=!!ce.lastChild;var ge={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,"",""]};function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?E.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,v.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===w(o))E.merge(p,o.nodeType?[o]:o);else if(me.test(o)){a=a||f.appendChild(t.createElement("div")),s=(de.exec(o)||["",""])[1].toLowerCase(),u=ge[s]||ge._default,a.innerHTML=u[1]+E.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;E.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<E.inArray(o,r))i&&i.push(o);else if(l=ie(o),a=ye(f.appendChild(o),"script"),l&&ve(a),n){c=0;while(o=a[c++])he.test(o.type||"")&&n.push(o)}return f}var be=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Ce(e,t){return e===function(){try{return S.activeElement}catch(e){}}()==("focus"===t)}function Se(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Se(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return E().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=E.guid++)),e.each(function(){E.event.add(this,t,i,r,n)})}function Ee(e,i,o){o?(Y.set(e,i,!1),E.event.add(e,i,{namespace:!1,handler:function(e){var t,n,r=Y.get(this,i);if(1&e.isTrigger&&this[i]){if(r.length)(E.event.special[i]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),Y.set(this,i,r),t=o(this,i),this[i](),r!==(n=Y.get(this,i))||t?Y.set(this,i,!1):n={},r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else r.length&&(Y.set(this,i,{value:E.event.trigger(E.extend(r[0],E.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Y.get(e,i)&&E.event.add(e,i,we)}E.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=Y.get(t);if(V(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&E.find.matchesSelector(re,i),n.guid||(n.guid=E.guid++),(u=y.events)||(u=y.events=Object.create(null)),(a=y.handle)||(a=y.handle=function(e){return"undefined"!=typeof E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;while(l--)d=g=(s=be.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=E.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=E.event.special[d]||{},c=E.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),E.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,y=Y.hasData(e)&&Y.get(e);if(y&&(u=y.events)){l=(t=(t||"").match(P)||[""]).length;while(l--)if(d=g=(s=be.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=E.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,y.handle)||E.removeEvent(e,d,y.handle),delete u[d])}else for(d in u)E.event.remove(e,d+t[l],n,r,!0);E.isEmptyObject(u)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=E.event.fix(e),l=(Y.get(this,"events")||Object.create(null))[u.type]||[],c=E.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=E.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((E.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<E(i,this).index(l):E.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(E.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ee(t,"click",we),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&A(t,"input")&&Ee(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&A(t,"input")&&Y.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,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&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.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},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(t,e){E.event.special[t]={setup:function(){return Ee(this,t,Ce),!1},trigger:function(){return Ee(this,t),!0},_default:function(e){return Y.get(e.target,t)},delegateType:e}}),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){E.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||E.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),E.fn.extend({on:function(e,t,n,r){return Se(this,e,t,n,r)},one:function(e,t,n,r){return Se(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,E(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each(function(){E.event.remove(this,e,n,t)})}});var ke=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,Ne=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)E.event.add(t,i,s[i][n]);Q.hasData(e)&&(o=Q.access(e),a=E.extend({},o),Q.set(t,a))}}function He(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=m(d);if(h||1<f&&"string"==typeof d&&!v.checkClone&&Ae.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),He(t,r,i,o)});if(f&&(t=(e=xe(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=E.map(ye(e,"script"),De)).length;c<f;c++)u=e,c!==p&&(u=E.clone(u,!0,!0),s&&E.merge(a,ye(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,E.map(a,qe),c=0;c<s;c++)u=a[c],he.test(u.type||"")&&!Y.access(u,"globalEval")&&E.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?E._evalUrl&&!u.noModule&&E._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):b(u.textContent.replace(Ne,""),u,l))}return n}function Oe(e,t,n){for(var r,i=t?E.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||E.cleanData(ye(r)),r.parentNode&&(n&&ie(r)&&ve(ye(r,"script")),r.parentNode.removeChild(r));return e}E.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=ie(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||E.isXMLDoc(e)))for(a=ye(c),r=0,i=(o=ye(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&pe.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ye(e),a=a||ye(c),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,c);return 0<(a=ye(c,"script")).length&&ve(a,!f&&ye(e,"script")),c},cleanData:function(e){for(var t,n,r,i=E.event.special,o=0;void 0!==(n=e[o]);o++)if(V(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[Y.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),E.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return B(this,function(e){return void 0===e?E.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 He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(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&&(E.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return E.clone(this,e,t)})},html:function(e){return B(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ke.test(e)&&!ge[(de.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return He(this,arguments,function(e){var t=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(ye(this)),t&&t.replaceChild(e,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){E.fn[e]=function(e){for(var t,n=[],r=E(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),E(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var Pe=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Re=/^--/,Me=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Ie=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},We=new RegExp(ne.join("|"),"i"),Fe="[\\x20\\t\\r\\n\\f]",$e=new RegExp("^"+Fe+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Fe+"+$","g");function Be(e,t,n){var r,i,o,a,s=Re.test(t),u=e.style;return(n=n||Me(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace($e,"$1")||void 0),""!==a||ie(e)||(a=E.style(e,t)),!v.pixelBoxStyles()&&Pe.test(a)&&We.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function _e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(u).appendChild(l);var e=C.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),re.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=S.createElement("div"),l=S.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===l.style.backgroundClip,E.extend(v,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=S.createElement("table"),t=S.createElement("tr"),n=S.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",re.appendChild(e).appendChild(t).appendChild(n),r=C.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var ze=["Webkit","Moz","ms"],Ue=S.createElement("div").style,Xe={};function Ve(e){var t=E.cssProps[e]||Xe[e];return t||(e in Ue?e:Xe[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=ze.length;while(n--)if((e=ze[n]+t)in Ue)return e}(e)||e)}var Ge=/^(none|table(?!-c[ea]).+)/,Ye={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Je(e,t,n){var r=te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Ke(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=E.css(e,n+ne[a],!0,i)),r?("content"===n&&(u-=E.css(e,"padding"+ne[a],!0,i)),"margin"!==n&&(u-=E.css(e,"border"+ne[a]+"Width",!0,i))):(u+=E.css(e,"padding"+ne[a],!0,i),"padding"!==n?u+=E.css(e,"border"+ne[a]+"Width",!0,i):s+=E.css(e,"border"+ne[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function Ze(e,t,n){var r=Me(e),i=(!v.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,r),o=i,a=Be(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Pe.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===E.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Ke(e,t,n||(i?"border":"content"),o,r,a)+"px"}function et(e,t,n,r,i){return new et.prototype.init(e,t,n,r,i)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(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,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=X(t),u=Re.test(t),l=e.style;if(u||(t=Ve(s)),a=E.cssHooks[t]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=te.exec(n))&&i[1]&&(n=se(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(E.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=X(t);return Re.test(t)||(t=Ve(s)),(a=E.cssHooks[t]||E.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Be(e,t,r)),"normal"===i&&t in Qe&&(i=Qe[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),E.each(["height","width"],function(e,u){E.cssHooks[u]={get:function(e,t,n){if(t)return!Ge.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,u,n):Ie(e,Ye,function(){return Ze(e,u,n)})},set:function(e,t,n){var r,i=Me(e),o=!v.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===E.css(e,"boxSizing",!1,i),s=n?Ke(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-Ke(e,u,"border",!1,i)-.5)),s&&(r=te.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=E.css(e,u)),Je(0,t,s)}}}),E.cssHooks.marginLeft=_e(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-Ie(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(i,o){E.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+ne[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(E.cssHooks[i+o].set=Je)}),E.fn.extend({css:function(e,t){return B(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Me(e),i=t.length;a<i;a++)o[t[a]]=E.css(e,t[a],!1,r);return o}return void 0!==n?E.style(e,t,n):E.css(e,t)},e,t,1<arguments.length)}}),((E.Tween=et).prototype={constructor:et,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=E.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):et.propHooks._default.set(this),this}}).init.prototype=et.prototype,(et.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=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[Ve(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=et.prototype.init,E.fx.step={};var tt,nt,rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){nt&&(!1===S.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(st):C.setTimeout(st,E.fx.interval),E.fx.tick())}function ut(){return C.setTimeout(function(){tt=void 0}),tt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ne[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(o,e,t){var n,a,r=0,i=ft.prefilters.length,s=E.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=tt||ut(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:E.extend({},e),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},t),originalProperties:e,originalOptions:t,startTime:tt||ut(),duration:t.duration,tweens:[],createTween:function(e,t){var n=E.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=X(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=E.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=ft.prefilters[r].call(l,o,c,l.opts))return m(n.stop)&&(E._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return E.map(c,ct,l),m(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),E.fx.timer(E.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}E.Animation=E.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return se(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(P);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ae(e),y=Y.get(e,"fxshow");for(r in n.queue||(null==(a=E._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,E.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!y||void 0===y[r])continue;g=!0}d[r]=y&&y[r]||E.style(e,r)}if((u=!E.isEmptyObject(t))||!E.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=y&&y.display)&&(l=Y.get(e,"display")),"none"===(c=E.css(e,"display"))&&(l?c=l:(le([e],!0),l=e.style.display||l,c=E.css(e,"display"),le([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===E.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(y?"hidden"in y&&(g=y.hidden):y=Y.access(e,"fxshow",{display:l}),o&&(y.hidden=!g),g&&le([e],!0),p.done(function(){for(r in g||le([e]),Y.remove(e,"fxshow"),d)E.style(e,r,d[r])})),u=ct(g?y[r]:0,r,p),r in y||(y[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),E.speed=function(e,t,n){var r=e&&"object"==typeof e?E.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return E.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in E.fx.speeds?r.duration=E.fx.speeds[r.duration]:r.duration=E.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ae).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=E.isEmptyObject(t),o=E.speed(e,n,r),a=function(){var e=ft(this,E.extend({},t),o);(i||Y.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=E.timers,r=Y.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&at.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||E.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=Y.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=E.timers,o=n?n.length:0;for(t.finish=!0,E.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),E.each(["toggle","show","hide"],function(e,r){var i=E.fn[r];E.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(lt(r,!0),e,t,n)}}),E.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){E.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),tt=void 0},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){nt||(nt=!0,st())},E.fx.stop=function(){nt=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(r,e){return r=E.fx&&E.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},rt=S.createElement("input"),it=S.createElement("select").appendChild(S.createElement("option")),rt.type="checkbox",v.checkOn=""!==rt.value,v.optSelected=it.selected,(rt=S.createElement("input")).value="t",rt.type="radio",v.radioValue="t"===rt.value;var pt,dt=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return B(this,E.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){E.removeAttr(this,e)})}}),E.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?E.prop(e,t,n):(1===o&&E.isXMLDoc(e)||(i=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=E.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(P);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(e,t){var a=dt[t]||E.find.attr;dt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=dt[o],dt[o]=r,r=null!=a(e,t,n)?o:null,dt[o]=i),r}});var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function yt(e){return(e.match(P)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(P)||[]}E.fn.extend({prop:function(e,t){return B(this,E.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[E.propFix[e]||e]})}}),E.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(e)||(t=E.propFix[t]||t,i=E.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),v.optSelected||(E.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)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(t){var e,n,r,i,o,a;return m(t)?this.each(function(e){E(this).addClass(t.call(this,e,vt(this)))}):(e=mt(t)).length?this.each(function(){if(r=vt(this),n=1===this.nodeType&&" "+yt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=yt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return m(t)?this.each(function(e){E(this).removeClass(t.call(this,e,vt(this)))}):arguments.length?(e=mt(t)).length?this.each(function(){if(r=vt(this),n=1===this.nodeType&&" "+yt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=yt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return m(t)?this.each(function(e){E(this).toggleClass(t.call(this,e,vt(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=mt(t),this.each(function(){if(s)for(o=E(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=vt(this))&&Y.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":Y.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+yt(vt(n))+" ").indexOf(t))return!0;return!1}});var xt=/\r/g;E.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=m(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,E(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=E.map(t,function(e){return null==e?"":e+""})),(r=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=E.valHooks[t.type]||E.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(xt,""):null==e?"":e:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:yt(E.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=E(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=E.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<E.inArray(E.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<E.inArray(E(e).val(),t)}},v.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in C;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||S],d=y.call(e,"type")?e.type:e,h=y.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||S,3!==n.nodeType&&8!==n.nodeType&&!bt.test(d+E.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[E.expando]?e:new E.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),c=E.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!x(n)){for(s=c.delegateType||d,bt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||S)&&p.push(a.defaultView||a.parentWindow||C)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(Y.get(o,"events")||Object.create(null))[e.type]&&Y.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&V(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!V(n)||u&&m(n[d])&&!x(n)&&((a=n[u])&&(n[u]=null),E.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,wt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,wt),E.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each(function(){E.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),v.focusin||E.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){E.event.simulate(r,e.target,E.event.fix(e))};E.event.special[r]={setup:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r);t||e.addEventListener(n,i,!0),Y.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=Y.access(e,r)-1;t?Y.access(e,r,t):(e.removeEventListener(n,i,!0),Y.remove(e,r))}}});var Tt=C.location,Ct={guid:Date.now()},St=/\?/;E.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Et=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function jt(n,e,r,i){var t;if(Array.isArray(e))E.each(e,function(e,t){r||Et.test(n)?i(n,t):jt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==w(e))i(n,e);else for(t in e)jt(n+"["+t+"]",e[t],r,i)}E.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,function(){i(this.name,this.value)});else for(n in e)jt(n,e[n],t,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(e){return{name:t.name,value:e.replace(kt,"\r\n")}}):{name:t.name,value:n.replace(kt,"\r\n")}}).get()}});var Dt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=S.createElement("a");function Ft(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(P)||[];if(m(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function $t(t,i,o,a){var s={},u=t===Mt;function l(e){var r;return s[e]=!0,E.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Bt(e,t){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}Wt.href=Tt.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,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":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,E.ajaxSettings),t):Bt(E.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,y=E.ajaxSetup({},t),v=y.context||y,m=y.context&&(v.nodeType||v.jquery)?E(v):E.event,x=E.Deferred(),b=E.Callbacks("once memory"),w=y.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Ht.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(y.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),y.url=((e||y.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),y.type=t.method||t.type||y.method||y.type,y.dataTypes=(y.dataType||"*").toLowerCase().match(P)||[""],null==y.crossDomain){r=S.createElement("a");try{r.href=y.url,r.href=r.href,y.crossDomain=Wt.protocol+"//"+Wt.host!=r.protocol+"//"+r.host}catch(e){y.crossDomain=!0}}if(y.data&&y.processData&&"string"!=typeof y.data&&(y.data=E.param(y.data,y.traditional)),$t(Rt,y,t,T),h)return T;for(i in(g=E.event&&y.global)&&0==E.active++&&E.event.trigger("ajaxStart"),y.type=y.type.toUpperCase(),y.hasContent=!Ot.test(y.type),f=y.url.replace(qt,""),y.hasContent?y.data&&y.processData&&0===(y.contentType||"").indexOf("application/x-www-form-urlencoded")&&(y.data=y.data.replace(Dt,"+")):(o=y.url.slice(f.length),y.data&&(y.processData||"string"==typeof y.data)&&(f+=(St.test(f)?"&":"?")+y.data,delete y.data),!1===y.cache&&(f=f.replace(Lt,"$1"),o=(St.test(f)?"&":"?")+"_="+Ct.guid+++o),y.url=f+o),y.ifModified&&(E.lastModified[f]&&T.setRequestHeader("If-Modified-Since",E.lastModified[f]),E.etag[f]&&T.setRequestHeader("If-None-Match",E.etag[f])),(y.data&&y.hasContent&&!1!==y.contentType||t.contentType)&&T.setRequestHeader("Content-Type",y.contentType),T.setRequestHeader("Accept",y.dataTypes[0]&&y.accepts[y.dataTypes[0]]?y.accepts[y.dataTypes[0]]+("*"!==y.dataTypes[0]?", "+It+"; q=0.01":""):y.accepts["*"]),y.headers)T.setRequestHeader(i,y.headers[i]);if(y.beforeSend&&(!1===y.beforeSend.call(v,T,y)||h))return T.abort();if(u="abort",b.add(y.complete),T.done(y.success),T.fail(y.error),c=$t(Mt,y,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,y]),h)return T;y.async&&0<y.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},y.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(y,T,n)),!i&&-1<E.inArray("script",y.dataTypes)&&E.inArray("json",y.dataTypes)<0&&(y.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(y,s,T,i),i?(y.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(E.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(E.etag[f]=u)),204===e||"HEAD"===y.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(v,[o,l,T]):x.rejectWith(v,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,y,i?o:a]),b.fireWith(v,[T,l]),g&&(m.trigger("ajaxComplete",[T,y]),--E.active||E.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],function(e,i){E[i]=function(e,t,n,r){return m(t)&&(r=r||n,n=t,t=void 0),E.ajax(E.extend({url:e,type:i,dataType:r,data:t,success:n},E.isPlainObject(e)&&e))}}),E.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return m(n)?this.each(function(e){E(this).wrapInner(n.call(this,e))}):this.each(function(){var e=E(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=m(t);return this.each(function(e){E(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=E.ajaxSettings.xhr();v.cors=!!zt&&"withCredentials"in zt,v.ajax=zt=!!zt,E.ajaxTransport(function(i){var o,a;if(v.cors||zt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(_t[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),E.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),E.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 E.globalEval(e),e}}}),E.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),E.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=E("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),S.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||E.expando+"_"+Ct.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||E.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?E(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Ut=S.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),E.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,t.head.appendChild(r)):t=S),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&E(o).remove(),E.merge([],i.childNodes)));var r,i,o},E.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=yt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&E.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?E("<div>").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.expr.pseudos.animated=function(t){return E.grep(E.timers,function(e){return t===e.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=E.css(e,"position"),c=E(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=E.css(e,"top"),u=E.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},E.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){E.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===E.css(e,"position"))e=e.offsetParent;return e||re})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;E.fn[t]=function(e){return B(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),E.each(["top","left"],function(e,n){E.cssHooks[n]=_e(v.pixelPosition,function(e,t){if(t)return t=Be(e,n),Pe.test(t)?E(e).position()[n]+"px":t})}),E.each({Height:"height",Width:"width"},function(a,s){E.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){E.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return B(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?E.css(e,t,i):E.style(e,t,n,i)},s,n?e:void 0,n)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.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,r){return this.on(t,e,n,r)},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)}}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){E.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var Gt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;E.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||E.guid++,i},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=A,E.isFunction=m,E.isWindow=x,E.camelCase=X,E.type=w,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},E.trim=function(e){return null==e?"":(e+"").replace(Gt,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return E});var Yt=C.jQuery,Qt=C.$;return E.noConflict=function(e){return C.$===E&&(C.$=Qt),e&&C.jQuery===E&&(C.jQuery=Yt),E},"undefined"==typeof e&&(C.jQuery=C.$=E),E});
3
+ ;
4
+ /**
5
+ * DO NOT EDIT THIS FILE.
6
+ * See the following change record for more information,
7
+ * https://www.drupal.org/node/2815083
8
+ * @preserve
9
+ **/
10
+ if (!Element.prototype.matches) {
11
+ Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
12
+ };
13
+ /**
14
+ * DO NOT EDIT THIS FILE.
15
+ * See the following change record for more information,
16
+ * https://www.drupal.org/node/2815083
17
+ * @preserve
18
+ **/
19
+ if (typeof Object.assign !== 'function') {
20
+ Object.defineProperty(Object, 'assign', {
21
+ value: function assign(target, varArgs) {
22
+ 'use strict';
23
+
24
+ if (target === null || target === undefined) {
25
+ throw new TypeError('Cannot convert undefined or null to object');
26
+ }
27
+ var to = Object(target);
28
+ for (var index = 1; index < arguments.length; index++) {
29
+ var nextSource = arguments[index];
30
+ if (nextSource !== null && nextSource !== undefined) {
31
+ for (var nextKey in nextSource) {
32
+ if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
33
+ to[nextKey] = nextSource[nextKey];
34
+ }
35
+ }
36
+ }
37
+ }
38
+ return to;
39
+ },
40
+ writable: true,
41
+ configurable: true
42
+ });
43
+ };
44
+ /**
45
+ * DO NOT EDIT THIS FILE.
46
+ * See the following change record for more information,
47
+ * https://www.drupal.org/node/2815083
48
+ * @preserve
49
+ **/
50
+ if (window.NodeList && !NodeList.prototype.forEach) {
51
+ NodeList.prototype.forEach = Array.prototype.forEach;
52
+ };
53
+ /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
54
+ ;(function(root, factory) {
55
+ // https://github.com/umdjs/umd/blob/master/returnExports.js
56
+ if (typeof exports == 'object') {
57
+ // For Node.js.
58
+ module.exports = factory(root);
59
+ } else if (typeof define == 'function' && define.amd) {
60
+ // For AMD. Register as an anonymous module.
61
+ define([], factory.bind(root, root));
62
+ } else {
63
+ // For browser globals (not exposing the function separately).
64
+ factory(root);
65
+ }
66
+ }(typeof global != 'undefined' ? global : this, function(root) {
67
+
68
+ if (root.CSS && root.CSS.escape) {
69
+ return root.CSS.escape;
70
+ }
71
+
72
+ // https://drafts.csswg.org/cssom/#serialize-an-identifier
73
+ var cssEscape = function(value) {
74
+ if (arguments.length == 0) {
75
+ throw new TypeError('`CSS.escape` requires an argument.');
76
+ }
77
+ var string = String(value);
78
+ var length = string.length;
79
+ var index = -1;
80
+ var codeUnit;
81
+ var result = '';
82
+ var firstCodeUnit = string.charCodeAt(0);
83
+ while (++index < length) {
84
+ codeUnit = string.charCodeAt(index);
85
+ // Note: there’s no need to special-case astral symbols, surrogate
86
+ // pairs, or lone surrogates.
87
+
88
+ // If the character is NULL (U+0000), then the REPLACEMENT CHARACTER
89
+ // (U+FFFD).
90
+ if (codeUnit == 0x0000) {
91
+ result += '\uFFFD';
92
+ continue;
93
+ }
94
+
95
+ if (
96
+ // If the character is in the range [\1-\1F] (U+0001 to U+001F) or is
97
+ // U+007F, […]
98
+ (codeUnit >= 0x0001 && codeUnit <= 0x001F) || codeUnit == 0x007F ||
99
+ // If the character is the first character and is in the range [0-9]
100
+ // (U+0030 to U+0039), […]
101
+ (index == 0 && codeUnit >= 0x0030 && codeUnit <= 0x0039) ||
102
+ // If the character is the second character and is in the range [0-9]
103
+ // (U+0030 to U+0039) and the first character is a `-` (U+002D), […]
104
+ (
105
+ index == 1 &&
106
+ codeUnit >= 0x0030 && codeUnit <= 0x0039 &&
107
+ firstCodeUnit == 0x002D
108
+ )
109
+ ) {
110
+ // https://drafts.csswg.org/cssom/#escape-a-character-as-code-point
111
+ result += '\\' + codeUnit.toString(16) + ' ';
112
+ continue;
113
+ }
114
+
115
+ if (
116
+ // If the character is the first character and is a `-` (U+002D), and
117
+ // there is no second character, […]
118
+ index == 0 &&
119
+ length == 1 &&
120
+ codeUnit == 0x002D
121
+ ) {
122
+ result += '\\' + string.charAt(index);
123
+ continue;
124
+ }
125
+
126
+ // If the character is not handled by one of the above rules and is
127
+ // greater than or equal to U+0080, is `-` (U+002D) or `_` (U+005F), or
128
+ // is in one of the ranges [0-9] (U+0030 to U+0039), [A-Z] (U+0041 to
129
+ // U+005A), or [a-z] (U+0061 to U+007A), […]
130
+ if (
131
+ codeUnit >= 0x0080 ||
132
+ codeUnit == 0x002D ||
133
+ codeUnit == 0x005F ||
134
+ codeUnit >= 0x0030 && codeUnit <= 0x0039 ||
135
+ codeUnit >= 0x0041 && codeUnit <= 0x005A ||
136
+ codeUnit >= 0x0061 && codeUnit <= 0x007A
137
+ ) {
138
+ // the character itself
139
+ result += string.charAt(index);
140
+ continue;
141
+ }
142
+
143
+ // Otherwise, the escaped character.
144
+ // https://drafts.csswg.org/cssom/#escape-a-character
145
+ result += '\\' + string.charAt(index);
146
+
147
+ }
148
+ return result;
149
+ };
150
+
151
+ if (!root.CSS) {
152
+ root.CSS = {};
153
+ }
154
+
155
+ root.CSS.escape = cssEscape;
156
+ return cssEscape;
157
+
158
+ }));
159
+ ;
160
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}function n(t){W=t}function r(t){z=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof U?function(){U(a)}:c()}function s(){var t=0,e=new H(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t<N;t+=2){var e=Q[t],n=Q[t+1];e(n),Q[t]=void 0,Q[t+1]=void 0}N=0}function f(){try{var t=Function("return this")().require("vertx");return U=t.runOnLoop||t.runOnContext,i()}catch(e){return c()}}function l(t,e){var n=this,r=new this.constructor(p);void 0===r[V]&&x(r);var o=n._state;if(o){var i=arguments[o-1];z(function(){return T(o,r,i,n._result)})}else j(n,r,t,e);return r}function h(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(p);return w(n,t),n}function p(){}function v(){return new TypeError("You cannot resolve a promise with itself")}function d(){return new TypeError("A promises callback cannot return that same promise.")}function _(t,e,n,r){try{t.call(e,n,r)}catch(o){return o}}function y(t,e,n){z(function(t){var r=!1,o=_(n,e,function(n){r||(r=!0,e!==n?w(t,n):A(t,n))},function(e){r||(r=!0,S(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,S(t,o))},t)}function m(t,e){e._state===Z?A(t,e._result):e._state===$?S(t,e._result):j(e,void 0,function(e){return w(t,e)},function(e){return S(t,e)})}function b(t,n,r){n.constructor===t.constructor&&r===l&&n.constructor.resolve===h?m(t,n):void 0===r?A(t,n):e(r)?y(t,n,r):A(t,n)}function w(e,n){if(e===n)S(e,v());else if(t(n)){var r=void 0;try{r=n.then}catch(o){return void S(e,o)}b(e,n,r)}else A(e,n)}function g(t){t._onerror&&t._onerror(t._result),E(t)}function A(t,e){t._state===X&&(t._result=e,t._state=Z,0!==t._subscribers.length&&z(E,t))}function S(t,e){t._state===X&&(t._state=$,t._result=e,z(g,t))}function j(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+Z]=n,o[i+$]=r,0===i&&t._state&&z(E,t)}function E(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,s=0;s<e.length;s+=3)r=e[s],o=e[s+n],r?T(n,r,o,i):o(i);t._subscribers.length=0}}function T(t,n,r,o){var i=e(r),s=void 0,u=void 0,c=!0;if(i){try{s=r(o)}catch(a){c=!1,u=a}if(n===s)return void S(n,d())}else s=o;n._state!==X||(i&&c?w(n,s):c===!1?S(n,u):t===Z?A(n,s):t===$&&S(n,s))}function M(t,e){try{e(function(e){w(t,e)},function(e){S(t,e)})}catch(n){S(t,n)}}function P(){return tt++}function x(t){t[V]=tt++,t._state=void 0,t._result=void 0,t._subscribers=[]}function C(){return new Error("Array Methods must be provided an Array")}function O(t){return new et(this,t).promise}function k(t){var e=this;return new e(L(t)?function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}:function(t,e){return e(new TypeError("You must pass an array to race."))})}function F(t){var e=this,n=new e(p);return S(n,t),n}function Y(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function D(){var t=void 0;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(e){}if("[object Promise]"===r&&!n.cast)return}t.Promise=nt}var K=void 0;K=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var L=K,N=0,U=void 0,W=void 0,z=function(t,e){Q[N]=t,Q[N+1]=e,N+=2,2===N&&(W?W(a):R())},B="undefined"!=typeof window?window:void 0,G=B||{},H=G.MutationObserver||G.WebKitMutationObserver,I="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),J="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Q=new Array(1e3),R=void 0;R=I?o():H?s():J?u():void 0===B&&"function"==typeof require?f():c();var V=Math.random().toString(36).substring(2),X=void 0,Z=1,$=2,tt=0,et=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(p),this.promise[V]||x(this.promise),L(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&A(this.promise,this._result))):S(this.promise,C())}return t.prototype._enumerate=function(t){for(var e=0;this._state===X&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===h){var o=void 0,i=void 0,s=!1;try{o=t.then}catch(u){s=!0,i=u}if(o===l&&t._state!==X)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===nt){var c=new n(p);s?S(c,i):b(c,t,o),this._willSettleAt(c,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===X&&(this._remaining--,t===$?S(r,n):this._result[e]=n),0===this._remaining&&A(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;j(t,void 0,function(t){return n._settledAt(Z,e,t)},function(t){return n._settledAt($,e,t)})},t}(),nt=function(){function t(e){this[V]=P(),this._result=this._state=void 0,this._subscribers=[],p!==e&&("function"!=typeof e&&Y(),this instanceof t?M(this,e):q())}return t.prototype["catch"]=function(t){return this.then(null,t)},t.prototype["finally"]=function(t){var n=this,r=n.constructor;return e(t)?n.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):n.then(t,t)},t}();return nt.prototype.then=l,nt.all=O,nt.race=k,nt.resolve=h,nt.reject=F,nt._setScheduler=n,nt._setAsap=r,nt._asap=z,nt.polyfill=D,nt.Promise=nt,nt.polyfill(),nt});;
161
+ /*! @drupal/once - v1.0.1 - 2021-06-12 */
162
+ var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}();
163
+
164
+ ;
165
+ /*!
166
+ * jQuery Once v2.2.3 - http://github.com/robloach/jquery-once
167
+ * @license MIT, GPL-2.0
168
+ * http://opensource.org/licenses/MIT
169
+ * http://opensource.org/licenses/GPL-2.0
170
+ */
171
+ (function(e){"use strict";if(typeof exports==="object"&&typeof exports.nodeName!=="string"){e(require("jquery"))}else if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(t){"use strict";var r=function(e){e=e||"once";if(typeof e!=="string"){throw new TypeError("The jQuery Once id parameter must be a string")}return e};t.fn.once=function(e){var n="jquery-once-"+r(e);return this.filter(function(){return t(this).data(n)!==true}).data(n,true)};t.fn.removeOnce=function(e){return this.findOnce(e).removeData("jquery-once-"+r(e))};t.fn.findOnce=function(e){var n="jquery-once-"+r(e);return this.filter(function(){return t(this).data(n)===true})}});
172
+
173
+ /**
174
+ * DO NOT EDIT THIS FILE.
175
+ * See the following change record for more information,
176
+ * https://www.drupal.org/node/2815083
177
+ * @preserve
178
+ **/
179
+ (function () {
180
+ var settingsElement = document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');
181
+ window.drupalSettings = {};
182
+ if (settingsElement !== null) {
183
+ window.drupalSettings = JSON.parse(settingsElement.textContent);
184
+ }
185
+ })();;
186
+ window.drupalTranslations = {"strings":{"":{"Default":"Default","An AJAX HTTP error occurred.":"Er is een AJAX HTTP fout opgetreden.","HTTP Result Code: !status":"HTTP-resultaatcode: !status","An AJAX HTTP request terminated abnormally.":"Een AJAX HTTP-aanvraag is onverwacht afgebroken","Debugging information follows.":"Debug informatie volgt.","Path: !uri":"Pad: !uri","StatusText: !statusText":"Statustekst: !statusText","ResponseText: !responseText":"Antwoordtekst: !responseText","ReadyState: !readyState":"ReadyState: !readyState","CustomMessage: !customMessage":"CustomMessage: !customMessage","Please wait...":"Even geduld...","The response failed verification so will not be processed.":"Het antwoord kon niet geverifieerd worden en zal daarom niet worden verwerkt.","The callback URL is not local and not trusted: !url":"De callback-URL is niet lokaal en vertrouwd: !url","Changed":"Changed","Home":"Home","Next":"Volgende","Delete":"Delete","closed":"gesloten","Cancel":"Annuleren","Disabled":"Uitgeschakeld","Enabled":"Ingeschakeld","File":"Bestand","Edit":"Edit","Date":"Datum","Size":"Size","Link":"Link","Image":"Image","root":"root","Name":"Name","Open":"Open","Add":"Toevoegen","Refresh":"Verversen","Upload":"Uploaden","Continue":"Doorgaan","Create":"Aanmaken","Width":"Breedte","Height":"Hoogte","Close":"Sluiten","Add group":"Groep toevoegen","Show":"Weergeven","1 item\u0003@count items":"1 item\u0003@count items","Select all rows in this table":"Selecteer alle regels van deze tabel","Deselect all rows in this table":"De-selecteer alle regels van deze tabel","Caption":"Onderschrift","Extend":"Uitbreiding","Not published":"Niet gepubliceerd","Loading...":"Bezig met laden...","Apply":"Apply","Select":"Selecteren","Hide":"Verbergen","Unlink":"Link verwijderen","Resize":"Afmetingen aanpassen","Not promoted":"Niet aangeraden","Error message":"Foutmelding","button":"knop","Warning message":"Waarschuwingsbericht","Only files with the following extensions are allowed: %files-allowed.":"Uitsluitend bestanden met de volgende extensies zijn toegelaten: %files-allowed.","Edit Link":"Link bewerken","Remove group":"Groep verwijderen","By @name on @date":"Door @name op @date","By @name":"Door @name","Not in menu":"Niet in een menu","Alias: @alias":"Alias: @alias","No alias":"Geen alias","@label":"@label","New revision":"Nieuwe revisie","Drag to re-order":"Slepen om de volgorde te wijzigen","Changes made in this table will not be saved until the form is submitted.":"Wijzigingen in deze tabel worden pas opgeslagen wanneer het formulier wordt ingediend.","1 byte\u0003@count bytes":"1 byte\u0003@count bytes","@size KB":"@size kB","@size MB":"@size MB","Show description":"Beschrijving tonen","New group":"Nieuwe groep","This permission is inherited from the authenticated user role.":"Dit toegangsrecht is overgenomen van de rol \u0027geverifieerde gebruiker\u0027.","Requires a title":"Een titel is verplicht","Not restricted":"Geen beperking","(active tab)":"(actieve tabblad)","Status message":"Statusbericht","Restricted to certain pages":"Beperkt tot bepaalde pagina\u0027s","The block cannot be placed in this region.":"Het blok kan niet worden geplaatst in dit gebied.","Hide summary":"Samenvatting verbergen","Edit summary":"Samenvatting bewerken","Don\u0027t display post information":"Geen berichtinformatie weergeven","Collapse":"Inklappen","Edit media":"Media bewerken","The selected file %filename cannot be uploaded. Only files with the following extensions are allowed: %extensions.":"Het bestand %filename kan niet ge\u00fcpload worden. Alleen bestanden met de volgende extensies zijn toegestaan: %extensions","Show row weights":"Gewicht van rijen tonen","Hide row weights":"Gewicht van rij verbergen","Apply (all displays)":"Toepassen (alle weergaven)","Apply (this display)":"Toepassen (deze weergave)","Revert to default":"Terugzetten naar standaard","Hide description":"Beschrijving verbergen","Needs to be updated":"Moet worden bijgewerkt","Does not need to be updated":"Hoeft niet te worden bijgewerkt","Show all columns":"Alle kolommen tonen","Show table cells that were hidden to make the table fit within a small screen.":"Toon de tabelcellen die verborgen werden om de tabel te laten passen op een klein scherm.","List additional actions":"Aanvullende acties weergeven","Flag other translations as outdated":"Markeer andere vertalingen als verouderd","Do not flag other translations as outdated":"Markeer andere vertalingen niet als verouderd","opened":"geopend","Horizontal orientation":"Horizontale ori\u00ebntatie","Vertical orientation":"Verticale ori\u00ebntatie","Tray orientation changed to @orientation.":"Ori\u00ebntatie van de lade aangepast naar @orientation.","You have unsaved changes.":"Er zijn niet-opgeslagen wijzigingen.","No styles configured":"Geen stijlen ingesteld","@count styles configured":"@count stijlen ingesteld","@action @title configuration options":"@action @title configuratie-instellingen","Tabbing is no longer constrained by the Contextual module.":"Gebruik van tab-toets is niet langer beperkt tot de contextuele links.","Tabbing is constrained to a set of @contextualsCount and the edit mode toggle.":"Gebruik van de tab-toets is beperkt tot een set van @contextualsCount en het wisselen van de bewerkenmodus.","Press the esc key to exit.":"Druk op de ESC-toets om af te sluiten.","@count contextual link\u0003@count contextual links":"@count contextuele link\u0003@count contextuele links","Based on the text editor configuration, these tags have automatically been added: \u003Cstrong\u003E@tag-list\u003C\/strong\u003E.":"Op basis van de configuratie van de teksteditor zijn de volgende elementen automatisch toegevoegd: \u003Cstrong\u003E@tag-list\u003C\/strong\u003E.","!tour_item of !total":"!tour_item van !total","End tour":"Rondleiding be\u00ebindigen","Uploads disabled":"Uploads uitgeschakeld","Uploads enabled, max size: @size @dimensions":"Uploads ingeschakeld, maximale grootte: @size @dimensions","The toolbar cannot be set to a horizontal orientation when it is locked.":"Als de werkbalk geblokkeerd is kan deze niet op horizontale ori\u00ebntatie gezet worden.","Enter caption here":"Bijschrift hier invoeren","Hide group names":"Groepsnamen verbergen","Show group names":"Groepsnamen weergeven","@groupName button group in position @position of @positionCount in row @row of @rowCount.":"Knopgroep @groupName in positie @position van @positionCount in rij @row van @rowCount.","@name @type.":"@name @type.","Press the down arrow key to activate.":"Druk op de toets \u0027pijl omlaag\u0027 om te activeren.","@name @type in position @position of @positionCount in @groupName button group in row @row of @rowCount.":"@type @name in positie @position van @positionCount in @groupName knopgroep in rij @row van @rowCount.","Press the down arrow key to create a new button group in a new row.":"Druk op de toets \u0027pijl omlaag\u0027 om een nieuwe knopgroep aan te maken in een nieuwe rij.","This is the last group. Move the button forward to create a new group.":"Dit is de laatste groep. Verplaats de knop vooruit om een nieuwe groep aan te maken.","The \u0022@name\u0022 button is currently enabled.":"De knop \u0027@name\u0027 is momenteel ingeschakeld.","Use the keyboard arrow keys to change the position of this button.":"Gebruik de pijltoetsen om de positie van deze knop te veranderen.","Press the up arrow key on the top row to disable the button.":"Gebruik de toets \u0027omhoog\u0027 in de bovenste regel om de knop uit te schakelen.","The \u0022@name\u0022 button is currently disabled.":"De knop \u0027@name\u0027 is momenteel uitgeschakeld.","Use the down arrow key to move this button into the active toolbar.":"Gebruik de toets \u0027omlaag\u0027 om de knop naar de actieve werkbalk te verplaatsen.","This @name is currently enabled.":"Deze @name is momenteel ingeschakeld.","Use the keyboard arrow keys to change the position of this separator.":"Gebruik de pijltoetsen van het toetsenbord om de knopscheider te verplaatsen.","Separators are used to visually split individual buttons.":"Knopscheiders worden gebruikt om knoppen visueel te scheiden.","This @name is currently disabled.":"Deze @name is momenteel uitgeschakeld.","Use the down arrow key to move this separator into the active toolbar.":"Gebruik de toets \u0027omlaag\u0027 om de knopscheider naar de actieve werkbalk te verplaatsen.","You may add multiple separators to each button group.":"Er kunnen meerdere knopscheiders in \u00e9\u00e9n knoppengroep worden gebruikt.","Please provide a name for the button group.":"Voer een naam voor de knoppengroep in.","Button group name":"Knopgroepnaam","Editing the name of the new button group in a dialog.":"De naam van een nieuwe knoppengroep in een dialoogvenster bewerken.","Editing the name of the \u0022@groupName\u0022 button group in a dialog.":"De naam van de knoppengroep \u0027@groupName\u0027 in een dialoogvenster bewerken.","Place a button to create a new button group.":"Plaats een knop om een nieuwe knopgroep aan te maken.","Add a CKEditor button group to the end of this row.":"Een CKEditor-knoppengroep aan het einde van deze regel toevoegen.","Changing the text format to %text_format will permanently remove content that is not allowed in that text format.\u003Cbr\u003E\u003Cbr\u003ESave your changes before switching the text format to avoid losing data.":"Wijzigen van de tekstopmaak naar %text_format zal inhoud die niet toegestaan is in die opmaak permanent verwijderen.\u003Cbr\u003E\u003Cbr\u003ESla uw wijzigingen op voordat u de tekstopmaak omschakelt, om gegevensverlies te voorkomen.","Change text format?":"Tekstopmaak aanpassen?","Rich Text Editor, !label field":"Opgemaakte tekst-editor, veld !label","Leave preview?":"Voorbeeldweergave verlaten?","Leave preview":"Voorbeeldweergave verlaten","Leaving the preview will cause unsaved changes to be lost. Are you sure you want to leave the preview?":"Het verlaten van de voorbeeldweergave betekent dat nog niet opgeslagen wijzigingen verloren gaan. Weet u zeker dat u de voorbeeldweergave wilt verlaten?","CTRL+Left click will prevent this dialog from showing and proceed to the clicked link.":"CTRL+klik om deze dialoog over te slaan en direct naar de link te gaan.","Tray \u0022@tray\u0022 @action.":"Lade \u0027@tray\u0027 @action.","Tray @action.":"Lade @action.","Hide lower priority columns":"Kolommen met een lagere prioriteit verbergen","!modules modules are available in the modified list.":"!modules modules zijn beschikbaar in de aangepaste lijst.","Authored on @date":"Aangemaakt op @date","1 block is available in the modified list.\u0003@count blocks are available in the modified list.":"1 blok beschikbaar in de lijst met wijzigingen.\u0003@count blokken beschikbaar in de lijst met wijzigingen.","Zero items selected":"Geen items geselecteerd","All @count items selected":"Alle @count items geselecteerd","Select all media":"Selecteer alle media","Show media item weights":"Toon gewicht van media-items","Hide media item weights":"Gewicht van media-items verbergen","An error occurred while trying to preview the media. Please save your work and reload this page.":"Er ging iets fout bij het voorvertonen van de media. Sla uw werk op en herlaad deze pagina alstublieft.","Embedded media":"Ingesloten media","Insert from Media Library":"Invoegen uit de Mediabibliotheek","Press the down arrow key to create a new row.":"Gebruik de \u0027pijl naar beneden\u0027-toets voor het aanmaken van een nieuwe rij.","No revision":"Geen revisie","New folder":"Nieuwe map","Folder name":"Mapnaam","Add file":"Bestand toevoegen","Create a copy":"Een kopie maken","Please select a file.":"Selecteer a.u.b. een bestand.","Use the selected file.":"Het geselecteerde bestand gebruiken.","%filename is not allowed.":"%filename is niet toegestaan.","%name is not an image.":"%name is geen afbeelding.","Delete !filename?\u0003Delete the selected @count items?":"!filename verwijderen?\u0003De geselecteerde @count items verwijderen?","%filename already exists.":"%filename bestaat al.","Collapse all":"Alles inklappen","Add above":"Boven toevoegen","Insert this token into your form":"Plaats deze token in uw formulier","First click a text field to insert your tokens into.":"Klik eerst een tekstveld aan om uw tokens in te plaatsen.","Automatic alias":"Automatische alias","item":"item","items":"items","Expand all":"Alles uitklappen","Toggle details widget state.":"Widget detailstatus schakelen.","All details have been expanded.":"Alle details zijn uitgeklapt.","All details have been collapsed.":"Alle details zijn ingeklapt.","No results":"Geen resultaten","Scheduled for publishing":"Gepland voor publiceren","Scheduled for unpublishing":"Gepland voor depubliceren","Not scheduled":"Niet ingepland","Publishing enabled":"Publicatie ingeschakeld","Unpublishing enabled":"Depublicatie ingeschakeld","clear":"leegmaken","All modules":"Alle modules","No modules added within the last week.":"Afgelopen week zijn er geen modules toegevoegd.","@enabled of @total":"@enabled van @total","1 module is available in the modified list.\u0003@count modules are available in the modified list.":"1 module is beschikbaar in de aangepaste lijst.\u0003@count modules zijn beschikbaar in de aangepaste lijst.","Recently enabled":"Recent ingeschakeld","Newly available":"Nieuw beschikbaar","No modules installed or uninstalled within the last week.":"De afgelopen week zijn geen modules ge\u00efnstalleerd of verwijderd.","Downloads":"Downloads","Not customizable":"Niet aanpasbaar","Colorbox":"Colorbox","Site search":"Site-zoekfunctie","On by default with opt out":"Standaard ingeschakeld met de mogelijkheid om uit te schrijven","Off by default with opt in":"Standaard uitgeschakeld met de mogelijkheid om in te schrijven","Not tracked":"Niet gevolgd","One domain with multiple subdomains":"E\u00e9n domein met meerdere subdomeinen","All pages with exceptions":"Alle pagina\u0027s met uitzonderingen","Excepted: @roles":"Uitgezonderd: @roles","A single domain":"Een enkel domein","No privacy":"Geen privacy","@items enabled":"@items ingeschakeld","Outbound links":"Externe links","Mailto links":"Mailto-links","Rename":"Naam wijzigen","New name":"Nieuwe naam","An error occurred during the execution of the Ajax response: !error":"Er is een fout opgetreden bij het uitvoeren van een Ajax-verzoek: !error","The following files could not be loaded: @dependencies":"De volgende bestanden konden niet geladen worden: @dependencies"}},"pluralFormula":{"1":0,"default":1}};;
187
+ /**
188
+ * DO NOT EDIT THIS FILE.
189
+ * See the following change record for more information,
190
+ * https://www.drupal.org/node/2815083
191
+ * @preserve
192
+ **/
193
+ window.Drupal = {
194
+ behaviors: {},
195
+ locale: {}
196
+ };
197
+ (function (Drupal, drupalSettings, drupalTranslations, console, Proxy, Reflect) {
198
+ Drupal.throwError = function (error) {
199
+ setTimeout(function () {
200
+ throw error;
201
+ }, 0);
202
+ };
203
+ Drupal.attachBehaviors = function (context, settings) {
204
+ context = context || document;
205
+ settings = settings || drupalSettings;
206
+ var behaviors = Drupal.behaviors;
207
+ Object.keys(behaviors || {}).forEach(function (i) {
208
+ if (typeof behaviors[i].attach === 'function') {
209
+ try {
210
+ behaviors[i].attach(context, settings);
211
+ } catch (e) {
212
+ Drupal.throwError(e);
213
+ }
214
+ }
215
+ });
216
+ };
217
+ Drupal.detachBehaviors = function (context, settings, trigger) {
218
+ context = context || document;
219
+ settings = settings || drupalSettings;
220
+ trigger = trigger || 'unload';
221
+ var behaviors = Drupal.behaviors;
222
+ Object.keys(behaviors || {}).forEach(function (i) {
223
+ if (typeof behaviors[i].detach === 'function') {
224
+ try {
225
+ behaviors[i].detach(context, settings, trigger);
226
+ } catch (e) {
227
+ Drupal.throwError(e);
228
+ }
229
+ }
230
+ });
231
+ };
232
+ Drupal.checkPlain = function (str) {
233
+ str = str.toString().replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;');
234
+ return str;
235
+ };
236
+ Drupal.formatString = function (str, args) {
237
+ var processedArgs = {};
238
+ Object.keys(args || {}).forEach(function (key) {
239
+ switch (key.charAt(0)) {
240
+ case '@':
241
+ processedArgs[key] = Drupal.checkPlain(args[key]);
242
+ break;
243
+ case '!':
244
+ processedArgs[key] = args[key];
245
+ break;
246
+ default:
247
+ processedArgs[key] = Drupal.theme('placeholder', args[key]);
248
+ break;
249
+ }
250
+ });
251
+ return Drupal.stringReplace(str, processedArgs, null);
252
+ };
253
+ Drupal.stringReplace = function (str, args, keys) {
254
+ if (str.length === 0) {
255
+ return str;
256
+ }
257
+ if (!Array.isArray(keys)) {
258
+ keys = Object.keys(args || {});
259
+ keys.sort(function (a, b) {
260
+ return a.length - b.length;
261
+ });
262
+ }
263
+ if (keys.length === 0) {
264
+ return str;
265
+ }
266
+ var key = keys.pop();
267
+ var fragments = str.split(key);
268
+ if (keys.length) {
269
+ for (var i = 0; i < fragments.length; i++) {
270
+ fragments[i] = Drupal.stringReplace(fragments[i], args, keys.slice(0));
271
+ }
272
+ }
273
+ return fragments.join(args[key]);
274
+ };
275
+ Drupal.t = function (str, args, options) {
276
+ options = options || {};
277
+ options.context = options.context || '';
278
+ if (typeof drupalTranslations !== 'undefined' && drupalTranslations.strings && drupalTranslations.strings[options.context] && drupalTranslations.strings[options.context][str]) {
279
+ str = drupalTranslations.strings[options.context][str];
280
+ }
281
+ if (args) {
282
+ str = Drupal.formatString(str, args);
283
+ }
284
+ return str;
285
+ };
286
+ Drupal.url = function (path) {
287
+ return drupalSettings.path.baseUrl + drupalSettings.path.pathPrefix + path;
288
+ };
289
+ Drupal.url.toAbsolute = function (url) {
290
+ var urlParsingNode = document.createElement('a');
291
+ try {
292
+ url = decodeURIComponent(url);
293
+ } catch (e) {}
294
+ urlParsingNode.setAttribute('href', url);
295
+ return urlParsingNode.cloneNode(false).href;
296
+ };
297
+ Drupal.url.isLocal = function (url) {
298
+ var absoluteUrl = Drupal.url.toAbsolute(url);
299
+ var protocol = window.location.protocol;
300
+ if (protocol === 'http:' && absoluteUrl.indexOf('https:') === 0) {
301
+ protocol = 'https:';
302
+ }
303
+ var baseUrl = "".concat(protocol, "//").concat(window.location.host).concat(drupalSettings.path.baseUrl.slice(0, -1));
304
+ try {
305
+ absoluteUrl = decodeURIComponent(absoluteUrl);
306
+ } catch (e) {}
307
+ try {
308
+ baseUrl = decodeURIComponent(baseUrl);
309
+ } catch (e) {}
310
+ return absoluteUrl === baseUrl || absoluteUrl.indexOf("".concat(baseUrl, "/")) === 0;
311
+ };
312
+ Drupal.formatPlural = function (count, singular, plural, args, options) {
313
+ args = args || {};
314
+ args['@count'] = count;
315
+ var pluralDelimiter = drupalSettings.pluralDelimiter;
316
+ var translations = Drupal.t(singular + pluralDelimiter + plural, args, options).split(pluralDelimiter);
317
+ var index = 0;
318
+ if (typeof drupalTranslations !== 'undefined' && drupalTranslations.pluralFormula) {
319
+ index = count in drupalTranslations.pluralFormula ? drupalTranslations.pluralFormula[count] : drupalTranslations.pluralFormula.default;
320
+ } else if (args['@count'] !== 1) {
321
+ index = 1;
322
+ }
323
+ return translations[index];
324
+ };
325
+ Drupal.encodePath = function (item) {
326
+ return window.encodeURIComponent(item).replace(/%2F/g, '/');
327
+ };
328
+ Drupal.deprecationError = function (_ref) {
329
+ var message = _ref.message;
330
+ if (drupalSettings.suppressDeprecationErrors === false && typeof console !== 'undefined' && console.warn) {
331
+ console.warn("[Deprecation] ".concat(message));
332
+ }
333
+ };
334
+ Drupal.deprecatedProperty = function (_ref2) {
335
+ var target = _ref2.target,
336
+ deprecatedProperty = _ref2.deprecatedProperty,
337
+ message = _ref2.message;
338
+ if (!Proxy || !Reflect) {
339
+ return target;
340
+ }
341
+ return new Proxy(target, {
342
+ get: function get(target, key) {
343
+ if (key === deprecatedProperty) {
344
+ Drupal.deprecationError({
345
+ message: message
346
+ });
347
+ }
348
+ for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
349
+ rest[_key - 2] = arguments[_key];
350
+ }
351
+ return Reflect.get.apply(Reflect, [target, key].concat(rest));
352
+ }
353
+ });
354
+ };
355
+ Drupal.theme = function (func) {
356
+ if (func in Drupal.theme) {
357
+ var _Drupal$theme;
358
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
359
+ args[_key2 - 1] = arguments[_key2];
360
+ }
361
+ return (_Drupal$theme = Drupal.theme)[func].apply(_Drupal$theme, args);
362
+ }
363
+ };
364
+ Drupal.theme.placeholder = function (str) {
365
+ return "<em class=\"placeholder\">".concat(Drupal.checkPlain(str), "</em>");
366
+ };
367
+ })(Drupal, window.drupalSettings, window.drupalTranslations, window.console, window.Proxy, window.Reflect);;
368
+ /**
369
+ * DO NOT EDIT THIS FILE.
370
+ * See the following change record for more information,
371
+ * https://www.drupal.org/node/2815083
372
+ * @preserve
373
+ **/
374
+ if (window.jQuery) {
375
+ jQuery.noConflict();
376
+ }
377
+ document.documentElement.className += ' js';
378
+ (function (Drupal, drupalSettings) {
379
+ var domReady = function domReady(callback) {
380
+ var listener = function listener() {
381
+ callback();
382
+ document.removeEventListener('DOMContentLoaded', listener);
383
+ };
384
+ if (document.readyState !== 'loading') {
385
+ setTimeout(callback, 0);
386
+ } else {
387
+ document.addEventListener('DOMContentLoaded', listener);
388
+ }
389
+ };
390
+ domReady(function () {
391
+ Drupal.attachBehaviors(document, drupalSettings);
392
+ });
393
+ })(Drupal, window.drupalSettings);;
394
+ /*!
395
+ * tabbable 5.3.3
396
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
397
+ */
398
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.tabbable,o=e.tabbable={};t(o),o.noConflict=function(){return e.tabbable=n,o}}())}(this,(function(e){"use strict";var t=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],n=t.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},a=function(e,t,o){var i=Array.prototype.slice.apply(e.querySelectorAll(n));return t&&r.call(e,n)&&i.unshift(e),i=i.filter(o)},l=function e(t,o,i){for(var a=[],l=Array.from(t);l.length;){var u=l.shift();if("SLOT"===u.tagName){var c=u.assignedElements(),d=e(c.length?c:u.children,!0,i);i.flatten?a.push.apply(a,d):a.push({scope:u,candidates:d})}else{r.call(u,n)&&i.filter(u)&&(o||!t.includes(u))&&a.push(u);var f=u.shadowRoot||"function"==typeof i.getShadowRoot&&i.getShadowRoot(u),s=!i.shadowRootFilter||i.shadowRootFilter(u);if(f&&s){var p=e(!0===f?u.children:f.children,!0,i);i.flatten?a.push.apply(a,p):a.push({scope:u,candidates:p})}else l.unshift.apply(l,u.children)}}return a},u=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},c=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},d=function(e){return"INPUT"===e.tagName},f=function(e){return function(e){return d(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||i(e),o=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=o(window.CSS.escape(e.name));else try{t=o(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},s=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return 0===n&&0===o},p=function(e,t){return!(t.disabled||function(e){return d(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var a=r.call(e,"details>summary:first-of-type")?e.parentElement:e;if(r.call(a,"details:not([open]) *"))return!0;var l=i(e).host,u=(null==l?void 0:l.ownerDocument.contains(l))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return s(e)}else{if("function"==typeof o){for(var c=e;e;){var d=e.parentElement,f=i(e);if(d&&!d.shadowRoot&&!0===o(d))return s(e);e=e.assignedSlot?e.assignedSlot:d||f===e.ownerDocument?d:f.host}e=c}if(u)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if("LEGEND"===o.tagName)return!!r.call(t,"fieldset[disabled] *")||!o.contains(e)}return!0}t=t.parentElement}return!1}(t))},h=function(e,t){return!(f(t)||u(t)<0||!p(e,t))},b=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},m=t.concat("iframe").join(",");e.focusable=function(e,t){return(t=t||{}).getShadowRoot?l([e],t.includeContainer,{filter:p.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a(e,t.includeContainer,p.bind(null,t))},e.isFocusable=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==r.call(e,m)&&p(t,e)},e.isTabbable=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==r.call(e,n)&&h(t,e)},e.tabbable=function(e,t){return function e(t){var n=[],o=[];return t.forEach((function(t,r){var i=!!t.scope,a=i?t.scope:t,l=u(a,i),c=i?e(t.candidates):a;0===l?i?n.push.apply(n,c):n.push(a):o.push({documentOrder:r,tabIndex:l,item:t,isScope:i,content:c})})),o.sort(c).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)}((t=t||{}).getShadowRoot?l([e],t.includeContainer,{filter:h.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:b}):a(e,t.includeContainer,h.bind(null,t)))},Object.defineProperty(e,"__esModule",{value:!0})}));
399
+
400
+ ;
401
+ /*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
402
+ !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(u){var e=function(){if(u&&u.fn&&u.fn.select2&&u.fn.select2.amd)var e=u.fn.select2.amd;var t,n,r,h,o,s,f,g,m,v,y,_,i,a,b;function w(e,t){return i.call(e,t)}function l(e,t){var n,r,i,o,s,a,l,c,u,d,p,h=t&&t.split("/"),f=y.map,g=f&&f["*"]||{};if(e){for(s=(e=e.split("/")).length-1,y.nodeIdCompat&&b.test(e[s])&&(e[s]=e[s].replace(b,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),u=0;u<e.length;u++)if("."===(p=e[u]))e.splice(u,1),--u;else if(".."===p){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;0<u&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((h||g)&&f){for(u=(n=e.split("/")).length;0<u;--u){if(r=n.slice(0,u).join("/"),h)for(d=h.length;0<d;--d)if(i=(i=f[h.slice(0,d).join("/")])&&i[r]){o=i,a=u;break}if(o)break;!l&&g&&g[r]&&(l=g[r],c=u)}!o&&l&&(o=l,a=c),o&&(n.splice(0,a,o),e=n.join("/"))}return e}function A(t,n){return function(){var e=a.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),s.apply(h,e.concat([t,n]))}}function x(t){return function(e){m[t]=e}}function D(e){if(w(v,e)){var t=v[e];delete v[e],_[e]=!0,o.apply(h,t)}if(!w(m,e)&&!w(_,e))throw new Error("No "+e);return m[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function S(e){return e?c(e):[]}return e&&e.requirejs||(e?n=e:e={},m={},v={},y={},_={},i=Object.prototype.hasOwnProperty,a=[].slice,b=/\.js$/,f=function(e,t){var n,r,i=c(e),o=i[0],s=t[1];return e=i[1],o&&(n=D(o=l(o,s))),o?e=n&&n.normalize?n.normalize(e,(r=s,function(e){return l(e,r)})):l(e,s):(o=(i=c(e=l(e,s)))[0],e=i[1],o&&(n=D(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},g={require:function(e){return A(e)},exports:function(e){var t=m[e];return void 0!==t?t:m[e]={}},module:function(e){return{id:e,uri:"",exports:m[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},o=function(e,t,n,r){var i,o,s,a,l,c,u,d=[],p=typeof n;if(c=S(r=r||e),"undefined"==p||"function"==p){for(t=!t.length&&n.length?["require","exports","module"]:t,l=0;l<t.length;l+=1)if("require"===(o=(a=f(t[l],c)).f))d[l]=g.require(e);else if("exports"===o)d[l]=g.exports(e),u=!0;else if("module"===o)i=d[l]=g.module(e);else if(w(m,o)||w(v,o)||w(_,o))d[l]=D(o);else{if(!a.p)throw new Error(e+" missing "+o);a.p.load(a.n,A(r,!0),x(o),{}),d[l]=m[o]}s=n?n.apply(m[e],d):void 0,e&&(i&&i.exports!==h&&i.exports!==m[e]?m[e]=i.exports:s===h&&u||(m[e]=s))}else e&&(m[e]=n)},t=n=s=function(e,t,n,r,i){if("string"==typeof e)return g[e]?g[e](t):D(f(e,S(t)).f);if(!e.splice){if((y=e).deps&&s(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=h}return t=t||function(){},"function"==typeof n&&(n=r,r=i),r?o(h,e,t,n):setTimeout(function(){o(h,e,t,n)},4),s},s.config=function(e){return s(e)},t._defined=m,(r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),w(m,e)||w(v,e)||(v[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=t,e.require=n,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=u||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(o){var i={};function u(e){var t=e.prototype,n=[];for(var r in t){"function"==typeof t[r]&&"constructor"!==r&&n.push(r)}return n}i.Extend=function(e,t){var n={}.hasOwnProperty;function r(){this.constructor=e}for(var i in t)n.call(t,i)&&(e[i]=t[i]);return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},i.Decorate=function(r,i){var e=u(i),t=u(r);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=r.prototype.constructor;0<t&&(e.call(arguments,r.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=r.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var s=t[n];o.prototype[s]=r.prototype[s]}function a(e){var t=function(){};e in o.prototype&&(t=o.prototype[e]);var n=i.prototype[e];return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}for(var l=0;l<e.length;l++){var c=e[l];o.prototype[c]=a(c)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},i.Observable=e,i.generateChars=function(e){for(var t="",n=0;n<e;n++){t+=Math.floor(36*Math.random()).toString(36)}return t},i.bind=function(e,t){return function(){e.apply(t,arguments)}},i._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in r||(r[o]={}),i==n.length-1&&(r[o]=e[t]),r=r[o]}delete e[t]}}return e},i.hasScroll=function(e,t){var n=o(t),r=t.style.overflowX,i=t.style.overflowY;return(r!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===r||"scroll"===i||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},i.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},i.appendMany=function(e,t){if("1.7"===o.fn.jquery.substr(0,3)){var n=o();o.map(t,function(e){n=n.add(e)}),t=n}e.append(t)},i.__cache={};var n=0;return i.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(e.id?(t=e.id,e.setAttribute("data-select2-id",t)):(e.setAttribute("data-select2-id",++n),t=n.toString())),t},i.StoreData=function(e,t,n){var r=i.GetUniqueElementId(e);i.__cache[r]||(i.__cache[r]={}),i.__cache[r][t]=n},i.GetData=function(e,t){var n=i.GetUniqueElementId(e);return t?i.__cache[n]&&null!=i.__cache[n][t]?i.__cache[n][t]:o(e).data(t):i.__cache[n]},i.RemoveData=function(e){var t=i.GetUniqueElementId(e);null!=i.__cache[t]&&delete i.__cache[t],e.removeAttribute("data-select2-id")},i}),e.define("select2/results",["jquery","./utils"],function(h,f){function r(e,t,n){this.$element=e,this.data=n,this.options=t,r.__super__.constructor.call(this)}return f.Extend(r,f.Observable),r.prototype.render=function(){var e=h('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=h('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(t(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},r.prototype.position=function(e,t){t.find(".select2-results").append(e)},r.prototype.sort=function(e){return this.options.get("sorter")(e)},r.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");0<t.length?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},r.prototype.setClasses=function(){var t=this;this.data.current(function(e){var r=h.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=h(this),t=f.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<h.inArray(n,r)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},r.prototype.showLoading=function(e){this.hideLoading();var t={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},n=this.option(t);n.className+=" loading-results",this.$results.prepend(n)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(e){var t=document.createElement("li");t.className="select2-results__option";var n={role:"option","aria-selected":"false"},r=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var i in(null!=e.element&&r.call(e.element,":disabled")||null==e.element&&e.disabled)&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(t.id=e._resultId),e.title&&(t.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[i];t.setAttribute(i,o)}if(e.children){var s=h(t),a=document.createElement("strong");a.className="select2-results__group";h(a);this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],d=this.option(u);l.push(d)}var p=h("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(l),s.append(a),s.append(p)}else this.template(e,t);return f.StoreData(t,"data",e),t},r.prototype.bind=function(t,e){var l=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){l.clear(),l.append(e.data),t.isOpen()&&(l.setClasses(),l.highlightFirstItem())}),t.on("results:append",function(e){l.append(e.data),t.isOpen()&&l.setClasses()}),t.on("query",function(e){l.hideMessages(),l.showLoading(e)}),t.on("select",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(l.setClasses(),l.options.get("scrollAfterSelect")&&l.highlightFirstItem())}),t.on("open",function(){l.$results.attr("aria-expanded","true"),l.$results.attr("aria-hidden","false"),l.setClasses(),l.ensureHighlightVisible()}),t.on("close",function(){l.$results.attr("aria-expanded","false"),l.$results.attr("aria-hidden","true"),l.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=l.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e=l.getHighlightedResults();if(0!==e.length){var t=f.GetData(e[0],"data");"true"==e.attr("aria-selected")?l.trigger("close",{}):l.trigger("select",{data:t})}}),t.on("results:previous",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var i=t.eq(r);i.trigger("mouseenter");var o=l.$results.offset().top,s=i.offset().top,a=l.$results.scrollTop()+(s-o);0===r?l.$results.scrollTop(0):s-o<0&&l.$results.scrollTop(a)}}),t.on("results:next",function(){var e=l.getHighlightedResults(),t=l.$results.find("[aria-selected]"),n=t.index(e)+1;if(!(n>=t.length)){var r=t.eq(n);r.trigger("mouseenter");var i=l.$results.offset().top+l.$results.outerHeight(!1),o=r.offset().top+r.outerHeight(!1),s=l.$results.scrollTop()+o-i;0===n?l.$results.scrollTop(0):i<o&&l.$results.scrollTop(s)}}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){l.displayMessage(e)}),h.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=l.$results.scrollTop(),n=l.$results.get(0).scrollHeight-t+e.deltaY,r=0<e.deltaY&&t-e.deltaY<=0,i=e.deltaY<0&&n<=l.$results.height();r?(l.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):i&&(l.$results.scrollTop(l.$results.get(0).scrollHeight-l.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=h(this),n=f.GetData(this,"data");"true"!==t.attr("aria-selected")?l.trigger("select",{originalEvent:e,data:n}):l.options.get("multiple")?l.trigger("unselect",{originalEvent:e,data:n}):l.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=f.GetData(this,"data");l.getHighlightedResults().removeClass("select2-results__option--highlighted"),l.trigger("results:focus",{data:t,element:h(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find("[aria-selected]").index(e),n=this.$results.offset().top,r=e.offset().top,i=this.$results.scrollTop()+(r-n),o=r-n;i-=2*e.outerHeight(!1),t<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(i)}},r.prototype.template=function(e,t){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=n(e,t);null==i?t.style.display="none":"string"==typeof i?t.innerHTML=r(i):h(t).append(i)},r}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,r,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return r.Extend(o,r.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=r.GetData(this.$element[0],"old-tabindex")?this._tabindex=r.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,r=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&r.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0!==e.length){var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")}else this.clear()},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,l){function n(e,t){n.__super__.constructor.apply(this,arguments)}return l.Extend(n,e),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},n.prototype.bind=function(e,t){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){r.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!r.isDisabled()){var t=i(this).parent(),n=l.GetData(t[0],"data");r.trigger("unselect",{originalEvent:e,data:n})}})},n.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},n.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},n.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>')},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n],i=this.selectionContainer(),o=this.display(r,i);i.append(o);var s=r.title||r.text;s&&i.attr("title",s),l.StoreData(i[0],"data",r),t.push(i)}var a=this.$selection.find(".select2-selection__rendered");l.appendMany(a,t)}},n}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();var r=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(r)},t}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,r,a){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var r=a.GetData(n[0],"data"),i=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var s=0;s<r.length;s++)if(o={data:r[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=r.DELETE&&t.which!=r.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){if(e.call(this,t),!(0<this.$selection.find(".select2-selection__placeholder").length||0===t.length)){var n=this.options.get("translations").get("removeAllItems"),r=i('<span class="select2-selection__clear" title="'+n()+'">&times;</span>');a.StoreData(r[0],"data",t),this.$selection.find(".select2-selection__rendered").prepend(r)}},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(r,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=r('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=t,this.$search=t.find("input");var n=e.call(this);return this._transferTabIndex(),n},e.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),t.on("open",function(){r.$search.attr("aria-controls",i),r.$search.trigger("focus")}),t.on("close",function(){r.$search.val(""),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.trigger("focus")}),t.on("enable",function(){r.$search.prop("disabled",!1),r._transferTabIndex()}),t.on("disable",function(){r.$search.prop("disabled",!0)}),t.on("focus",function(e){r.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){r.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){r._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){if(e.stopPropagation(),r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===r.$search.val()){var t=r.$searchContainer.prev(".select2-selection__choice");if(0<t.length){var n=a.GetData(t[0],"data");r.searchRemoveChoice(n),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){r.$search.val()&&e.stopPropagation()});var o=document.documentMode,s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){s?r.$selection.off("input.search input.searchcheck"):r.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(s&&"input"===e.type)r.$selection.off("input.search input.searchcheck");else{var t=e.which;t!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&r.handleSearch(e)}})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";""!==this.$search.attr("placeholder")?e=this.$selection.find(".select2-selection__rendered").width():e=.75*(this.$search.val().length+1)+"em";this.$search.css("width",e)},e}),e.define("select2/selection/eventRelay",["jquery"],function(s){function e(){}return e.prototype.bind=function(e,t,n){var r=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){if(-1!==s.inArray(e,i)){t=t||{};var n=s.Event("select2:"+e,{params:t});r.$element.trigger(n),-1!==s.inArray(e,o)&&(t.prevented=n.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function r(e){this.dict=e||{}}return r.prototype.all=function(){return this.dict},r.prototype.get=function(e){return this.dict[e]},r.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},r._cache={},r.loadPath=function(e){if(!(e in r._cache)){var t=n(e);r._cache[e]=t}return new r(r._cache[e])},r}),e.define("select2/diacritics",[],function(){return{"â’¶":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ä€":"A","Ä‚":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ç ":"A","Ä":"A","Çž":"A","Ả":"A","Ã…":"A","Ǻ":"A","Ǎ":"A","È€":"A","È‚":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ä„":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ç¢":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","â’·":"B","ï¼¢":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Æ‚":"B","Ɓ":"B","â’¸":"C","ï¼£":"C","Ć":"C","Ĉ":"C","ÄŠ":"C","ÄŒ":"C","Ç":"C","Ḉ":"C","Ƈ":"C","È»":"C","Ꜿ":"C","â’¹":"D","D":"D","Ḋ":"D","ÄŽ":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Æ‹":"D","ÆŠ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","Ç„":"DZ","Dz":"Dz","Ç…":"Dz","â’º":"E","ï¼¥":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ä’":"E","Ḕ":"E","Ḗ":"E","Ä”":"E","Ä–":"E","Ë":"E","Ẻ":"E","Äš":"E","È„":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","ÆŽ":"E","â’»":"F","F":"F","Ḟ":"F","Æ‘":"F","Ꝼ":"F","â’¼":"G","ï¼§":"G","Ç´":"G","Äœ":"G","Ḡ":"G","Äž":"G","Ä ":"G","Ǧ":"G","Ä¢":"G","Ǥ":"G","Æ“":"G","êž ":"G","Ᵹ":"G","Ꝿ":"G","â’½":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Èž":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","â±§":"H","â±µ":"H","Ɥ":"H","â’¾":"I","I":"I","ÃŒ":"I","Í":"I","ÃŽ":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","ÈŠ":"I","Ị":"I","Ä®":"I","Ḭ":"I","Æ—":"I","â’¿":"J","J":"J","Ä´":"J","Ɉ":"J","â“€":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ä¿":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ä»":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","â±¢":"L","â± ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","â“‚":"M","ï¼­":"M","Ḿ":"M","á¹€":"M","Ṃ":"M","â±®":"M","Æœ":"M","Ⓝ":"N","ï¼®":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Å…":"N","Ṋ":"N","Ṉ":"N","È ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","ÇŠ":"NJ","Ç‹":"Nj","â“„":"O","O":"O","Ã’":"O","Ó":"O","Ô":"O","á»’":"O","Ố":"O","á»–":"O","á»”":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","ÅŒ":"O","Ṑ":"O","á¹’":"O","ÅŽ":"O","È®":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ç‘":"O","ÈŒ":"O","ÈŽ":"O","Æ ":"O","Ờ":"O","Ớ":"O","á» ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","ÆŸ":"O","Ꝋ":"O","Ꝍ":"O","Å’":"OE","Æ¢":"OI","Ꝏ":"OO","È¢":"OU","â“…":"P","ï¼°":"P","á¹”":"P","á¹–":"P","Ƥ":"P","â±£":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","ï¼±":"Q","Ꝗ":"Q","Ꝙ":"Q","ÉŠ":"Q","Ⓡ":"R","ï¼²":"R","Å”":"R","Ṙ":"R","Ř":"R","Ȑ":"R","È’":"R","Ṛ":"R","Ṝ":"R","Å–":"R","Ṟ":"R","ÉŒ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","êž‚":"R","Ⓢ":"S","ï¼³":"S","ẞ":"S","Åš":"S","Ṥ":"S","Åœ":"S","á¹ ":"S","Å ":"S","Ṧ":"S","á¹¢":"S","Ṩ":"S","Ș":"S","Åž":"S","â±¾":"S","Ꞩ":"S","êž„":"S","Ⓣ":"T","ï¼´":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Èš":"T","Å¢":"T","á¹°":"T","á¹®":"T","Ŧ":"T","Ƭ":"T","Æ®":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","ï¼µ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ç›":"U","Ç—":"U","Ç•":"U","Ç™":"U","Ủ":"U","Å®":"U","Ű":"U","Ç“":"U","È”":"U","È–":"U","Ư":"U","Ừ":"U","Ứ":"U","á»®":"U","Ử":"U","á»°":"U","Ụ":"U","á¹²":"U","Ų":"U","á¹¶":"U","á¹´":"U","É„":"U","â“‹":"V","ï¼¶":"V","á¹¼":"V","á¹¾":"V","Ʋ":"V","Ꝟ":"V","É…":"V","ê ":"VY","Ⓦ":"W","ï¼·":"W","Ẁ":"W","Ẃ":"W","Å´":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","â±²":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","ï¼¹":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","á»¶":"Y","á»´":"Y","Ƴ":"Y","ÉŽ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Å»":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à ":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","Ç¡":"a","ä":"a","ÇŸ":"a","ả":"a","Ã¥":"a","Ç»":"a","ÇŽ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","Ä…":"a","â±¥":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","Ç£":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","â“‘":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","Æ€":"b","ƃ":"b","É“":"b","â“’":"c","c":"c","ć":"c","ĉ":"c","Ä‹":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","â““":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","Ä‘":"d","ÆŒ":"d","É–":"d","É—":"d","ꝺ":"d","dz":"dz","dž":"dz","â“”":"e","ï½…":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","á»…":"e","ể":"e","ẽ":"e","Ä“":"e","ḕ":"e","ḗ":"e","Ä•":"e","Ä—":"e","ë":"e","ẻ":"e","Ä›":"e","È…":"e","ȇ":"e","ẹ":"e","ệ":"e","È©":"e","ḝ":"e","Ä™":"e","ḙ":"e","ḛ":"e","ɇ":"e","É›":"e","ǝ":"e","â“•":"f","f":"f","ḟ":"f","Æ’":"f","ꝼ":"f","â“–":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ÄŸ":"g","Ä¡":"g","ǧ":"g","Ä£":"g","Ç¥":"g","É ":"g","êž¡":"g","áµ¹":"g","ꝿ":"g","â“—":"h","h":"h","Ä¥":"h","ḣ":"h","ḧ":"h","ÈŸ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","â±¶":"h","É¥":"h","Æ•":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","Ä©":"i","Ä«":"i","Ä­":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","È‹":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","â“™":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","Ç©":"k","ḳ":"k","Ä·":"k","ḵ":"k","Æ™":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","â“›":"l","l":"l","Å€":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","Å¿":"l","Å‚":"l","Æš":"l","É«":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","Å„":"n","ñ":"n","á¹…":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","Æž":"n","ɲ":"n","ʼn":"n","êž‘":"n","ꞥ":"n","ÇŒ":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","á»—":"o","ổ":"o","õ":"o","ṍ":"o","È­":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","È«":"o","ỏ":"o","Å‘":"o","Ç’":"o","ȍ":"o","ȏ":"o","Æ¡":"o","ờ":"o","á»›":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","á»™":"o","Ç«":"o","Ç­":"o","ø":"o","Ç¿":"o","É”":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","Å“":"oe","Æ£":"oi","È£":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","á¹—":"p","Æ¥":"p","áµ½":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","â“ ":"q","q":"q","É‹":"q","ꝗ":"q","ꝙ":"q","â“¡":"r","ï½’":"r","Å•":"r","á¹™":"r","Å™":"r","È‘":"r","È“":"r","á¹›":"r","ṝ":"r","Å—":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","êž§":"r","ꞃ":"r","â“¢":"s","s":"s","ß":"s","Å›":"s","á¹¥":"s","ŝ":"s","ṡ":"s","Å¡":"s","á¹§":"s","á¹£":"s","ṩ":"s","È™":"s","ÅŸ":"s","È¿":"s","êž©":"s","êž…":"s","ẛ":"s","â“£":"t","ï½”":"t","ṫ":"t","ẗ":"t","Å¥":"t","á¹­":"t","È›":"t","Å£":"t","á¹±":"t","ṯ":"t","ŧ":"t","Æ­":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","Å©":"u","á¹¹":"u","Å«":"u","á¹»":"u","Å­":"u","ü":"u","Çœ":"u","ǘ":"u","Ç–":"u","Çš":"u","á»§":"u","ů":"u","ű":"u","Ç”":"u","È•":"u","È—":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","á»­":"u","á»±":"u","ụ":"u","á¹³":"u","ų":"u","á¹·":"u","á¹µ":"u","ʉ":"u","â“¥":"v","ï½–":"v","á¹½":"v","ṿ":"v","Ê‹":"v","ꝟ":"v","ÊŒ":"v","ꝡ":"vy","ⓦ":"w","ï½—":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","â±³":"w","â“§":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ï½™":"y","ỳ":"y","ý":"y","Å·":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","á»·":"y","ẙ":"y","ỵ":"y","Æ´":"y","ɏ":"y","ỿ":"y","â“©":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","È¥":"z","É€":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","ÎŒ":"Ο","ÎŽ":"Î¥","Ϋ":"Î¥","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ÏŠ":"ι","ΐ":"ι","ÏŒ":"ο","ύ":"Ï…","Ï‹":"Ï…","ΰ":"Ï…","ÏŽ":"ω","Ï‚":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(r){function n(e,t){n.__super__.constructor.call(this)}return r.Extend(n,r.Observable),n.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},n.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},n.prototype.bind=function(e,t){},n.prototype.destroy=function(){},n.prototype.generateResultId=function(e,t){var n=e.id+"-result-";return n+=r.generateChars(4),null!=t.id?n+="-"+t.id.toString():n+="-"+r.generateChars(4),n},n}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var n=[],r=this;this.$element.find(":selected").each(function(){var e=l(this),t=r.item(e);n.push(t)}),e(n)},n.prototype.select=function(i){var o=this;if(i.selected=!0,l(i.element).is("option"))return i.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var r=i[n].id;-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")});else{var e=i.id;this.$element.val(e),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(i){var o=this;if(this.$element.prop("multiple")){if(i.selected=!1,l(i.element).is("option"))return i.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].id;r!==i.id&&-1===l.inArray(r,t)&&t.push(r)}o.$element.val(t),o.$element.trigger("input").trigger("change")})}},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(r,e){var i=[],o=this;this.$element.children().each(function(){var e=l(this);if(e.is("option")||e.is("optgroup")){var t=o.item(e),n=o.matches(r,t);null!==n&&i.push(n)}}),e({results:i})},n.prototype.addOptions=function(e){a.appendMany(this.$element,e)},n.prototype.option=function(e){var t;e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var n=l(t),r=this._normalizeItem(e);return r.element=t,a.StoreData(t,"data",r),n},n.prototype.item=function(e){var t={};if(null!=(t=a.GetData(e[0],"data")))return t;if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){t={text:e.prop("label"),children:[],title:e.prop("title")};for(var n=e.children("option"),r=[],i=0;i<n.length;i++){var o=l(n[i]),s=this.item(o);r.push(s)}t.children=r}return(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t),t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,f,g){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return f.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var e=this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()});0===e.length&&(e=this.option(n),this.addOptions(e)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),r=n.map(function(){return t.item(g(this)).id}).get(),i=[];function o(e){return function(){return g(this).val()==e.id}}for(var s=0;s<e.length;s++){var a=this._normalizeItem(e[s]);if(0<=g.inArray(a.id,r)){var l=n.filter(o(a)),c=this.item(l),u=g.extend(!0,{},a,c),d=this.option(u);l.replaceWith(d)}else{var p=this.option(a);if(a.children){var h=this.convertToOptions(a.children);f.appendMany(p,h)}i.push(p)}}return i},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){var r=o.ajax(e);return r.then(t),r.fail(n),r}};return o.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(n,r){var i=this;null!=this._request&&(o.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var t=o.extend({type:"GET"},this.ajaxOptions);function e(){var e=t.transport(t,function(e){var t=i.processResults(e,n);i.options.get("debug")&&window.console&&console.error&&(t&&t.results&&o.isArray(t.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),r(t)},function(){"status"in e&&(0===e.status||"0"===e.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof t.url&&(t.url=t.url.call(this.$element,n)),"function"==typeof t.data&&(t.data=t.data.call(this.$element,n)),this.ajaxOptions.delay&&null!=n.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),e.define("select2/data/tags",["jquery"],function(u){function e(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var o=n.get("insertTag");if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),u.isArray(r))for(var s=0;s<r.length;s++){var a=r[s],l=this._normalizeItem(a),c=this.option(l);this.$element.append(c)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null!=c.term&&null==c.page?e.call(this,c,function e(t,n){for(var r=t.results,i=0;i<r.length;i++){var o=r[i],s=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||s)return!n&&(t.data=r,void u(t))}if(n)return!0;var a=d.createTag(c);if(null!=a){var l=d.option(a);l.attr("data-select2-tag",!0),d.addOptions([l]),d.insertTag(r,a)}t.results=r,u(t)}):e.call(this,c,u)},e.prototype.createTag=function(e,t){var n=u.trim(t.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||u(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(d){function e(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var i=this;t.term=t.term||"";var r=this.tokenizer(t,this.options,function(e){var t,n=i._normalizeItem(e);if(!i.$element.find("option").filter(function(){return d(this).val()===n.id}).length){var r=i.option(n);r.attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([r])}t=n,i.trigger("select",{data:t})});r.term!==t.term&&(this.$search.length&&(this.$search.val(r.term),this.$search.trigger("focus")),t.term=r.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,r){for(var i=n.get("tokenSeparators")||[],o=t.term,s=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var l=o[s];if(-1!==d.inArray(l,i)){var c=o.substr(0,s),u=a(d.extend({},t,{term:c}));null!=u?(r(u),o=o.substr(s+1)||"",s=0):s++}else s++}return{term:o}},e}),e.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,n){var r=this;this.current(function(e){var t=null!=e?e.length:0;0<r.maximumSelectionLength&&t>=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):n&&n()})},e}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),t.prepend(n),t},t.prototype.bind=function(e,t,n){var r=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){r.trigger("keypress",e),r._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){r.handleSearch(e)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",i),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||r.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(r.showSearch(e)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?r.$search.attr("aria-activedescendant",e.data._resultId):r.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;0<=r;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&e){var t=this.$results.offset().top+this.$results.outerHeight(!1);this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=t+50&&this.loadMore()}},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(f,a){function e(e,t,n){this.$dropdownParent=f(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=f("<span></span>"),n=e.call(this);return t.append(n),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},e.prototype._attachPositioningHandler=function(e,t){var n=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,o="orientationchange.select2."+t.id,s=this.$container.parents().filter(a.hasScroll);s.each(function(){a.StoreData(this,"select2-scroll-position",{x:f(this).scrollLeft(),y:f(this).scrollTop()})}),s.on(r,function(e){var t=a.GetData(this,"select2-scroll-position");f(this).scrollTop(t.y)}),f(window).on(r+" "+i+" "+o,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(n),f(window).off(n+" "+r+" "+i)},e.prototype._positionDropdown=function(){var e=f(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=i.top,o.bottom=i.top+o.height;var s=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),c=a<i.top-s,u=l>i.bottom+s,d={left:i.left,top:o.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h={top:0,left:0};(f.contains(document.body,p[0])||p[0].isConnected)&&(h=p.offset()),d.top-=h.top,d.left-=h.left,t||n||(r="below"),u||!c||t?!c&&u&&t&&(r="below"):r="above",("above"==r||t&&"below"!==r)&&(d.top=o.top-h.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(d)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",["../utils"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){var n=t.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var i=o.GetData(r[0],"data");null!=i.element&&i.element.selected||null==i.element&&i.selected||this.trigger("select",{data:i})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(c,u,d,p,h,f,g,m,v,y,s,t,_,$,b,w,A,x,D,S,E,C,O,T,q,L,I,j,e){function n(){this.reset()}return n.prototype.apply=function(e){if(null==(e=c.extend(!0,{},this.defaults,e)).dataAdapter){if(null!=e.ajax?e.dataAdapter=b:null!=e.data?e.dataAdapter=$:e.dataAdapter=_,0<e.minimumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,x)),0<e.maximumInputLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,D)),0<e.maximumSelectionLength&&(e.dataAdapter=y.Decorate(e.dataAdapter,S)),e.tags&&(e.dataAdapter=y.Decorate(e.dataAdapter,w)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=y.Decorate(e.dataAdapter,A)),null!=e.query){var t=u(e.amdBase+"compat/query");e.dataAdapter=y.Decorate(e.dataAdapter,t)}if(null!=e.initSelection){var n=u(e.amdBase+"compat/initSelection");e.dataAdapter=y.Decorate(e.dataAdapter,n)}}if(null==e.resultsAdapter&&(e.resultsAdapter=d,null!=e.ajax&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,T)),null!=e.placeholder&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,O)),e.selectOnClose&&(e.resultsAdapter=y.Decorate(e.resultsAdapter,I))),null==e.dropdownAdapter){if(e.multiple)e.dropdownAdapter=E;else{var r=y.Decorate(E,C);e.dropdownAdapter=r}if(0!==e.minimumResultsForSearch&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,L)),e.closeOnSelect&&(e.dropdownAdapter=y.Decorate(e.dropdownAdapter,j)),null!=e.dropdownCssClass||null!=e.dropdownCss||null!=e.adaptDropdownCssClass){var i=u(e.amdBase+"compat/dropdownCss");e.dropdownAdapter=y.Decorate(e.dropdownAdapter,i)}e.dropdownAdapter=y.Decorate(e.dropdownAdapter,q)}if(null==e.selectionAdapter){if(e.multiple?e.selectionAdapter=h:e.selectionAdapter=p,null!=e.placeholder&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,f)),e.allowClear&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,g)),e.multiple&&(e.selectionAdapter=y.Decorate(e.selectionAdapter,m)),null!=e.containerCssClass||null!=e.containerCss||null!=e.adaptContainerCssClass){var o=u(e.amdBase+"compat/containerCss");e.selectionAdapter=y.Decorate(e.selectionAdapter,o)}e.selectionAdapter=y.Decorate(e.selectionAdapter,v)}e.language=this._resolveLanguage(e.language),e.language.push("en");for(var s=[],a=0;a<e.language.length;a++){var l=e.language[a];-1===s.indexOf(l)&&s.push(l)}return e.language=s,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:y.escapeMarkup,language:{},matcher:function e(t,n){if(""===c.trim(t.term))return n;if(n.children&&0<n.children.length){for(var r=c.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&r.children.splice(i,1);return 0<r.children.length?r:e(t,r)}var o=a(n.text).toUpperCase(),s=a(t.term).toUpperCase();return-1<o.indexOf(s)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),o=t.closest("[lang]").prop("lang"),s=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(o));return e.language=s,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(c.isEmptyObject(e))return[];if(c.isPlainObject(e))return[e];var t;t=c.isArray(e)?e:[e];for(var n=[],r=0;r<t.length;r++)if(n.push(t[r]),"string"==typeof t[r]&&0<t[r].indexOf("-")){var i=t[r].split("-")[0];n.push(i)}return n},n.prototype._processTranslations=function(e,t){for(var n=new s,r=0;r<e.length;r++){var i=new s,o=e[r];if("string"==typeof o)try{i=s.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=s.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=c.isPlainObject(o)?new s(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={};n[c.camelCase(e)]=t;var r=y._convertData(n);c.extend(!0,this.defaults,r)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(r,d,i,p){function e(e,t){if(this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=i.applyFromElement(this.options,t)),this.options=i.apply(this.options),t&&t.is("input")){var n=r(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=p.Decorate(this.options.dataAdapter,n)}}return e.prototype.fromElement=function(e){var t=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),p.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),p.StoreData(e[0],"data",p.GetData(e[0],"select2Tags")),p.StoreData(e[0],"tags",!0)),p.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",p.GetData(e[0],"ajaxUrl")),p.StoreData(e[0],"ajax-Url",p.GetData(e[0],"ajaxUrl")));var n={};function r(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,s="data-";if(o.substr(0,s.length)==s){var a=o.substring(s.length),l=p.GetData(e[0],a);n[a.replace(/-([a-z])/g,r)]=l}}d.fn.jquery&&"1."==d.fn.jquery.substr(0,2)&&e[0].dataset&&(n=d.extend(!0,{},e[0].dataset,n));var c=d.extend(!0,{},p.GetData(e[0]),n);for(var u in c=p._convertData(c))-1<d.inArray(u,t)||(d.isPlainObject(this.options[u])?d.extend(this.options[u],c[u]):this.options[u]=c[u]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,c,u,r){var d=function(e,t){null!=u.GetData(e[0],"select2")&&u.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),t=t||{},this.options=new c(t,e),d.__super__.constructor.call(this);var n=e.attr("tabindex")||0;u.StoreData(e[0],"old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var i=this.render();this._placeContainer(i);var o=this.options.get("selectionAdapter");this.selection=new o(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,i);var s=this.options.get("dropdownAdapter");this.dropdown=new s(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,i);var a=this.options.get("resultsAdapter");this.results=new a(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){l.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),u.StoreData(e[0],"select2",this),e.data("select2",this)};return u.Extend(d,u.Observable),d.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+u.generateChars(2):u.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},d.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},d.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"!=t)return"computedstyle"!=t?t:window.getComputedStyle(e[0]).width;var o=e.attr("style");if("string"!=typeof o)return null;for(var s=o.split(";"),a=0,l=s.length;a<l;a+=1){var c=s[a].replace(/\s/g,"").match(n);if(null!==c&&1<=c.length)return c[1]}return null},d.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},d.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=u.bind(this._syncAttributes,this),this._syncS=u.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},d.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerSelectionEvents=function(){var n=this,r=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===o.inArray(e,r)&&n.trigger(e,t)})},d.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},d.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===r.ESC||t===r.TAB||t===r.UP&&e.altKey?(n.close(e),e.preventDefault()):t===r.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===r.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===r.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===r.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===r.ENTER||t===r.SPACE||t===r.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},d.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},d.prototype._isChangeMutation=function(e,t){var n=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var i=0;i<t.addedNodes.length;i++){t.addedNodes[i].selected&&(n=!0)}else t.removedNodes&&0<t.removedNodes.length?n=!0:o.isArray(t)&&o.each(t,function(e,t){if(r._isChangeMutation(e,t))return!(n=!0)});else n=!0;return n}},d.prototype._syncSubtree=function(e,t){var n=this._isChangeMutation(e,t),r=this;n&&this.dataAdapter.current(function(e){r.trigger("selection:update",{data:e})})},d.prototype.trigger=function(e,t){var n=d.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var i=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,i,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},d.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},d.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},d.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},d.prototype.isEnabled=function(){return!this.isDisabled()},d.prototype.isDisabled=function(){return this.options.get("disabled")},d.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},d.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},d.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},d.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},d.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},d.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];o.isArray(t)&&(t=o.map(t,function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},d.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",u.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),u.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},d.prototype.render=function(){var e=o('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),u.StoreData(e[0],"element",this.$element),e},d}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,s){if(null==i.fn.select2){var a=["open","close","destroy"];i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;if("string"!=typeof t)throw new Error("Invalid arguments for Select2: "+t);var n,r=Array.prototype.slice.call(arguments,1);return this.each(function(){var e=s.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,r)}),-1<i.inArray(t,a)?this:n}}return null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o}),{define:e.define,require:e.require}}(),t=e.require("jquery.select2");return u.fn.select2.amd=e,t});;
403
+ /*! Sortable 1.15.0 - MIT | git://github.com/SortableJS/Sortable.git */
404
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sortable=e()}(this,function(){"use strict";function e(e,t){var n,o=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)),o}function M(o){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?e(Object(i),!0).forEach(function(t){var e,n;e=o,t=i[n=t],n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(t){Object.defineProperty(o,t,Object.getOwnPropertyDescriptor(i,t))})}return o}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,o=arguments[e];for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t}).apply(this,arguments)}function i(t,e){if(null==t)return{};var n,o=function(t,e){if(null==t)return{};for(var n,o={},i=Object.keys(t),r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(t),r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n]);return o}function r(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function t(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var y=t(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=t(/Edge/i),s=t(/firefox/i),u=t(/safari/i)&&!t(/chrome/i)&&!t(/android/i),n=t(/iP(ad|od|hone)/i),c=t(/chrome/i)&&t(/android/i),d={capture:!1,passive:!1};function h(t,e,n){t.addEventListener(e,n,!y&&d)}function f(t,e,n){t.removeEventListener(e,n,!y&&d)}function p(t,e){if(e&&(">"===e[0]&&(e=e.substring(1)),t))try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return}}function N(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"!==e[0]||t.parentNode===n)&&p(t,e)||o&&t===n)return t}while(t!==n&&(t=(i=t).host&&i!==document&&i.host.nodeType?i.host:i.parentNode))}var i;return null}var g,m=/\s+/g;function I(t,e,n){var o;t&&e&&(t.classList?t.classList[n?"add":"remove"](e):(o=(" "+t.className+" ").replace(m," ").replace(" "+e+" "," "),t.className=(o+(n?" "+e:"")).replace(m," ")))}function P(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];o[e=!(e in o||-1!==e.indexOf("webkit"))?"-webkit-"+e:e]=n+("string"==typeof n?"":"px")}}function v(t,e){var n="";if("string"==typeof t)n=t;else do{var o=P(t,"transform")}while(o&&"none"!==o&&(n=o+" "+n),!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function b(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function O(){var t=document.scrollingElement;return t||document.documentElement}function k(t,e,n,o,i){if(t.getBoundingClientRect||t===window){var r,a,l,s,c,u,d=t!==window&&t.parentNode&&t!==O()?(a=(r=t.getBoundingClientRect()).top,l=r.left,s=r.bottom,c=r.right,u=r.height,r.width):(l=a=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,window.innerWidth);if((e||n)&&t!==window&&(i=i||t.parentNode,!y))do{if(i&&i.getBoundingClientRect&&("none"!==P(i,"transform")||n&&"static"!==P(i,"position"))){var h=i.getBoundingClientRect();a-=h.top+parseInt(P(i,"border-top-width")),l-=h.left+parseInt(P(i,"border-left-width")),s=a+r.height,c=l+r.width;break}}while(i=i.parentNode);return o&&t!==window&&(o=(e=v(i||t))&&e.a,t=e&&e.d,e&&(s=(a/=t)+(u/=t),c=(l/=o)+(d/=o))),{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function R(t,e,n){for(var o=A(t,!0),i=k(t)[e];o;){var r=k(o)[n];if(!("top"===n||"left"===n?r<=i:i<=r))return o;if(o===O())break;o=A(o,!1)}return!1}function X(t,e,n,o){for(var i=0,r=0,a=t.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==Bt.ghost&&(o||a[r]!==Bt.dragged)&&N(a[r],n.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function Y(t,e){for(var n=t.lastElementChild;n&&(n===Bt.ghost||"none"===P(n,"display")||e&&!p(n,e));)n=n.previousElementSibling;return n||null}function B(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Bt.clone||e&&!p(t,e)||n++;return n}function E(t){var e=0,n=0,o=O();if(t)do{var i=v(t),r=i.a,i=i.d}while(e+=t.scrollLeft*r,n+=t.scrollTop*i,t!==o&&(t=t.parentNode));return[e,n]}function A(t,e){if(!t||!t.getBoundingClientRect)return O();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=P(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return O();if(o||e)return n;o=!0}}}while(n=n.parentNode);return O()}function D(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function S(e,n){return function(){var t;g||(1===(t=arguments).length?e.call(this,t[0]):e.apply(this,t),g=setTimeout(function(){g=void 0},n))}}function F(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function _(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function C(t,e){P(t,"position","absolute"),P(t,"top",e.top),P(t,"left",e.left),P(t,"width",e.width),P(t,"height",e.height)}function T(t){P(t,"position",""),P(t,"top",""),P(t,"left",""),P(t,"width",""),P(t,"height","")}var j="Sortable"+(new Date).getTime();function x(){var e,o=[];return{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){var e,n;"none"!==P(t,"display")&&t!==Bt.ghost&&(o.push({target:t,rect:k(t)}),e=M({},o[o.length-1].rect),!t.thisAnimationDuration||(n=v(t,!0))&&(e.top-=n.f,e.left-=n.e),t.fromRect=e)})},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(o,{target:t}),1)},animateAll:function(t){var c=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof t&&t());var u=!1,d=0;o.forEach(function(t){var e=0,n=t.target,o=n.fromRect,i=k(n),r=n.prevFromRect,a=n.prevToRect,l=t.rect,s=v(n,!0);s&&(i.top-=s.f,i.left-=s.e),n.toRect=i,n.thisAnimationDuration&&D(r,i)&&!D(o,i)&&(l.top-i.top)/(l.left-i.left)==(o.top-i.top)/(o.left-i.left)&&(t=l,s=r,r=a,a=c.options,e=Math.sqrt(Math.pow(s.top-t.top,2)+Math.pow(s.left-t.left,2))/Math.sqrt(Math.pow(s.top-r.top,2)+Math.pow(s.left-r.left,2))*a.animation),D(i,o)||(n.prevFromRect=o,n.prevToRect=i,e=e||c.options.animation,c.animate(n,l,i,e)),e&&(u=!0,d=Math.max(d,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(e),u?e=setTimeout(function(){"function"==typeof t&&t()},d):"function"==typeof t&&t(),o=[]},animate:function(t,e,n,o){var i,r;o&&(P(t,"transition",""),P(t,"transform",""),i=(r=v(this.el))&&r.a,r=r&&r.d,i=(e.left-n.left)/(i||1),r=(e.top-n.top)/(r||1),t.animatingX=!!i,t.animatingY=!!r,P(t,"transform","translate3d("+i+"px,"+r+"px,0)"),this.forRepaintDummy=t.offsetWidth,P(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),P(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){P(t,"transition",""),P(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},o))}}}var H=[],L={initializeByDefault:!0},K={mount:function(e){for(var t in L)!L.hasOwnProperty(t)||t in e||(e[t]=L[t]);H.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),H.push(e)},pluginEvent:function(e,n,o){var t=this;this.eventCanceled=!1,o.cancel=function(){t.eventCanceled=!0};var i=e+"Global";H.forEach(function(t){n[t.pluginName]&&(n[t.pluginName][i]&&n[t.pluginName][i](M({sortable:n},o)),n.options[t.pluginName]&&n[t.pluginName][e]&&n[t.pluginName][e](M({sortable:n},o)))})},initializePlugins:function(n,o,i,t){for(var e in H.forEach(function(t){var e=t.pluginName;(n.options[e]||t.initializeByDefault)&&((t=new t(n,o,n.options)).sortable=n,t.options=n.options,n[e]=t,a(i,t.defaults))}),n.options){var r;n.options.hasOwnProperty(e)&&(void 0!==(r=this.modifyOption(n,e,n.options[e]))&&(n.options[e]=r))}},getEventProperties:function(e,n){var o={};return H.forEach(function(t){"function"==typeof t.eventProperties&&a(o,t.eventProperties.call(n[t.pluginName],e))}),o},modifyOption:function(e,n,o){var i;return H.forEach(function(t){e[t.pluginName]&&t.optionListeners&&"function"==typeof t.optionListeners[n]&&(i=t.optionListeners[n].call(e[t.pluginName],o))}),i}};function W(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,h=t.originalEvent,f=t.putSortable,p=t.extraEventProperties;if(e=e||n&&n[j]){var g,m=e.options,t="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||y||w?(g=document.createEvent("Event")).initEvent(o,!0,!0):g=new CustomEvent(o,{bubbles:!0,cancelable:!0}),g.to=a||n,g.from=l||n,g.item=i||n,g.clone=r,g.oldIndex=s,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=h,g.pullMode=f?f.lastPutMode:void 0;var v,b=M(M({},p),K.getEventProperties(o,e));for(v in b)g[v]=b[v];n&&n.dispatchEvent(g),m[t]&&m[t].call(e,g)}}function z(t,e){var n=(o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).evt,o=i(o,G);K.pluginEvent.bind(Bt)(t,e,M({dragEl:q,parentEl:V,ghostEl:Z,rootEl:$,nextEl:Q,lastDownEl:J,cloneEl:tt,cloneHidden:et,dragStarted:pt,putSortable:lt,activeSortable:Bt.active,originalEvent:n,oldIndex:nt,oldDraggableIndex:it,newIndex:ot,newDraggableIndex:rt,hideGhostForTarget:kt,unhideGhostForTarget:Rt,cloneNowHidden:function(){et=!0},cloneNowShown:function(){et=!1},dispatchSortableEvent:function(t){U({sortable:e,name:t,originalEvent:n})}},o))}var G=["evt"];function U(t){W(M({putSortable:lt,cloneEl:tt,targetEl:q,rootEl:$,oldIndex:nt,oldDraggableIndex:it,newIndex:ot,newDraggableIndex:rt},t))}var q,V,Z,$,Q,J,tt,et,nt,ot,it,rt,at,lt,st,ct,ut,dt,ht,ft,pt,gt,mt,vt,bt,yt=!1,wt=!1,Et=[],Dt=!1,St=!1,_t=[],Ct=!1,Tt=[],xt="undefined"!=typeof document,Ot=n,At=w||y?"cssFloat":"float",Mt=xt&&!c&&!n&&"draggable"in document.createElement("div"),Nt=function(){if(xt){if(y)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),It=function(t,e){var n=P(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=X(t,0,e),r=X(t,1,e),a=i&&P(i),l=r&&P(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+k(i).width,t=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+k(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){e="left"===a.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==e?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||o<=s&&"none"===n[At]||r&&"none"===n[At]&&o<s+t)?"vertical":"horizontal"},Pt=function(t){function l(r,a){return function(t,e,n,o){var i=t.options.group.name&&e.options.group.name&&t.options.group.name===e.options.group.name;if(null==r&&(a||i))return!0;if(null==r||!1===r)return!1;if(a&&"clone"===r)return r;if("function"==typeof r)return l(r(t,e,n,o),a)(t,e,n,o);e=(a?t:e).options.group.name;return!0===r||"string"==typeof r&&r===e||r.join&&-1<r.indexOf(e)}}var e={},n=t.group;n&&"object"==o(n)||(n={name:n}),e.name=n.name,e.checkPull=l(n.pull,!0),e.checkPut=l(n.put),e.revertClone=n.revertClone,t.group=e},kt=function(){!Nt&&Z&&P(Z,"display","none")},Rt=function(){!Nt&&Z&&P(Z,"display","")};xt&&!c&&document.addEventListener("click",function(t){if(wt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),wt=!1},!0);function Xt(t){if(q){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,r=t.clientY,Et.some(function(t){var e=t[j].options.emptyInsertThreshold;if(e&&!Y(t)){var n=k(t),o=i>=n.left-e&&i<=n.right+e,e=r>=n.top-e&&r<=n.bottom+e;return o&&e?a=t:void 0}}),a);if(e){var n,o={};for(n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[j]._onDragOver(o)}}var i,r,a}function Yt(t){q&&q.parentNode[j]._isOutsideThisEl(t.target)}function Bt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=a({},e),t[j]=this;var n,o,i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return It(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Bt.supportPointer&&"PointerEvent"in window&&!u,emptyInsertThreshold:5};for(n in K.initializePlugins(this,t,i),i)n in e||(e[n]=i[n]);for(o in Pt(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Mt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?h(t,"pointerdown",this._onTapStart):(h(t,"mousedown",this._onTapStart),h(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(h(t,"dragover",this),h(t,"dragenter",this)),Et.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),a(this,x())}function Ft(t,e,n,o,i,r,a,l){var s,c,u=t[j],d=u.options.onMove;return!window.CustomEvent||y||w?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=i||e,s.relatedRect=r||k(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),c=d?d.call(u,s,a):c}function jt(t){t.draggable=!1}function Ht(){Ct=!1}function Lt(t){return setTimeout(t,0)}function Kt(t){return clearTimeout(t)}Bt.prototype={constructor:Bt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(gt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,t=this.options,i=t.preventOnFilter,r=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,s=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,c=t.filter;if(!function(t){Tt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Tt.push(o)}}(o),!q&&!(/mousedown|pointerdown/.test(r)&&0!==e.button||t.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!u||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=N(l,t.draggable,o,!1))&&l.animated||J===l)){if(nt=B(l),it=B(l,t.draggable),"function"==typeof c){if(c.call(this,e,l,this))return U({sortable:n,rootEl:s,name:"filter",targetEl:l,toEl:o,fromEl:o}),z("filter",n,{evt:e}),void(i&&e.cancelable&&e.preventDefault())}else if(c=c&&c.split(",").some(function(t){if(t=N(s,t.trim(),o,!1))return U({sortable:n,rootEl:t,name:"filter",targetEl:l,fromEl:o,toEl:o}),z("filter",n,{evt:e}),!0}))return void(i&&e.cancelable&&e.preventDefault());t.handle&&!N(s,t.handle,o,!1)||this._prepareDragStart(e,a,l)}}},_prepareDragStart:function(t,e,n){var o,i=this,r=i.el,a=i.options,l=r.ownerDocument;n&&!q&&n.parentNode===r&&(o=k(n),$=r,V=(q=n).parentNode,Q=q.nextSibling,J=n,at=a.group,st={target:Bt.dragged=q,clientX:(e||t).clientX,clientY:(e||t).clientY},ht=st.clientX-o.left,ft=st.clientY-o.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,q.style["will-change"]="all",o=function(){z("delayEnded",i,{evt:t}),Bt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!s&&i.nativeDraggable&&(q.draggable=!0),i._triggerDragStart(t,e),U({sortable:i,name:"choose",originalEvent:t}),I(q,a.chosenClass,!0))},a.ignore.split(",").forEach(function(t){b(q,t.trim(),jt)}),h(l,"dragover",Xt),h(l,"mousemove",Xt),h(l,"touchmove",Xt),h(l,"mouseup",i._onDrop),h(l,"touchend",i._onDrop),h(l,"touchcancel",i._onDrop),s&&this.nativeDraggable&&(this.options.touchStartThreshold=4,q.draggable=!0),z("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(w||y)?o():Bt.eventCanceled?this._onDrop():(h(l,"mouseup",i._disableDelayedDrag),h(l,"touchend",i._disableDelayedDrag),h(l,"touchcancel",i._disableDelayedDrag),h(l,"mousemove",i._delayedDragTouchMoveHandler),h(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&h(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,a.delay)))},_delayedDragTouchMoveHandler:function(t){t=t.touches?t.touches[0]:t;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){q&&jt(q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;f(t,"mouseup",this._disableDelayedDrag),f(t,"touchend",this._disableDelayedDrag),f(t,"touchcancel",this._disableDelayedDrag),f(t,"mousemove",this._delayedDragTouchMoveHandler),f(t,"touchmove",this._delayedDragTouchMoveHandler),f(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?h(document,"pointermove",this._onTouchMove):h(document,e?"touchmove":"mousemove",this._onTouchMove):(h(q,"dragend",this),h($,"dragstart",this._onDragStart));try{document.selection?Lt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){var n;yt=!1,$&&q?(z("dragStarted",this,{evt:e}),this.nativeDraggable&&h(document,"dragover",Yt),n=this.options,t||I(q,n.dragClass,!1),I(q,n.ghostClass,!0),Bt.active=this,t&&this._appendGhost(),U({sortable:this,name:"start",originalEvent:e})):this._nulling()},_emulateDragOver:function(){if(ct){this._lastX=ct.clientX,this._lastY=ct.clientY,kt();for(var t=document.elementFromPoint(ct.clientX,ct.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ct.clientX,ct.clientY))!==e;)e=t;if(q.parentNode[j]._isOutsideThisEl(t),e)do{if(e[j])if(e[j]._onDragOver({clientX:ct.clientX,clientY:ct.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}while(e=(t=e).parentNode);Rt()}},_onTouchMove:function(t){if(st){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=Z&&v(Z,!0),a=Z&&r&&r.a,l=Z&&r&&r.d,e=Ot&&bt&&E(bt),a=(i.clientX-st.clientX+o.x)/(a||1)+(e?e[0]-_t[0]:0)/(a||1),l=(i.clientY-st.clientY+o.y)/(l||1)+(e?e[1]-_t[1]:0)/(l||1);if(!Bt.active&&!yt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}Z&&(r?(r.e+=a-(ut||0),r.f+=l-(dt||0)):r={a:1,b:0,c:0,d:1,e:a,f:l},r="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")"),P(Z,"webkitTransform",r),P(Z,"mozTransform",r),P(Z,"msTransform",r),P(Z,"transform",r),ut=a,dt=l,ct=i),t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Z){var t=this.options.fallbackOnBody?document.body:$,e=k(q,!0,Ot,!0,t),n=this.options;if(Ot){for(bt=t;"static"===P(bt,"position")&&"none"===P(bt,"transform")&&bt!==document;)bt=bt.parentNode;bt!==document.body&&bt!==document.documentElement?(bt===document&&(bt=O()),e.top+=bt.scrollTop,e.left+=bt.scrollLeft):bt=O(),_t=E(bt)}I(Z=q.cloneNode(!0),n.ghostClass,!1),I(Z,n.fallbackClass,!0),I(Z,n.dragClass,!0),P(Z,"transition",""),P(Z,"transform",""),P(Z,"box-sizing","border-box"),P(Z,"margin",0),P(Z,"top",e.top),P(Z,"left",e.left),P(Z,"width",e.width),P(Z,"height",e.height),P(Z,"opacity","0.8"),P(Z,"position",Ot?"absolute":"fixed"),P(Z,"zIndex","100000"),P(Z,"pointerEvents","none"),Bt.ghost=Z,t.appendChild(Z),P(Z,"transform-origin",ht/parseInt(Z.style.width)*100+"% "+ft/parseInt(Z.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,i=n.options;z("dragStart",this,{evt:t}),Bt.eventCanceled?this._onDrop():(z("setupClone",this),Bt.eventCanceled||((tt=_(q)).removeAttribute("id"),tt.draggable=!1,tt.style["will-change"]="",this._hideClone(),I(tt,this.options.chosenClass,!1),Bt.clone=tt),n.cloneId=Lt(function(){z("clone",n),Bt.eventCanceled||(n.options.removeCloneOnHide||$.insertBefore(tt,q),n._hideClone(),U({sortable:n,name:"clone"}))}),e||I(q,i.dragClass,!0),e?(wt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(f(document,"mouseup",n._onDrop),f(document,"touchend",n._onDrop),f(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,q)),h(document,"drop",n),P(q,"transform","translateZ(0)")),yt=!0,n._dragStartId=Lt(n._dragStarted.bind(n,e,t)),h(document,"selectstart",n),pt=!0,u&&P(document.body,"user-select","none"))},_onDragOver:function(n){var o,i,r,t,a=this.el,l=n.target,e=this.options,s=e.group,c=Bt.active,u=at===s,d=e.sort,h=lt||c,f=this,p=!1;if(!Ct){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),l=N(l,e.draggable,a,!0),T("dragOver"),Bt.eventCanceled)return p;if(q.contains(n.target)||l.animated&&l.animatingX&&l.animatingY||f._ignoreWhileAnimating===l)return O(!1);if(wt=!1,c&&!e.disabled&&(u?d||(i=V!==$):lt===this||(this.lastPutMode=at.checkPull(this,c,q,n))&&s.checkPut(this,c,q,n))){if(r="vertical"===this._getDirection(n,l),o=k(q),T("dragOverValid"),Bt.eventCanceled)return p;if(i)return V=$,x(),this._hideClone(),T("revert"),Bt.eventCanceled||(Q?$.insertBefore(q,Q):$.appendChild(q)),O(!0);var g=Y(a,e.draggable);if(!g||function(t,e,n){n=k(Y(n.el,n.options.draggable));return e?t.clientX>n.right+10||t.clientX<=n.right&&t.clientY>n.bottom&&t.clientX>=n.left:t.clientX>n.right&&t.clientY>n.top||t.clientX<=n.right&&t.clientY>n.bottom+10}(n,r,this)&&!g.animated){if(g===q)return O(!1);if((l=g&&a===n.target?g:l)&&(w=k(l)),!1!==Ft($,a,q,o,l,w,n,!!l))return x(),g&&g.nextSibling?a.insertBefore(q,g.nextSibling):a.appendChild(q),V=a,A(),O(!0)}else if(g&&function(t,e,n){n=k(X(n.el,0,n.options,!0));return e?t.clientX<n.left-10||t.clientY<n.top&&t.clientX<n.right:t.clientY<n.top-10||t.clientY<n.bottom&&t.clientX<n.left}(n,r,this)){var m=X(a,0,e,!0);if(m===q)return O(!1);if(w=k(l=m),!1!==Ft($,a,q,o,l,w,n,!1))return x(),a.insertBefore(q,m),V=a,A(),O(!0)}else if(l.parentNode===a){var v,b,y,w=k(l),E=q.parentNode!==a,D=(D=q.animated&&q.toRect||o,C=l.animated&&l.toRect||w,S=(t=r)?D.left:D.top,s=t?D.right:D.bottom,g=t?D.width:D.height,m=t?C.left:C.top,D=t?C.right:C.bottom,C=t?C.width:C.height,!(S===m||s===D||S+g/2===m+C/2)),S=r?"top":"left",g=R(l,"top","top")||R(q,"top","top"),m=g?g.scrollTop:void 0;if(gt!==l&&(b=w[S],Dt=!1,St=!D&&e.invertSwap||E),0!==(v=function(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,t=o?n.top:n.left,o=o?n.bottom:n.right,n=!1;if(!a)if(l&&vt<c*i){if(Dt=!Dt&&(1===mt?t+c*r/2<s:s<o-c*r/2)?!0:Dt)n=!0;else if(1===mt?s<t+vt:o-vt<s)return-mt}else if(t+c*(1-i)/2<s&&s<o-c*(1-i)/2)return function(t){return B(q)<B(t)?1:-1}(e);if((n=n||a)&&(s<t+c*r/2||o-c*r/2<s))return t+c/2<s?1:-1;return 0}(n,l,w,r,D?1:e.swapThreshold,null==e.invertedSwapThreshold?e.swapThreshold:e.invertedSwapThreshold,St,gt===l)))for(var _=B(q);(y=V.children[_-=v])&&("none"===P(y,"display")||y===Z););if(0===v||y===l)return O(!1);mt=v;var C=(gt=l).nextElementSibling,E=!1,D=Ft($,a,q,o,l,w,n,E=1===v);if(!1!==D)return 1!==D&&-1!==D||(E=1===D),Ct=!0,setTimeout(Ht,30),x(),E&&!C?a.appendChild(q):l.parentNode.insertBefore(q,E?C:l),g&&F(g,0,m-g.scrollTop),V=q.parentNode,void 0===b||St||(vt=Math.abs(b-k(l)[S])),A(),O(!0)}if(a.contains(q))return O(!1)}return!1}function T(t,e){z(t,f,M({evt:n,isOwner:u,axis:r?"vertical":"horizontal",revert:i,dragRect:o,targetRect:w,canSort:d,fromSortable:h,target:l,completed:O,onMove:function(t,e){return Ft($,a,q,o,t,k(t),n,e)},changed:A},e))}function x(){T("dragOverAnimationCapture"),f.captureAnimationState(),f!==h&&h.captureAnimationState()}function O(t){return T("dragOverCompleted",{insertion:t}),t&&(u?c._hideClone():c._showClone(f),f!==h&&(I(q,(lt||c).options.ghostClass,!1),I(q,e.ghostClass,!0)),lt!==f&&f!==Bt.active?lt=f:f===Bt.active&&lt&&(lt=null),h===f&&(f._ignoreWhileAnimating=l),f.animateAll(function(){T("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==h&&(h.animateAll(),h._ignoreWhileAnimating=null)),(l===q&&!q.animated||l===a&&!l.animated)&&(gt=null),e.dragoverBubble||n.rootEl||l===document||(q.parentNode[j]._isOutsideThisEl(n.target),t||Xt(n)),!e.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),p=!0}function A(){ot=B(q),rt=B(q,e.draggable),U({sortable:f,name:"change",toEl:a,newIndex:ot,newDraggableIndex:rt,originalEvent:n})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){f(document,"mousemove",this._onTouchMove),f(document,"touchmove",this._onTouchMove),f(document,"pointermove",this._onTouchMove),f(document,"dragover",Xt),f(document,"mousemove",Xt),f(document,"touchmove",Xt)},_offUpEvents:function(){var t=this.el.ownerDocument;f(t,"mouseup",this._onDrop),f(t,"touchend",this._onDrop),f(t,"pointerup",this._onDrop),f(t,"touchcancel",this._onDrop),f(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ot=B(q),rt=B(q,n.draggable),z("drop",this,{evt:t}),V=q&&q.parentNode,ot=B(q),rt=B(q,n.draggable),Bt.eventCanceled||(Dt=St=yt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Kt(this.cloneId),Kt(this._dragStartId),this.nativeDraggable&&(f(document,"drop",this),f(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),u&&P(document.body,"user-select",""),P(q,"transform",""),t&&(pt&&(t.cancelable&&t.preventDefault(),n.dropBubble||t.stopPropagation()),Z&&Z.parentNode&&Z.parentNode.removeChild(Z),($===V||lt&&"clone"!==lt.lastPutMode)&&tt&&tt.parentNode&&tt.parentNode.removeChild(tt),q&&(this.nativeDraggable&&f(q,"dragend",this),jt(q),q.style["will-change"]="",pt&&!yt&&I(q,(lt||this).options.ghostClass,!1),I(q,this.options.chosenClass,!1),U({sortable:this,name:"unchoose",toEl:V,newIndex:null,newDraggableIndex:null,originalEvent:t}),$!==V?(0<=ot&&(U({rootEl:V,name:"add",toEl:V,fromEl:$,originalEvent:t}),U({sortable:this,name:"remove",toEl:V,originalEvent:t}),U({rootEl:V,name:"sort",toEl:V,fromEl:$,originalEvent:t}),U({sortable:this,name:"sort",toEl:V,originalEvent:t})),lt&&lt.save()):ot!==nt&&0<=ot&&(U({sortable:this,name:"update",toEl:V,originalEvent:t}),U({sortable:this,name:"sort",toEl:V,originalEvent:t})),Bt.active&&(null!=ot&&-1!==ot||(ot=nt,rt=it),U({sortable:this,name:"end",toEl:V,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){z("nulling",this),$=q=V=Z=Q=tt=J=et=st=ct=pt=ot=rt=nt=it=gt=mt=lt=at=Bt.dragged=Bt.ghost=Bt.clone=Bt.active=null,Tt.forEach(function(t){t.checked=!0}),Tt.length=ut=dt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":q&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)N(t=n[o],r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||function(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;for(;n--;)o+=e.charCodeAt(n);return o.toString(36)}(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(t,e){e=o.children[e];N(e,this.options.draggable,o,!1)&&(n[t]=e)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return N(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=K.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&Pt(n)},destroy:function(){z("destroy",this);var t=this.el;t[j]=null,f(t,"mousedown",this._onTapStart),f(t,"touchstart",this._onTapStart),f(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(f(t,"dragover",this),f(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Et.splice(Et.indexOf(this.el),1),this.el=t=null},_hideClone:function(){et||(z("hideClone",this),Bt.eventCanceled||(P(tt,"display","none"),this.options.removeCloneOnHide&&tt.parentNode&&tt.parentNode.removeChild(tt),et=!0))},_showClone:function(t){"clone"===t.lastPutMode?et&&(z("showClone",this),Bt.eventCanceled||(q.parentNode!=$||this.options.group.revertClone?Q?$.insertBefore(tt,Q):$.appendChild(tt):$.insertBefore(tt,q),this.options.group.revertClone&&this.animate(q,tt),P(tt,"display",""),et=!1)):this._hideClone()}},xt&&h(document,"touchmove",function(t){(Bt.active||yt)&&t.cancelable&&t.preventDefault()}),Bt.utils={on:h,off:f,css:P,find:b,is:function(t,e){return!!N(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:S,closest:N,toggleClass:I,clone:_,index:B,nextTick:Lt,cancelNextTick:Kt,detectDirection:It,getChild:X},Bt.get=function(t){return t[j]},Bt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];(e=e[0].constructor===Array?e[0]:e).forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Bt.utils=M(M({},Bt.utils),t.utils)),K.mount(t)})},Bt.create=function(t,e){return new Bt(t,e)};var Wt,zt,Gt,Ut,qt,Vt,Zt=[],$t=!(Bt.version="1.15.0");function Qt(){Zt.forEach(function(t){clearInterval(t.pid)}),Zt=[]}function Jt(){clearInterval(Vt)}var te,ee=S(function(n,t,e,o){if(t.scroll){var i,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=t.scrollSensitivity,s=t.scrollSpeed,c=O(),u=!1;zt!==e&&(zt=e,Qt(),Wt=t.scroll,i=t.scrollFn,!0===Wt&&(Wt=A(e,!0)));var d=0,h=Wt;do{var f=h,p=k(f),g=p.top,m=p.bottom,v=p.left,b=p.right,y=p.width,w=p.height,E=void 0,D=void 0,S=f.scrollWidth,_=f.scrollHeight,C=P(f),T=f.scrollLeft,p=f.scrollTop,D=f===c?(E=y<S&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),w<_&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(E=y<S&&("auto"===C.overflowX||"scroll"===C.overflowX),w<_&&("auto"===C.overflowY||"scroll"===C.overflowY)),T=E&&(Math.abs(b-r)<=l&&T+y<S)-(Math.abs(v-r)<=l&&!!T),p=D&&(Math.abs(m-a)<=l&&p+w<_)-(Math.abs(g-a)<=l&&!!p);if(!Zt[d])for(var x=0;x<=d;x++)Zt[x]||(Zt[x]={});Zt[d].vx==T&&Zt[d].vy==p&&Zt[d].el===f||(Zt[d].el=f,Zt[d].vx=T,Zt[d].vy=p,clearInterval(Zt[d].pid),0==T&&0==p||(u=!0,Zt[d].pid=setInterval(function(){o&&0===this.layer&&Bt.active._onTouchMove(qt);var t=Zt[this.layer].vy?Zt[this.layer].vy*s:0,e=Zt[this.layer].vx?Zt[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call(Bt.dragged.parentNode[j],e,t,n,qt,Zt[this.layer].el)||F(Zt[this.layer].el,e,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&h!==c&&(h=A(h,!1)));$t=u}},30),c=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,t=t.unhideGhostForTarget;e&&(i=n||i,a(),e=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,e=document.elementFromPoint(e.clientX,e.clientY),t(),i&&!i.el.contains(e)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n})))};function ne(){}function oe(){}ne.prototype={startIndex:null,dragStart:function(t){t=t.oldDraggableIndex;this.startIndex=t},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();t=X(this.sortable.el,this.startIndex,this.options);t?this.sortable.el.insertBefore(e,t):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:c},a(ne,{pluginName:"revertOnSpill"}),oe.prototype={onSpill:function(t){var e=t.dragEl,t=t.putSortable||this.sortable;t.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),t.animateAll()},drop:c},a(oe,{pluginName:"removeOnSpill"});var ie,re,ae,le,se,ce=[],ue=[],de=!1,he=!1,fe=!1;function pe(n,o){ue.forEach(function(t,e){e=o.children[t.sortableIndex+(n?Number(e):0)];e?o.insertBefore(t,e):o.appendChild(t)})}function ge(){ce.forEach(function(t){t!==ae&&t.parentNode&&t.parentNode.removeChild(t)})}return Bt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){t=t.originalEvent;this.sortable.nativeDraggable?h(document,"dragover",this._handleAutoScroll):this.options.supportPointer?h(document,"pointermove",this._handleFallbackAutoScroll):t.touches?h(document,"touchmove",this._handleFallbackAutoScroll):h(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){t=t.originalEvent;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?f(document,"dragover",this._handleAutoScroll):(f(document,"pointermove",this._handleFallbackAutoScroll),f(document,"touchmove",this._handleFallbackAutoScroll),f(document,"mousemove",this._handleFallbackAutoScroll)),Jt(),Qt(),clearTimeout(g),g=void 0},nulling:function(){qt=zt=Wt=$t=Vt=Gt=Ut=null,Zt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(e,n){var o,i=this,r=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,t=document.elementFromPoint(r,a);qt=e,n||this.options.forceAutoScrollFallback||w||y||u?(ee(e,this.options,t,n),o=A(t,!0),!$t||Vt&&r===Gt&&a===Ut||(Vt&&Jt(),Vt=setInterval(function(){var t=A(document.elementFromPoint(r,a),!0);t!==o&&(o=t,Qt()),ee(e,i.options,t,n)},10),Gt=r,Ut=a)):this.options.bubbleScroll&&A(t,!0)!==O()?ee(e,this.options,A(t,!1),!1):Qt()}},a(t,{pluginName:"scroll",initializeByDefault:!0})}),Bt.mount(oe,ne),Bt.mount(new function(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){t=t.dragEl;te=t},dragOverValid:function(t){var e=t.completed,n=t.target,o=t.onMove,i=t.activeSortable,r=t.changed,a=t.cancel;i.options.swap&&(t=this.sortable.el,i=this.options,n&&n!==t&&(t=te,te=!1!==o(n)?(I(n,i.swapClass,!0),n):null,t&&t!==te&&I(t,i.swapClass,!1)),r(),e(!0),a())},drop:function(t){var e,n,o=t.activeSortable,i=t.putSortable,r=t.dragEl,a=i||this.sortable,l=this.options;te&&I(te,l.swapClass,!1),te&&(l.swap||i&&i.options.swap)&&r!==te&&(a.captureAnimationState(),a!==o&&o.captureAnimationState(),n=te,t=(e=r).parentNode,l=n.parentNode,t&&l&&!t.isEqualNode(n)&&!l.isEqualNode(e)&&(i=B(e),r=B(n),t.isEqualNode(l)&&i<r&&r++,t.insertBefore(n,t.children[i]),l.insertBefore(e,l.children[r])),a.animateAll(),a!==o&&o.animateAll())},nulling:function(){te=null}},a(t,{pluginName:"swap",eventProperties:function(){return{swapItem:te}}})}),Bt.mount(new function(){function t(o){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));o.options.avoidImplicitDeselect||(o.options.supportPointer?h(document,"pointerup",this._deselectMultiDrag):(h(document,"mouseup",this._deselectMultiDrag),h(document,"touchend",this._deselectMultiDrag))),h(document,"keydown",this._checkKeyDown),h(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:!1,setData:function(t,e){var n="";ce.length&&re===o?ce.forEach(function(t,e){n+=(e?", ":"")+t.textContent}):n=e.textContent,t.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){t=t.dragEl;ae=t},delayEnded:function(){this.isMultiDrag=~ce.indexOf(ae)},setupClone:function(t){var e=t.sortable,t=t.cancel;if(this.isMultiDrag){for(var n=0;n<ce.length;n++)ue.push(_(ce[n])),ue[n].sortableIndex=ce[n].sortableIndex,ue[n].draggable=!1,ue[n].style["will-change"]="",I(ue[n],this.options.selectedClass,!1),ce[n]===ae&&I(ue[n],this.options.chosenClass,!1);e._hideClone(),t()}},clone:function(t){var e=t.sortable,n=t.rootEl,o=t.dispatchSortableEvent,t=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||ce.length&&re===e&&(pe(!0,n),o("clone"),t()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,t=t.cancel;this.isMultiDrag&&(pe(!1,n),ue.forEach(function(t){P(t,"display","")}),e(),se=!1,t())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),t=t.cancel;this.isMultiDrag&&(ue.forEach(function(t){P(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),se=!0,t())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&re&&re.multiDrag._deselectMultiDrag(),ce.forEach(function(t){t.sortableIndex=B(t)}),ce=ce.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),fe=!0},dragStarted:function(t){var e,n=this,t=t.sortable;this.isMultiDrag&&(this.options.sort&&(t.captureAnimationState(),this.options.animation&&(ce.forEach(function(t){t!==ae&&P(t,"position","absolute")}),e=k(ae,!1,!0,!0),ce.forEach(function(t){t!==ae&&C(t,e)}),de=he=!0)),t.animateAll(function(){de=he=!1,n.options.animation&&ce.forEach(function(t){T(t)}),n.options.sort&&ge()}))},dragOver:function(t){var e=t.target,n=t.completed,t=t.cancel;he&&~ce.indexOf(e)&&(n(!1),t())},revert:function(t){var n,o,e=t.fromSortable,i=t.rootEl,r=t.sortable,a=t.dragRect;1<ce.length&&(ce.forEach(function(t){r.addAnimationState({target:t,rect:he?k(t):a}),T(t),t.fromRect=a,e.removeAnimationState(t)}),he=!1,n=!this.options.removeCloneOnHide,o=i,ce.forEach(function(t,e){e=o.children[t.sortableIndex+(n?Number(e):0)];e?o.insertBefore(t,e):o.appendChild(t)}))},dragOverCompleted:function(t){var e,n=t.sortable,o=t.isOwner,i=t.insertion,r=t.activeSortable,a=t.parentEl,l=t.putSortable,t=this.options;i&&(o&&r._hideClone(),de=!1,t.animation&&1<ce.length&&(he||!o&&!r.options.sort&&!l)&&(e=k(ae,!1,!0,!0),ce.forEach(function(t){t!==ae&&(C(t,e),a.appendChild(t))}),he=!0),o||(he||ge(),1<ce.length?(o=se,r._showClone(n),r.options.animation&&!se&&o&&ue.forEach(function(t){r.addAnimationState({target:t,rect:le}),t.fromRect=le,t.thisAnimationDuration=null})):r._showClone(n)))},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,t=t.activeSortable;ce.forEach(function(t){t.thisAnimationDuration=null}),t.options.animation&&!n&&t.multiDrag.isMultiDrag&&(le=a({},e),e=v(ae,!0),le.top-=e.f,le.left-=e.e)},dragOverAnimationComplete:function(){he&&(he=!1,ge())},drop:function(t){var e=t.originalEvent,n=t.rootEl,o=t.parentEl,i=t.sortable,r=t.dispatchSortableEvent,a=t.oldIndex,l=t.putSortable,s=l||this.sortable;if(e){var c,u,d,h=this.options,f=o.children;if(!fe)if(h.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),I(ae,h.selectedClass,!~ce.indexOf(ae)),~ce.indexOf(ae))ce.splice(ce.indexOf(ae),1),ie=null,W({sortable:i,rootEl:n,name:"deselect",targetEl:ae,originalEvent:e});else{if(ce.push(ae),W({sortable:i,rootEl:n,name:"select",targetEl:ae,originalEvent:e}),e.shiftKey&&ie&&i.el.contains(ie)){var p=B(ie),t=B(ae);if(~p&&~t&&p!==t)for(var g,m=p<t?(g=p,t):(g=t,p+1);g<m;g++)~ce.indexOf(f[g])||(I(f[g],h.selectedClass,!0),ce.push(f[g]),W({sortable:i,rootEl:n,name:"select",targetEl:f[g],originalEvent:e}))}else ie=ae;re=s}fe&&this.isMultiDrag&&(he=!1,(o[j].options.sort||o!==n)&&1<ce.length&&(c=k(ae),u=B(ae,":not(."+this.options.selectedClass+")"),!de&&h.animation&&(ae.thisAnimationDuration=null),s.captureAnimationState(),de||(h.animation&&(ae.fromRect=c,ce.forEach(function(t){var e;t.thisAnimationDuration=null,t!==ae&&(e=he?k(t):c,t.fromRect=e,s.addAnimationState({target:t,rect:e}))})),ge(),ce.forEach(function(t){f[u]?o.insertBefore(t,f[u]):o.appendChild(t),u++}),a===B(ae)&&(d=!1,ce.forEach(function(t){t.sortableIndex!==B(t)&&(d=!0)}),d&&r("update"))),ce.forEach(function(t){T(t)}),s.animateAll()),re=s),(n===o||l&&"clone"!==l.lastPutMode)&&ue.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=fe=!1,ue.length=0},destroyGlobal:function(){this._deselectMultiDrag(),f(document,"pointerup",this._deselectMultiDrag),f(document,"mouseup",this._deselectMultiDrag),f(document,"touchend",this._deselectMultiDrag),f(document,"keydown",this._checkKeyDown),f(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==fe&&fe||re!==this.sortable||t&&N(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;ce.length;){var e=ce[0];I(e,this.options.selectedClass,!1),ce.shift(),W({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvent:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},a(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[j];e&&e.options.multiDrag&&!~ce.indexOf(t)&&(re&&re!==e&&(re.multiDrag._deselectMultiDrag(),re=e),I(t,e.options.selectedClass,!0),ce.push(t))},deselect:function(t){var e=t.parentNode[j],n=ce.indexOf(t);e&&e.options.multiDrag&&~n&&(I(t,e.options.selectedClass,!1),ce.splice(n,1))}},eventProperties:function(){var n=this,o=[],i=[];return ce.forEach(function(t){var e;o.push({multiDragElement:t,index:t.sortableIndex}),e=he&&t!==ae?-1:he?B(t,":not(."+n.options.selectedClass+")"):B(t),i.push({multiDragElement:t,index:e})}),{items:r(ce),clones:[].concat(ue),oldIndicies:o,newIndicies:i}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":1<t.length&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}),Bt});;
405
+ /**
406
+ * @file
407
+ * Select2 integration.
408
+ */
409
+ (function ($, drupalSettings, Sortable, once) {
410
+ 'use strict';
411
+
412
+ Drupal.behaviors.select2 = {
413
+ attach: function (context) {
414
+ $(once('select2-init', '.select2-widget', context)).each(function () {
415
+ var config = $(this).data('select2-config');
416
+ config.createTag = function (params) {
417
+ var term = $.trim(params.term);
418
+ if (term === '') {
419
+ return null;
420
+ }
421
+ return {
422
+ id: '$ID:' + term,
423
+ text: term
424
+ };
425
+ };
426
+ config.templateSelection = function (option, container) {
427
+ // The placeholder doesn't have value.
428
+ if ('element' in option && 'value' in option.element) {
429
+ // Add option value to selection container for sorting.
430
+ $(container).data('optionValue', option.element.value);
431
+ }
432
+ return option.text;
433
+ };
434
+ if (Object.prototype.hasOwnProperty.call(config, 'ajax')) {
435
+ config.ajax.data = function (params) {
436
+ var selected = [];
437
+ if (Array.isArray($(this).val())) {
438
+ selected = $(this).val();
439
+ }
440
+ else if ($(this).val() !== '') {
441
+ selected = [$(this).val()];
442
+ }
443
+ return $.extend({}, params, {
444
+ q: params.term,
445
+ selected: selected.filter(function (selected) {
446
+ return !selected.startsWith('$ID:');
447
+ })
448
+ });
449
+ };
450
+ }
451
+ $(this).data('select2-config', config);
452
+
453
+ // Emit an event, that other modules have the chance to modify the
454
+ // select2 settings. Make sure that other JavaScript code that rely on
455
+ // this event will be loaded first.
456
+ // @see: modules/select2_publish/select2_publish.libraries.yml
457
+ $(this).trigger('select2-init');
458
+ config = $(this).data('select2-config');
459
+
460
+ // If config has a dropdownParent property, wrap it a jQuery object.
461
+ if (Object.prototype.hasOwnProperty.call(config, 'dropdownParent')) {
462
+ config.dropdownParent = $(config.dropdownParent);
463
+ }
464
+ $(this).select2(config);
465
+
466
+ // Copied from https://github.com/woocommerce/woocommerce/blob/master/assets/js/admin/wc-enhanced-select.js#L118
467
+ if (Object.prototype.hasOwnProperty.call(config, 'ajax') && config.multiple) {
468
+ var $select = $(this);
469
+ var $list = $select.next('.select2-container').find('ul.select2-selection__rendered');
470
+ Sortable.create($list[0], {
471
+ draggable: 'li:not(.select2-search)',
472
+ forceFallback: true,
473
+ onEnd: function () {
474
+ $($list.find('.select2-selection__choice').get().reverse()).each(function () {
475
+ $select.prepend($select.find('option[value="' + $(this).data('optionValue') + '"]').first());
476
+ });
477
+ }
478
+ });
479
+ }
480
+ });
481
+ }
482
+ };
483
+
484
+ })(jQuery, drupalSettings, Sortable, once);
485
+ ;
486
+ (function ($, Drupal, drupalSettings) {
487
+ /**
488
+ * @namespace
489
+ */
490
+ var initialized;
491
+
492
+ Drupal.behaviors.imisfpAccessData = {
493
+ attach: function () {
494
+ if (document.getElementById("vlizimisfp")==null){
495
+ return;
496
+ }
497
+ init();
498
+ }
499
+ };
500
+
501
+
502
+ (function($) {
503
+
504
+ $( document ).ajaxStop(function() {
505
+ if (document.getElementById("vlizimisfp")==null){
506
+ return;
507
+ }
508
+
509
+ if(typeof(c)=='undefined'){
510
+ c=0;
511
+ z=-1;
512
+ }
513
+ c++;
514
+
515
+ interval=setInterval(function(){
516
+ if (z==c) {
517
+ // console.log("ajax is done");
518
+ $('#vlizimisfploading').fadeOut(500);
519
+ makeShowMore();
520
+ clearInterval(interval);
521
+
522
+ if ($('.cb-slideshow').length ) {
523
+ $('hr.animated').css("animation-play-state", "running");
524
+ setInterval(function() {
525
+ curActive=$('.active');
526
+ curActive.removeClass('active');
527
+ curActive.nextAll().slice(1, 2).addClass('preload');
528
+ curActive.next('li').addClass('active');
529
+ if($('.active').length==0){
530
+ $('.cb-slideshow li:first').addClass('active');
531
+ }
532
+ }, drupalSettings.imisfpComputedData.timeBetweenSlides);
533
+ }
534
+
535
+ }
536
+ else {
537
+ z=c;
538
+ }
539
+ }, 100);
540
+
541
+ });
542
+ })(jQuery);
543
+
544
+
545
+
546
+ function init() {
547
+ if (!initialized && document.location.pathname.substring(document.location.pathname.length - 4)!="edit") {
548
+ initialized = true;
549
+ var data = drupalSettings.imisfpComputedData;
550
+ if ((typeof(drupalSettings.imisfpComputedData.lang)=='undefined') || (drupalSettings.imisfpComputedData.lang=="")) {
551
+ drupalSettings.imisfpComputedData.lang=$('html').attr('lang');
552
+ }
553
+
554
+ //fallback lang
555
+ if (drupalSettings.imisfpComputedData.lang!="en" && drupalSettings.imisfpComputedData.lang!="nl") {
556
+ drupalSettings.imisfpComputedData.lang="en";
557
+ }
558
+
559
+ /*-----------language labels-----------*/
560
+ drupalSettings.imisfpComputedData.langlabels=[];
561
+ drupalSettings.imisfpComputedData.langlabels['nl']=[];
562
+ drupalSettings.imisfpComputedData.langlabels['en']=[];
563
+ drupalSettings.imisfpComputedData.langlabels['nl']['advancedsearch']="Geavanceerd zoeken";
564
+ drupalSettings.imisfpComputedData.langlabels['en']['advancedsearch']="Advanced search";
565
+ drupalSettings.imisfpComputedData.langlabels['nl']['keywordplaceholder']="Voer een zoekterm in..";
566
+ drupalSettings.imisfpComputedData.langlabels['en']['keywordplaceholder']="Enter a search keyword..";
567
+ drupalSettings.imisfpComputedData.langlabels['nl']['loading']='<span class="loading" >Laden <img src="/inc/images/loading_horizontal.gif"/></span>';
568
+ drupalSettings.imisfpComputedData.langlabels['en']['loading']='<span class="loading" >Loading <img src="/inc/images/loading_horizontal.gif"/></span>';
569
+ drupalSettings.imisfpComputedData.langlabels['nl']['moreoptions']="Meer opties tonen +";
570
+ drupalSettings.imisfpComputedData.langlabels['en']['moreoptions']="Show more options +";
571
+ drupalSettings.imisfpComputedData.langlabels['nl']['lessoptions']="Minder opties -";
572
+ drupalSettings.imisfpComputedData.langlabels['en']['lessoptions']="Less options -";
573
+ drupalSettings.imisfpComputedData.langlabels['en']['rss']="Update feed";
574
+ drupalSettings.imisfpComputedData.langlabels['nl']['rss']="Attenderen";
575
+ drupalSettings.imisfpComputedData.langlabels['en']['sortby']="Sort by";
576
+ drupalSettings.imisfpComputedData.langlabels['nl']['sortby']="Sorteren op";
577
+ drupalSettings.imisfpComputedData.langlabels['en']['sortbydate']="Date";
578
+ drupalSettings.imisfpComputedData.langlabels['nl']['sortbydate']="Datum";
579
+ drupalSettings.imisfpComputedData.langlabels['en']['sortbyauthor']="Author";
580
+ drupalSettings.imisfpComputedData.langlabels['nl']['sortbyauthor']="Auteur";
581
+ drupalSettings.imisfpComputedData.langlabels['en']['sortbytitle']="Title";
582
+ drupalSettings.imisfpComputedData.langlabels['nl']['sortbytitle']="Titel";
583
+ drupalSettings.imisfpComputedData.langlabels['en']['noresults']="No records found";
584
+ drupalSettings.imisfpComputedData.langlabels['nl']['noresults']="Geen records gevonden";
585
+ drupalSettings.imisfpComputedData.langlabels['en']['pubdate']="Published in";
586
+ drupalSettings.imisfpComputedData.langlabels['nl']['pubdate']="Gepubliceerd in";
587
+ drupalSettings.imisfpComputedData.langlabels['en']['more']="more";
588
+ drupalSettings.imisfpComputedData.langlabels['nl']['more']="meer";
589
+ drupalSettings.imisfpComputedData.langlabels['en']['and']="and";
590
+ drupalSettings.imisfpComputedData.langlabels['nl']['and']="en";
591
+ drupalSettings.imisfpComputedData.langlabels['en']['request']="Request";
592
+ drupalSettings.imisfpComputedData.langlabels['nl']['request']="Aanvragen";
593
+
594
+
595
+ /*-------------------------------------------------*/
596
+ if ($('.imis-filters').length ) {
597
+ if (drupalSettings.imisfpComputedData.field_layout_style!="covers") {
598
+ if (data.field_simple_search!=1 || window.location.href.indexOf('?') > -1) {
599
+ urlparamstring ="";
600
+ $.each(data.predefinedf, function(pkey, pobj){
601
+ urlparamstring +="&"+pobj.field_key+"="+pobj.field_value;
602
+ if (pobj.field_key=="module") {
603
+ template=pobj.field_value;
604
+ }
605
+ if (pobj.field_key=="w") {
606
+ drupalSettings.imisfpComputedData.photogalleryHeightorWidth='w='+pobj.field_value;
607
+ drupalSettings.imisfpComputedData.photogalleryWidthorHeight=0.7075 * pobj.field_value;
608
+ }
609
+ if (pobj.field_key=="timeBetweenSlides") {
610
+ drupalSettings.imisfpComputedData.timeBetweenSlides=pobj.field_value;
611
+ }
612
+ });
613
+
614
+ if (typeof(template) == 'undefined') {
615
+ template="ref";
616
+ }
617
+ if (typeof(drupalSettings.imisfpComputedData.timeBetweenSlides) == 'undefined') {
618
+ drupalSettings.imisfpComputedData.timeBetweenSlides="20000"; //default 20 sec
619
+ }
620
+
621
+ $('#imisfilterpageform').attr("data-template",template);
622
+
623
+ exposedf_html="";
624
+ curval=[];
625
+ specialexposedf=[];
626
+ drupalSettings.imisfpComputedData.cascadef=[];
627
+ drupalSettings.imisfpComputedData.exposedf=[];
628
+
629
+ decodedurlparamstring=decodeUrlParamstring("");
630
+ if (decodedurlparamstring!=null) {
631
+ urlparamstring=urlparamstring+decodedurlparamstring;
632
+ }
633
+
634
+ $.each(data.filters, function(ekey, eobj){
635
+
636
+ if (typeof(eobj.exposedf)!="undefined") {
637
+
638
+ eobj=eobj.exposedf;
639
+ drupalSettings.imisfpComputedData.exposedf[ekey]=eobj;
640
+ exposedf_html=filterCreateHTML(eobj,'exposedf');
641
+ if ('field_imisquery' in eobj && eobj.field_imisquery!=null && eobj.field_imisquery!="") {
642
+ specialexposedf.push(eobj);
643
+ delete data.exposedf[ekey];
644
+ }
645
+ $( ".appendfiltershere" ).append(exposedf_html);
646
+ }
647
+
648
+ if (typeof(eobj.cascadef)!="undefined") {
649
+ eobj=eobj.cascadef;
650
+ field_root_parent_id=false;
651
+ if (typeof(eobj.field_levels)=='undefined' || eobj.field_levels=='') {
652
+ eobj.field_levels='4';
653
+ }
654
+ cascadeparamstring='?show=json&page='+ eobj.field_imis_api_call_type +'&id_collection='+ eobj.field_collection_id +'&mod='+template+'&levels='+eobj.field_levels;
655
+ cascade_html='<span class="imisform-item liveitem idpar'+eobj.field_collection_id+'">'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['loading']+'</span>';
656
+ if (eobj.field_root_parent_id) {
657
+ cascadeparamstring+='&rpid='+eobj.field_root_parent_id;
658
+ field_root_parent_id=eobj.field_root_parent_id;
659
+ cascade_html='<span class="imisform-item liveitem idpar'+eobj.field_collection_id+eobj.field_root_parent_id+'">'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['loading']+'</span>';
660
+ }
661
+
662
+ eobj.template=template;
663
+ drupalSettings.imisfpComputedData.cascadef[ekey]=eobj;
664
+ imisCascadeFilter(cascadeparamstring,ekey,field_root_parent_id);
665
+ $( ".appendfiltershere" ).append(cascade_html);
666
+
667
+ }
668
+
669
+ if (typeof(eobj.externalf)!="undefined") {
670
+ eobj=eobj.externalf;
671
+ extf_html+='<span class="imisform-item key'+eobj.field_key+' '+eobj.field_form_widget_type+'">';
672
+ if (eobj.field_label) {
673
+ expflabel='<label>'+eobj.field_label+'</label>';
674
+ }
675
+ else {
676
+ expflabel='<label class="empty">&nbsp;</label>';
677
+ }
678
+ extf_html+=expflabel+'<select multiple="multiple" class="extfilter form-select '+eobj.field_key+'" name="'+eobj.field_key+'" id="'+eobj.field_key+'"></select>';
679
+ $( ".appendfiltershere" ).append(extf_html);
680
+ imisExternalFilters(eobj,decodedurlparamstring);
681
+ }
682
+
683
+
684
+ });
685
+
686
+
687
+ // if (data.cascadef && data.cascadef.length>0) {
688
+ // $.each(data.cascadef, function(cfkey, cfobj){
689
+
690
+ // });
691
+ // }
692
+
693
+ // if (data.externalf && data.externalf.length>0) {
694
+ // extf_html="";
695
+ // $.each(data.externalf, function(extfkey, extfobj){
696
+
697
+ // });
698
+
699
+
700
+ // }
701
+
702
+ $.each(specialexposedf, function(skey, sobj){
703
+
704
+ specials=sobj.field_imisquery.split("&");
705
+ regulars=urlparamstring.split("&");
706
+ specialurlparamstring="";
707
+ $.each(specials, function(delkey, delobj){
708
+ delete regulars[delkey];
709
+ });
710
+ if (!$.isEmptyObject(regulars)) {
711
+ specialurlparamstring= regulars.join("&");
712
+ }
713
+
714
+ var special = {};
715
+ special[sobj.field_key] = sobj;
716
+ imisSearchpars(specialurlparamstring,special,data.field_imis_api+"?"+sobj.field_imisquery,data.predefinedf,curval);
717
+ });
718
+
719
+ resetlink=window.location.href.split('?')[0];
720
+ if (data.field_simple_search==1){
721
+ resetlink=window.location.href.split('?')[0]+'?advanced=1';
722
+ }
723
+
724
+ $( ".frmbuttons" ).append('<span id="reset-submit-imis" class="button form-submit medium" onclick="window.location = \''+resetlink+'\';">Reset</span>');
725
+
726
+ imisCounter(urlparamstring);
727
+ imisSearchpars(urlparamstring,data.exposedf,data.field_imis_api+"?show=searchpars",data.predefinedf,curval);
728
+ imisContent (urlparamstring);
729
+
730
+ }
731
+ else {
732
+ $('#vlizimisfploading').hide();
733
+ $('.contentloading').hide();
734
+ $( ".imis-filters" ).addClass("simplesearch");
735
+ $( ".appendfiltershere" ).append('<input placeholder="'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['keywordplaceholder']+'" type="text" class="select23 form-text Field" maxlength="128" size="60" value="" name="Field" id="Field" autofocus><br/><small><a class="button small" href="?advanced=1">'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['advancedsearch']+'</a></small>');
736
+ $( "#Field" ).focus();
737
+
738
+ }
739
+ }
740
+ else {
741
+ $('#vlizimisfploading').hide();
742
+ $('.contentloading').hide();
743
+ $('.imis-filters').hide();
744
+ $('.sort-row').hide();
745
+
746
+ urlparamstring ="";
747
+ $.each(data.predefinedf, function(pkey, pobj){
748
+ urlparamstring +="&"+pobj.field_key+"="+pobj.field_value;
749
+ if (pobj.field_key=="module") {
750
+ template=pobj.field_value;
751
+ }
752
+ if (pobj.field_key=="w") {
753
+ drupalSettings.imisfpComputedData.photogalleryHeightorWidth='w='+pobj.field_value;
754
+ }
755
+ });
756
+ $('#imisfilterpageform').attr("data-template",template);
757
+ imisContent (urlparamstring);
758
+ }
759
+ }
760
+ }
761
+ }
762
+ })(jQuery, Drupal, drupalSettings);
763
+
764
+ function imisCounter(urlparamstring){
765
+ (function($) {
766
+ $('.imis-counter').ready(function() {
767
+ items_per_page=drupalSettings.imisfpComputedData.field_items_per_page;
768
+ if (items_per_page==null) {
769
+ items_per_page=50;
770
+ }
771
+ urlparamstring = urlparamstring.replace("imisfpspcol", "spcol");
772
+ $.ajax({
773
+ url: drupalSettings.imisfpComputedData.field_imis_api+"?show=json&cnt=1"+urlparamstring+'&calltype=imisCounter',
774
+ cache: true,
775
+ dataType : "json",
776
+ success: function(r) {
777
+ if (r!=null){
778
+ var counter=JSON.parse(JSON.stringify(r));
779
+ }
780
+ else counter.cnt=0;
781
+
782
+ if(typeof(counter.cnt) == 'undefined'){
783
+ counter.cnt=0;
784
+ }
785
+
786
+ if (drupalSettings.imisfpComputedData.lang=="nl") {
787
+ var label= {
788
+ results:"records gevonden",
789
+ pager_first:"Eerste",
790
+ pager_last:"Laatste"
791
+ }
792
+ if (counter.cnt==1) label.results="record gevonden";
793
+ if (counter.cnt==0) label.results="geen records gevonden";
794
+
795
+ }
796
+ else {
797
+ var label= {
798
+ results:"records found",
799
+ pager_first:"First",
800
+ pager_last:"Last"
801
+ }
802
+ if (counter.cnt==1) label.results="record found";
803
+ if (counter.cnt==0) label.results="no records found";
804
+ }
805
+
806
+ var html = "";
807
+ if (counter.cnt!=0) {
808
+ html += counter.cnt.toLocaleString('nl-BE')+" ";
809
+ }
810
+ html += label.results;
811
+ $('.imis-counter').html(html);
812
+ if (counter.cnt > items_per_page) imisPagination(counter.cnt,items_per_page,label);
813
+
814
+ }
815
+ });
816
+ });
817
+ })(jQuery);
818
+ }
819
+
820
+ function imisPagination(counter,items_per_page,label) {
821
+ (function($) {
822
+
823
+ var html='<nav class="pager" role="navigation" aria-labelledby="pagination-heading"><h4 id="pagination-heading" class="visually-hidden">Pagination</h4><ul class="pager__items js-pager__items">';
824
+ var currentPage=Math.ceil(getUrlParameter("start")/items_per_page);
825
+ if (!currentPage) currentPage=1;
826
+ var loopcount=Math.floor(counter/items_per_page);
827
+ var lastpage=loopcount;
828
+
829
+ if (loopcount>10) loopcount=10;
830
+ if (!currentPage) currentPage=0;
831
+ var firstpageritem=currentPage-5;
832
+ if (firstpageritem<1)firstpageritem=1;
833
+ if (currentPage > 6) html+='<li class="pager__item pager__item--first><a href="'+updateQueryStringParameter(window.location.search, "start", 1)+'">'+label.pager_first+'</a></li> ...';
834
+
835
+ for(var i = currentPage; i <= loopcount+currentPage && i <= lastpage+1+5; i++) {
836
+ pagerquerystring=updateQueryStringParameter(window.location.search, "start", (firstpageritem-1)*items_per_page+1);
837
+ selectedPager="";
838
+ if (firstpageritem==currentPage){
839
+ selectedPager="active";
840
+ pagerquerystring="#vlizimisfp";
841
+ }
842
+ html +='<li class="pager__item '+selectedPager+'"><a href="'+pagerquerystring+'">'+ firstpageritem +'</a></li>';
843
+ firstpageritem++;
844
+ }
845
+
846
+ if (lastpage>5 && currentPage+5-1 < lastpage)html +='... <li class="pager__item pager__item--last"><a href="'+updateQueryStringParameter(window.location.search, "start", lastpage*items_per_page+1)+'">'+label.pager_last+'</a></li>';
847
+ html +='</ul></div>';
848
+
849
+ $('.imis-pagination').html(html);
850
+ pagers=drupalSettings.imisfpComputedData.field_pager_location.split(",");
851
+ $.each(pagers, function(key, obj){
852
+ $('.imis-pagination.'+obj).show();
853
+ });
854
+
855
+ })(jQuery);
856
+ }
857
+ usedspocoll=[];
858
+
859
+ function imisSearchpars(urlparamstring,exposedfilters,imis_api_node,predefinedf,curval){
860
+ (function($) {
861
+ $('.imis-content').ready(function() {
862
+ $.ajax({
863
+ url: imis_api_node+urlparamstring+'&calltype=imisSearchpars',
864
+ cache: true,
865
+ dataType : "json",
866
+ success: function(r) {
867
+ if (r!=null){
868
+ r=JSON.stringify(r);
869
+
870
+ /*-------------------todo for IMIS dev ==> better api standardisation needed------------*/
871
+ r=r.replace(/\"SpColName\"|\"InstituteType\"|\"DasTheme\"|\"standardname\"|\"Name\"|\"val\"|\"fulltitle\"/g, "\"label\"");
872
+ r=r.replace(/\"SpColID\"|\"InsTypCode\"|\"id\"|\"DasThemeID\"|\"insid\"/g, "\"val\"");
873
+ r=r.replace(/\"choices\"|\"children\"/g, "\"options\"");
874
+
875
+ var searchpar=JSON.parse(r);
876
+
877
+ /* if((typeof(searchpar.spcollist) !== 'undefined')&&(searchpar.spcollist !=='null')){
878
+ searchpar.spcollist={
879
+ "descr":"DocTypePDF",
880
+ "options":[
881
+ {
882
+ "val":873,
883
+ "labels":
884
+ {
885
+ "NL":"Compendium achtergronddocument",
886
+ "EN":"Compendium background document"
887
+ }
888
+
889
+ },
890
+ {
891
+ "val":874,
892
+ "labels":
893
+ {
894
+ "NL":"Geactualiseerde deelhoofdstukken",
895
+ "EN":"Updated thematic chapters"
896
+ }
897
+
898
+ },
899
+ {
900
+ "val":875,
901
+ "labels":
902
+ {
903
+ "NL":"Brochure - Belgisch marien onderzoek",
904
+ "EN":"Brochure - Belgian marine research"
905
+ }
906
+
907
+ },
908
+ {
909
+ "val":876,
910
+ "labels":
911
+ {
912
+ "NL":"Catalogus - Onderzoeksinfrastructuur",
913
+ "EN":"Catalogue - Research infrastructure"
914
+ }
915
+
916
+ },
917
+ {
918
+ "val":877,
919
+ "labels":
920
+ {
921
+ "NL":"Wegwijzer - Financieringsinstrumenten",
922
+ "EN":"Guide - Funding instruments"
923
+ }
924
+
925
+ },
926
+ {
927
+ "val":878,
928
+ "labels":
929
+ {
930
+ "NL":"Vademecum - Mariene wetgeving",
931
+ "EN":"Manual - Marine legislation"
932
+ }
933
+
934
+ },
935
+ {
936
+ "val":983,
937
+ "labels":
938
+ {
939
+ "NL":"Indicatorrapport",
940
+ "EN":"Indicator report"
941
+ }
942
+
943
+ },
944
+ {
945
+ "val":996,
946
+ "labels":
947
+ {
948
+ "NL":"KustINzicht",
949
+ "EN":"KustINzicht"
950
+ }
951
+
952
+ },
953
+
954
+ ]
955
+ };
956
+ // }*/
957
+
958
+ /*inject missing searchpars todo ask imis-support to include these*/
959
+
960
+ if(typeof(searchpar.optionYear) == 'undefined'){
961
+
962
+ if (drupalSettings.imisfpComputedData.lang=='nl') {
963
+ searchpar.optionYear={"descr":"optionYear","options":[{"val":"in","label":"In"},{"val":"before","label":"Voor"},{"val":"after","label":"Na"}]};
964
+ }
965
+ else {
966
+ searchpar.optionYear={"descr":"optionYear","options":[{"val":"in","label":"In"},{"val":"before","label":"Before"},{"val":"after","label":"After"}]};
967
+ }
968
+ }
969
+
970
+ //searchpar.assspcoll={"descr":"id based search on thestid","options":[{"spcol":952,"val":952,"label":"ASSEMBLEPlus"},{"spcol":951,"val":951,"label":"AssembleMarine"}]};
971
+ }
972
+
973
+ if((typeof(exposedfilters) !== 'undefined')&&(exposedfilters !=='null')){
974
+ var parent={};
975
+
976
+ $.each(exposedfilters, function(key, obj){
977
+
978
+ if((typeof(obj) !== 'undefined')&&(obj !=='null')){
979
+
980
+ if((typeof(obj.field_imisquery) !== 'undefined')&&(obj.field_imisquery !=null)&&(obj.field_imisquery !="")){
981
+ specialsearchpar={};
982
+ specialsearchpar[obj.field_key] = searchpar;
983
+ searchpar=specialsearchpar;
984
+ }
985
+
986
+ var searchparid=obj.field_key;
987
+ var searchparvalue=getUrlParameter(searchparid);
988
+
989
+ isRadio=isCheckbox=isMultiCheckbox=false;
990
+
991
+ chbxhtml='<span id="'+searchparid+'">';
992
+ if (!$( "#"+searchparid).parent(".imisform-item").find("label").hasClass('empty')) {
993
+ chbxhtml+='<label class="mainlbl">'+$( "#"+searchparid).parent(".imisform-item").find("label").text()+'</label>';
994
+ }
995
+ chbxhtml+='</span>';
996
+
997
+ if ($( "#"+searchparid ).attr('type')=='checkbox'){
998
+ if (searchpar[searchparid].hasOwnProperty("options")) {
999
+ $( "#"+searchparid).parent(".imisform-item").html(chbxhtml);
1000
+ isMultiCheckbox=true;
1001
+ }
1002
+ isCheckbox=true;
1003
+ }
1004
+
1005
+ if ($( "#"+searchparid ).attr('type')=='radio'){
1006
+ isRadio=true;
1007
+ if (searchpar[searchparid].hasOwnProperty("options")) {
1008
+ $( "#"+searchparid).parent(".imisform-item").html(chbxhtml);
1009
+ }
1010
+ }
1011
+
1012
+ activeChecks=[];
1013
+ activeChecks[searchparid]=[];
1014
+ activeChecks[searchparid]=getUrlParameter(searchparid);
1015
+
1016
+ if (typeof(searchparid)!== 'undefined' && typeof(searchpar[searchparid])!== 'undefined' && typeof(searchpar[searchparid].child)!== 'undefined') {
1017
+
1018
+ parent[searchpar[searchparid].child]=obj.value;
1019
+ $( "#"+searchparid ).change(function() {
1020
+ var current_selection=this.value;
1021
+ $("."+searchpar[searchparid].child+' option[value=""]').attr("selected","selected");
1022
+ $("#"+searchpar[searchparid].child).val("");
1023
+ $('#'+searchpar[searchparid].child).find('option').not(':first').remove().end();
1024
+ if (typeof(searchpar[searchpar[searchparid].child].options) !== 'undefined') {
1025
+ $.each(searchpar[searchpar[searchparid].child].options, function(key, value) {
1026
+
1027
+ /*skip options with non matching parent id*/
1028
+ if ((searchpar[searchparid].child in parent)&&(current_selection!=value.ParSpColID)) return true;
1029
+ if ($( "#"+searchparid ).attr('type')=='checkbox') {
1030
+ $('#'+searchpar[searchparid].child).append('<input type="checkbox" /> ').attr("value",value.val).text(value.label.replace("ackn", ""));
1031
+ }
1032
+ else {
1033
+ $('#'+searchpar[searchparid].child).append($("<option></option>").attr("value",value.val).text(value.label.replace("ackn", "")));
1034
+ }
1035
+ if ((typeof(searchparvalue) !== 'undefined')&&(searchparvalue.includes(JSON.stringify(value.val)))) {
1036
+ $('#'+searchparid+' option[value='+value.val+']').attr("selected","selected");
1037
+ $( ".activefilters .addhere").append( '<span class="removefilter" onclick="removefilter('+searchparid+','+value.val+');" data-searchparid="'+searchparid+'" data-value="'+value.val+'">'+$('#'+searchparid+' option[value='+value.val+']').text()+'</span><br/>');
1038
+ $( ".activefilters.hidden" ).removeClass('hidden');
1039
+ }
1040
+
1041
+ });
1042
+ }
1043
+ });
1044
+ }
1045
+
1046
+ if(!usedspocoll[obj.id]) usedspocoll[obj.id]=[];
1047
+ if (typeof(searchparid)!== 'undefined' && typeof(searchpar[searchparid])!== 'undefined' && typeof(searchpar[searchparid].options) !== 'undefined') {
1048
+
1049
+ $.each(searchpar[searchparid].options, function(key2, value) {
1050
+
1051
+ if (!$.isNumeric(key2)){
1052
+
1053
+ /*
1054
+
1055
+ This if statement is used for integrating following type searchpar
1056
+ could be standardised
1057
+ capital language params
1058
+ choices instead of options
1059
+
1060
+ WLpub
1061
+ descr "WL specific publication"
1062
+ choices
1063
+ WLReports
1064
+ labels
1065
+ NL "Rapporten"
1066
+ EN "Reports"
1067
+ WLYearly
1068
+ labels
1069
+ NL "Jaarverslagen"
1070
+ EN "Annual reports"
1071
+
1072
+ */
1073
+
1074
+
1075
+ if (typeof(value.labels)!== 'undefined'){
1076
+ value.label=value.labels[drupalSettings.imisfpComputedData.lang.toUpperCase()];
1077
+ }
1078
+ value.val=key2;
1079
+ }
1080
+
1081
+ else {
1082
+
1083
+ if (typeof(value.label)== 'undefined' && typeof(value.labels)!== 'undefined'){
1084
+ value.label=value.labels[drupalSettings.imisfpComputedData.lang.toUpperCase()];
1085
+ }
1086
+
1087
+ }
1088
+
1089
+ /*build arrays with used spcolls */
1090
+
1091
+ usedspocoll[obj.id][value.val]=value;
1092
+
1093
+ /*skip options with non matching parent id*/
1094
+ if ((searchparid in parent)&&(parent[searchparid]!=value.ParSpColID)) return true;
1095
+ if (isMultiCheckbox) {
1096
+ $('#'+searchparid).append('<span class="checkbox"><input type="checkbox" name="'+searchparid+'[]" value="'+value.val+'"/><label>'+value.label.replace("ackn", "")+'</label></span>');
1097
+
1098
+ if ($.inArray(value.val.toString(),activeChecks[searchparid]) !== -1) {
1099
+ $(":checkbox[value="+value.val+"]").prop("checked","true");
1100
+ $( ".activefilters .addhere" ).append( '<span class="removefilter" onclick="removefilter('+searchparid+','+value.val+');"><span class="small x">X</span><span>'+$(":checkbox[value="+value.val+"]").parent(".checkbox").find("label").text()+'</span></span>');
1101
+ $( ".activefilters.hidden" ).removeClass('hidden');
1102
+ }
1103
+ }
1104
+ else if (isRadio) {
1105
+ $('#'+searchparid).append('<span class="radio"><input type="radio" name="'+searchparid+'" value="'+value.val+'"/><label>'+value.label.replace("ackn", "")+'</label></span>');
1106
+
1107
+ if ($.inArray(value.val.toString(),activeChecks[searchparid]) !== -1) {
1108
+ $(":radio[value="+value.val+"]").prop("checked","true");
1109
+ $( ".activefilters .addhere" ).append( '<span class="removefilter" onclick="removefilter('+searchparid+','+value.val+');"><span class="small x">X</span><span>'+$(":radio[value="+value.val+"]").parent(".radio").find("label").text()+'</span></span>');
1110
+ $( ".activefilters.hidden" ).removeClass('hidden');
1111
+ }
1112
+ }
1113
+ else {
1114
+
1115
+ if (typeof(value.label)!="undefined"){
1116
+ $('#'+searchparid).append($("<option></option>").attr("value",value.val).text(value.label.replace("ackn", "")));
1117
+ }
1118
+ if (((typeof(searchparvalue) !== 'undefined')&&(searchparvalue!=null)&&(searchparvalue.includes(JSON.stringify(value.val))))||(predefinedf[searchparid]==JSON.stringify(value.val))) {
1119
+ $('#'+searchparid+' option[value='+value.val+']').attr("selected","selected");
1120
+ $( ".activefilters .addhere" ).append( '<span class="removefilter" onclick="removefilter('+searchparid+','+value.val+');"><span class="small x">X</span><span>'+$('#'+searchparid+' option[value='+value.val+']').text()+'</span></span>');
1121
+ $( ".activefilters.hidden" ).removeClass('hidden');
1122
+ }
1123
+
1124
+ else if (curval[searchparid]==value.val) {
1125
+ $('#'+searchparid+' option[value='+value.val+']').attr("selected","selected");
1126
+ }
1127
+ }
1128
+ });
1129
+ }
1130
+
1131
+ else {
1132
+ if (isCheckbox && activeChecks[searchparid][0]=="1") {
1133
+
1134
+ $('#'+searchparid).prop('checked', true);
1135
+
1136
+ $( ".activefilters .addhere" ).append( '<span class="removefilter" onclick="removefilter('+searchparid+',1);"><span class="small x">X</span><span>'+$('#'+searchparid).parent(".checkbox").find("label").text()+'</span></span>');
1137
+ $( ".activefilters.hidden" ).removeClass('hidden');
1138
+ }
1139
+ }
1140
+
1141
+ }
1142
+ });
1143
+
1144
+ }
1145
+
1146
+ activeauthor=getUrlParameter("bentaut");
1147
+ if (typeof activeauthor[0] !== "undefined" && activeauthor[0].length>0){
1148
+ $( ".activefilters .addhere" ).append( '<span class="removefilter" onclick="removefilter(\'bentaut\',\''+activeauthor[0]+'\');"><span class="small x">X</span><span>Author: '+activeauthor[0]+'</span></span>');
1149
+ $( ".activefilters.hidden" ).removeClass('hidden');
1150
+ $('#bentaut').val(activeauthor[0]);
1151
+ }
1152
+
1153
+ activeyear=getUrlParameter("searchYear");
1154
+ activeyearoption=getUrlParameter("optionYear");
1155
+ if(typeof activeyear[0] !== "undefined" && activeyear[0].length>0){
1156
+ if (typeof activeyearoption !== "undefined" && activeyearoption.length<1) {
1157
+ activeyearoption[0]="in";
1158
+ }
1159
+
1160
+ $( ".activefilters .addhere" ).append( '<span class="removefilter" onclick="removefilter(\'searchYear\','+activeyear[0]+');"><span class="small x">X</span><span>Year: '+activeyearoption[0]+' '+activeyear[0]+'</span></span>');
1161
+ $( ".activefilters.hidden" ).removeClass('hidden');
1162
+ $('select[name="optionYear"] option[value="'+activeyearoption[0]+'"]').attr('selected', 'selected');
1163
+
1164
+ }
1165
+ if ($("#vlizimisfp select").not('.extfilter').length>0) {
1166
+ $("#vlizimisfp select").not('.extfilter').select2({
1167
+ placeholder: {
1168
+ id: '',
1169
+ text: ' '
1170
+ },
1171
+ allowClear: true,
1172
+ language: drupalSettings.imisfpComputedData.lang,
1173
+ });
1174
+ }
1175
+ }
1176
+ });
1177
+ });
1178
+ })(jQuery);
1179
+ }
1180
+ function imisCascadeFilter(cascadeparamstring,cascadefiltersindex,field_root_parent_id){
1181
+ (function($) {
1182
+ $('.imis-content').ready(function() {
1183
+ $.ajax({
1184
+ url: drupalSettings.imisfpComputedData.field_imis_api+cascadeparamstring.replace("mod", "nomod")+'&calltype=imisCascadeFilter&count=500',
1185
+ cache: true,
1186
+ dataType : "json",
1187
+ beforeSend: function() {
1188
+ $('.loading').show();
1189
+ },
1190
+ success: function(r) {
1191
+ if (r!=null){
1192
+ r=JSON.stringify(r);
1193
+
1194
+ var cascadedata =JSON.parse(r);
1195
+ remove=['rownum','type','hits','level','link'];
1196
+ cascadedata=slimArray(cascadedata,remove);
1197
+ parid=drupalSettings.imisfpComputedData.cascadef[cascadefiltersindex].field_collection_id;
1198
+ if (field_root_parent_id){
1199
+ parid+=field_root_parent_id;
1200
+ }
1201
+ imisCascadeData(cascadefiltersindex,cascadedata,parid,true);
1202
+ }
1203
+ else {
1204
+
1205
+ }
1206
+ }
1207
+ });
1208
+ // .promise().done(imisCascadeCounters(drupalSettings.imisfpComputedData.cascadef[cascadefiltersindex].field_imis_api))
1209
+
1210
+
1211
+ });
1212
+ })(jQuery);
1213
+ }
1214
+
1215
+ function imisCascadeData(cascadefiltersindex,cascadedata,parid,getCounts) {
1216
+ (function($) {
1217
+
1218
+ cascadefilters=drupalSettings.imisfpComputedData.cascadef[cascadefiltersindex];
1219
+ cascadef_html="";
1220
+ if ($( '.container'+parid ).length==0) {
1221
+
1222
+ containerhtml='<span class="container container'+parid+'" data="'+cascadefilters.field_collection_key+'='+parid+'" data-id="'+parid+'" >';
1223
+ if (cascadefilters.field_label!='<none>') {
1224
+ containerhtml+='<label>'+cascadefilters.field_label+'</label><span class="appendcontainer"></span>';
1225
+ }
1226
+ containerhtml+='</span>';
1227
+
1228
+ $( '.idpar'+parid ).append(containerhtml);
1229
+ recalChildcount=true;
1230
+ }
1231
+
1232
+
1233
+ THES=[];
1234
+ curval[cascadefilters.field_collection_key]="";
1235
+
1236
+ urlstring=decodeUrlParamstring("");
1237
+ // url=window.location.search.replace("?", "");
1238
+ urlparam=urlstring.split('&');
1239
+
1240
+ $.each(urlparam, function(tkey, tobj){
1241
+ tsplit=tobj.split('=');
1242
+ if (typeof(tsplit[0])!='undefined' && tsplit[0].indexOf(cascadefilters.field_collection_key) >= 0){
1243
+ THES=tsplit[1].split(',');
1244
+ curval[cascadefilters.field_collection_key] = THES.map(function (x) {
1245
+ return parseInt(x, 10);
1246
+ });
1247
+ }
1248
+ });
1249
+ $.each(cascadedata.children, function(ckey, cobj){
1250
+
1251
+ haschildren=false;
1252
+
1253
+ if (typeof(cobj.value)=='undefined' || typeof(cobj.id)=='undefined') {
1254
+ console.log('api is not returning ID or Value >>> skipping');
1255
+ return false;;
1256
+ }
1257
+
1258
+ if (cobj.hasOwnProperty('children')) {
1259
+ haschildren=true;
1260
+ }
1261
+
1262
+ cascadef_html='<span data="'+cascadefilters.field_collection_key+'='+cobj.id+'" class="';
1263
+
1264
+ if (curval[cascadefilters.field_collection_key].indexOf(cobj.id) >= 0) {
1265
+ cascadef_html+=' active';
1266
+ }
1267
+
1268
+ if (haschildren) {
1269
+ cascadef_html+=' haschildren';
1270
+ }
1271
+ if (!getCounts) {
1272
+ cascadef_html+=' hidden';
1273
+ }
1274
+
1275
+ cascadef_html+=' cascadeitem c'+cobj.id;
1276
+
1277
+ cascadef_html+='">';
1278
+
1279
+ if (cascadefilters.field_form_widget_type=='checkbox'){
1280
+ cascadef_html+='<input onclick="activeInactive(this);" type="checkbox" class="cascadechekcbox select23 form-checkbox '+cobj.id+'" maxlength="128" size="30" value="'+cobj.id+'" name="'+cascadefilters.field_collection_key+'" id="'+cobj.id+'"';
1281
+ if (curval[cascadefilters.field_collection_key].indexOf(cobj.id) >= 0){
1282
+ cascadef_html+=' checked';
1283
+ }
1284
+ if ((cobj.value.indexOf("/") >= 0)&& (cobj.value.indexOf(" / ") < 0)) {
1285
+ cobj.value=cobj.value.replace("/", " / ");
1286
+ }
1287
+
1288
+ if (drupalSettings.imisfpComputedData.lang=='nl') {
1289
+ if (cobj.value_dutch==null){
1290
+ cobj.value_dutch=cobj.value;
1291
+ }
1292
+ cascadef_html+='><span class="textlabel">'+cobj.value_dutch+'</span>';
1293
+ }
1294
+ else {
1295
+ cascadef_html+='><span class="textlabel">'+cobj.value+'</span>';
1296
+ }
1297
+
1298
+ if (haschildren) {
1299
+ mychild=JSON.stringify(cobj.children);
1300
+ cascadef_html+="<span id='h"+cobj.id+"' class='showchildren' onClick='imisCascadeChildren("+cobj.id+");' ></span>";
1301
+ }
1302
+ }
1303
+
1304
+ cascadef_html+='<br/></span>';
1305
+
1306
+ // if (cascadefilters.field_form_widget_type=='select'){
1307
+ // if ($( '.idpar'+cascadefilters.field_collection_id 'select' ).length==0) {
1308
+ // cascadef_html+='<select class="select23 form-select select'+par['id']+'" name="'+par['value']+'" id="'+par['id']+'" value="THES'+curval[par['id']]+'"><option></option><option value="THES'+cobj.id+'">'+cobj.value+'</option></select>';
1309
+ // }
1310
+ // else {
1311
+ // $( '.select'+par['id'] ).append('<option value="THES'+cobj.id+'">'+cobj.value+'</option>');
1312
+ // }
1313
+ // }
1314
+
1315
+ $('.container'+parid).append(cascadef_html);
1316
+ if (haschildren) {
1317
+ $( '<span class="hidden container subcontainer container'+cobj.id+'" data-id="'+cobj.id+'" ></span>' ).insertAfter($('#h'+cobj.id));
1318
+ imisCascadeData(cascadefiltersindex,cobj,cobj.id,false);
1319
+ }
1320
+
1321
+ });
1322
+
1323
+
1324
+ $.each(curval[cascadefilters.field_collection_key], function(curkey, curobj){
1325
+ $('.c'+curobj).siblings('.cascadeitem').removeClass('hidden');
1326
+ $('.c'+curobj).parents('.hidden').children('.showchildren').replaceWith( "<span id='h"+parid+"' class='togglesubcontainer open' onClick='showhideSubContainers("+parid+");' >&nbsp;</span>" );
1327
+ $('.c'+curobj).parents('.hidden').siblings().removeClass('hidden');
1328
+ $('.c'+curobj).parents('.hidden').children().removeClass('hidden');
1329
+ $.each($('.c'+curobj).parents('.container'), function(hpkey, hpobj){
1330
+ $(hpobj).children().removeClass('hidden');
1331
+ $(hpobj).siblings().removeClass('hidden');
1332
+ });
1333
+ $('.c'+curobj).parents('.hidden').removeClass('hidden');
1334
+ });
1335
+
1336
+
1337
+ if (getCounts) {
1338
+ imisCascadeCounters(parid);
1339
+ }
1340
+ })(jQuery);
1341
+ }
1342
+
1343
+ function imisCascadeCounters(parid){
1344
+ (function($) {
1345
+ calcthis=$(document).find('.cascadeitem').not('.calculated').not('.hidden');
1346
+ decodedurlparamstring=decodeUrlParamstring("")+'&module='+$('#imisfilterpageform').attr("data-template");
1347
+
1348
+ $.each(calcthis, function(ckey, cobj){
1349
+ $(cobj).addClass('calculated');
1350
+ if(typeof($(cobj).attr('data')) != 'undefined'){
1351
+
1352
+ if (decodedurlparamstring.indexOf($(cobj).attr('data').split('=')[0]) < 0) {
1353
+ rundecodedurlparamstring=decodedurlparamstring+'&'+$(cobj).attr('data');
1354
+ }
1355
+ else {
1356
+ extraTHES=$(cobj).attr('data').split('=')[1];
1357
+ rundecodedurlparamstring=decodedurlparamstring.replace($(cobj).attr('data').split('=')[0]+"=",$(cobj).attr('data').split('=')[0]+"="+extraTHES+",");
1358
+ }
1359
+
1360
+ $.ajax({
1361
+ url: drupalSettings.imisfpComputedData.field_imis_api+'?show=json&cnt=1'+rundecodedurlparamstring+'&calltype=imisCascadeCounters',
1362
+ cache: true,
1363
+ indexValue: $(cobj).attr('data'),
1364
+ beforeSend: function() {
1365
+ $('.loading').show();
1366
+ },
1367
+ dataType : "json",
1368
+ success: function(r) {
1369
+ if (r!=null){
1370
+ var counter=JSON.parse(JSON.stringify(r));
1371
+ iscalculated=this.indexValue;
1372
+ domcalc=$(document).find("[data='" + iscalculated + "']");
1373
+ input=domcalc.find("input");
1374
+ if (!input.is(':checked')){
1375
+ if (counter.cnt==0) {
1376
+ appendcontainer=domcalc.closest(".appendcontainer");
1377
+ domcalc.children('input').attr("disabled", true);
1378
+ domcalc.children('.textlabel').append(' <span class="cnt">('+counter.cnt+')</span>');
1379
+ domcalc.children('.textlabel').addClass('disabled');
1380
+
1381
+ if (appendcontainer.html()=="") {
1382
+ appendcontainer.closest(".container").addClass("hidden");
1383
+ }
1384
+ else {
1385
+ if (appendcontainer.find(".cascadeitem").length<4) {
1386
+ appendcontainer.find(".hidden").removeClass("hidden");
1387
+ appendcontainer.closest(".container").children(".showhidecontainers").removeClass("show");
1388
+ appendcontainer.closest(".container").children(".showhidecontainers").addClass("hidden");
1389
+ }
1390
+
1391
+ else {
1392
+ if (appendcontainer.find(".cascadeitem").not(".hidden").length<4) {
1393
+ xTcount=3 - appendcontainer.find(".cascadeitem").not(".hidden").length;
1394
+ for(var i = 0; i < xTcount; i++) {
1395
+ appendcontainer.find(".hidden:first").removeClass("hidden");
1396
+ }
1397
+ }
1398
+ }
1399
+ }
1400
+
1401
+
1402
+ if (domcalc.parents('.imisform-item').find('.cascadeitem').not('.hidden').length<1) {
1403
+ domcalc.parents('.imisform-item').addClass("hidden");
1404
+ }
1405
+ }
1406
+ else {
1407
+ domcalc.parents('.imisform-item').removeClass("hidden");
1408
+ domcalc.children('.textlabel').append(' <span class="cnt">('+counter.cnt+')</span>');
1409
+ domcalc.children('.textlabel').removeClass('disabled');
1410
+ }
1411
+ }
1412
+
1413
+ }
1414
+
1415
+ }
1416
+ }).promise().done(imisCascadeDoneCounters(parid));
1417
+ }
1418
+ });
1419
+
1420
+ $.each($('.countforme').not('.calculated'), function(cfkey, cfobj){
1421
+ $(cfobj).addClass('calculated');
1422
+ if(typeof($(cfobj).attr('data')) != 'undefined'){
1423
+ $.ajax({
1424
+ url: drupalSettings.imisfpComputedData.field_imis_api+'?show=json&cnt=1'+decodedurlparamstring+'&'+$(cfobj).attr('data')+'&calltype=imiscountforme',
1425
+ cache: true,
1426
+ indexValue: $(cfobj).attr('data'),
1427
+ dataType : "json",
1428
+ success: function(r) {
1429
+ if (r!=null){
1430
+ var counter=JSON.parse(JSON.stringify(r));
1431
+ iscalculated=this.indexValue;
1432
+ domcalc=$(document).find("[data='" + iscalculated + "']");
1433
+ if (!domcalc.is(':checked')){
1434
+ if (counter.cnt==0) {
1435
+ domcalc.closest('.imisform-item').hide();
1436
+ }
1437
+ else {
1438
+ domcalc.siblings('.cnt').html('('+counter.cnt+')');
1439
+ }
1440
+ }
1441
+
1442
+ }
1443
+
1444
+ }
1445
+ });
1446
+ }
1447
+ });
1448
+ })(jQuery);
1449
+ }
1450
+
1451
+ function imisCascadeDoneCounters(parid) {
1452
+ (function($) {
1453
+ $('.loading').hide();
1454
+ if (parid!=""){
1455
+ $('.container'+parid).removeClass('hidden');
1456
+ }
1457
+ })(jQuery);
1458
+ }
1459
+
1460
+ function makeShowMore () {
1461
+ (function($) {
1462
+ $.each($('.container'), function(conkey, conobj){
1463
+ containerthis=this;
1464
+
1465
+ /*sort*/
1466
+ var elem = $(conobj).children('span').not('.sorted').sort(sortChecked).not('.active').sort(sortAlphabetical);
1467
+ $(conobj).append(elem);
1468
+ $(conobj).children('span').addClass('sorted');
1469
+
1470
+ childcount=$(containerthis).children('.cascadeitem').not('.active').length;
1471
+ if (childcount>3 && $(containerthis).children('.showhidecontainers').length<1) {
1472
+ $(containerthis).children('.cascadeitem').not('.active').slice(3).addClass('threehidden');
1473
+ $(containerthis).append('<span class="showhidecontainers show" onClick="showhidecontainers('+$(containerthis).attr("data-id")+');"><span class="textlabel" style="display:none !important;">zzz</span>'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['moreoptions']+'</span>');
1474
+ }
1475
+
1476
+ });
1477
+
1478
+
1479
+ })(jQuery);
1480
+ }
1481
+
1482
+ function imisCascadeChildren (parid){
1483
+ // cascadefiltersindex,parid,field_collection_id,cascadedata
1484
+ (function($) {
1485
+ // cascadedata={children:JSON.parse(child.getAttribute('data-mychild'))};
1486
+
1487
+ $( "#h"+parid).replaceWith( "<span id='h"+parid+"' class='togglesubcontainer open' onClick='showhideSubContainers("+parid+");' >&nbsp;</span>" );
1488
+ $(".container"+parid).removeClass('hidden');
1489
+ $(".container"+parid).children(".cascadeitem").removeClass('hidden');
1490
+
1491
+ imisCascadeCounters(parid);
1492
+
1493
+ // imisCascadeData(child.getAttribute('data-cascadefiltersindex'),cascadedata,child.getAttribute('data-id'),true);
1494
+ })(jQuery);
1495
+ }
1496
+
1497
+ function imisContent (urlparamstring){
1498
+ urlparamstring=urlparamstring.replace("sortby","sort")+'&count='+drupalSettings.imisfpComputedData.field_items_per_page;
1499
+ (function($) {
1500
+ template=$('#imisfilterpageform').attr("data-template");
1501
+
1502
+ $('.imis-content').html("");
1503
+ if (drupalSettings.imisfpComputedData.lang=="nl") {
1504
+ var label_cite="Wijze van citeren:";
1505
+ var label_moreinfo="Meer info";
1506
+ var imislink="Klik hier voor overzichtsrecord in IMIS";
1507
+ var infralink="Klik hier voor overzicht infrastructuur";
1508
+ var onderzoektitle="Onderzoeksdomein en -discipline";
1509
+ }
1510
+ else {
1511
+ var label_cite="Manner of citing:";
1512
+ var label_moreinfo="More info";
1513
+ var imislink="Click here to view the IMIS record";
1514
+ var infralink="Click here to view the infrastructure record";
1515
+ var onderzoektitle="Research area and discipline";
1516
+ }
1517
+
1518
+ if (template=="infra" || template=="mog") {
1519
+ $.ajax({
1520
+ url: drupalSettings.imisfpComputedData.field_imis_api+"?show=json&spcols=1"+urlparamstring+'&calltype=inframog',
1521
+ cache: true,
1522
+ dataType : "json",
1523
+ success: function(r) {
1524
+ $('#vlizimisfploading').fadeOut(500);
1525
+ if (r!=null){
1526
+ var r=JSON.parse(JSON.stringify(r));
1527
+ }
1528
+ html="";
1529
+ var InfraL1=[];
1530
+ var InsType=[];
1531
+ var Onderzoeksdiscipline=[];
1532
+ var Onderzoeksdomein=[];
1533
+ var ParUnivIns=[];
1534
+ var pdflang="";
1535
+
1536
+ for (var i in usedspocoll["InfraL1"]) {
1537
+ InfraL1.push(usedspocoll["InfraL1"][i].val);
1538
+ }
1539
+
1540
+ for (var i in usedspocoll["InsType"]) {
1541
+ InsType.push(usedspocoll["InsType"][i].val);
1542
+ }
1543
+
1544
+ for (var i in usedspocoll["Onderzoeksdiscipline"]) {
1545
+ Onderzoeksdiscipline.push(usedspocoll["Onderzoeksdiscipline"][i].val);
1546
+ }
1547
+
1548
+ for (var i in usedspocoll["Onderzoeksdomein"]) {
1549
+ Onderzoeksdomein.push(usedspocoll["Onderzoeksdomein"][i].val);
1550
+ }
1551
+
1552
+ for (var i in usedspocoll["ParUnivIns"]) {
1553
+ ParUnivIns.push(usedspocoll["ParUnivIns"][i].val);
1554
+ }
1555
+
1556
+ if (template=="infra") {
1557
+ pdflang="en";
1558
+ }
1559
+ else {
1560
+ pdflang=drupalSettings.imisfpComputedData.lang;
1561
+ }
1562
+
1563
+ // c = 0;
1564
+ $.each(r, function(key, obj){
1565
+ html +='<div class="imis-row">';
1566
+ html +='<h3 class="imis-displayname">'+obj.displayName+'</h3>';
1567
+ html +='<span class="imis-left"><a class="imis-kaft image" href="/sites/compendiumkustenzee.be/files/public/Compendium_modules/'+template+'_'+pdflang+'/pdf/'+obj.InsID+'.pdf" target="_blank">';
1568
+ html +='<img class="lazyload" data-src="/sites/compendiumkustenzee.be/files/public/Compendium_modules/'+template+'_en/img/'+obj.InsID+'.png" src="/sites/compendiumkustenzee.be/files/public/Compendium_modules/'+template+'_en/img/'+obj.InsID+'.png">';
1569
+ html +='</a></span>';
1570
+ html +='<span class="imis-right">';
1571
+
1572
+ if ((obj.HighestInsID!==null)&&(usedspocoll["ParUnivIns"]!== undefined)) {
1573
+ if (usedspocoll["ParUnivIns"][obj.HighestInsID]!==undefined) {
1574
+ html +='<span class="imis-ParUnivIns-'+template+'">'+usedspocoll["ParUnivIns"][obj.HighestInsID].label+'</span>';
1575
+ }
1576
+ }
1577
+ var OnderzoeksdisciplineCounter=0;
1578
+ $.each(obj.spcols, function(id, data){
1579
+
1580
+ if($.inArray(data.spcolid, InfraL1)!=-1) {
1581
+ // html +='<span class="rt">test</span>';
1582
+ html +='<img class="lazyload imis-infra-image" src="/sites/compendiumkustenzee.be/files/public/Compendium_modules/infra_en/icons/'+data.spcolid+'.png" src="/sites/compendiumkustenzee.be/files/public/Compendium_modules/infra_en/icons/'+data.spcolid+'.png">';
1583
+ }
1584
+
1585
+ if (($.inArray(data.spcolid, ParUnivIns))!=-1) {
1586
+ html +='<span class="imis-ParUnivIns">'+usedspocoll["ParUnivIns"][data.spcolid].label+'</span>';
1587
+ }
1588
+
1589
+ if (($.inArray(data.spcolid, InsType))!=-1) {
1590
+ html +='<span class="imis-instype">'+usedspocoll["InsType"][data.spcolid].label+'</span>';
1591
+ }
1592
+
1593
+ if ($.inArray(data.spcolid, Onderzoeksdiscipline)!=-1) {
1594
+ if(OnderzoeksdisciplineCounter==0)
1595
+ {
1596
+ html +='<b class="imis-Onderzoeksdiscipline-title">'+onderzoektitle+'</b>';
1597
+ }
1598
+ var parid=usedspocoll["Onderzoeksdiscipline"][data.spcolid].ParSpColID;
1599
+ html +='<span class="imis-Onderzoeksdiscipline">'+usedspocoll["Onderzoeksdomein"][parid].label+'; '+usedspocoll["Onderzoeksdiscipline"][data.spcolid].label+'</span>';
1600
+
1601
+
1602
+ OnderzoeksdisciplineCounter++;
1603
+ }
1604
+
1605
+ });
1606
+
1607
+ if (template=="mog") {
1608
+ html +='<br/><span class="imis-link babyblue"><a href="/'+obj.url+'" target="_blank">'+imislink+'</a></span>';
1609
+ html +='<span class="infra-link babyblue"><a href="'+drupalSettings.imisfpComputedData.field_imis_api+'/?InsID='+obj.InsID+'" target="_blank">'+infralink+'</a></span>'
1610
+ }
1611
+
1612
+ html +='</span></div>';
1613
+ });
1614
+
1615
+ $('.imis-content').html(html);
1616
+ },
1617
+ error: function(error){
1618
+ $('.imis-content').html("<h3>Request failed to load</h3>");
1619
+ }
1620
+ });
1621
+ }
1622
+
1623
+
1624
+ if (template=="ref") {
1625
+ $.ajax({
1626
+ url: drupalSettings.imisfpComputedData.field_imis_api+"?show=json2"+urlparamstring+'&calltype=ref',
1627
+ cache: true,
1628
+ dataType : "json",
1629
+ success: function(r) {
1630
+ $('#vlizimisfploading').fadeOut(500);
1631
+ html="";
1632
+ if (r!=null && r.results){
1633
+
1634
+ html +='<div class="floatright sort-row">'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['sortby']+': <a href="'+updateQueryStringParameter(window.location.search, "sortby", "date")+'">'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['sortbydate']+'</a> | <a href="'+updateQueryStringParameter(window.location.search, "sortby", "author")+'">'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['sortbyauthor']+'</a> | <a href="'+updateQueryStringParameter(window.location.search, "sortby", "title")+'">'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['sortbytitle']+'</a></div>';
1635
+
1636
+ if (drupalSettings.imisfpComputedData.field_export_path!='' && drupalSettings.imisfpComputedData.field_export_path!=null) {
1637
+
1638
+ //https://www.iconfinder.com/search/icons?family=computer-web
1639
+
1640
+ html +='<div class="export-row"><a class="select23 button download" target="_blank" href="'+drupalSettings.imisfpComputedData.field_export_path+'?module=ref&show=search&srchid='+r.request.searchpars.srchid+'"><img src="/modules/custom/imisfp/images/download.png"/> Export this result</a><a class="select23 button rss" target="_blank" href="'+drupalSettings.imisfpComputedData.field_export_path+'?module=ref&show=rss&srchid='+r.request.searchpars.srchid+'"><img src="/modules/custom/imisfp/images/rss.png"/> '+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['rss']+'</a></div>';
1641
+ }
1642
+
1643
+ if (drupalSettings.imisfpComputedData.field_layout_style=="standard") {
1644
+ $.each(r.results, function(key, obj){
1645
+ html +='<div class="imis-row">';
1646
+ html +='<span class="imis-left">';
1647
+ if((typeof(obj.Cover) !== 'undefined')&&(obj.Cover != null)) html +='<a class="imis-kaft image" href="'+drupalSettings.imisfpComputedData.field_imis_api+'?module=ref&refid='+obj.BRefID+'" target="_blank"><img class="lazyload" height="auto" width="156px" data-src="'+obj.Cover+'&p=resize" src="'+obj.Cover+'&p=resize"></a>';
1648
+ html +='</span>';
1649
+ // html +='<h3 class="imis-displayname">'+obj.StTitleClear+'</h3>';
1650
+ html +='<span class="imis-right">'; //<b class="imis-cite">'+label_cite+'</b>
1651
+ html +='<span class="imis-rr">'+obj.RR+'</span>';
1652
+ html +='<span class="buttons right"><a class="button small" href="'+drupalSettings.imisfpComputedData.field_imis_api+'?module=ref&refid='+obj.BRefID+'" target="_blank">'+label_moreinfo+'</a>';
1653
+ if(((typeof(obj.pubInst) !== 'undefined')&&(obj.pubInst != null))&&(obj.classifTypID==1))html +='<a class="button with-icon download small" href="https://www.vliz.be/imisdocs/publications/'+obj.pubInst+'" target="_blank">Download</a>';
1654
+ if(((typeof(obj.pubInst) !== 'undefined')&&(obj.pubInst != null))&&(obj.classifTypID==2))html += '<a class="button with-icon download small" href=" ' + (obj.opnArchURL? obj.opnArchURL : 'https://www.vliz.be/node/324/?module=ref&refid=') + obj.BRefID + '" target="_blank">' + (obj.opnArchName ? obj.opnArchName : 'OMA') + '</a>'
1655
+ if (obj.classifTypID == "1") html +='<img class="lazyload openaccess" title="Open Access" src="/inc/images/openaccess.png">';
1656
+ html +='</span></span></div>';
1657
+ });
1658
+ }
1659
+ if (drupalSettings.imisfpComputedData.field_layout_style=="ugent") {
1660
+ $.each(r.results, function(key, obj){
1661
+ html +='<div class="imis-row">';
1662
+ html +='<b class="imis-title"><a class="imis-authorstring" href="'+drupalSettings.imisfpComputedData.field_imis_api+'?module=ref&refid='+obj.BRefID+'" target="_blank">'+obj.StandardTitle+'</a></b>';
1663
+ if((typeof(obj.Authorstring) !== 'undefined')&&(obj.Authorstring != null)) {
1664
+ ShortAuthorstring=obj.Authorstring.split("; ");
1665
+ }
1666
+
1667
+ if ((typeof(obj.Authorstring) !== 'undefined')&&(obj.Authorstring != null) && ShortAuthorstring.length >5) {
1668
+ html +='<div class="imis-authors">'+ShortAuthorstring[0] + '; ' + ShortAuthorstring[1] + '; ' + ShortAuthorstring[2] + '; ' + ShortAuthorstring[3] + '; ' + ShortAuthorstring[4] + '; ' + ' '+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['and']+' ' + (ShortAuthorstring.length - 5) + ' '+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['more']+'</div>';
1669
+ }
1670
+ else {
1671
+ if((typeof(obj.Authorstring) !== 'undefined')&&(obj.Authorstring != null)) {
1672
+ html +='<div class="imis-authors">'+obj.Authorstring+'</div>';
1673
+ }
1674
+ }
1675
+
1676
+ if((typeof(obj.PubDate) !== 'undefined')&&(obj.PubDate != null)) {
1677
+ html +='<div class="imis-pubdate">'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['pubdate']+' <b>'+obj.PubDate+'</b></div>';
1678
+ }
1679
+ html +='<div class="buttons right"><a class="button small" href="'+drupalSettings.imisfpComputedData.field_imis_api+'?module=ref&refid='+obj.BRefID+'" target="_blank">'+label_moreinfo+'</a>';
1680
+ if(((typeof(obj.pubInst) !== 'undefined')&&(obj.pubInst != null))&&(obj.classifTypID==1))html +='<a class="button with-icon download small" href="https://www.vliz.be/imisdocs/publications/'+obj.pubInst+'" target="_blank">Download</a>';
1681
+ if(((typeof(obj.pubInst) !== 'undefined')&&(obj.pubInst != null))&&(obj.classifTypID==2))html += '<a class="button with-icon download small" href=" ' + (obj.opnArchURL? obj.opnArchURL : 'https://www.vliz.be/node/324/?module=ref&refid=') + obj.BRefID + '" target="_blank">' + (obj.opnArchName ? obj.opnArchName : 'OMA') + '</a>';
1682
+ if(((typeof(obj.request) !== 'undefined')&&(obj.request)))html +='<a class="button with-icon download small" onclick="event.stopPropagation(); window.open(\''+drupalSettings.imisfpComputedData.field_imis_api+'?page=reserve&refid='+obj.BRefID+'&instid='+obj.BInstID+'\',\'mozillaWindow\',\'left=100,top=100,width=620,height=620\');" href="javascript:void(0)" >'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['request']+'</a>';
1683
+ if (obj.classifTypID == "1") html +='<img class="lazyload openaccess" title="Open Access" src="/inc/images/openaccess.png">';
1684
+ html +='</div></div>';
1685
+ });
1686
+ }
1687
+ if (drupalSettings.imisfpComputedData.field_layout_style=="covers") {
1688
+ html +='<div class="covers">';
1689
+ $.each(r.results, function(key, obj){
1690
+ html +='<div class="cover">';
1691
+ if((typeof(obj.Cover) !== 'undefined')&&(obj.Cover != null)) {
1692
+ html +='<img class="lazyload" data-src="'+obj.Cover+'&p=thumb&'+drupalSettings.imisfpComputedData.photogalleryHeightorWidth+'" src="'+obj.Cover+'&p=thumb&'+drupalSettings.imisfpComputedData.photogalleryHeightorWidth+'"/>';
1693
+ }
1694
+ else {
1695
+ html +='<img class="lazyload" data-src="'+obj.Cover+'&p=thumb&'+drupalSettings.imisfpComputedData.photogalleryHeightorWidth+'" src="'+obj.Cover+'&p=thumb&'+drupalSettings.imisfpComputedData.photogalleryHeightorWidth+'"/>';
1696
+ }
1697
+ html +='<p class="imis-displayname">'+obj.StTitleClear+'</p>';
1698
+
1699
+ html +='</div>';
1700
+ });
1701
+ html +='</div>';
1702
+ }
1703
+ if (drupalSettings.imisfpComputedData.field_layout_style=="interactivecovers") {
1704
+ html +='<div class="covers">';
1705
+ presentation="'.interactivecover'";
1706
+ $.each(r.results, function(key, obj){
1707
+ html +='<div id="BRefID'+obj.BRefID+'" class="interactivecover" onClick="getPublicationDetails('+obj.BRefID+','+presentation+');"><div class="inner">';
1708
+ if((typeof(obj.Cover) !== 'undefined')&&(obj.Cover != null)) {
1709
+ html +='<img width="'+drupalSettings.imisfpComputedData.photogalleryWidthorHeight+'px" height="'+drupalSettings.imisfpComputedData.photogalleryHeightorWidth.substr(2)+'px" class="lazyload cover" data-src="'+obj.Cover+'&p=thumb&'+drupalSettings.imisfpComputedData.photogalleryHeightorWidth+'" />';
1710
+ }
1711
+ else {
1712
+ html +='<svg enable-background="new 0 0 48 48" height="48px" version="1.1" viewBox="0 0 48 48" width="48px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path clip-rule="evenodd" d="M37,47H11c-2.209,0-4-1.791-4-4V5c0-2.209,1.791-4,4-4h18.973 c0.002,0,0.005,0,0.007,0h0.02H30c0.32,0,0.593,0.161,0.776,0.395l9.829,9.829C40.84,11.407,41,11.68,41,12l0,0v0.021 c0,0.002,0,0.003,0,0.005V43C41,45.209,39.209,47,37,47z M31,4.381V11h6.619L31,4.381z M39,13h-9c-0.553,0-1-0.448-1-1V3H11 C9.896,3,9,3.896,9,5v38c0,1.104,0.896,2,2,2h26c1.104,0,2-0.896,2-2V13z M33,39H15c-0.553,0-1-0.447-1-1c0-0.552,0.447-1,1-1h18 c0.553,0,1,0.448,1,1C34,38.553,33.553,39,33,39z M33,31H15c-0.553,0-1-0.447-1-1c0-0.552,0.447-1,1-1h18c0.553,0,1,0.448,1,1 C34,30.553,33.553,31,33,31z M33,23H15c-0.553,0-1-0.447-1-1c0-0.552,0.447-1,1-1h18c0.553,0,1,0.448,1,1C34,22.553,33.553,23,33,23 z" fill-rule="evenodd"/></svg>';
1713
+ }
1714
+ html +='<p class="imis-displayname" style="max-width:'+drupalSettings.imisfpComputedData.photogalleryWidthorHeight+'px">'+obj.StTitleClear+'</p>';
1715
+
1716
+ html +='<span class="publicationdetails"></span></div></div>';
1717
+ });
1718
+ html +='</div>';
1719
+ }
1720
+ if (drupalSettings.imisfpComputedData.field_layout_style=="coverslideshow") {
1721
+ coverslide=0;
1722
+ css="";
1723
+ html +='<div class="covers"><hr class="animated" /><ul class="cb-slideshow">';
1724
+ $.each(r.results, function(key, obj){
1725
+ coverslide++;
1726
+
1727
+ if (coverslide==1) {
1728
+ html += '<li class="active"><span style="width:'+drupalSettings.imisfpComputedData.photogalleryWidthorHeight+'px;height:'+drupalSettings.imisfpComputedData.photogalleryHeightorWidth.substr(2)+'px">'+obj.StTitleClear+'</span>';
1729
+ }
1730
+ else {
1731
+ if (coverslide==2) {
1732
+ html += '<li class="preload"><span style="width:'+drupalSettings.imisfpComputedData.photogalleryWidthorHeight+'px;height:'+drupalSettings.imisfpComputedData.photogalleryHeightorWidth.substr(2)+'px">'+obj.StTitleClear+'</span>';
1733
+ }
1734
+ else {
1735
+ html += '<li><span style="width:'+drupalSettings.imisfpComputedData.photogalleryWidthorHeight+'px;height:'+drupalSettings.imisfpComputedData.photogalleryHeightorWidth.substr(2)+'px">'+obj.StTitleClear+'</span>';
1736
+ }
1737
+ }
1738
+ css+=".cb-slideshow li:nth-child("+coverslide+").active span,.cb-slideshow li:nth-child("+coverslide+").preload span { background-image: url('"+obj.Cover+'&p=thumb&'+drupalSettings.imisfpComputedData.photogalleryHeightorWidth+"');}";
1739
+
1740
+
1741
+ html +='<p style="max-width:'+drupalSettings.imisfpComputedData.photogalleryWidthorHeight+'px" class="imis-displayname">'+obj.StTitleClear+'</p></li>';
1742
+
1743
+ });
1744
+ html +='</div>';
1745
+ if (coverslide>2) {
1746
+ css+="hr.animated {animation: growfullwidth "+drupalSettings.imisfpComputedData.timeBetweenSlides+"ms linear infinite;animation-play-state: paused}}";
1747
+ }
1748
+ html +='</ul><style>'+css+'</style>';
1749
+ }
1750
+
1751
+ }
1752
+ else {
1753
+ html="<h1>"+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['noresults']+"</h1>";
1754
+ }
1755
+ $('.imis-content').html(html);
1756
+
1757
+ },
1758
+ error: function(error){
1759
+ $('.imis-content').html("<h3>Request failed to load</h3>");
1760
+ }
1761
+ });
1762
+ }
1763
+ if (template=="person") {
1764
+ $.ajax({
1765
+ url: drupalSettings.imisfpComputedData.field_imis_api+"?show=json"+urlparamstring+'&calltype=person',
1766
+ cache: true,
1767
+ dataType : "json",
1768
+ success: function(r) {
1769
+ $('#vlizimisfploading').fadeOut(500);
1770
+ html="";
1771
+ if (r!=null){
1772
+
1773
+ $.each(r, function(key, obj){
1774
+ html +='<div class="imis-row">';
1775
+ html +='<a class="" href="'+drupalSettings.imisfpComputedData.field_imis_api+'?module=person&persid='+obj.PersID+'" target="_blank">'+obj.FullPers+'</a>';
1776
+ html +='</div>';
1777
+ });
1778
+ }
1779
+ else html="<h1>"+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['noresults']+"</h1>";
1780
+ $('.imis-content').html(html);
1781
+
1782
+ },
1783
+ error: function(error){
1784
+ $('.imis-content').html("<h3>Request failed to load</h3>");
1785
+ }
1786
+ });
1787
+ }
1788
+ if (template=="institute") {
1789
+ $.ajax({
1790
+ url: drupalSettings.imisfpComputedData.field_imis_api+"?show=json"+urlparamstring+'&calltype=institute',
1791
+ cache: true,
1792
+ dataType : "json",
1793
+ success: function(r) {
1794
+ $('#vlizimisfploading').fadeOut(500);
1795
+ html="";
1796
+ if (r!=null){
1797
+
1798
+ $.each(r, function(key, obj){
1799
+ html +='<div class="imis-row">';
1800
+ html +='<a class="" href="'+drupalSettings.imisfpComputedData.field_imis_api+'?module=institute&insid='+obj.InsID+'" target="_blank">'+obj.FullStandardName+'</a>';
1801
+ html +='</div>';
1802
+ });
1803
+ }
1804
+ else html="<h1>"+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['noresults']+"</h1>";
1805
+ $('.imis-content').html(html);
1806
+
1807
+ },
1808
+ error: function(error){
1809
+ $('.imis-content').html("<h3>Request failed to load</h3>");
1810
+ }
1811
+ });
1812
+ }
1813
+ if (template=="project") {
1814
+ $.ajax({
1815
+ url: drupalSettings.imisfpComputedData.field_imis_api+"?show=json"+urlparamstring+'&calltype=project',
1816
+ cache: true,
1817
+ dataType : "json",
1818
+ success: function(r) {
1819
+ $('#vlizimisfploading').fadeOut(500);
1820
+ html="";
1821
+ if (r!=null){
1822
+
1823
+ $.each(r, function(key, obj){
1824
+ html +='<div class="imis-row">';
1825
+ html +='<a class="" href="'+drupalSettings.imisfpComputedData.field_imis_api+'?module=project&proid='+obj.ProID+'" target="_blank">'+obj.StandardTitle+'</a>';
1826
+ html +='</div>';
1827
+ });
1828
+ }
1829
+ else html="<h1>"+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['noresults']+"</h1>";
1830
+ $('.imis-content').html(html);
1831
+
1832
+ },
1833
+ error: function(error){
1834
+ $('.imis-content').html("<h3>Request failed to load</h3>");
1835
+ }
1836
+ });
1837
+ }
1838
+ if (template=="map") {
1839
+ $.ajax({
1840
+ url: drupalSettings.imisfpComputedData.field_imis_api+"?show=json"+urlparamstring+'&calltype=map',
1841
+ cache: true,
1842
+ dataType : "json",
1843
+ success: function(r) {
1844
+ $('#vlizimisfploading').fadeOut(500);
1845
+ html="";
1846
+ if (r!=null){
1847
+ $.each(r, function(key, obj){
1848
+ html +='<div class="imis-row">';
1849
+ html +='<a class="" href="'+drupalSettings.imisfpComputedData.field_imis_api+'?module=ref&refid='+obj.BRefID+'" target="_blank">'+obj.StandardTitle+'</a>';
1850
+ html +='</div>';
1851
+ });
1852
+ }
1853
+ else html="<h1>"+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['noresults']+"</h1>";
1854
+ $('.imis-content').html(html);
1855
+
1856
+ },
1857
+ error: function(error){
1858
+ $('.imis-content').html("<h3>Request failed to load</h3>");
1859
+ }
1860
+ });
1861
+ }
1862
+ if (template=="dataset") {
1863
+ $.ajax({
1864
+ url: drupalSettings.imisfpComputedData.field_imis_api+"?show=json"+urlparamstring+'&calltype=dataset',
1865
+ cache: true,
1866
+ dataType : "json",
1867
+ success: function(r) {
1868
+ $('#vlizimisfploading').fadeOut(500);
1869
+ html="";
1870
+ if (r!=null){
1871
+ count=0;
1872
+ $.each(r, function(key, obj){
1873
+ count++;
1874
+ html +='<div class="imis-row '+count+'">';
1875
+ html +='<span class="imis-left"><a class="imis-kaft image" href="'+drupalSettings.imisfpComputedData.field_imis_api+'?module=dataset&refid='+obj.DasID+'" target="_blank">';
1876
+ if((typeof(obj.Cover) !== 'undefined')&&(obj.Cover != null)) html +='<img class="lazyload" height="auto" width="156px" data-src="'+obj.Cover+'&p=resize" src="'+obj.Cover+'&p=resize">';
1877
+ html +='</a></span>';
1878
+ // html +='<h3 class="imis-displayname">'+obj.StTitleClear+'</h3>';
1879
+ html +='<span class="imis-right">'; //<b class="imis-cite">'+label_cite+'</b>
1880
+ html +='<p>'+obj.StandardTitle+'</p>';
1881
+ if((typeof(obj.Citation) !== 'undefined')&&(obj.Citation != null)) html +='<p><small>Citation: '+obj.Citation+'</small></p>';
1882
+ html +='<div id="'+obj.DasID+'" style="display:none">';
1883
+ if (drupalSettings.imisfpComputedData.lang=="nl" && ((typeof(obj.OrigAbstract) !== 'undefined')&&(obj.OrigAbstract != null))) html += obj.OrigAbstract;
1884
+ else if (((typeof(obj.EngAbstract) !== 'undefined')&&(obj.EngAbstract != null))) html += obj.EngAbstract;
1885
+ html +='</div>';
1886
+ html +='<span class="buttons right">';
1887
+ if ((drupalSettings.imisfpComputedData.lang=="nl" && ((typeof(obj.OrigAbstract) !== 'undefined')&&(obj.OrigAbstract != null))) || (((typeof(obj.EngAbstract) !== 'undefined')&&(obj.EngAbstract != null)))) {
1888
+ html += '<a class="button small" onClick="javascript:showAbstract('+obj.DasID+');">Abstract</a>';
1889
+ }
1890
+ html += '<a class="button small" href="'+drupalSettings.imisfpComputedData.field_imis_api+'?module=dataset&dasid='+obj.DasID+'" target="_blank">'+label_moreinfo+'</a>';
1891
+ html +='</span></div>';
1892
+ });
1893
+ }
1894
+ else html="<h1>"+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['noresults']+"</h1>";
1895
+ $('.imis-content').html(html);
1896
+
1897
+ },
1898
+ error: function(error){
1899
+ $('.imis-content').html("<h3>Request failed to load</h3>");
1900
+ }
1901
+ });
1902
+ }
1903
+
1904
+ })(jQuery);
1905
+ }
1906
+
1907
+ function showAbstract(DasID) {
1908
+ (function($) {
1909
+ $("#"+DasID).toggle();
1910
+ })(jQuery);
1911
+ }
1912
+
1913
+ function decodeEntities(encodedString) {
1914
+ return jQuery('<div></div>').html(encodedString).text().replace(/[\u201C\u201D]/g, '"');
1915
+ }
1916
+
1917
+ function removefilter(searchparid,val) {
1918
+ (function($) {
1919
+ currenturl=window.location.href;
1920
+
1921
+ id=searchparid.id;
1922
+ if (!id) {
1923
+ id=searchparid;
1924
+ }
1925
+
1926
+ if (currenturl.indexOf(searchparid.id+"%5B%5D=") >= 0) {
1927
+ replacestr=id+"%5B%5D="+val;
1928
+ newurl=currenturl.replace(replacestr,'');
1929
+ }
1930
+ else {
1931
+ replacestr=id+"="+val;
1932
+ newurl=currenturl.replace(replacestr,'');
1933
+ }
1934
+ document.location.href = newurl;
1935
+ })(jQuery);
1936
+ }
1937
+
1938
+ function resetpath() {
1939
+ (function($) {
1940
+ document.location.href = window.location.href.split("?")[0];
1941
+ })(jQuery);
1942
+ }
1943
+
1944
+ function getUrlParameter(sParam) {
1945
+ var sPageURL = window.location.search.substring(1),
1946
+ sURLVariables = sPageURL.split('&'),
1947
+ sParameterName,
1948
+ i;
1949
+ var returnval=[];
1950
+ for (i = 0; i < sURLVariables.length; i++) {
1951
+
1952
+ sParameterName = sURLVariables[i].split('=');
1953
+
1954
+ //replace both encoded and decoded []
1955
+ namefromurl=sParameterName[0].replace('%5B%5D','').replace('[]','');
1956
+
1957
+ if (namefromurl === sParam) {
1958
+ returnval.push(decodeURIComponent(sParameterName[1]));
1959
+ }
1960
+ }
1961
+ return returnval;
1962
+ };
1963
+
1964
+ function getQueryParams( param, url ) {
1965
+ if (!url) url = location.href;
1966
+ param = param.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
1967
+ var regexS = "[\\?&]"+param+"=([^&#]*)";
1968
+ var regex = new RegExp( regexS );
1969
+ var results = regex.exec( url );
1970
+ return results == null ? "" : results[1];
1971
+ }
1972
+
1973
+ function updateQueryStringParameter(uri, key, value) {
1974
+ var re = new RegExp("([?&])" + key + "=.*?(&|$)", "i");
1975
+ var separator = uri.indexOf('?') !== -1 ? "&" : "?";
1976
+ if (value=="") {
1977
+ return uri.replace(re, '$1');
1978
+ }
1979
+ else {
1980
+ if (uri.match(re)) {
1981
+ return uri.replace(re, '$1' + key + "=" + value + '$2');
1982
+ }
1983
+ else {
1984
+ return uri + separator + key + "=" + value;
1985
+ }
1986
+ }
1987
+ }
1988
+
1989
+ function getKeyByValue(object, value) {
1990
+ for (var prop in object) {
1991
+ if (object.hasOwnProperty(prop)) {
1992
+ if (object[prop] === value)
1993
+ return prop;
1994
+ }
1995
+ }
1996
+ }
1997
+
1998
+ function showhidecontainers(parid) {
1999
+
2000
+ (function($) {
2001
+
2002
+ if ($('.container'+parid).children('.showhidecontainers').hasClass( "show" )){
2003
+ $('.container'+parid).children('.showhidecontainers').addClass('hidde').removeClass('show');
2004
+ $('.container'+parid).children('.showhidecontainers').text(drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['lessoptions']);
2005
+ if ($('.container'+parid).children('.cascadeitem.threehidden').length>0) {
2006
+ $('.container'+parid).children('.cascadeitem.threehidden').addClass('visible').addClass('temphighlighted').removeClass('threehidden');
2007
+ setTimeout(function() {
2008
+ $('.container'+parid).children('.cascadeitem').removeClass('temphighlighted');
2009
+ }, 2000);
2010
+ }
2011
+ return true; //stop here
2012
+ }
2013
+
2014
+ if ($('.container'+parid).children('.showhidecontainers').hasClass( "hidde" )){
2015
+ $('.container'+parid).children('.showhidecontainers').addClass('show').removeClass('hidde');
2016
+ $('.container'+parid).children('.showhidecontainers').text(drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['moreoptions']);
2017
+ if ($('.container'+parid).children('.cascadeitem.visible').length>0) {
2018
+ $('.container'+parid).children('.cascadeitem.visible').not('.active').addClass('threehidden').removeClass('visible');
2019
+ }
2020
+ return true;
2021
+ }
2022
+
2023
+ })(jQuery);
2024
+ }
2025
+
2026
+ function showhideSubContainers(parid) {
2027
+
2028
+ (function($) {
2029
+
2030
+ if ($('#h'+parid).hasClass( "closed" )){
2031
+ $('#h'+parid).next('.subcontainer').removeClass('hidden');
2032
+ $('#h'+parid).removeClass('closed').addClass('open');
2033
+ $('#h'+parid).children('.cascadeitem').addClass('hidden');
2034
+ return true;
2035
+ }
2036
+
2037
+ if ($('#h'+parid).hasClass( "open" )){
2038
+ $('#h'+parid).next('.subcontainer').addClass('hidden');
2039
+ $('#h'+parid).removeClass('open').addClass('closed');
2040
+ return true;
2041
+ }
2042
+
2043
+
2044
+ })(jQuery);
2045
+ }
2046
+
2047
+ function setWithExpiry(key, value, ttl) {
2048
+ const now = new Date()
2049
+
2050
+ // `item` is an object which contains the original value
2051
+ // as well as the time when it's supposed to expire
2052
+ const item = {
2053
+ value: value,
2054
+ expiry: now.getTime() + ttl,
2055
+ }
2056
+
2057
+ try {
2058
+ localStorage.setItem(key, JSON.stringify(item));
2059
+ } catch(e) {
2060
+ if (isQuotaExceeded(e)) {
2061
+ window.localStorage.clear();
2062
+ localStorage.setItem(key, JSON.stringify(item));
2063
+ }
2064
+ }
2065
+ }
2066
+
2067
+
2068
+ function isQuotaExceeded(e) {
2069
+ var quotaExceeded = false;
2070
+ if (e) {
2071
+ if (e.code) {
2072
+ switch (e.code) {
2073
+ case 22:
2074
+ quotaExceeded = true;
2075
+ break;
2076
+ case 1014:
2077
+ // Firefox
2078
+ if (e.name === 'NS_ERROR_DOM_QUOTA_REACHED') {
2079
+ quotaExceeded = true;
2080
+ }
2081
+ break;
2082
+ }
2083
+ } else if (e.number === -2147024882) {
2084
+ // Internet Explorer 8
2085
+ quotaExceeded = true;
2086
+ }
2087
+ }
2088
+ return quotaExceeded;
2089
+ }
2090
+
2091
+
2092
+ function getWithExpiry(key) {
2093
+ const itemStr = localStorage.getItem(key)
2094
+ // if the item doesn't exist, return null
2095
+ if (!itemStr) {
2096
+ return null
2097
+ }
2098
+ const item = JSON.parse(itemStr)
2099
+ const now = new Date()
2100
+ // compare the expiry time of the item with the current time
2101
+ if (now.getTime() > item.expiry) {
2102
+ // If the item is expired, delete the item from storage
2103
+ // and return null
2104
+ localStorage.removeItem(key)
2105
+ return null
2106
+ }
2107
+ return JSON.parse(item.value)
2108
+ }
2109
+
2110
+ function slimArray(obj,remove) {
2111
+ for(prop in obj) {
2112
+ if (remove.indexOf(prop) >= 0){
2113
+ delete obj[prop];
2114
+ }
2115
+ else {
2116
+ if (typeof obj[prop] === 'object') {
2117
+ slimArray(obj[prop],remove);
2118
+ }
2119
+ }
2120
+
2121
+ }
2122
+ return obj;
2123
+ }
2124
+
2125
+
2126
+ function iFPajaxSubmit() {
2127
+
2128
+ (function($) {
2129
+
2130
+ $('#vlizimisfploading').fadeIn(500);
2131
+
2132
+ result={};
2133
+ $.each($('form').serializeArray(), function() {
2134
+ if (this.value!="") {
2135
+ if (typeof(result[this.name])=="undefined") {
2136
+ result[this.name]=this.value;
2137
+ }
2138
+ else {
2139
+ result[this.name]=result[this.name]+','+this.value;
2140
+ }
2141
+ }
2142
+ });
2143
+
2144
+ urlparamstring="";
2145
+ $.each(result, function(rkey, robj){
2146
+ if (urlparamstring!=""){
2147
+ urlparamstring+="&";
2148
+ }
2149
+ urlparamstring=urlparamstring+rkey+'='+robj;
2150
+ });
2151
+
2152
+ if ($('.imis-filters').hasClass('simplesearch')){
2153
+ window.location = window.location.href+'?'+urlparamstring;
2154
+ }
2155
+
2156
+ decodedurlparamstring=decodeUrlParamstring(urlparamstring)+'&module='+$('#imisfilterpageform').attr("data-template");
2157
+
2158
+ imisContent(decodedurlparamstring);
2159
+ $('.imis-pagination').html("");
2160
+ imisCounter(decodedurlparamstring);
2161
+ $(document).find('.cascadeitem').removeClass('calculated');
2162
+ $(document).find('.countforme').removeClass('calculated');
2163
+ $(document).find('.cascadechekcbox').removeAttr("disabled");
2164
+ $(document).find('.cascadeitem .cnt').remove();
2165
+ $(document).find('.imisform-item .cnt').html();
2166
+ $(document).find('.imisform-item').removeClass('hidden');
2167
+ $(document).find('.container').not('.hidden').children('.cascadeitem').removeClass('hidden');
2168
+ imisCascadeCounters("");
2169
+
2170
+
2171
+ var new_position = $('#vlizimisfp').offset();
2172
+ $('html, body').stop().animate({ scrollTop: new_position.top }, 500);
2173
+
2174
+ })(jQuery);
2175
+
2176
+ }
2177
+
2178
+
2179
+
2180
+
2181
+ function decodeUrlParamstring(url) {
2182
+
2183
+ (function($) {
2184
+ // console.log(url);
2185
+ userFriendlyURL="";
2186
+
2187
+ if (url=="") {
2188
+ url=window.location.search.replace("?", "");
2189
+ }
2190
+ decodedurlparamstring ="";
2191
+ if (url!="") {
2192
+ prepro_decodedurlparamstring = url.replace("imisfpspcol", "spcol");
2193
+ processes_decodedurlparamstring=prepro_decodedurlparamstring.replace("#vlizimisfp",'').replace("%2C",',').split('&');
2194
+ processed_dup=[];
2195
+ dubsplit=[];
2196
+
2197
+ THES=[];
2198
+ if (typeof(drupalSettings.imisfpComputedData.cascadeTHES)!='undefined') {
2199
+ for (let i = 0; i < drupalSettings.imisfpComputedData.cascadeTHES.length; i++) {
2200
+ THES[drupalSettings.imisfpComputedData.cascadeTHES[i]]=[];
2201
+ }
2202
+ }
2203
+ SPCOL=[];
2204
+ userFriendlyPieces=[];
2205
+ dropYear=false;
2206
+ if ((prepro_decodedurlparamstring.indexOf("optionYear") >= 0 && prepro_decodedurlparamstring.indexOf("searchYear") <0) || (prepro_decodedurlparamstring.indexOf("searchYear") >= 0 && prepro_decodedurlparamstring.indexOf("optionYear") <0)){
2207
+ dropYear=true;
2208
+ }
2209
+
2210
+ $.each(processes_decodedurlparamstring, function(dupkey, dupobj){
2211
+
2212
+ drop=false;
2213
+ dubsplit=dupobj.split('=');
2214
+
2215
+ if (dubsplit[0]!="" && dubsplit[1]!="" && typeof(dubsplit[0])!="undefined" && typeof(dubsplit[1])!="undefined" ) {
2216
+
2217
+ if ((dubsplit[0].indexOf("optionYear") >= 0 || dubsplit[0].indexOf("searchYear") >= 0)&&(dropYear)){
2218
+ /* we need both optionYear and searchYear to do something */
2219
+ drop=true;
2220
+ alert("Please use the Year field in combination with one of the 3 Year Options");
2221
+ }
2222
+
2223
+ if (dubsplit[0].indexOf("antibot_key") >= 0) {
2224
+ drop=true;
2225
+ }
2226
+
2227
+ if (userFriendlyPieces[dubsplit[0]]!= undefined && !drop) {
2228
+ userFriendlyPieces[dubsplit[0]]+=",";
2229
+ }
2230
+
2231
+ if (userFriendlyPieces[dubsplit[0]]=== undefined && !drop) {
2232
+ userFriendlyPieces[dubsplit[0]]=dubsplit[0]+"=";
2233
+ }
2234
+
2235
+ if (!drop) {
2236
+ userFriendlyPieces[dubsplit[0]]+=dubsplit[1];
2237
+ }
2238
+
2239
+ if (typeof(drupalSettings.imisfpComputedData.cascadeTHES)!='undefined') {
2240
+ for (let i = 0; i < drupalSettings.imisfpComputedData.cascadeTHES.length; i++) {
2241
+ if (dubsplit[1].indexOf(drupalSettings.imisfpComputedData.cascadeTHES[i]) >= 0){
2242
+ THES[drupalSettings.imisfpComputedData.cascadeTHES[i]].push(dubsplit[1].replaceAll(drupalSettings.imisfpComputedData.cascadeTHES[i],''));
2243
+ drop=true;
2244
+ }
2245
+ }
2246
+ }
2247
+
2248
+ if (dubsplit[1].indexOf("SPCOL") >= 0){
2249
+ SPCOL.push(dubsplit[1].replaceAll('SPCOL',''));
2250
+ drop=true;
2251
+ }
2252
+
2253
+ if (!drop) {
2254
+ processed_dup[dupkey]=dubsplit.join('=');
2255
+ }
2256
+ }
2257
+ });
2258
+
2259
+ for (var i in userFriendlyPieces) {
2260
+ userFriendlyURL += userFriendlyPieces[i] + "&";
2261
+ }
2262
+
2263
+ userFriendlyURL=userFriendlyURL.slice(0,-1);
2264
+
2265
+ decodedurlparamstring='&'+processed_dup.filter(Boolean).join('&');
2266
+ if (typeof(drupalSettings.imisfpComputedData.cascadeTHES)!='undefined') {
2267
+ for (let i = 0; i < drupalSettings.imisfpComputedData.cascadeTHES.length; i++) {
2268
+ if (THES[drupalSettings.imisfpComputedData.cascadeTHES[i]].length!=0) {
2269
+ decodedurlparamstring+='&'+drupalSettings.imisfpComputedData.cascadeTHES[i]+'='+THES[drupalSettings.imisfpComputedData.cascadeTHES[i]].join(',');
2270
+ }
2271
+ }
2272
+ }
2273
+ if (SPCOL.length!=0) {
2274
+ decodedurlparamstring+='&SPCOL='+SPCOL.join(',');
2275
+ }
2276
+ }
2277
+
2278
+ IMISFPtitle = document.getElementsByTagName("title")[0].innerHTML;
2279
+ nextState = { additionalInformation: 'Updated the URL with JS' };
2280
+
2281
+ currenturl= window.location.href;
2282
+ currentparam="";
2283
+ if (currenturl.indexOf("?") >= 0) {
2284
+ nextURL=currenturl.split('?')[0];
2285
+ }
2286
+ else {
2287
+ nextURL="";
2288
+ }
2289
+
2290
+ nextURLparams="";
2291
+ if (userFriendlyURL!="") {
2292
+ nextURLparams="?"+userFriendlyURL;
2293
+ }
2294
+
2295
+
2296
+
2297
+
2298
+
2299
+ nextURL+=nextURLparams;
2300
+ nextURL=nextURL.replace('?&&','?');
2301
+ nextURL=nextURL.replace('?&','?');
2302
+
2303
+ window.history.replaceState(nextState, IMISFPtitle, nextURL);
2304
+
2305
+ })(jQuery);
2306
+
2307
+ return decodedurlparamstring;
2308
+ }
2309
+
2310
+ function activeInactive(t) {
2311
+ (function($) {
2312
+ if(t.checked) {
2313
+ $(t).closest('.cascadeitem').addClass('active');
2314
+ }
2315
+ else {
2316
+ $(t).closest('.cascadeitem').removeClass('active');
2317
+ }
2318
+ })(jQuery);
2319
+ }
2320
+
2321
+ function sortChecked(a, b) {
2322
+ (function($) {
2323
+ result= b.className < a.className;
2324
+ })(jQuery);
2325
+ return result;
2326
+ }
2327
+
2328
+ function sortAlphabetical(a, b) {
2329
+ (function($) {
2330
+ result= $(b).find('.textlabel').text() < $(a).find('.textlabel').text();
2331
+ })(jQuery);
2332
+ return result;
2333
+ }
2334
+
2335
+ function filterCreateHTML(obj,ftype) {
2336
+ (function($) {
2337
+ html="";
2338
+ curval[obj.field_key]=getUrlParameter(obj.field_key);
2339
+ if (curval[obj.field_key].length == 0 && obj.field_default_value ) {
2340
+ curval[obj.field_key]=obj.field_default_value;
2341
+ }
2342
+
2343
+ html+='<span class="imisform-item key'+obj.field_key+' '+obj.field_form_widget_type+'">';
2344
+ if (obj.field_label) {
2345
+ expflabel='<label>'+obj.field_label+'</label>';
2346
+ }
2347
+ else {
2348
+ expflabel='<label class="empty">&nbsp;</label>';
2349
+ }
2350
+
2351
+ if (obj.field_placeholder) {
2352
+
2353
+ placeholder='placeholder="'+obj.field_placeholder+'"';
2354
+ }
2355
+ else {
2356
+ placeholder="";
2357
+ if (obj.field_key=="searchFromYear"){
2358
+ placeholder='placeholder="e.g. '+(parseFloat(new Date().getFullYear())-1)+'"';
2359
+ }
2360
+ if (obj.field_key=="searchToYear" || obj.field_key=="searchYear"){
2361
+ placeholder='placeholder="e.g. '+new Date().getFullYear()+'"';
2362
+ }
2363
+ }
2364
+
2365
+ if (obj.field_form_widget_type=='text'){
2366
+ html+=expflabel+'<input type="text" class="select23 form-text '+obj.field_key+'" maxlength="128" size="30" value="'+curval[obj.field_key]+'" name="'+obj.field_key+'" id="'+obj.field_key+'" '+placeholder+'>';
2367
+ }
2368
+
2369
+ if (obj.field_form_widget_type=='checkbox'){
2370
+ html+='<input data="'+obj.field_key+'=1" type="checkbox" class="countforme select23 form-checkbox '+obj.field_key+'" maxlength="128" size="30" value="1" name="'+obj.field_key+'" id="'+obj.field_key+'">'+expflabel+'<span class="cnt"></span>';
2371
+ }
2372
+
2373
+ if (obj.field_form_widget_type=='radio'){
2374
+ html+=expflabel+'<input type="radio" class="select23 form-radio '+obj.field_key+'" maxlength="128" size="30" value="1" name="'+obj.field_key+'" id="'+obj.field_key+'">';
2375
+ }
2376
+
2377
+ if (obj.field_form_widget_type=='select'){
2378
+ html+=expflabel+'<select class="'+ftype+' select23 form-select '+obj.field_key+'" name="'+obj.field_key+'" id="'+obj.field_key+'" value="'+curval[obj.field_key]+'"><option></option></select>';
2379
+ }
2380
+
2381
+ if (obj.field_form_widget_type=='multiselect'){
2382
+ html+=expflabel+'<select multiple="multiple" class="'+ftype+' form-select '+obj.field_key+'" name="'+obj.field_key+'" id="'+obj.field_key+'"></select>';
2383
+ }
2384
+
2385
+ if (obj.field_form_widget_type=='number'){
2386
+ html+=expflabel+' <input type="number" class="'+ftype+' select23 form-number '+obj.field_key+'" name="'+obj.field_key+'" id="'+obj.field_key+'" '+placeholder+'>';
2387
+ }
2388
+
2389
+ html+='</span>';
2390
+ })(jQuery);
2391
+ return html;
2392
+ }
2393
+
2394
+
2395
+ function imisExternalFilters(extfilters,decodedurlparamstring){
2396
+ (function($) {
2397
+
2398
+ $('.imis-content').ready(function() {
2399
+
2400
+ $('#'+extfilters.field_key).select2({
2401
+ minimumInputLength: 3,
2402
+ maximumSelectionLength: 10,
2403
+ language: drupalSettings.imisfpComputedData.lang,
2404
+ tags: [],
2405
+ ajax: {
2406
+ url: extfilters.field_target_url,
2407
+ type: "POST",
2408
+ dataType: 'json',
2409
+ delay: 500,
2410
+ data: function (params) {
2411
+ return {
2412
+ [extfilters.field_target_search_key]: params.term // search term
2413
+ };
2414
+ },
2415
+ processResults: function (response) {
2416
+ return {
2417
+ results: $.map(response, function (item) {
2418
+ return {
2419
+ text: item[extfilters.field_target_label_key],
2420
+ id: item[extfilters.field_target_value_key]
2421
+ }
2422
+ })
2423
+ };
2424
+ }
2425
+ }
2426
+ });
2427
+
2428
+ });
2429
+ })(jQuery);
2430
+ }
2431
+
2432
+
2433
+ function getPublicationDetails (BRefID,presentation){
2434
+ (function($) {
2435
+ if (!$('#BRefID'+BRefID+' .details').length) {
2436
+ $('.openbutton').hide();
2437
+ $('.imis-filters').hide();
2438
+ $('.sort-row').hide();
2439
+ $('.imis-counter').hide();
2440
+ $(presentation).not('.monpart').removeClass('open');
2441
+ $(presentation).not('.monpart').hide();
2442
+ $('#BRefID'+BRefID).addClass('open');
2443
+ $('#BRefID'+BRefID).show();
2444
+ $('#BRefID'+BRefID+presentation+' .publicationdetails').html('<img class="contentloading" src="/inc/images/book.gif">');
2445
+ html="";
2446
+ html +='<span class="details"><span class="close" onClick="closePublicationDetails('+BRefID+',\''+presentation+'\');">&#9587;</span>';
2447
+ $.ajax({
2448
+ url: drupalSettings.imisfpComputedData.field_imis_api+"?show=json2&module=ref&refid="+BRefID+'&calltype=BRefID',
2449
+ cache: true,
2450
+ dataType : "json",
2451
+ success: function(r) {
2452
+ $('#vlizimisfploading').fadeOut(500);
2453
+ if (r!=null){
2454
+ html +='<h2 class="pubtitle">'+r.refrec.StandardTitle+'</h2><p class="refrec">'+r.refrec.RR+'</p></div>';
2455
+ if ($.isArray(r.availability)){
2456
+ html +='<div class="availability">';
2457
+ $.each(r.availability, function(dlkey, dlobj){
2458
+ if (dlobj.hasOCRd=='1') {
2459
+ url=dlobj.URLLocation+'ocrd/'+dlobj.BInstID+dlobj.FileFormat;
2460
+ }
2461
+ else {
2462
+ url=dlobj.URLLocation+dlobj.BInstID+dlobj.FileFormat;
2463
+ }
2464
+ if (dlobj.Description!=null && url!=null) {
2465
+ html +='<p>'+dlobj.Description+' <a class="button" target="_blank" href="'+url+'">'+dlobj.FileDescr+'</a></p>';
2466
+ }
2467
+ });
2468
+ html +='</div>';
2469
+ }
2470
+ if ($.isArray(r.monparts)){
2471
+ html +='<div class="monparts">';
2472
+ $.each(r.monparts, function(mpkey, mpobj){
2473
+ html +='<div>';
2474
+ if (mpobj.BRefID!=null){
2475
+ monpartpresentation="'.monpart'";
2476
+ html +='<span id="BRefID'+mpobj.BRefID+'" class="monpart" onClick="getPublicationDetails('+mpobj.BRefID+','+monpartpresentation+');"><span class="initialstring">';
2477
+ }
2478
+ if (mpobj.AuthorsString!=null){
2479
+ html +='<b>'+mpobj.AuthorsString+'</b> ';
2480
+ }
2481
+ if (mpobj.StandardTitle!=null){
2482
+ html +=mpobj.StandardTitle+' ';
2483
+ }
2484
+ if (mpobj.BRefID!=null){
2485
+ html +='</span><a class="openbutton">'+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['more']+'</a><span class="publicationdetails"></span></span>';
2486
+ }
2487
+ html +='</div>';
2488
+ });
2489
+ }
2490
+ html +='</div>';
2491
+ html +='</span>';
2492
+
2493
+ }
2494
+ else {
2495
+ html+="<h1>"+drupalSettings.imisfpComputedData.langlabels[drupalSettings.imisfpComputedData.lang]['noresults']+"</h1></span>";
2496
+ }
2497
+ $('#BRefID'+BRefID+presentation+' .publicationdetails').html(html);
2498
+
2499
+ $('.openbutton').show();
2500
+ },
2501
+ error: function(error){
2502
+ $('#'+BRefID).html("<h3>Request failed to load</h3>");
2503
+ }
2504
+ });
2505
+ }
2506
+ else {
2507
+ if ($('#BRefID'+BRefID).hasClass('closed')) {
2508
+ $(presentation).not('.monpart').hide();
2509
+ $('#BRefID'+BRefID).show();
2510
+ $('#BRefID'+BRefID).toggleClass('open');
2511
+ $('#BRefID'+BRefID).removeClass('closed');
2512
+ $('.openbutton').hide();
2513
+ $('.imis-filters').hide();
2514
+ $('.sort-row').hide();
2515
+ $('.imis-counter').hide();
2516
+ }
2517
+ }
2518
+
2519
+ })(jQuery);
2520
+ }
2521
+
2522
+ function closePublicationDetails(BRefID,presentation){
2523
+ (function($) {
2524
+ event.stopPropagation();
2525
+ $('#BRefID'+BRefID).removeClass('open');
2526
+ $('#BRefID'+BRefID).addClass('closed');
2527
+ $(presentation).show();
2528
+ $('.imis-filters').show();
2529
+ $('.sort-row').show();
2530
+ $('.imis-counter').show();
2531
+ })(jQuery);
2532
+ }
2533
+
2534
+
2535
+ (function($) {
2536
+ $('#vlizimisfphamburgeropen').click(function() {
2537
+ $('.imis-filters').addClass('open');
2538
+ });
2539
+
2540
+ $('#vlizimisfphamburgerclose').click(function() {
2541
+ $('.imis-filters').removeClass('open');
2542
+ });
2543
+
2544
+ $('#vlizimisfp').click(function() {
2545
+ $('.imis-filters').removeClass('open');
2546
+ });
2547
+ })(jQuery);
2548
+
2549
+ ;
2550
+ /**
2551
+ * @file
2552
+ * Attaches several event listener to a web page.
2553
+ */
2554
+
2555
+ (function ($, drupalSettings) {
2556
+
2557
+ 'use strict';
2558
+
2559
+ $(document).ready(function () {
2560
+ defaultBind();
2561
+
2562
+ // Colorbox: This event triggers when the transition has completed and the
2563
+ // newly loaded content has been revealed.
2564
+ if (drupalSettings.matomo && drupalSettings.matomo.trackColorbox) {
2565
+ $(document).bind('cbox_complete', function () {
2566
+ var href = $.colorbox.element().attr('href');
2567
+ if (href) {
2568
+ _paq.push(['setCustomUrl', href]);
2569
+ if (drupalSettings.matomo.disableCookies) {
2570
+ _paq.push(['disableCookies']);
2571
+ }
2572
+ _paq.push(['trackPageView']);
2573
+ }
2574
+ });
2575
+ }
2576
+
2577
+ });
2578
+
2579
+ /**
2580
+ * Default event binding.
2581
+ *
2582
+ * Attach mousedown, keyup, touchstart events to document only and catch
2583
+ * clicks on all elements.
2584
+ */
2585
+ function defaultBind() {
2586
+ $(document.body).bind('mousedown keyup touchstart', function (event) {
2587
+
2588
+ // Catch the closest surrounding link of a clicked element.
2589
+ $(event.target).closest('a,area').each(function () {
2590
+
2591
+ if (drupalSettings.matomo.trackMailto && $(this).is("a[href^='mailto:'],area[href^='mailto:']")) {
2592
+ // Mailto link clicked.
2593
+ _paq.push(['trackEvent', 'Mails', 'Click', this.href.substring(7)]);
2594
+ }
2595
+
2596
+ });
2597
+ });
2598
+ }
2599
+
2600
+ })(jQuery, drupalSettings);
2601
+ ;
2602
+ /**
2603
+ * DO NOT EDIT THIS FILE.
2604
+ * See the following change record for more information,
2605
+ * https://www.drupal.org/node/2815083
2606
+ * @preserve
2607
+ **/
2608
+ (function ($, once) {
2609
+ var deprecatedMessageSuffix = "is deprecated in Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the core/once library instead. See https://www.drupal.org/node/3158256";
2610
+ var originalJQOnce = $.fn.once;
2611
+ var originalJQRemoveOnce = $.fn.removeOnce;
2612
+ $.fn.once = function jQueryOnce(id) {
2613
+ Drupal.deprecationError({
2614
+ message: "jQuery.once() ".concat(deprecatedMessageSuffix)
2615
+ });
2616
+ return originalJQOnce.apply(this, [id]);
2617
+ };
2618
+ $.fn.removeOnce = function jQueryRemoveOnce(id) {
2619
+ Drupal.deprecationError({
2620
+ message: "jQuery.removeOnce() ".concat(deprecatedMessageSuffix)
2621
+ });
2622
+ return originalJQRemoveOnce.apply(this, [id]);
2623
+ };
2624
+ var drupalOnce = once;
2625
+ function augmentedOnce(id, selector, context) {
2626
+ originalJQOnce.apply($(selector, context), [id]);
2627
+ return drupalOnce(id, selector, context);
2628
+ }
2629
+ function remove(id, selector, context) {
2630
+ originalJQRemoveOnce.apply($(selector, context), [id]);
2631
+ return drupalOnce.remove(id, selector, context);
2632
+ }
2633
+ window.once = Object.assign(augmentedOnce, drupalOnce, {
2634
+ remove: remove
2635
+ });
2636
+ })(jQuery, once);;
2637
+ /**
2638
+ * DO NOT EDIT THIS FILE.
2639
+ * See the following change record for more information,
2640
+ * https://www.drupal.org/node/2815083
2641
+ * @preserve
2642
+ **/
2643
+ (function ($, Drupal) {
2644
+ Drupal.theme.progressBar = function (id) {
2645
+ return "<div id=\"".concat(id, "\" class=\"progress\" aria-live=\"polite\">") + '<div class="progress__label">&nbsp;</div>' + '<div class="progress__track"><div class="progress__bar"></div></div>' + '<div class="progress__percentage"></div>' + '<div class="progress__description">&nbsp;</div>' + '</div>';
2646
+ };
2647
+ Drupal.ProgressBar = function (id, updateCallback, method, errorCallback) {
2648
+ this.id = id;
2649
+ this.method = method || 'GET';
2650
+ this.updateCallback = updateCallback;
2651
+ this.errorCallback = errorCallback;
2652
+ this.element = $(Drupal.theme('progressBar', id));
2653
+ };
2654
+ $.extend(Drupal.ProgressBar.prototype, {
2655
+ setProgress: function setProgress(percentage, message, label) {
2656
+ if (percentage >= 0 && percentage <= 100) {
2657
+ $(this.element).find('div.progress__bar').css('width', "".concat(percentage, "%"));
2658
+ $(this.element).find('div.progress__percentage').html("".concat(percentage, "%"));
2659
+ }
2660
+ $('div.progress__description', this.element).html(message);
2661
+ $('div.progress__label', this.element).html(label);
2662
+ if (this.updateCallback) {
2663
+ this.updateCallback(percentage, message, this);
2664
+ }
2665
+ },
2666
+ startMonitoring: function startMonitoring(uri, delay) {
2667
+ this.delay = delay;
2668
+ this.uri = uri;
2669
+ this.sendPing();
2670
+ },
2671
+ stopMonitoring: function stopMonitoring() {
2672
+ clearTimeout(this.timer);
2673
+ this.uri = null;
2674
+ },
2675
+ sendPing: function sendPing() {
2676
+ if (this.timer) {
2677
+ clearTimeout(this.timer);
2678
+ }
2679
+ if (this.uri) {
2680
+ var pb = this;
2681
+ var uri = this.uri;
2682
+ if (uri.indexOf('?') === -1) {
2683
+ uri += '?';
2684
+ } else {
2685
+ uri += '&';
2686
+ }
2687
+ uri += '_format=json';
2688
+ $.ajax({
2689
+ type: this.method,
2690
+ url: uri,
2691
+ data: '',
2692
+ dataType: 'json',
2693
+ success: function success(progress) {
2694
+ if (progress.status === 0) {
2695
+ pb.displayError(progress.data);
2696
+ return;
2697
+ }
2698
+ pb.setProgress(progress.percentage, progress.message, progress.label);
2699
+ pb.timer = setTimeout(function () {
2700
+ pb.sendPing();
2701
+ }, pb.delay);
2702
+ },
2703
+ error: function error(xmlhttp) {
2704
+ var e = new Drupal.AjaxError(xmlhttp, pb.uri);
2705
+ pb.displayError("<pre>".concat(e.message, "</pre>"));
2706
+ }
2707
+ });
2708
+ }
2709
+ },
2710
+ displayError: function displayError(string) {
2711
+ var error = $('<div class="messages messages--error"></div>').html(string);
2712
+ $(this.element).before(error).hide();
2713
+ if (this.errorCallback) {
2714
+ this.errorCallback(this);
2715
+ }
2716
+ }
2717
+ });
2718
+ })(jQuery, Drupal);;
2719
+ loadjs=function(){var h=function(){},c={},u={},f={};function o(e,n){if(e){var r=f[e];if(u[e]=n,r)for(;r.length;)r[0](e,n),r.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function d(r,t,s,i){var c,o,e=document,n=s.async,u=(s.numRetries||0)+1,f=s.before||h,l=r.replace(/[\?|#].*$/,""),a=r.replace(/^(css|img)!/,"");i=i||0,/(^css!|\.css$)/.test(l)?((o=e.createElement("link")).rel="stylesheet",o.href=a,(c="hideFocus"in o)&&o.relList&&(c=0,o.rel="preload",o.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(l)?(o=e.createElement("img")).src=a:((o=e.createElement("script")).src=r,o.async=void 0===n||n),!(o.onload=o.onerror=o.onbeforeload=function(e){var n=e.type[0];if(c)try{o.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((i+=1)<u)return d(r,t,s,i)}else if("preload"==o.rel&&"style"==o.as)return o.rel="stylesheet";t(r,n,e.defaultPrevented)})!==f(r,o)&&e.head.appendChild(o)}function r(e,n,r){var t,s;if(n&&n.trim&&(t=n),s=(t?r:n)||{},t){if(t in c)throw"LoadJS";c[t]=!0}function i(n,r){!function(e,t,n){var r,s,i=(e=e.push?e:[e]).length,c=i,o=[];for(r=function(e,n,r){if("e"==n&&o.push(e),"b"==n){if(!r)return;o.push(e)}--i||t(o)},s=0;s<c;s++)d(e[s],r,n)}(e,function(e){l(s,e),n&&l({success:n,error:r},e),o(t,e)},s)}if(s.returnPromise)return new Promise(i);i()}return r.ready=function(e,n){return function(e,r){e=e.push?e:[e];var n,t,s,i=[],c=e.length,o=c;for(n=function(e,n){n.length&&i.push(e),--o||r(i)};c--;)t=e[c],(s=u[t])?n(t,s):(f[t]=f[t]||[]).push(n)}(e,function(e){l(n,e)}),r},r.done=function(e){o(e,[])},r.reset=function(){c={},u={},f={}},r.isDefined=function(e){return e in c},r}();;
2720
+ /**
2721
+ * DO NOT EDIT THIS FILE.
2722
+ * See the following change record for more information,
2723
+ * https://www.drupal.org/node/2815083
2724
+ * @preserve
2725
+ **/
2726
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2727
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
2728
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2729
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
2730
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
2731
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
2732
+ (function ($, window, Drupal, drupalSettings, loadjs, _ref) {
2733
+ var isFocusable = _ref.isFocusable,
2734
+ tabbable = _ref.tabbable;
2735
+ Drupal.behaviors.AJAX = {
2736
+ attach: function attach(context, settings) {
2737
+ function loadAjaxBehavior(base) {
2738
+ var elementSettings = settings.ajax[base];
2739
+ if (typeof elementSettings.selector === 'undefined') {
2740
+ elementSettings.selector = "#".concat(base);
2741
+ }
2742
+ once('drupal-ajax', $(elementSettings.selector)).forEach(function (el) {
2743
+ elementSettings.element = el;
2744
+ elementSettings.base = base;
2745
+ Drupal.ajax(elementSettings);
2746
+ });
2747
+ }
2748
+ Object.keys(settings.ajax || {}).forEach(function (base) {
2749
+ return loadAjaxBehavior(base);
2750
+ });
2751
+ Drupal.ajax.bindAjaxLinks(document.body);
2752
+ once('ajax', '.use-ajax-submit').forEach(function (el) {
2753
+ var elementSettings = {};
2754
+ elementSettings.url = $(el.form).attr('action');
2755
+ elementSettings.setClick = true;
2756
+ elementSettings.event = 'click';
2757
+ elementSettings.progress = {
2758
+ type: 'throbber'
2759
+ };
2760
+ elementSettings.base = el.id;
2761
+ elementSettings.element = el;
2762
+ Drupal.ajax(elementSettings);
2763
+ });
2764
+ },
2765
+ detach: function detach(context, settings, trigger) {
2766
+ if (trigger === 'unload') {
2767
+ Drupal.ajax.expired().forEach(function (instance) {
2768
+ Drupal.ajax.instances[instance.instanceIndex] = null;
2769
+ });
2770
+ }
2771
+ }
2772
+ };
2773
+ Drupal.AjaxError = function (xmlhttp, uri, customMessage) {
2774
+ var statusCode;
2775
+ var statusText;
2776
+ var responseText;
2777
+ if (xmlhttp.status) {
2778
+ statusCode = "\n".concat(Drupal.t('An AJAX HTTP error occurred.'), "\n").concat(Drupal.t('HTTP Result Code: !status', {
2779
+ '!status': xmlhttp.status
2780
+ }));
2781
+ } else {
2782
+ statusCode = "\n".concat(Drupal.t('An AJAX HTTP request terminated abnormally.'));
2783
+ }
2784
+ statusCode += "\n".concat(Drupal.t('Debugging information follows.'));
2785
+ var pathText = "\n".concat(Drupal.t('Path: !uri', {
2786
+ '!uri': uri
2787
+ }));
2788
+ statusText = '';
2789
+ try {
2790
+ statusText = "\n".concat(Drupal.t('StatusText: !statusText', {
2791
+ '!statusText': xmlhttp.statusText.trim()
2792
+ }));
2793
+ } catch (e) {}
2794
+ responseText = '';
2795
+ try {
2796
+ responseText = "\n".concat(Drupal.t('ResponseText: !responseText', {
2797
+ '!responseText': xmlhttp.responseText.trim()
2798
+ }));
2799
+ } catch (e) {}
2800
+ responseText = responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi, '');
2801
+ responseText = responseText.replace(/[\n]+\s+/g, '\n');
2802
+ var readyStateText = xmlhttp.status === 0 ? "\n".concat(Drupal.t('ReadyState: !readyState', {
2803
+ '!readyState': xmlhttp.readyState
2804
+ })) : '';
2805
+ customMessage = customMessage ? "\n".concat(Drupal.t('CustomMessage: !customMessage', {
2806
+ '!customMessage': customMessage
2807
+ })) : '';
2808
+ this.message = statusCode + pathText + statusText + customMessage + responseText + readyStateText;
2809
+ this.name = 'AjaxError';
2810
+ };
2811
+ Drupal.AjaxError.prototype = new Error();
2812
+ Drupal.AjaxError.prototype.constructor = Drupal.AjaxError;
2813
+ Drupal.ajax = function (settings) {
2814
+ if (arguments.length !== 1) {
2815
+ throw new Error('Drupal.ajax() function must be called with one configuration object only');
2816
+ }
2817
+ var base = settings.base || false;
2818
+ var element = settings.element || false;
2819
+ delete settings.base;
2820
+ delete settings.element;
2821
+ if (!settings.progress && !element) {
2822
+ settings.progress = false;
2823
+ }
2824
+ var ajax = new Drupal.Ajax(base, element, settings);
2825
+ ajax.instanceIndex = Drupal.ajax.instances.length;
2826
+ Drupal.ajax.instances.push(ajax);
2827
+ return ajax;
2828
+ };
2829
+ Drupal.ajax.instances = [];
2830
+ Drupal.ajax.expired = function () {
2831
+ return Drupal.ajax.instances.filter(function (instance) {
2832
+ return instance && instance.element !== false && !document.body.contains(instance.element);
2833
+ });
2834
+ };
2835
+ Drupal.ajax.bindAjaxLinks = function (element) {
2836
+ once('ajax', '.use-ajax', element).forEach(function (ajaxLink) {
2837
+ var $linkElement = $(ajaxLink);
2838
+ var elementSettings = {
2839
+ progress: {
2840
+ type: 'throbber'
2841
+ },
2842
+ dialogType: $linkElement.data('dialog-type'),
2843
+ dialog: $linkElement.data('dialog-options'),
2844
+ dialogRenderer: $linkElement.data('dialog-renderer'),
2845
+ base: $linkElement.attr('id'),
2846
+ element: ajaxLink
2847
+ };
2848
+ var href = $linkElement.attr('href');
2849
+ if (href) {
2850
+ elementSettings.url = href;
2851
+ elementSettings.event = 'click';
2852
+ }
2853
+ Drupal.ajax(elementSettings);
2854
+ });
2855
+ };
2856
+ Drupal.Ajax = function (base, element, elementSettings) {
2857
+ var defaults = {
2858
+ event: element ? 'mousedown' : null,
2859
+ keypress: true,
2860
+ selector: base ? "#".concat(base) : null,
2861
+ effect: 'none',
2862
+ speed: 'none',
2863
+ method: 'replaceWith',
2864
+ progress: {
2865
+ type: 'throbber',
2866
+ message: Drupal.t('Please wait...')
2867
+ },
2868
+ submit: {
2869
+ js: true
2870
+ }
2871
+ };
2872
+ $.extend(this, defaults, elementSettings);
2873
+ this.commands = new Drupal.AjaxCommands();
2874
+ this.instanceIndex = false;
2875
+ if (this.wrapper) {
2876
+ this.wrapper = "#".concat(this.wrapper);
2877
+ }
2878
+ this.element = element;
2879
+ this.element_settings = elementSettings;
2880
+ this.elementSettings = elementSettings;
2881
+ if (this.element && this.element.form) {
2882
+ this.$form = $(this.element.form);
2883
+ }
2884
+ if (!this.url) {
2885
+ var $element = $(this.element);
2886
+ if ($element.is('a')) {
2887
+ this.url = $element.attr('href');
2888
+ } else if (this.element && element.form) {
2889
+ this.url = this.$form.attr('action');
2890
+ }
2891
+ }
2892
+ var originalUrl = this.url;
2893
+ this.url = this.url.replace(/\/nojs(\/|$|\?|#)/, '/ajax$1');
2894
+ if (drupalSettings.ajaxTrustedUrl[originalUrl]) {
2895
+ drupalSettings.ajaxTrustedUrl[this.url] = true;
2896
+ }
2897
+ var ajax = this;
2898
+ ajax.options = {
2899
+ url: ajax.url,
2900
+ data: ajax.submit,
2901
+ isInProgress: function isInProgress() {
2902
+ return ajax.ajaxing;
2903
+ },
2904
+ beforeSerialize: function beforeSerialize(elementSettings, options) {
2905
+ return ajax.beforeSerialize(elementSettings, options);
2906
+ },
2907
+ beforeSubmit: function beforeSubmit(formValues, elementSettings, options) {
2908
+ ajax.ajaxing = true;
2909
+ return ajax.beforeSubmit(formValues, elementSettings, options);
2910
+ },
2911
+ beforeSend: function beforeSend(xmlhttprequest, options) {
2912
+ ajax.ajaxing = true;
2913
+ return ajax.beforeSend(xmlhttprequest, options);
2914
+ },
2915
+ success: function success(response, status, xmlhttprequest) {
2916
+ var _this = this;
2917
+ if (typeof response === 'string') {
2918
+ response = $.parseJSON(response);
2919
+ }
2920
+ if (response !== null && !drupalSettings.ajaxTrustedUrl[ajax.url]) {
2921
+ if (xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token') !== '1') {
2922
+ var customMessage = Drupal.t('The response failed verification so will not be processed.');
2923
+ return ajax.error(xmlhttprequest, ajax.url, customMessage);
2924
+ }
2925
+ }
2926
+ return Promise.resolve(ajax.success(response, status)).then(function () {
2927
+ ajax.ajaxing = false;
2928
+ $(document).trigger('ajaxSuccess', [xmlhttprequest, _this]);
2929
+ $(document).trigger('ajaxComplete', [xmlhttprequest, _this]);
2930
+ if (--$.active === 0) {
2931
+ $(document).trigger('ajaxStop');
2932
+ }
2933
+ });
2934
+ },
2935
+ error: function error(xmlhttprequest, status, _error) {
2936
+ ajax.ajaxing = false;
2937
+ },
2938
+ complete: function complete(xmlhttprequest, status) {
2939
+ if (status === 'error' || status === 'parsererror') {
2940
+ return ajax.error(xmlhttprequest, ajax.url);
2941
+ }
2942
+ },
2943
+ dataType: 'json',
2944
+ jsonp: false,
2945
+ type: 'POST'
2946
+ };
2947
+ if (elementSettings.dialog) {
2948
+ ajax.options.data.dialogOptions = elementSettings.dialog;
2949
+ }
2950
+ if (ajax.options.url.indexOf('?') === -1) {
2951
+ ajax.options.url += '?';
2952
+ } else {
2953
+ ajax.options.url += '&';
2954
+ }
2955
+ var wrapper = "drupal_".concat(elementSettings.dialogType || 'ajax');
2956
+ if (elementSettings.dialogRenderer) {
2957
+ wrapper += ".".concat(elementSettings.dialogRenderer);
2958
+ }
2959
+ ajax.options.url += "".concat(Drupal.ajax.WRAPPER_FORMAT, "=").concat(wrapper);
2960
+ $(ajax.element).on(elementSettings.event, function (event) {
2961
+ if (!drupalSettings.ajaxTrustedUrl[ajax.url] && !Drupal.url.isLocal(ajax.url)) {
2962
+ throw new Error(Drupal.t('The callback URL is not local and not trusted: !url', {
2963
+ '!url': ajax.url
2964
+ }));
2965
+ }
2966
+ return ajax.eventResponse(this, event);
2967
+ });
2968
+ if (elementSettings.keypress) {
2969
+ $(ajax.element).on('keypress', function (event) {
2970
+ return ajax.keypressResponse(this, event);
2971
+ });
2972
+ }
2973
+ if (elementSettings.prevent) {
2974
+ $(ajax.element).on(elementSettings.prevent, false);
2975
+ }
2976
+ };
2977
+ Drupal.ajax.WRAPPER_FORMAT = '_wrapper_format';
2978
+ Drupal.Ajax.AJAX_REQUEST_PARAMETER = '_drupal_ajax';
2979
+ Drupal.Ajax.prototype.execute = function () {
2980
+ if (this.ajaxing) {
2981
+ return;
2982
+ }
2983
+ try {
2984
+ this.beforeSerialize(this.element, this.options);
2985
+ return $.ajax(this.options);
2986
+ } catch (e) {
2987
+ this.ajaxing = false;
2988
+ window.alert("An error occurred while attempting to process ".concat(this.options.url, ": ").concat(e.message));
2989
+ return $.Deferred().reject();
2990
+ }
2991
+ };
2992
+ Drupal.Ajax.prototype.keypressResponse = function (element, event) {
2993
+ var ajax = this;
2994
+ if (event.which === 13 || event.which === 32 && element.type !== 'text' && element.type !== 'textarea' && element.type !== 'tel' && element.type !== 'number') {
2995
+ event.preventDefault();
2996
+ event.stopPropagation();
2997
+ $(element).trigger(ajax.elementSettings.event);
2998
+ }
2999
+ };
3000
+ Drupal.Ajax.prototype.eventResponse = function (element, event) {
3001
+ event.preventDefault();
3002
+ event.stopPropagation();
3003
+ var ajax = this;
3004
+ if (ajax.ajaxing) {
3005
+ return;
3006
+ }
3007
+ try {
3008
+ if (ajax.$form) {
3009
+ if (ajax.setClick) {
3010
+ element.form.clk = element;
3011
+ }
3012
+ ajax.$form.ajaxSubmit(ajax.options);
3013
+ } else {
3014
+ ajax.beforeSerialize(ajax.element, ajax.options);
3015
+ $.ajax(ajax.options);
3016
+ }
3017
+ } catch (e) {
3018
+ ajax.ajaxing = false;
3019
+ window.alert("An error occurred while attempting to process ".concat(ajax.options.url, ": ").concat(e.message));
3020
+ }
3021
+ };
3022
+ Drupal.Ajax.prototype.beforeSerialize = function (element, options) {
3023
+ if (this.$form && document.body.contains(this.$form.get(0))) {
3024
+ var settings = this.settings || drupalSettings;
3025
+ Drupal.detachBehaviors(this.$form.get(0), settings, 'serialize');
3026
+ }
3027
+ options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER] = 1;
3028
+ var pageState = drupalSettings.ajaxPageState;
3029
+ options.data['ajax_page_state[theme]'] = pageState.theme;
3030
+ options.data['ajax_page_state[theme_token]'] = pageState.theme_token;
3031
+ options.data['ajax_page_state[libraries]'] = pageState.libraries;
3032
+ };
3033
+ Drupal.Ajax.prototype.beforeSubmit = function (formValues, element, options) {};
3034
+ Drupal.Ajax.prototype.beforeSend = function (xmlhttprequest, options) {
3035
+ if (this.$form) {
3036
+ options.extraData = options.extraData || {};
3037
+ options.extraData.ajax_iframe_upload = '1';
3038
+ var v = $.fieldValue(this.element);
3039
+ if (v !== null) {
3040
+ options.extraData[this.element.name] = v;
3041
+ }
3042
+ }
3043
+ $(this.element).prop('disabled', true);
3044
+ if (!this.progress || !this.progress.type) {
3045
+ return;
3046
+ }
3047
+ var progressIndicatorMethod = "setProgressIndicator".concat(this.progress.type.slice(0, 1).toUpperCase()).concat(this.progress.type.slice(1).toLowerCase());
3048
+ if (progressIndicatorMethod in this && typeof this[progressIndicatorMethod] === 'function') {
3049
+ this[progressIndicatorMethod].call(this);
3050
+ }
3051
+ };
3052
+ Drupal.theme.ajaxProgressThrobber = function (message) {
3053
+ var messageMarkup = typeof message === 'string' ? Drupal.theme('ajaxProgressMessage', message) : '';
3054
+ var throbber = '<div class="throbber">&nbsp;</div>';
3055
+ return "<div class=\"ajax-progress ajax-progress-throbber\">".concat(throbber).concat(messageMarkup, "</div>");
3056
+ };
3057
+ Drupal.theme.ajaxProgressIndicatorFullscreen = function () {
3058
+ return '<div class="ajax-progress ajax-progress-fullscreen">&nbsp;</div>';
3059
+ };
3060
+ Drupal.theme.ajaxProgressMessage = function (message) {
3061
+ return "<div class=\"message\">".concat(message, "</div>");
3062
+ };
3063
+ Drupal.theme.ajaxProgressBar = function ($element) {
3064
+ return $('<div class="ajax-progress ajax-progress-bar"></div>').append($element);
3065
+ };
3066
+ Drupal.Ajax.prototype.setProgressIndicatorBar = function () {
3067
+ var progressBar = new Drupal.ProgressBar("ajax-progress-".concat(this.element.id), $.noop, this.progress.method, $.noop);
3068
+ if (this.progress.message) {
3069
+ progressBar.setProgress(-1, this.progress.message);
3070
+ }
3071
+ if (this.progress.url) {
3072
+ progressBar.startMonitoring(this.progress.url, this.progress.interval || 1500);
3073
+ }
3074
+ this.progress.element = $(Drupal.theme('ajaxProgressBar', progressBar.element));
3075
+ this.progress.object = progressBar;
3076
+ $(this.element).after(this.progress.element);
3077
+ };
3078
+ Drupal.Ajax.prototype.setProgressIndicatorThrobber = function () {
3079
+ this.progress.element = $(Drupal.theme('ajaxProgressThrobber', this.progress.message));
3080
+ $(this.element).after(this.progress.element);
3081
+ };
3082
+ Drupal.Ajax.prototype.setProgressIndicatorFullscreen = function () {
3083
+ this.progress.element = $(Drupal.theme('ajaxProgressIndicatorFullscreen'));
3084
+ $('body').append(this.progress.element);
3085
+ };
3086
+ Drupal.Ajax.prototype.commandExecutionQueue = function (response, status) {
3087
+ var _this2 = this;
3088
+ var ajaxCommands = this.commands;
3089
+ return Object.keys(response || {}).reduce(function (executionQueue, key) {
3090
+ return executionQueue.then(function () {
3091
+ var command = response[key].command;
3092
+ if (command && ajaxCommands[command]) {
3093
+ return ajaxCommands[command](_this2, response[key], status);
3094
+ }
3095
+ });
3096
+ }, Promise.resolve());
3097
+ };
3098
+ Drupal.Ajax.prototype.success = function (response, status) {
3099
+ var _this3 = this;
3100
+ if (this.progress.element) {
3101
+ $(this.progress.element).remove();
3102
+ }
3103
+ if (this.progress.object) {
3104
+ this.progress.object.stopMonitoring();
3105
+ }
3106
+ $(this.element).prop('disabled', false);
3107
+ var elementParents = $(this.element).parents('[data-drupal-selector]').addBack().toArray();
3108
+ var focusChanged = Object.keys(response || {}).some(function (key) {
3109
+ var _response$key = response[key],
3110
+ command = _response$key.command,
3111
+ method = _response$key.method;
3112
+ return command === 'focusFirst' || command === 'invoke' && method === 'focus';
3113
+ });
3114
+ return this.commandExecutionQueue(response, status).then(function () {
3115
+ if (!focusChanged && _this3.element && !$(_this3.element).data('disable-refocus')) {
3116
+ var target = false;
3117
+ for (var n = elementParents.length - 1; !target && n >= 0; n--) {
3118
+ target = document.querySelector("[data-drupal-selector=\"".concat(elementParents[n].getAttribute('data-drupal-selector'), "\"]"));
3119
+ }
3120
+ if (target) {
3121
+ $(target).trigger('focus');
3122
+ }
3123
+ }
3124
+ if (_this3.$form && document.body.contains(_this3.$form.get(0))) {
3125
+ var settings = _this3.settings || drupalSettings;
3126
+ Drupal.attachBehaviors(_this3.$form.get(0), settings);
3127
+ }
3128
+ _this3.settings = null;
3129
+ }).catch(function (error) {
3130
+ return console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error', {
3131
+ '!error': error
3132
+ }));
3133
+ });
3134
+ };
3135
+ Drupal.Ajax.prototype.getEffect = function (response) {
3136
+ var type = response.effect || this.effect;
3137
+ var speed = response.speed || this.speed;
3138
+ var effect = {};
3139
+ if (type === 'none') {
3140
+ effect.showEffect = 'show';
3141
+ effect.hideEffect = 'hide';
3142
+ effect.showSpeed = '';
3143
+ } else if (type === 'fade') {
3144
+ effect.showEffect = 'fadeIn';
3145
+ effect.hideEffect = 'fadeOut';
3146
+ effect.showSpeed = speed;
3147
+ } else {
3148
+ effect.showEffect = "".concat(type, "Toggle");
3149
+ effect.hideEffect = "".concat(type, "Toggle");
3150
+ effect.showSpeed = speed;
3151
+ }
3152
+ return effect;
3153
+ };
3154
+ Drupal.Ajax.prototype.error = function (xmlhttprequest, uri, customMessage) {
3155
+ if (this.progress.element) {
3156
+ $(this.progress.element).remove();
3157
+ }
3158
+ if (this.progress.object) {
3159
+ this.progress.object.stopMonitoring();
3160
+ }
3161
+ $(this.wrapper).show();
3162
+ $(this.element).prop('disabled', false);
3163
+ if (this.$form && document.body.contains(this.$form.get(0))) {
3164
+ var settings = this.settings || drupalSettings;
3165
+ Drupal.attachBehaviors(this.$form.get(0), settings);
3166
+ }
3167
+ throw new Drupal.AjaxError(xmlhttprequest, uri, customMessage);
3168
+ };
3169
+ Drupal.theme.ajaxWrapperNewContent = function ($newContent, ajax, response) {
3170
+ return (response.effect || ajax.effect) !== 'none' && $newContent.filter(function (i) {
3171
+ return !($newContent[i].nodeName === '#comment' || $newContent[i].nodeName === '#text' && /^(\s|\n|\r)*$/.test($newContent[i].textContent));
3172
+ }).length > 1 ? Drupal.theme('ajaxWrapperMultipleRootElements', $newContent) : $newContent;
3173
+ };
3174
+ Drupal.theme.ajaxWrapperMultipleRootElements = function ($elements) {
3175
+ return $('<div></div>').append($elements);
3176
+ };
3177
+ Drupal.AjaxCommands = function () {};
3178
+ Drupal.AjaxCommands.prototype = {
3179
+ insert: function insert(ajax, response) {
3180
+ var $wrapper = response.selector ? $(response.selector) : $(ajax.wrapper);
3181
+ var method = response.method || ajax.method;
3182
+ var effect = ajax.getEffect(response);
3183
+ var settings = response.settings || ajax.settings || drupalSettings;
3184
+ var $newContent = $($.parseHTML(response.data, document, true));
3185
+ $newContent = Drupal.theme('ajaxWrapperNewContent', $newContent, ajax, response);
3186
+ switch (method) {
3187
+ case 'html':
3188
+ case 'replaceWith':
3189
+ case 'replaceAll':
3190
+ case 'empty':
3191
+ case 'remove':
3192
+ Drupal.detachBehaviors($wrapper.get(0), settings);
3193
+ break;
3194
+ default:
3195
+ break;
3196
+ }
3197
+ $wrapper[method]($newContent);
3198
+ if (effect.showEffect !== 'show') {
3199
+ $newContent.hide();
3200
+ }
3201
+ var $ajaxNewContent = $newContent.find('.ajax-new-content');
3202
+ if ($ajaxNewContent.length) {
3203
+ $ajaxNewContent.hide();
3204
+ $newContent.show();
3205
+ $ajaxNewContent[effect.showEffect](effect.showSpeed);
3206
+ } else if (effect.showEffect !== 'show') {
3207
+ $newContent[effect.showEffect](effect.showSpeed);
3208
+ }
3209
+ if ($newContent.parents('html').length) {
3210
+ $newContent.each(function (index, element) {
3211
+ if (element.nodeType === Node.ELEMENT_NODE) {
3212
+ Drupal.attachBehaviors(element, settings);
3213
+ }
3214
+ });
3215
+ }
3216
+ },
3217
+ remove: function remove(ajax, response, status) {
3218
+ var settings = response.settings || ajax.settings || drupalSettings;
3219
+ $(response.selector).each(function () {
3220
+ Drupal.detachBehaviors(this, settings);
3221
+ }).remove();
3222
+ },
3223
+ changed: function changed(ajax, response, status) {
3224
+ var $element = $(response.selector);
3225
+ if (!$element.hasClass('ajax-changed')) {
3226
+ $element.addClass('ajax-changed');
3227
+ if (response.asterisk) {
3228
+ $element.find(response.asterisk).append(" <abbr class=\"ajax-changed\" title=\"".concat(Drupal.t('Changed'), "\">*</abbr> "));
3229
+ }
3230
+ }
3231
+ },
3232
+ alert: function alert(ajax, response, status) {
3233
+ window.alert(response.text);
3234
+ },
3235
+ announce: function announce(ajax, response) {
3236
+ if (response.priority) {
3237
+ Drupal.announce(response.text, response.priority);
3238
+ } else {
3239
+ Drupal.announce(response.text);
3240
+ }
3241
+ },
3242
+ redirect: function redirect(ajax, response, status) {
3243
+ window.location = response.url;
3244
+ },
3245
+ css: function css(ajax, response, status) {
3246
+ $(response.selector).css(response.argument);
3247
+ },
3248
+ settings: function settings(ajax, response, status) {
3249
+ var ajaxSettings = drupalSettings.ajax;
3250
+ if (ajaxSettings) {
3251
+ Drupal.ajax.expired().forEach(function (instance) {
3252
+ if (instance.selector) {
3253
+ var selector = instance.selector.replace('#', '');
3254
+ if (selector in ajaxSettings) {
3255
+ delete ajaxSettings[selector];
3256
+ }
3257
+ }
3258
+ });
3259
+ }
3260
+ if (response.merge) {
3261
+ $.extend(true, drupalSettings, response.settings);
3262
+ } else {
3263
+ ajax.settings = response.settings;
3264
+ }
3265
+ },
3266
+ data: function data(ajax, response, status) {
3267
+ $(response.selector).data(response.name, response.value);
3268
+ },
3269
+ focusFirst: function focusFirst(ajax, response, status) {
3270
+ var focusChanged = false;
3271
+ var container = document.querySelector(response.selector);
3272
+ if (container) {
3273
+ var tabbableElements = tabbable(container);
3274
+ if (tabbableElements.length) {
3275
+ tabbableElements[0].focus();
3276
+ focusChanged = true;
3277
+ } else if (isFocusable(container)) {
3278
+ container.focus();
3279
+ focusChanged = true;
3280
+ }
3281
+ }
3282
+ if (ajax.hasOwnProperty('element') && !focusChanged) {
3283
+ ajax.element.focus();
3284
+ }
3285
+ },
3286
+ invoke: function invoke(ajax, response, status) {
3287
+ var $element = $(response.selector);
3288
+ $element[response.method].apply($element, _toConsumableArray(response.args));
3289
+ },
3290
+ restripe: function restripe(ajax, response, status) {
3291
+ $(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');
3292
+ },
3293
+ update_build_id: function update_build_id(ajax, response, status) {
3294
+ document.querySelectorAll("input[name=\"form_build_id\"][value=\"".concat(response.old, "\"]")).forEach(function (item) {
3295
+ item.value = response.new;
3296
+ });
3297
+ },
3298
+ add_css: function add_css(ajax, response, status) {
3299
+ $('head').prepend(response.data);
3300
+ },
3301
+ message: function message(ajax, response) {
3302
+ var messages = new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));
3303
+ if (response.clearPrevious) {
3304
+ messages.clear();
3305
+ }
3306
+ messages.add(response.message, response.messageOptions);
3307
+ },
3308
+ add_js: function add_js(ajax, response, status) {
3309
+ var parentEl = document.querySelector(response.selector || 'body');
3310
+ var settings = ajax.settings || drupalSettings;
3311
+ var allUniqueBundleIds = response.data.map(function (script) {
3312
+ var uniqueBundleId = script.src + ajax.instanceIndex;
3313
+ loadjs(script.src, uniqueBundleId, {
3314
+ async: false,
3315
+ before: function before(path, scriptEl) {
3316
+ Object.keys(script).forEach(function (attributeKey) {
3317
+ scriptEl.setAttribute(attributeKey, script[attributeKey]);
3318
+ });
3319
+ parentEl.appendChild(scriptEl);
3320
+ return false;
3321
+ }
3322
+ });
3323
+ return uniqueBundleId;
3324
+ });
3325
+ return new Promise(function (resolve, reject) {
3326
+ loadjs.ready(allUniqueBundleIds, {
3327
+ success: function success() {
3328
+ Drupal.attachBehaviors(parentEl, settings);
3329
+ resolve();
3330
+ },
3331
+ error: function error(depsNotFound) {
3332
+ var message = Drupal.t("The following files could not be loaded: @dependencies", {
3333
+ '@dependencies': depsNotFound.join(', ')
3334
+ });
3335
+ reject(message);
3336
+ }
3337
+ });
3338
+ });
3339
+ }
3340
+ };
3341
+ var stopEvent = function stopEvent(xhr, settings) {
3342
+ return xhr.getResponseHeader('X-Drupal-Ajax-Token') === '1' && settings.isInProgress && settings.isInProgress();
3343
+ };
3344
+ $.extend(true, $.event.special, {
3345
+ ajaxSuccess: {
3346
+ trigger: function trigger(event, xhr, settings) {
3347
+ if (stopEvent(xhr, settings)) {
3348
+ return false;
3349
+ }
3350
+ }
3351
+ },
3352
+ ajaxComplete: {
3353
+ trigger: function trigger(event, xhr, settings) {
3354
+ if (stopEvent(xhr, settings)) {
3355
+ $.active++;
3356
+ return false;
3357
+ }
3358
+ }
3359
+ }
3360
+ });
3361
+ })(jQuery, window, Drupal, drupalSettings, loadjs, window.tabbable);;