Файловый менеджер - Редактировать - /home/goldin10/public_html/getoutyourbox.com/wp-content/plugins/caldera-forms/fields/select2/js/select2.min.js
Error occurred
Назад
!function(e){"undefined"==typeof e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var s=e([0]),i=-1,c=this.length;++i<c&&(s.context=s[0]=this[i])&&t.call(s[0],i,s)!==!1;);return this}})}(jQuery),function(e,t){"use strict";function s(t){var s=e(document.createTextNode(""));t.before(s),s.before(t),s.remove()}function i(e){function t(e){return j[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function c(e,t){for(var s=0,i=t.length;i>s;s+=1)if(o(e,t[s]))return s;return-1}function n(){var t=e(z);t.appendTo(document.body);var s={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),s}function o(e,s){return e===s?!0:e===t||s===t?!1:null===e||null===s?!1:e.constructor===String?e+""==s+"":s.constructor===String?s+""==e+"":!1}function a(e,t,s){var i,c,n;if(null===e||e.length<1)return[];for(i=e.split(t),c=0,n=i.length;n>c;c+=1)i[c]=s(i[c]);return i}function r(e){return e.outerWidth(!1)-e.width()}function l(s){var i="keyup-change-value";s.on("keydown",function(){e.data(s,i)===t&&e.data(s,i,s.val())}),s.on("keyup",function(){var c=e.data(s,i);c!==t&&s.val()!==c&&(e.removeData(s,i),s.trigger("keyup-change"))})}function h(s){s.on("mousemove",function(s){var i=F;i!==t&&i.x===s.pageX&&i.y===s.pageY||e(s.target).trigger("mousemove-filtered",s)})}function u(e,s,i){i=i||t;var c;return function(){var t=arguments;window.clearTimeout(c),c=window.setTimeout(function(){s.apply(i,t)},e)}}function d(e,t){var s=u(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){c(e.target,t.get())>=0&&s(e)})}function p(e){e[0]!==document.activeElement&&window.setTimeout(function(){var t,s=e[0],i=e.val().length;e.focus();var c=s.offsetWidth>0||s.offsetHeight>0;c&&s===document.activeElement&&(s.setSelectionRange?s.setSelectionRange(i,i):s.createTextRange&&(t=s.createTextRange(),t.collapse(!1),t.select()))},0)}function f(t){t=e(t)[0];var s=0,i=0;if("selectionStart"in t)s=t.selectionStart,i=t.selectionEnd-s;else if("selection"in document){t.focus();var c=document.selection.createRange();i=document.selection.createRange().text.length,c.moveStart("character",-t.value.length),s=c.text.length-i}return{offset:s,length:i}}function g(e){e.preventDefault(),e.stopPropagation()}function m(e){e.preventDefault(),e.stopImmediatePropagation()}function v(t){if(!M){var s=t[0].currentStyle||window.getComputedStyle(t[0],null);M=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:s.fontSize,fontFamily:s.fontFamily,fontStyle:s.fontStyle,fontWeight:s.fontWeight,letterSpacing:s.letterSpacing,textTransform:s.textTransform,whiteSpace:"nowrap"}),M.attr("class","ccselect2-sizer"),e(document.body).append(M)}return M.text(t.val()),M.width()}function w(t,s,i){var c,n,o=[];c=e.trim(t.attr("class")),c&&(c=""+c,e(c.split(/\s+/)).each2(function(){0===this.indexOf("ccselect2-")&&o.push(this)})),c=e.trim(s.attr("class")),c&&(c=""+c,e(c.split(/\s+/)).each2(function(){0!==this.indexOf("ccselect2-")&&(n=i(this),n&&o.push(n))})),t.attr("class",o.join(" "))}function b(e,t,s,c){var n=i(e.toUpperCase()).indexOf(i(t.toUpperCase())),o=t.length;return 0>n?void s.push(c(e)):(s.push(c(e.substring(0,n))),s.push("<span class='ccselect2-match'>"),s.push(c(e.substring(n,n+o))),s.push("</span>"),void s.push(c(e.substring(n+o,e.length))))}function C(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function S(s){var i,c=null,n=s.quietMillis||100,o=s.url,a=this;return function(r){window.clearTimeout(i),i=window.setTimeout(function(){var i=s.data,n=o,l=s.transport||e.fn.select2.ajaxDefaults.transport,h={type:s.type||"GET",cache:s.cache||!1,jsonpCallback:s.jsonpCallback||t,dataType:s.dataType||"json"},u=e.extend({},e.fn.select2.ajaxDefaults.params,h);i=i?i.call(a,r.term,r.page,r.context):null,n="function"==typeof n?n.call(a,r.term,r.page,r.context):n,c&&"function"==typeof c.abort&&c.abort(),s.params&&(e.isFunction(s.params)?e.extend(u,s.params.call(a)):e.extend(u,s.params)),e.extend(u,{url:n,dataType:s.dataType,data:i,success:function(e){var t=s.results(e,r.page,r);r.callback(t)},error:function(e,t,s){var i={hasError:!0,jqXHR:e,textStatus:t,errorThrown:s};r.callback(i)}}),c=l.call(a,u)},n)}}function y(t){var s,i,c=t,n=function(e){return""+e.text};e.isArray(c)&&(i=c,c={results:i}),e.isFunction(c)===!1&&(i=c,c=function(){return i});var o=c();return o.text&&(n=o.text,e.isFunction(n)||(s=o.text,n=function(e){return e[s]})),function(t){var s,i=t.term,o={results:[]};return""===i?void t.callback(c()):(s=function(c,o){var a,r;if(c=c[0],c.children){a={};for(r in c)c.hasOwnProperty(r)&&(a[r]=c[r]);a.children=[],e(c.children).each2(function(e,t){s(t,a.children)}),(a.children.length||t.matcher(i,n(a),c))&&o.push(a)}else t.matcher(i,n(c),c)&&o.push(c)},e(c().results).each2(function(e,t){s(t,o.results)}),void t.callback(o))}}function x(s){var i=e.isFunction(s);return function(c){var n=c.term,o={results:[]},a=i?s(c):s;e.isArray(a)&&(e(a).each(function(){var e=this.text!==t,s=e?this.text:this;(""===n||c.matcher(n,s))&&o.results.push(e?this:{id:this,text:this})}),c.callback(o))}}function E(t,s){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(s+" must be a string, function, or falsy value")}function T(t,s){if(e.isFunction(t)){var i=Array.prototype.slice.call(arguments,2);return t.apply(s,i)}return t}function O(t){var s=0;return e.each(t,function(e,t){t.children?s+=O(t.children):s++}),s}function P(e,s,i,c){var n,a,r,l,h,u=e,d=!1;if(!c.createSearchChoice||!c.tokenSeparators||c.tokenSeparators.length<1)return t;for(;;){for(a=-1,r=0,l=c.tokenSeparators.length;l>r&&(h=c.tokenSeparators[r],a=e.indexOf(h),!(a>=0));r++);if(0>a)break;if(n=e.substring(0,a),e=e.substring(a+h.length),n.length>0&&(n=c.createSearchChoice.call(this,n,s),n!==t&&null!==n&&c.id(n)!==t&&null!==c.id(n))){for(d=!1,r=0,l=s.length;l>r;r++)if(o(c.id(n),c.id(s[r]))){d=!0;break}d||i(n)}}return u!==e?e:void 0}function I(){var t=this;e.each(arguments,function(e,s){t[s].remove(),t[s]=null})}function k(t,s){var i=function(){};return i.prototype=new t,i.prototype.constructor=i,i.prototype.parent=t.prototype,i.prototype=e.extend(i.prototype,s),i}if(window.Select2===t){var A,R,D,H,M,L,N,F={x:0,y:0},U={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case U.LEFT:case U.RIGHT:case U.UP:case U.DOWN:return!0}return!1},isControl:function(e){var t=e.which;switch(t){case U.SHIFT:case U.CTRL:case U.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return e=e.which?e.which:e,e>=112&&123>=e}},z="<div class='ccselect2-measure-scrollbar'></div>",j={"Ⓐ":"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","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","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","Ⓘ":"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","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","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","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"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","Ꞃ":"R","Ⓢ":"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","Ʌ":"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","ⓐ":"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","ǝ":"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":"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","ƣ":"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","ꞃ":"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","ꞇ":"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","ʌ":"v","ꝡ":"vy","ⓦ":"w","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","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};L=e(document),H=function(){var e=1;return function(){return e++}}(),A=k(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(s){var i,c,o=".ccselect2-results";this.opts=s=this.prepareOpts(s),this.id=s.id,s.element.data("ccselect2")!==t&&null!==s.element.data("ccselect2")&&s.element.data("ccselect2").destroy(),this.container=this.createContainer(),this.liveRegion=e(".ccselect2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("ccselect2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(s.element.attr("id")||"autogen"+H()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",s.element.attr("title")),this.body=e(document.body),w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",s.element.attr("style")),this.container.css(T(s.containerCss,this.opts.element)),this.container.addClass(T(s.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("ccselect2",this).attr("tabindex","-1").before(this.container).on("click.ccselect2",g),this.container.data("ccselect2",this),this.dropdown=this.container.find(".ccselect2-drop"),w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(T(s.dropdownCssClass,this.opts.element)),this.dropdown.addClass(this.containerId),this.dropdown.data("ccselect2",this),this.dropdown.on("click",g),this.results=i=this.container.find(o),this.search=c=this.container.find("input.ccselect2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",g),h(this.results),this.dropdown.on("mousemove-filtered",o,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",o,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",o,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",o,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),d(80,this.results),this.dropdown.on("scroll-debounced",o,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".ccselect2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".ccselect2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&i.mousewheel(function(e,t,s,c){var n=i.scrollTop();c>0&&0>=n-c?(i.scrollTop(0),g(e)):0>c&&i.get(0).scrollHeight-i.scrollTop()+c<=i.height()&&(i.scrollTop(i.get(0).scrollHeight-i.height()),g(e))}),l(c),c.on("keyup-change input paste",this.bind(this.updateResults)),c.on("focus",function(){c.addClass("ccselect2-focused")}),c.on("blur",function(){c.removeClass("ccselect2-focused")}),this.dropdown.on("mouseup",o,this.bind(function(t){e(t.target).closest(".ccselect2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.nextSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==s.maximumInputLength&&this.search.attr("maxlength",s.maximumInputLength);var a=s.element.prop("disabled");a===t&&(a=!1),this.enable(!a);var r=s.element.prop("readonly");r===t&&(r=!1),this.readonly(r),N=N||n(),this.autofocus=s.element.prop("autofocus"),s.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",s.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,s=e.data("ccselect2"),i=this;this.close(),e.length&&e[0].detachEvent&&i._sync&&e.each(function(){i._sync&&this.detachEvent("onpropertychange",i._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,s!==t&&(s.container.remove(),s.liveRegion.remove(),s.dropdown.remove(),e.show().removeData("ccselect2").off(".ccselect2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show()),I.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:o(e.attr("locked"),"locked")||o(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(s){var i,c,n,r,l=this;if(i=s.element,"select"===i.get(0).tagName.toLowerCase()&&(this.select=c=s.element),c&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in s)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),s=e.extend({},{populateResults:function(i,c,n){var o,a=this.opts.id,r=this.liveRegion;(o=function(i,c,h){var u,d,p,f,g,m,v,w,b,C;i=s.sortResults(i,c,n);var S=[];for(u=0,d=i.length;d>u;u+=1)p=i[u],g=p.disabled===!0,f=!g&&a(p)!==t,m=p.children&&p.children.length>0,v=e("<li></li>"),v.addClass("ccselect2-results-dept-"+h),v.addClass("ccselect2-result"),v.addClass(f?"ccselect2-result-selectable":"ccselect2-result-unselectable"),g&&v.addClass("ccselect2-disabled"),m&&v.addClass("ccselect2-result-with-children"),v.addClass(l.opts.formatResultCssClass(p)),v.attr("role","presentation"),w=e(document.createElement("div")),w.addClass("ccselect2-result-label"),w.attr("id","ccselect2-result-label-"+H()),w.attr("role","option"),C=s.formatResult(p,w,n,l.opts.escapeMarkup),C!==t&&(w.html(C),v.append(w)),m&&(b=e("<ul></ul>"),b.addClass("ccselect2-result-sub"),o(p.children,b,h+1),v.append(b)),v.data("ccselect2-data",p),S.push(v[0]);c.append(S),r.text(s.formatMatches(i.length))})(c,i,0)}},e.fn.select2.defaults,s),"function"!=typeof s.id&&(n=s.id,s.id=function(e){return e[n]}),e.isArray(s.element.data("ccselect2Tags"))){if("tags"in s)throw"tags specified as both an attribute 'data-ccselect2-tags' and in options of Select2 "+s.element.attr("id");s.tags=s.element.data("ccselect2Tags")}if(c?(s.query=this.bind(function(e){var s,c,n,o={results:[],more:!1},a=e.term;n=function(t,s){var i;t.is("option")?e.matcher(a,t.text(),t)&&s.push(l.optionToData(t)):t.is("optgroup")&&(i=l.optionToData(t),t.children().each2(function(e,t){n(t,i.children)}),i.children.length>0&&s.push(i))},s=i.children(),this.getPlaceholder()!==t&&s.length>0&&(c=this.getPlaceholderOption(),c&&(s=s.not(c))),s.each2(function(e,t){n(t,o.results)}),e.callback(o)}),s.id=function(e){return e.id}):"query"in s||("ajax"in s?(r=s.element.data("ajax-url"),r&&r.length>0&&(s.ajax.url=r),s.query=S.call(s.element,s.ajax)):"data"in s?s.query=y(s.data):"tags"in s&&(s.query=x(s.tags),s.createSearchChoice===t&&(s.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),s.initSelection===t&&(s.initSelection=function(t,i){var c=[];e(a(t.val(),s.separator,s.transformVal)).each(function(){var t={id:this,text:this},i=s.tags;e.isFunction(i)&&(i=i()),e(i).each(function(){return o(this.id,t.id)?(t=this,!1):void 0}),c.push(t)}),i(c)}))),"function"!=typeof s.query)throw"query function not defined for Select2 "+s.element.attr("id");if("top"===s.createSearchChoicePosition)s.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===s.createSearchChoicePosition)s.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof s.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return s},monitorSource:function(){var s,i=this.opts.element,c=this;i.on("change.ccselect2",this.bind(function(e){this.opts.element.data("ccselect2-change-triggered")!==!0&&this.initSelection()})),this._sync=this.bind(function(){var e=i.prop("disabled");e===t&&(e=!1),this.enable(!e);var s=i.prop("readonly");s===t&&(s=!1),this.readonly(s),this.container&&(w(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(T(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(w(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(T(this.opts.dropdownCssClass,this.opts.element)))}),i.length&&i[0].attachEvent&&i.each(function(){this.attachEvent("onpropertychange",c._sync)}),s=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,s!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new s(function(t){e.each(t,c._sync)}),this.propertyObserver.observe(i.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var s=e.Event("ccselect2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(s),!s.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("ccselect2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("ccselect2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return this.enabledInterface===!0},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e===this.enabledInterface?!1:(this.container.toggleClass("ccselect2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return this.container?this.container.hasClass("ccselect2-dropdown-open"):!1},positionDropdown:function(){var t,s,i,c,n,o=this.dropdown,a=this.container,r=a.offset(),l=a.outerHeight(!1),h=a.outerWidth(!1),u=o.outerHeight(!1),d=e(window),p=d.width(),f=d.height(),g=d.scrollLeft()+p,m=d.scrollTop()+f,v=r.top+l,w=r.left,b=m>=v+u,C=r.top-u>=d.scrollTop(),S=o.outerWidth(!1),y=function(){return g>=w+S},x=function(){return r.left+g+a.outerWidth(!1)>S},E=o.hasClass("ccselect2-drop-above");E?(s=!0,!C&&b&&(i=!0,s=!1)):(s=!1,!b&&C&&(i=!0,s=!0)),i&&(o.hide(),r=this.container.offset(),l=this.container.outerHeight(!1),h=this.container.outerWidth(!1),u=o.outerHeight(!1),g=d.scrollLeft()+p,m=d.scrollTop()+f,v=r.top+l,w=r.left,S=o.outerWidth(!1),o.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(n=e(".ccselect2-results",o)[0],o.addClass("ccselect2-drop-auto-width"),o.css("width",""),S=o.outerWidth(!1)+(n.scrollHeight===n.clientHeight?0:N.width),S>h?h=S:S=h,u=o.outerHeight(!1)):this.container.removeClass("ccselect2-drop-auto-width"),"static"!==this.body.css("position")&&(t=this.body.offset(),v-=t.top,w-=t.left),!y()&&x()&&(w=r.left+this.container.outerWidth(!1)-S),c={left:w,width:h},s?(c.top=r.top-u,c.bottom="auto",this.container.addClass("ccselect2-drop-above"),o.addClass("ccselect2-drop-above")):(c.top=v,c.bottom="auto",this.container.removeClass("ccselect2-drop-above"),o.removeClass("ccselect2-drop-above")),c=e.extend(c,T(this.opts.dropdownCss,this.opts.element)),o.css(c)},shouldOpen:function(){var t;return this.opened()?!1:this._enabled===!1||this._readonly===!0?!1:(t=e.Event("ccselect2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("ccselect2-drop-above"),this.dropdown.removeClass("ccselect2-drop-above")},open:function(){return this.shouldOpen()?(this.opening(),L.on("mousemove.ccselect2Event",function(e){F.x=e.pageX,F.y=e.pageY}),!0):!1},opening:function(){var t,i=this.containerEventName,c="scroll."+i,n="resize."+i,o="orientationchange."+i;this.container.addClass("ccselect2-dropdown-open").addClass("ccselect2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),t=e("#ccselect2-drop-mask"),0===t.length&&(t=e(document.createElement("div")),t.attr("id","ccselect2-drop-mask").attr("class","ccselect2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(i){s(t);var c,n=e("#ccselect2-drop");n.length>0&&(c=n.data("ccselect2"),c.opts.selectOnBlur&&c.selectHighlighted({noFocus:!0}),c.close(),i.preventDefault(),i.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#ccselect2-drop").removeAttr("id"),this.dropdown.attr("id","ccselect2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("ccselect2-drop-active");var a=this;this.container.parents().add(window).each(function(){e(this).on(n+" "+c+" "+o,function(e){a.opened()&&a.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,s="scroll."+t,i="resize."+t,c="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(s).off(i).off(c)}),this.clearDropdownAlignmentPreference(),e("#ccselect2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("ccselect2-dropdown-open").removeClass("ccselect2-container-active"),this.results.empty(),L.off("mousemove.ccselect2Event"),this.clearSearch(),this.search.removeClass("ccselect2-active"),this.opts.element.trigger(e.Event("ccselect2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return T(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,s,i,c,n,o,a,r,l=this.results;if(s=this.highlight(),!(0>s)){if(0==s)return void l.scrollTop(0);t=this.findHighlightableChoices().find(".ccselect2-result-label"),i=e(t[s]),r=(i.offset()||{}).top||0,c=r+i.outerHeight(!0),s===t.length-1&&(a=l.find("li.ccselect2-more-results"),a.length>0&&(c=a.offset().top+a.outerHeight(!0))),n=l.offset().top+l.outerHeight(!1),c>n&&l.scrollTop(l.scrollTop()+(c-n)),o=r-l.offset().top,0>o&&"none"!=i.css("display")&&l.scrollTop(l.scrollTop()+o)}},findHighlightableChoices:function(){return this.results.find(".ccselect2-result-selectable:not(.ccselect2-disabled):not(.ccselect2-selected)")},moveHighlight:function(t){for(var s=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<s.length;){i+=t;var c=e(s[i]);if(c.hasClass("ccselect2-result-selectable")&&!c.hasClass("ccselect2-disabled")&&!c.hasClass("ccselect2-selected")){this.highlight(i);break}}},highlight:function(t){var s,i,n=this.findHighlightableChoices();return 0===arguments.length?c(n.filter(".ccselect2-highlighted")[0],n.get()):(t>=n.length&&(t=n.length-1),0>t&&(t=0),this.removeHighlight(),s=e(n[t]),s.addClass("ccselect2-highlighted"),this.search.attr("aria-activedescendant",s.find(".ccselect2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(s.text()),i=s.data("ccselect2-data"),void(i&&this.opts.element.trigger({type:"ccselect2-highlight",val:this.id(i),choice:i})))},removeHighlight:function(){this.results.find(".ccselect2-highlighted").removeClass("ccselect2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var s=e(t.target).closest(".ccselect2-result-selectable");if(s.length>0&&!s.is(".ccselect2-highlighted")){var i=this.findHighlightableChoices();this.highlight(i.index(s))}else 0==s.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e,t=this.results,s=t.find("li.ccselect2-more-results"),i=this.resultsPage+1,c=this,n=this.search.val(),o=this.context;0!==s.length&&(e=s.offset().top-t.offset().top-t.height(),e<=this.opts.loadMorePadding&&(s.addClass("ccselect2-active"),this.opts.query({element:this.opts.element,term:n,page:i,context:o,matcher:this.opts.matcher,callback:this.bind(function(e){c.opened()&&(c.opts.populateResults.call(this,t,e.results,{term:n,page:i,context:o}),c.postprocessResults(e,!1,!1),e.more===!0?(s.detach().appendTo(t).html(c.opts.escapeMarkup(T(c.opts.formatLoadMore,c.opts.element,i+1))),window.setTimeout(function(){c.loadMoreIfNeeded()},10)):s.remove(),c.positionDropdown(),c.resultsPage=i,c.context=e.context,this.opts.element.trigger({type:"ccselect2-loaded",items:e}))})})))},tokenize:function(){},updateResults:function(s){function i(){l.removeClass("ccselect2-active"),d.positionDropdown(),h.find(".ccselect2-no-results,.ccselect2-selection-limit,.ccselect2-searching").length?d.liveRegion.text(h.text()):d.liveRegion.text(d.opts.formatMatches(h.find('.ccselect2-result-selectable:not(".ccselect2-selected")').length))}function c(e){h.html(e),i()}var n,a,r,l=this.search,h=this.results,u=this.opts,d=this,p=l.val(),f=e.data(this.container,"ccselect2-last-term");if((s===!0||!f||!o(p,f))&&(e.data(this.container,"ccselect2-last-term",p),s===!0||this.showSearchInput!==!1&&this.opened())){r=++this.queryCount;var g=this.getMaximumSelectionSize();if(g>=1&&(n=this.data(),e.isArray(n)&&n.length>=g&&E(u.formatSelectionTooBig,"formatSelectionTooBig")))return void c("<li class='ccselect2-selection-limit'>"+T(u.formatSelectionTooBig,u.element,g)+"</li>");if(l.val().length<u.minimumInputLength)return c(E(u.formatInputTooShort,"formatInputTooShort")?"<li class='ccselect2-no-results'>"+T(u.formatInputTooShort,u.element,l.val(),u.minimumInputLength)+"</li>":""),void(s&&this.showSearch&&this.showSearch(!0));if(u.maximumInputLength&&l.val().length>u.maximumInputLength)return void c(E(u.formatInputTooLong,"formatInputTooLong")?"<li class='ccselect2-no-results'>"+T(u.formatInputTooLong,u.element,l.val(),u.maximumInputLength)+"</li>":"");u.formatSearching&&0===this.findHighlightableChoices().length&&c("<li class='ccselect2-searching'>"+T(u.formatSearching,u.element)+"</li>"),l.addClass("ccselect2-active"),this.removeHighlight(),a=this.tokenize(),a!=t&&null!=a&&l.val(a),this.resultsPage=1,u.query({element:u.element,term:l.val(),page:this.resultsPage,context:null,matcher:u.matcher,callback:this.bind(function(n){var a;if(r==this.queryCount){if(!this.opened())return void this.search.removeClass("ccselect2-active");if(n.hasError!==t&&E(u.formatAjaxError,"formatAjaxError"))return void c("<li class='ccselect2-ajax-error'>"+T(u.formatAjaxError,u.element,n.jqXHR,n.textStatus,n.errorThrown)+"</li>"); if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==l.val()&&(a=this.opts.createSearchChoice.call(d,l.val(),n.results),a!==t&&null!==a&&d.id(a)!==t&&null!==d.id(a)&&0===e(n.results).filter(function(){return o(d.id(this),d.id(a))}).length&&this.opts.createSearchChoicePosition(n.results,a)),0===n.results.length&&E(u.formatNoMatches,"formatNoMatches"))return void c("<li class='ccselect2-no-results'>"+T(u.formatNoMatches,u.element,l.val())+"</li>");h.empty(),d.opts.populateResults.call(this,h,n.results,{term:l.val(),page:this.resultsPage,context:null}),n.more===!0&&E(u.formatLoadMore,"formatLoadMore")&&(h.append("<li class='ccselect2-more-results'>"+u.escapeMarkup(T(u.formatLoadMore,u.element,this.resultsPage))+"</li>"),window.setTimeout(function(){d.loadMoreIfNeeded()},10)),this.postprocessResults(n,s),i(),this.opts.element.trigger({type:"ccselect2-loaded",items:n})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("ccselect2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".ccselect2-search-choice-focus").removeClass("ccselect2-search-choice-focus")},focusSearch:function(){p(this.search)},selectHighlighted:function(e){if(this._touchMoved)return void this.clearTouchMoved();var t=this.highlight(),s=this.results.find(".ccselect2-highlighted"),i=s.closest(".ccselect2-result").data("ccselect2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var s=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&s||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(s.text())&&""===s.val())return s}},initContainerWidth:function(){function s(){var s,i,c,n,o,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if(s=this.opts.element.attr("style"),s!==t)for(i=s.split(";"),n=0,o=i.length;o>n;n+=1)if(a=i[n].replace(/\s/g,""),c=a.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),null!==c&&c.length>=1)return c[1];return"resolve"===this.opts.width?(s=this.opts.element.css("width"),s.indexOf("%")>0?s:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}var i=s.call(this);null!==i&&this.container.css("width",i)}}),R=k(A,{createContainer:function(){var t=e(document.createElement("div")).attr({"class":"ccselect2-container"}).html(["<a href='javascript:void(0)' class='ccselect2-choice' tabindex='-1'>"," <span class='ccselect2-chosen'> </span><abbr class='ccselect2-search-choice-close'></abbr>"," <span class='ccselect2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='ccselect2-offscreen'></label>","<input class='ccselect2-focusser ccselect2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='ccselect2-drop ccselect2-display-none'>"," <div class='ccselect2-search'>"," <label for='' class='ccselect2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='ccselect2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='ccselect2-results' role='listbox'>"," </ul>","</div>"].join(""));return t},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var s,i,c;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),this.showSearchInput!==!1&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),s=this.search.get(0),s.createTextRange?(i=s.createTextRange(),i.collapse(!1),i.select()):s.setSelectionRange&&(c=this.search.val().length,s.setSelectionRange(c,c))),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("ccselect2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("ccselect2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"selection","focusser")},initContainer:function(){var t,i,c=this.container,n=this.dropdown,o=H();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=c.find(".ccselect2-choice"),this.focusser=c.find(".ccselect2-focusser"),t.find(".ccselect2-chosen").attr("id","ccselect2-chosen-"+o),this.focusser.attr("aria-labelledby","ccselect2-chosen-"+o),this.results.attr("id","ccselect2-results-"+o),this.search.attr("aria-owns","ccselect2-results-"+o),this.focusser.attr("id","s2id_autogen"+o),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.focus(this.bind(function(){this.focus()})),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var a=this.opts.element.attr("title");this.opts.element.attr("title",a||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode){if(e.which===U.PAGE_UP||e.which===U.PAGE_DOWN)return void g(e);switch(e.which){case U.UP:case U.DOWN:return this.moveHighlight(e.which===U.UP?-1:1),void g(e);case U.ENTER:return this.selectHighlighted(),void g(e);case U.TAB:return void this.selectHighlighted({noFocus:!0});case U.ESC:return this.cancel(e),void g(e)}}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==U.TAB&&!U.isControl(e)&&!U.isFunctionKey(e)&&e.which!==U.ESC){if(this.opts.openOnEnter===!1&&e.which===U.ENTER)return void g(e);if(e.which==U.DOWN||e.which==U.UP||e.which==U.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void g(e)}return e.which==U.DELETE||e.which==U.BACKSPACE?(this.opts.allowClear&&this.clear(),void g(e)):void 0}})),l(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),m(e),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(i){s(t),this.container.hasClass("ccselect2-container-active")||this.opts.element.trigger(e.Event("ccselect2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),g(i)})),n.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){g(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("ccselect2-container-active")||this.opts.element.trigger(e.Event("ccselect2-focus")),this.container.addClass("ccselect2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("ccselect2-container-active"),this.opts.element.trigger(e.Event("ccselect2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("ccselect2-container-active")||this.opts.element.trigger(e.Event("ccselect2-focus")),this.container.addClass("ccselect2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var s=this.selection.data("ccselect2-data");if(s){var i=e.Event("ccselect2-clearing");if(this.opts.element.trigger(i),i.isDefaultPrevented())return;var c=this.getPlaceholderOption();this.opts.element.val(c?c.val():""),this.selection.find(".ccselect2-chosen").empty(),this.selection.removeData("ccselect2-data"),this.setPlaceholder(),t!==!1&&(this.opts.element.trigger({type:"ccselect2-removed",val:this.id(s),choice:s}),this.triggerChange({removed:s}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(s){s!==t&&null!==s&&(e.updateSelection(s),e.close(),e.setPlaceholder(),e.nextSearchTerm=e.opts.nextSearchTerm(s,e.search.val()))})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()===t?!1:(e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val()},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=e.find("option").filter(function(){return this.selected&&!this.disabled});t(s.optionToData(i))}:"data"in t&&(t.initSelection=t.initSelection||function(s,i){var c=s.val(),n=null;t.query({matcher:function(e,s,i){var a=o(c,t.id(i));return a&&(n=i),a},callback:e.isFunction(i)?function(){i(n)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".ccselect2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("ccselect2-default"),this.container.removeClass("ccselect2-allowclear")}},postprocessResults:function(e,t,s){var i=0,c=this;if(this.findHighlightableChoices().each2(function(e,t){return o(c.id(t.data("ccselect2-data")),c.opts.element.val())?(i=e,!1):void 0}),s!==!1&&(t===!0&&i>=0?this.highlight(i):this.highlight(0)),t===!0){var n=this.opts.minimumResultsForSearch;n>=0&&this.showSearch(O(e.results)>=n)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".ccselect2-search").toggleClass("ccselect2-search-hidden",!t),this.dropdown.find(".ccselect2-search").toggleClass("ccselect2-offscreen",!t),e(this.dropdown,this.container).toggleClass("ccselect2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var s=this.opts.element.val(),i=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"ccselect2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),o(s,this.id(e))||this.triggerChange({added:e,removed:i})}},updateSelection:function(e){var s,i,c=this.selection.find(".ccselect2-chosen");this.selection.data("ccselect2-data",e),c.empty(),null!==e&&(s=this.opts.formatSelection(e,c,this.opts.escapeMarkup)),s!==t&&c.append(s),i=this.opts.formatSelectionCssClass(e,c),i!==t&&c.addClass(i),this.selection.removeClass("ccselect2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("ccselect2-allowclear")},val:function(){var e,s=!1,i=null,c=this,n=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(s=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return i=c.optionToData(t),!1}),this.updateSelection(i),this.setPlaceholder(),s&&this.triggerChange({added:i,removed:n});else{if(!e&&0!==e)return void this.clear(s);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){c.opts.element.val(e?c.id(e):""),c.updateSelection(e),c.setPlaceholder(),s&&c.triggerChange({added:e,removed:n})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var s,i=!1;return 0===arguments.length?(s=this.selection.data("ccselect2-data"),s==t&&(s=null),s):(arguments.length>1&&(i=arguments[1]),void(e?(s=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),i&&this.triggerChange({added:e,removed:s})):this.clear(i)))}}),D=k(A,{createContainer:function(){var t=e(document.createElement("div")).attr({"class":"ccselect2-container ccselect2-container-multi"}).html(["<ul class='ccselect2-choices'>"," <li class='ccselect2-search-field'>"," <label for='' class='ccselect2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='ccselect2-input'>"," </li>","</ul>","<div class='ccselect2-drop ccselect2-drop-multi ccselect2-display-none'>"," <ul class='ccselect2-results'>"," </ul>","</div>"].join(""));return t},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),s=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){i.push(s.optionToData(t))}),t(i)}:"data"in t&&(t.initSelection=t.initSelection||function(s,i){var c=a(s.val(),t.separator,t.transformVal),n=[];t.query({matcher:function(s,i,a){var r=e.grep(c,function(e){return o(e,t.id(a))}).length;return r&&n.push(a),r},callback:e.isFunction(i)?function(){for(var e=[],s=0;s<c.length;s++)for(var a=c[s],r=0;r<n.length;r++){var l=n[r];if(o(a,t.id(l))){e.push(l),n.splice(r,1);break}}i(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".ccselect2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("ccselect2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("ccselect2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"searchContainer","selection")},initContainer:function(){var t,s=".ccselect2-choices";this.searchContainer=this.container.find(".ccselect2-search-field"),this.selection=t=this.container.find(s);var i=this;this.selection.on("click",".ccselect2-container:not(.ccselect2-container-disabled) .ccselect2-search-choice:not(.ccselect2-locked)",function(t){i.search[0].focus(),i.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+H()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.focus(this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var s=t.find(".ccselect2-search-choice-focus"),i=s.prev(".ccselect2-search-choice:not(.ccselect2-locked)"),c=s.next(".ccselect2-search-choice:not(.ccselect2-locked)"),n=f(this.search);if(s.length&&(e.which==U.LEFT||e.which==U.RIGHT||e.which==U.BACKSPACE||e.which==U.DELETE||e.which==U.ENTER)){var o=s;return e.which==U.LEFT&&i.length?o=i:e.which==U.RIGHT?o=c.length?c:null:e.which===U.BACKSPACE?this.unselect(s.first())&&(this.search.width(10),o=i.length?i:c):e.which==U.DELETE?this.unselect(s.first())&&(this.search.width(10),o=c.length?c:null):e.which==U.ENTER&&(o=null),this.selectChoice(o),g(e),void(o&&o.length||this.open())}if((e.which===U.BACKSPACE&&1==this.keydowns||e.which==U.LEFT)&&0==n.offset&&!n.length)return this.selectChoice(t.find(".ccselect2-search-choice:not(.ccselect2-locked)").last()),void g(e);if(this.selectChoice(null),this.opened())switch(e.which){case U.UP:case U.DOWN:return this.moveHighlight(e.which===U.UP?-1:1),void g(e);case U.ENTER:return this.selectHighlighted(),void g(e);case U.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case U.ESC:return this.cancel(e),void g(e)}if(e.which!==U.TAB&&!U.isControl(e)&&!U.isFunctionKey(e)&&e.which!==U.BACKSPACE&&e.which!==U.ESC){if(e.which===U.ENTER){if(this.opts.openOnEnter===!1)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==U.PAGE_UP&&e.which!==U.PAGE_DOWN||g(e),e.which===U.ENTER&&g(e)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("ccselect2-container-active"),this.search.removeClass("ccselect2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("ccselect2-blur"))})),this.container.on("click",s,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".ccselect2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("ccselect2-container-active")||this.opts.element.trigger(e.Event("ccselect2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",s,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("ccselect2-container-active")||this.opts.element.trigger(e.Event("ccselect2-focus")),this.container.addClass("ccselect2-container-active"),this.dropdown.addClass("ccselect2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(s){s!==t&&null!==s&&(e.updateSelection(s),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),s=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&this.search.hasClass("ccselect2-focused")===!1?(this.search.val(e).addClass("ccselect2-default"),this.search.width(s>0?s:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("ccselect2-default")&&this.search.val("").removeClass("ccselect2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.Event("ccselect2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("ccselect2-focused")},updateSelection:function(t){var s=[],i=[],n=this;e(t).each(function(){c(n.id(this),s)<0&&(s.push(n.id(this)),i.push(this))}),t=i,this.selection.find(".ccselect2-search-choice").remove(),e(t).each(function(){n.addSelectedChoice(this)}),n.postprocessResults()},tokenize:function(){var e=this.search.val();e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts),null!=e&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,s){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,this.opts.closeOnSelect===!0),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),s&&s.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(s){var i,c,n=!s.locked,o=e("<li class='ccselect2-search-choice'> <div></div> <a href='#' class='ccselect2-search-choice-close' tabindex='-1'><i class='raty-cancel-on'></i></a></li>"),a=e("<li class='ccselect2-search-choice ccselect2-locked'><div></div></li>"),r=n?o:a,l=this.id(s),h=this.getVal();i=this.opts.formatSelection(s,r.find("div"),this.opts.escapeMarkup),i!=t&&r.find("div").replaceWith(e("<div></div>").html(i)),c=this.opts.formatSelectionCssClass(s,r.find("div")),c!=t&&r.addClass(c),n&&r.find(".ccselect2-search-choice-close").on("mousedown",g).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".ccselect2-search-choice-focus").removeClass("ccselect2-search-choice-focus"),g(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("ccselect2-container-active"),this.dropdown.addClass("ccselect2-drop-active"))})),r.data("ccselect2-data",s),r.insertBefore(this.searchContainer),h.push(l),this.setVal(h)},unselect:function(t){var s,i,n=this.getVal();if(t=t.closest(".ccselect2-search-choice"),0===t.length)throw"Invalid argument: "+t+". Must be .ccselect2-search-choice";if(s=t.data("ccselect2-data")){var o=e.Event("ccselect2-removing");if(o.val=this.id(s),o.choice=s,this.opts.element.trigger(o),o.isDefaultPrevented())return!1;for(;(i=c(this.id(s),n))>=0;)n.splice(i,1),this.setVal(n),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"ccselect2-removed",val:this.id(s),choice:s}),this.triggerChange({removed:s}),!0}},postprocessResults:function(e,t,s){var i=this.getVal(),n=this.results.find(".ccselect2-result"),o=this.results.find(".ccselect2-result-with-children"),a=this;n.each2(function(e,t){var s=a.id(t.data("ccselect2-data"));c(s,i)>=0&&(t.addClass("ccselect2-selected"),t.find(".ccselect2-result-selectable").addClass("ccselect2-selected"))}),o.each2(function(e,t){t.is(".ccselect2-result-selectable")||0!==t.find(".ccselect2-result-selectable:not(.ccselect2-selected)").length||t.addClass("ccselect2-selected")}),-1==this.highlight()&&s!==!1&&this.opts.closeOnSelect===!0&&a.highlight(0),!this.opts.createSearchChoice&&!n.filter(".ccselect2-result:not(.ccselect2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".ccselect2-no-results").length)&&E(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='ccselect2-no-results'>"+T(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-r(this.search)},resizeSearch:function(){var e,t,s,i,c,n=r(this.search);e=v(this.search)+10,t=this.search.offset().left,s=this.selection.width(),i=this.selection.offset().left,c=s-(t-i)-n,e>c&&(c=s-n),40>c&&(c=s-n),0>=c&&(c=e),this.search.width(Math.floor(c))},getVal:function(){var e;return this.select?(e=this.select.val(),null===e?[]:e):(e=this.opts.element.val(),a(e,this.opts.separator,this.opts.transformVal))},setVal:function(t){var s;this.select?this.select.val(t):(s=[],e(t).each(function(){c(this,s)<0&&s.push(this)}),this.opts.element.val(0===s.length?"":s.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),s=0;s<t.length;s++)for(var i=0;i<e.length;i++)o(this.opts.id(t[s]),this.opts.id(e[i]))&&(t.splice(s,1),s>0&&s--,e.splice(i,1),i--);return{added:t,removed:e}},val:function(s,i){var c,n=this;if(0===arguments.length)return this.getVal();if(c=this.data(),c.length||(c=[]),!s&&0!==s)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(i&&this.triggerChange({added:this.data(),removed:c}));if(this.setVal(s),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),i&&this.triggerChange(this.buildChangeDetails(c,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var s=e.map(t,n.id);n.setVal(s),n.updateSelection(t),n.clearSearch(),i&&n.triggerChange(n.buildChangeDetails(c,n.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],s=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".ccselect2-search-choice").each(function(){t.push(s.opts.id(e(this).data("ccselect2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,s){var i,c,n=this;return 0===arguments.length?this.selection.children(".ccselect2-search-choice").map(function(){return e(this).data("ccselect2-data")}).get():(c=this.data(),t||(t=[]),i=e.map(t,function(e){return n.opts.id(e)}),this.setVal(i),this.updateSelection(t),this.clearSearch(),s&&this.triggerChange(this.buildChangeDetails(c,this.data())),void 0)}}),e.fn.select2=function(){var s,i,n,o,a,r=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],h=["opened","isFocused","container","dropdown"],u=["val","data"],d={search:"externalSearch"};return this.each(function(){if(0===r.length||"object"==typeof r[0])s=0===r.length?{}:e.extend({},r[0]),s.element=e(this),"select"===s.element.get(0).tagName.toLowerCase()?a=s.element.prop("multiple"):(a=s.multiple||!1,"tags"in s&&(s.multiple=a=!0)),i=a?new window.Select2["class"].multi:new window.Select2["class"].single,i.init(s);else{if("string"!=typeof r[0])throw"Invalid arguments to ccselect2 plugin: "+r;if(c(r[0],l)<0)throw"Unknown method: "+r[0];if(o=t,i=e(this).data("ccselect2"),i===t)return;if(n=r[0],"container"===n?o=i.container:"dropdown"===n?o=i.dropdown:(d[n]&&(n=d[n]),o=i[n].apply(i,r.slice(1))),c(r[0],h)>=0||c(r[0],u)>=0&&1==r.length)return!1}}),o===t?this:o},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,s,i){var c=[];return b(this.text(e),s.term,c,i),c.join("")},transformVal:function(t){return e.trim(t)},formatSelection:function(e,s,i){return e?i(this.text(e)):t},sortResults:function(e,t,s){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,s){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},text:function(t){return t&&this.data&&this.data.text?e.isFunction(this.data.text)?this.data.text(t):t[this.data.text]:t.text},matcher:function(e,t){return i(""+t).toUpperCase().indexOf(i(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:P,escapeMarkup:C,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,s){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){var t="ontouchstart"in window||navigator.msMaxTouchPoints>0;return t?!(e.opts.minimumResultsForSearch<0):!0}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,s){return"Loading failed"},formatInputTooShort:function(e,t){var s=t-e.length;return"Please enter "+s+" or more character"+(1==s?"":"s")},formatInputTooLong:function(e,t){var s=e.length-t;return"Please delete "+s+" character"+(1==s?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:S,local:y,tags:x},util:{debounce:u,markMatch:b,escapeMarkup:C,stripDiacritics:i},"class":{"abstract":A,single:R,multi:D}}}}(jQuery);
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Генерация страницы: 0.07 |
proxy
|
phpinfo
|
Настройка