web/static-dist/libs/select2.js

(开头部分) 64KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

!function(e){function t(i,s){if(n[i])return n[i].exports;var o={i:i,l:!1,exports:{}};return 0!=s&&(n[i]=o),e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/static-dist/",t(t.s=24)}({"07a3448be5f694cdee04":function(e,t,n){e.exports=!n("457939c2e15065e32401")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"092e180c0d36d7fc5c31":function(e,t,n){var i=n("092e180c0d36d7fc5c3d");"string"==typeof i&&(i=[[e.i,i,""]]);var s={insertAt:"top",hmr:!0};s.transform=void 0;n("3296c0d42e5b7cde21ad")(i,s);i.locals&&(e.exports=i.locals)},"092e180c0d36d7fc5c3d":function(e,t,n){t=e.exports=n("e7f1add7f34e416618de")(void 0),t.push([e.i,"/*! define jquery-plugin/select2/3.4.1/select2.css */.select2-container{margin:0;padding:0;border:none;position:relative;display:inline-block;zoom:1;*display:inline;vertical-align:middle}.select2-container,.select2-drop,.select2-search,.select2-search input{-webkit-box-sizing:border-box;-khtml-box-sizing:border-box;-moz-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.select2-container .select2-choice{display:block;height:26px;padding:0 0 0 8px;overflow:hidden;position:relative;border:1px solid #ccc;white-space:nowrap;line-height:26px;color:#444;text-decoration:none;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);// filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);// background-image:linear-gradient(top,#fff 0,#eee 50%)}.select2-container.select2-drop-above .select2-choice{border-bottom-color:#aaa;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0,#eee),color-stop(0.9,#fff));background-image:-webkit-linear-gradient(center bottom,#eee 0,#fff 90%);background-image:-moz-linear-gradient(center bottom,#eee 0,#fff 90%);background-image:-o-linear-gradient(bottom,#eee 0,#fff 90%);background-image:-ms-linear-gradient(top,#eee 0,#fff 90%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);background-image:linear-gradient(top,#eee 0,#fff 90%)}.select2-container.select2-allowclear .select2-choice .select2-chosen{margin-right:42px}.select2-container .select2-choice>.select2-chosen{margin-right:26px;display:block;overflow:hidden;white-space:nowrap;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.select2-container .select2-choice abbr{display:none;width:12px;height:12px;position:absolute;right:24px;top:8px;font-size:1px;text-decoration:none;border:0;background:url("+n("58dc8be06f916daefb56")+") right top no-repeat;cursor:pointer;outline:0}.select2-container.select2-allowclear .select2-choice abbr{display:inline-block}.select2-container .select2-choice abbr:hover{background-position:right -11px;cursor:pointer}.select2-drop-undermask{border:0;margin:0;padding:0;position:absolute;left:0;top:0;z-index:9998;background-color:transparent;filter:alpha(opacity=0)}.select2-drop-mask{border:0;margin:0;padding:0;position:absolute;left:0;top:0;z-index:9998;background-color:#fff;opacity:0;filter:alpha(opacity=0)}.select2-drop{width:100%;margin-top:-1px;position:absolute;z-index:9998;top:100%;background:#fff;color:#000;border:1px solid #aaa;border-top:0;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;-webkit-box-shadow:0 4px 5px rgba(0,0,0,.15);-moz-box-shadow:0 4px 5px rgba(0,0,0,.15);box-shadow:0 4px 5px rgba(0,0,0,.15)}.select2-drop-auto-width{border-top:1px solid #aaa!important;border-bottom:1px solid #aaa!important;width:auto}.select2-drop-auto-width .select2-search{padding-top:4px}.select2-drop.select2-drop-above{margin-top:1px;border-top:1px solid #aaa;border-bottom:0;-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0;-webkit-box-shadow:0 -4px 5px rgba(0,0,0,.15);-moz-box-shadow:0 -4px 5px rgba(0,0,0,.15);box-shadow:0 -4px 5px rgba(0,0,0,.15)}.select2-drop-active{border:1px solid #aaa;border-top:none}.select2-drop.select2-drop-above.select2-drop-active{border-top:1px solid #aaa}.select2-container .select2-choice .select2-arrow{display:inline-block;width:18px;height:100%;position:absolute;right:0;top:0;-webkit-border-radius:0 4px 4px 0;-moz-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0;-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;// background-color:#ccc;// filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#cccccc', GradientType=0);// background-image:linear-gradient(top,#ccc 0,#eee 60%)}.select2-container .select2-choice .select2-arrow b{display:block;width:100%;height:100%;background:url("+n("58dc8be06f916daefb56")+") no-repeat 0 1px}.select2-search{display:inline-block;width:100%;min-height:26px;margin:0;padding-left:4px;padding-right:4px;position:relative;z-index:10000;white-space:nowrap}.select2-search input{width:100%;height:auto!important;min-height:26px;padding:4px 20px 4px 5px;margin:0;outline:0;font-family:sans-serif;font-size:1em;border:1px solid #aaa;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:#fff url("+n("58dc8be06f916daefb56")+") no-repeat 100% -22px;background:url("+n("58dc8be06f916daefb56")+") no-repeat 100% -22px,-webkit-gradient(linear,left bottom,left top,color-stop(0.85,#fff),color-stop(0.99,#eee));background:url("+n("58dc8be06f916daefb56")+") no-repeat 100% -22px,-webkit-linear-gradient(center bottom,#fff 85%,#eee 99%);background:url("+n("58dc8be06f916daefb56")+") no-repeat 100% -22px,-moz-linear-gradient(center bottom,#fff 85%,#eee 99%);background:url("+n("58dc8be06f916daefb56")+") no-repeat 100% -22px,-o-linear-gradient(bottom,#fff 85%,#eee 99%);background:url("+n("58dc8be06f916daefb56")+") no-repeat 100% -22px,-ms-linear-gradient(top,#fff 85%,#eee 99%);background:url("+n("58dc8be06f916daefb56")+") no-repeat 100% -22px,linear-gradient(top,#fff 85%,#eee 99%)}.select2-drop.select2-drop-above .select2-search input{margin-top:4px}.select2-search input.select2-active{background:#fff url("+n("5e0c09c67ab10f94c7a3")+") no-repeat 100%;background:url("+n("5e0c09c67ab10f94c7a3")+") no-repeat 100%,-webkit-gradient(linear,left bottom,left top,color-stop(0.85,#fff),color-stop(0.99,#eee));background:url("+n("5e0c09c67ab10f94c7a3")+") no-repeat 100%,-webkit-linear-gradient(center bottom,#fff 85%,#eee 99%);background:url("+n("5e0c09c67ab10f94c7a3")+") no-repeat 100%,-moz-linear-gradient(center bottom,#fff 85%,#eee 99%);background:url("+n("5e0c09c67ab10f94c7a3")+") no-repeat 100%,-o-linear-gradient(bottom,#fff 85%,#eee 99%);background:url("+n("5e0c09c67ab10f94c7a3")+") no-repeat 100%,-ms-linear-gradient(top,#fff 85%,#eee 99%);background:url("+n("5e0c09c67ab10f94c7a3")+") no-repeat 100%,linear-gradient(top,#fff 85%,#eee 99%)}.select2-container-active .select2-choice,.select2-container-active .select2-choices{border:1px solid #aaa;outline:0;-webkit-box-shadow:0 0 5px rgba(0,0,0,.3);-moz-box-shadow:0 0 5px rgba(0,0,0,.3);box-shadow:0 0 5px rgba(0,0,0,.3)}.select2-dropdown-open .select2-choice{border-bottom-color:transparent;-webkit-box-shadow:0 1px 0 #fff inset;-moz-box-shadow:0 1px 0 #fff inset;box-shadow:0 1px 0 #fff inset;-webkit-border-bottom-left-radius:0;-moz-border-radius-bottomleft:0;border-bottom-left-radius:0;-webkit-border-bottom-right-radius:0;-moz-border-radius-bottomright:0;border-bottom-right-radius:0;background-color:#eee;background-image:-webkit-gradient(linear,left bottom,left top,color-stop(0,#fff),color-stop(0.5,#eee));background-image:-webkit-linear-gradient(center bottom,#fff 0,#eee 50%);background-image:-moz-linear-gradient(center bottom,#fff 0,#eee 50%);background-image:-o-linear-gradient(bottom,#fff 0,#eee 50%);background-image:-ms-linear-gradient(top,#fff 0,#eee 50%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);background-image:linear-gradient(top,#fff 0,#eee 50%)}.select2-dropdown-open.select2-drop-above .select2-choice,.select2-dropdown-open.select2-drop-above .select2-choices{border:1px solid #aaa;border-top-color:transparent;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fff),color-stop(0.5,#eee));background-image:-webkit-linear-gradient(center top,#fff 0,#eee 50%);background-image:-moz-linear-gradient(center top,#fff 0,#eee 50%);background-image:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:-ms-linear-gradient(bottom,#fff 0,#eee 50%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);background-image:linear-gradient(bottom,#fff 0,#eee 50%)}.select2-dropdown-open .select2-choice .select2-arrow{background:0 0;border-left:none;filter:none}.select2-dropdown-open .select2-choice .select2-arrow b{background-position:-18px 1px}.select2-results{max-height:200px;padding:0 0 0 4px;margin:4px 4px 4px 0;position:relative;overflow-x:hidden;overflow-y:auto;-webkit-tap-highlight-color:rgba(0,0,0,0)}.select2-results ul.select2-result-sub{margin:0;padding-left:0}.select2-results ul.select2-result-sub>li .select2-result-label{padding-left:20px}.select2-results ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:40px}.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:60px}.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:80px}.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:100px}.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:110px}.select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub>li .select2-result-label{padding-left:120px}.select2-results li{list-style:none;display:list-item;background-image:none}.select2-results li.select2-result-with-children>.select2-result-label{font-weight:700}.select2-results .select2-result-label{display:inline-block;width:100%;padding:3px 7px 4px;margin:0;cursor:pointer;min-height:1em;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.select2-results .select2-highlighted{background:#3875d7;color:#fff}.select2-results li em{background:#feffde;font-style:normal}.select2-results .select2-highlighted em{background:0 0}.select2-results .select2-highlighted ul{background:#fff;color:#000}.select2-results .select2-no-results,.select2-results .select2-searching,.select2-results .select2-selection-limit{background:#f4f4f4;display:list-item}.select2-results .select2-disabled.select2-highlighted{color:#666;background:#f4f4f4;display:list-item;cursor:default}.select2-results .select2-disabled{background:#f4f4f4;display:list-item;cursor:default}.select2-results .select2-selected{display:none}.select2-more-results.select2-active{background:#f4f4f4 url("+n("5e0c09c67ab10f94c7a3")+") no-repeat 100%}.select2-more-results{background:#f4f4f4;display:list-item}.select2-container.select2-container-disabled .select2-choice{background-color:#f4f4f4;background-image:none;border:1px solid #ddd;cursor:default}.select2-container.select2-container-disabled .select2-choice .select2-arrow{background-color:#f4f4f4;background-image:none;border-left:0}.select2-container.select2-container-disabled .select2-choice abbr{display:none}.select2-container-multi .select2-choices{height:auto!important;height:1%;margin:0;padding:0;position:relative;border:1px solid #aaa;cursor:text;overflow:hidden;background-color:#fff;background-image:-webkit-gradient(linear,0 0,0 100%,color-stop(1%,#eee),color-stop(15%,#fff));background-image:-webkit-linear-gradient(top,#eee 1%,#fff 15%);background-image:-moz-linear-gradient(top,#eee 1%,#fff 15%);background-image:-o-linear-gradient(top,#eee 1%,#fff 15%);background-image:-ms-linear-gradient(top,#eee 1%,#fff 15%);background-image:linear-gradient(top,#eee 1%,#fff 15%)}.select2-locked{padding:3px 5px!important}.select2-container-multi .select2-choices{min-height:26px}.select2-container-multi.select2-container-active .select2-choices{border:1px solid #aaa;outline:0;-webkit-box-shadow:0 0 5px rgba(0,0,0,.3);-moz-box-shadow:0 0 5px rgba(0,0,0,.3);box-shadow:0 0 5px rgba(0,0,0,.3)}.select2-container-multi .select2-choices li{float:left;list-style:none}.select2-container-multi .select2-choices .select2-search-field{margin:0;padding:0;white-space:nowrap}.select2-container-multi .select2-choices .select2-search-field input{padding:5px;margin:1px 0;font-family:sans-serif;font-size:100%;color:#666;outline:0;border:0;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;background:transparent!important}.select2-container-multi .select2-choices .select2-search-field input.select2-active{background:#fff url("+n("5e0c09c67ab10f94c7a3")+") no-repeat 100%!important}.select2-default{color:#999!important}.select2-container-multi .select2-choices .select2-search-choice{padding:3px 5px 3px 18px;margin:3px 0 3px 5px;position:relative;line-height:13px;color:#333;cursor:default;border:1px solid #aaa;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);-moz-box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);box-shadow:0 0 2px #fff inset,0 1px 0 rgba(0,0,0,.05);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#e4e4e4;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);background-image:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#f4f4f4),color-stop(50%,#f0f0f0),color-stop(52%,#e8e8e8),color-stop(100%,#eee));background-image:-webkit-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-moz-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-o-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:-ms-linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%);background-image:linear-gradient(top,#f4f4f4 20%,#f0f0f0 50%,#e8e8e8 52%,#eee 100%)}.select2-container-multi .select2-choices .select2-search-choice .select2-chosen{cursor:default}.select2-container-multi .select2-choices .select2-search-choice-focus{background:#d4d4d4}.select2-search-choice-close{display:block;width:12px;height:13px;position:absolute;right:3px;top:4px;font-size:1px;outline:0;background:url("+n("58dc8be06f916daefb56")+") right top no-repeat}.select2-container-multi .select2-search-choice-close{left:3px}.select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover,.select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close{background-position:right -11px}.select2-container-multi.select2-container-disabled .select2-choices{background-color:#f4f4f4;background-image:none;border:1px solid #ddd;cursor:default}.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice{padding:3px 5px;border:1px solid #ddd;background-image:none;background-color:#f4f4f4}.select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close{display:none;background:0 0}.select2-result-selectable .select2-match,.select2-result-unselectable .select2-match{text-decoration:underline}.select2-offscreen,.select2-offscreen:focus{clip:rect(0 0 0 0);width:1px;height:1px;border:0;margin:0;padding:0;overflow:hidden;position:absolute;outline:0;left:0}.select2-display-none{display:none}.select2-measure-scrollbar{position:absolute;top:-10000px;left:-10000px;width:100px;height:100px;overflow:scroll}@media only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min-resolution:144dpi){.select2-container .select2-choice .select2-arrow b,.select2-container .select2-choice abbr,.select2-search input,.select2-search-choice-close{background-image:url("+n("fa782b7bf663b8d6c05f")+")!important;background-repeat:no-repeat!important;background-size:60px 40px!important}.select2-search input{background-position:100% -21px!important}}.select2-result-text{white-space:nowrap;display:inline-block;width:75%}.select2-tree-icon{display:inline-block;width:14px;color:#333}",""])},"0b694393054432e469b8":function(e,t,n){n("9f5e733705cd16698cdf"),n("bdf846462d003d52f301"),e.exports=n("d774351f3de1bfcb23b1").f("iterator")},"0c548c58e5c2525997c4":function(e,t,n){var i=n("dfa76e0e7e55e0febf1e"),s=n("25264dbf4ec8cd0a39ef").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,s)}},"0e6d1c03aac99b65ccb1":function(e,t){t.f={}.propertyIsEnumerable},"10f5bc3e6ad5971b57b0":function(e,t,n){var i=n("26b2cb950fcc43474957"),s=Math.min;e.exports=function(e){return e>0?s(i(e),9007199254740991):0}},"11f30f0d206e0327acdc":function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},"14126b102a8a946146ae":function(e,t,n){var i=n("6c3dda553b2c45fd2161"),s=n("636e90758df583c6551d"),o=n("25264dbf4ec8cd0a39ef"),r=n("6b7c061c8481ac422c8d")("IE_PROTO"),c=function(){},a=function(){var e,t=n("1b58d36ee38e47f1c490")("iframe"),i=o.length;for(t.style.display="none",n("b24a8b38059690cfe907").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),a=e.F;i--;)delete a.prototype[o[i]];return a()};e.exports=Object.create||function(e,t){var n;return null!==e?(c.prototype=i(e),n=new c,c.prototype=null,n[r]=e):n=a(),void 0===t?n:s(n,t)}},"1b58d36ee38e47f1c490":function(e,t,n){var i=n("f31cab22762bc6afaacb"),s=n("f27a607058b9cc8c5827").document,o=i(s)&&i(s.createElement);e.exports=function(e){return o?s.createElement(e):{}}},24:function(e,t,n){e.exports=n("b7a5abce97e0243fdab1")},"25264dbf4ec8cd0a39ef":function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"26b2cb950fcc43474957":function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},"28961578f2ab360128a8":function(e,t,n){var i=n("f27a607058b9cc8c5827"),s=n("99ec8b6ce9e8b820539a"),o=n("dff9362b82bd4eafdef8"),r=n("d774351f3de1bfcb23b1"),c=n("30373b8543ac2ca8f199").f;e.exports=function(e){var t=s.Symbol||(s.Symbol=o?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||c(t,e,{value:r.f(e)})}},"2be1a6d982f843e91a8a":function(e,t,n){var i=n("99ec8b6ce9e8b820539a"),s=n("f27a607058b9cc8c5827"),o=s["__core-js_shared__"]||(s["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n("dff9362b82bd4eafdef8")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"30373b8543ac2ca8f199":function(e,t,n){var i=n("6c3dda553b2c45fd2161"),s=n("bb82a2b96f436781c23d"),o=n("5a32a62db759afe4c196"),r=Object.defineProperty;t.f=n("07a3448be5f694cdee04")?Object.defineProperty:function(e,t,n){if(i(e),t=o(t,!0),i(n),s)try{return r(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"3296c0d42e5b7cde21ad":function(e,t,n){function i(e,t){for(var n=0;n<e.length;n++){var i=e[n],s=p[i.id];if(s){s.refs++;for(var o=0;o<s.parts.length;o++)s.parts[o](i.parts[o]);for(;o<i.parts.length;o++)s.parts.push(d(i.parts[o],t))}else{for(var r=[],o=0;o<i.parts.length;o++)r.push(d(i.parts[o],t));p[i.id]={id:i.id,refs:1,parts:r}}}}function s(e,t){for(var n=[],i={},s=0;s<e.length;s++){var o=e[s],r=t.base?o[0]+t.base:o[0],c=o[1],a=o[2],l=o[3],d={css:c,media:a,sourceMap:l};i[r]?i[r].parts.push(d):n.push(i[r]={id:r,parts:[d]})}return n}function o(e,t){var n=g(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=w[w.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),w.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var s=g(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,s)}}function r(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=w.indexOf(e);t>=0&&w.splice(t,1)}function c(e){var t=document.createElement("style");return e.attrs.type="text/css",l(t,e.attrs),o(e,t),t}function a(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",l(t,e.attrs),o(e,t),t}function l(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function d(e,t){var n,i,s,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var l=v++;n=m||(m=c(t)),i=h.bind(null,n,l,!1),s=h.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(t),i=f.bind(null,n,t),s=function(){r(n),n.href&&URL.revokeObjectURL(n.href)}):(n=c(t),i=u.bind(null,n),s=function(){r(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else s()}}function h(e,t,n,i){var s=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=y(t,s);else{var o=document.createTextNode(s),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(o,r[t]):e.appendChild(o)}}function u(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function f(e,t,n){var i=n.css,s=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&s;(t.convertToAbsoluteUrls||o)&&(i=x(i)),s&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */");var r=new Blob([i],{type:"text/css"}),c=e.href;e.href=URL.createObjectURL(r),c&&URL.revokeObjectURL(c)}var p={},b=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),g=function(e){var t={};return function(n){if(void 0===t[n]){var i=e.call(this,n);if(i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[n]=i}return t[n]}}(function(e){return document.querySelector(e)}),m=null,v=0,w=[],x=n("4835b4d1783ab5c6163a");e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=b()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=s(e,t);return i(n,t),function(e){for(var o=[],r=0;r<n.length;r++){var c=n[r],a=p[c.id];a.refs--,o.push(a)}if(e){i(s(e,t),t)}for(var r=0;r<o.length;r++){var a=o[r];if(0===a.refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete p[a.id]}}}};var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},"366bb7cb002c95738a25":function(e,t,n){e.exports={default:n("0b694393054432e469b8"),__esModule:!0}},"373811bb5ca99f7bf840":function(e,t){t.f=Object.getOwnPropertySymbols},"4373c1ac6d15a5b2dd1f":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"44cc46f02a04db587394":function(e,t,n){"use strict";var i=n("dff9362b82bd4eafdef8"),s=n("d30516674aade65150d3"),o=n("98e158dcbb7a6f824611"),r=n("f9e595817d8b54ee32b8"),c=n("ed94c6ffbb2bc6323c97"),a=n("d6e9c43d4248c3dfedec"),l=n("cb274a31409742acdaf8"),d=n("b96d3c311cc0f6a5337c"),h=n("79f39f38b3e53642baf4")("iterator"),u=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,n,p,b,g,m){a(n,t,p);var v,w,x,y=function(e){if(!u&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",S="values"==b,k=!1,E=e.prototype,T=E[h]||E["@@iterator"]||b&&E[b],O=T||y(b),P=b?S?y("entries"):O:void 0,I="Array"==t?E.entries||T:T;if(I&&(x=d(I.call(new e)))!==Object.prototype&&x.next&&(l(x,C,!0),i||"function"==typeof x[h]||r(x,h,f)),S&&T&&"values"!==T.name&&(k=!0,O=function(){return T.call(this)}),i&&!m||!u&&!k&&E[h]||r(E,h,O),c[t]=O,c[C]=f,b)if(v={values:S?O:y("values"),keys:g?O:y("keys"),entries:P},m)for(w in v)w in E||o(E,w,v[w]);else s(s.P+s.F*(u||k),t,v);return v}},"457939c2e15065e32401":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"4835b4d1783ab5c6163a":function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var s=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(s))return e;var o;return o=0===s.indexOf("//")?s:0===s.indexOf("/")?n+s:i+s.replace(/^\.\//,""),"url("+JSON.stringify(o)+")"})}},"4dd0dc4a22e4189b3c4e":function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var s=n("366bb7cb002c95738a25"),o=i(s),r=n("5707022a76d3dc604d97"),c=i(r),a="function"==typeof c.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof c.default&&e.constructor===c.default&&e!==c.default.prototype?"symbol":typeof e};t.default="function"==typeof c.default&&"symbol"===a(o.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof c.default&&e.constructor===c.default&&e!==c.default.prototype?"symbol":void 0===e?"undefined":a(e)}},"50253127b2524d51f717":function(e,t,n){var i=n("26b2cb950fcc43474957"),s=n("60adac73113c6fc50379");e.exports=function(e){return function(t,n){var o,r,c=String(s(t)),a=i(n),l=c.length;return a<0||a>=l?e?"":void 0:(o=c.charCodeAt(a),o<55296||o>56319||a+1===l||(r=c.charCodeAt(a+1))<56320||r>57343?e?c.charAt(a):o:e?c.slice(a,a+2):r-56320+(o-55296<<10)+65536)}}},"5707022a76d3dc604d97":function(e,t,n){e.exports={default:n("5d7a8b5116718b70a142"),__esModule:!0}},"58dc8be06f916daefb56":function(e,t,n){e.exports=n.p+"libs/img/select2.png"},"5a32a62db759afe4c196":function(e,t,n){var i=n("f31cab22762bc6afaacb");e.exports=function(e,t){if(!i(e))return e;var n,s;if(t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;if("function"==typeof(n=e.valueOf)&&!i(s=n.call(e)))return s;if(!t&&"function"==typeof(n=e.toString)&&!i(s=n.call(e)))return s;throw TypeError("Can't convert object to primitive value")}},"5d7a8b5116718b70a142":function(e,t,n){n("b26ef43e3b0a112838e5"),n("c4f9ccf6d4f9090cfe1b"),n("c8da16b8457310a67d5f"),n("f7003d2bec1128e00440"),e.exports=n("99ec8b6ce9e8b820539a").Symbol},"5e0c09c67ab10f94c7a3":function(e,t,n){e.exports=n.p+"libs/img/select2-spinner.gif"},"5f49a2718ac22ba53d59":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"60adac73113c6fc50379":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},"6235fedad757f13633ee":function(e,t,n){"use strict";var i=n("4dd0dc4a22e4189b3c4e"),s=function(e){return e&&e.__esModule?e:{default:e}}(i),o=window.$;!function(e){void 0===e.fn.each2&&e.fn.extend({each2:function(t){for(var n=e([0]),i=-1,s=this.length;++i<s&&(n.context=n[0]=this[i])&&!1!==t.call(n[0],i,n););return this}})}(o),function(e,t){function n(e,t){for(var n=0,i=t.length;n<i;n+=1)if(o(e,t[n]))return n;return-1}function i(){var t=e(N);t.appendTo("body");var n={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),n}function o(e,n){return e===n||e!==t&&n!==t&&(null!==e&&null!==n&&(e.constructor===String?e+""==n+"":n.constructor===String&&n+""==e+""))}function r(t,n){var i,s,o;if(null===t||t.length<1)return[];for(i=t.split(n),s=0,o=i.length;s<o;s+=1)i[s]=e.trim(i[s]);return i}function c(e){return e.outerWidth(!1)-e.width()}function a(n){var i="keyup-change-value";n.on("keydown",function(){e.data(n,i)===t&&e.data(n,i,n.val())}),n.on("keyup",function(){var s=e.data(n,i);s!==t&&n.val()!==s&&(e.removeData(n,i),n.trigger("keyup-change"))})}function l(n){n.on("mousemove",function(n){var i=_;i!==t&&i.x===n.pageX&&i.y===n.pageY||e(n.target).trigger("mousemove-filtered",n)})}function d(e,n,i){i=i||t;var s;return function(){var t=arguments;window.clearTimeout(s),s=window.setTimeout(function(){n.apply(i,t)},e)}}function h(e){var t,n=!1;return function(){return!1===n&&(t=e(),n=!0),t}}function u(e,t){var i=d(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){n(e.target,t.get())>=0&&i(e)})}function f(e){e[0]!==document.activeElement&&window.setTimeout(function(){var t,n=e[0],i=e.val().length;e.focus(),e.is(":visible")&&n===document.activeElement&&(n.setSelectionRange?n.setSelectionRange(i,i):n.createTextRange&&(t=n.createTextRange(),t.collapse(!1),t.select()))},0)}function p(t){t=e(t)[0];var n=0,i=0;if("selectionStart"in t)n=t.selectionStart,i=t.selectionEnd-n;else if("selection"in document){t.focus();var s=document.selection.createRange();i=document.selection.createRange().text.length,s.moveStart("character",-t.value.length),n=s.text.length-i}return{offset:n,length:i}}function b(e){e.preventDefault(),e.stopPropagation()}function g(e){e.preventDefault(),e.stopImmediatePropagation()}function m(t){if(!A){var n=t[0].currentStyle||window.getComputedStyle(t[0],null);A=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:n.fontSize,fontFamily:n.fontFamily,fontStyle:n.fontStyle,fontWeight:n.fontWeight,letterSpacing:n.letterSpacing,textTransform:n.textTransform,whiteSpace:"nowrap"}),A.attr("class","select2-sizer"),e("body").append(A)}return A.text(t.val()),A.width()}function v(t,n,i){var s,o,r=[];s=t.attr("class"),s&&(s=""+s,e(s.split(" ")).each2(function(){0===this.indexOf("select2-")&&r.push(this)})),s=n.attr("class"),s&&(s=""+s,e(s.split(" ")).each2(function(){0!==this.indexOf("select2-")&&(o=i(this))&&r.push(this)})),t.attr("class",r.join(" "))}function w(e,t,n,i){n.push("<div class='select2-result-text'>");var s=e.toUpperCase().indexOf(t.toUpperCase()),o=t.length;if(s<0)return void n.push(i(e));n.push(i(e.substring(0,s))),n.push("<span class='select2-match'>"),n.push(i(e.substring(s,s+o))),n.push("</span>"),n.push(i(e.substring(s+o,e.length))),n.push("</div>")}function x(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function y(n){var i,s=0,o=null,r=n.quietMillis||100,c=n.url,a=this;return function(l){window.clearTimeout(i),i=window.setTimeout(function(){s+=1;var i=s,r=n.data,d=c,h=n.transport||e.fn.select2.ajaxDefaults.transport,u={type:n.type||"GET",cache:n.cache||!1,jsonpCallback:n.jsonpCallback||t,dataType:n.dataType||"json"},f=e.extend({},e.fn.select2.ajaxDefaults.params,u);r=r?r.call(a,l.term,l.page,l.context):null,d="function"==typeof d?d.call(a,l.term,l.page,l.context):d,o&&o.abort(),n.params&&(e.isFunction(n.params)?e.extend(f,n.params.call(a)):e.extend(f,n.params)),e.extend(f,{url:d,dataType:n.dataType,data:r,success:function(e){if(!(i<s)){var t=n.results(e,l.page);l.callback(t)}}}),o=h.call(a,f)},r)}}function C(t){var n,i,s=t,o=function(e){return""+e.text};e.isArray(s)&&(i=s,s={results:i}),!1===e.isFunction(s)&&(i=s,s=function(){return i});var r=s();return r.text&&(o=r.text,e.isFunction(o)||(n=r.text,o=function(e){return e[n]})),function(t){var n,i=t.term,r={results:[]};if(""===i)return void t.callback(s());n=function(s,r){var c,a;if(s=s[0],s.children){c={};for(a in s)s.hasOwnProperty(a)&&(c[a]=s[a]);c.children=[],e(s.children).each2(function(e,t){n(t,c.children)}),(c.children.length||t.matcher(i,o(c),s))&&r.push(c)}else t.matcher(i,o(s),s)&&r.push(s)},e(s().results).each2(function(e,t){n(t,r.results)}),t.callback(r)}}function S(n){var i=e.isFunction(n);return function(s){var o=s.term,r={results:[]};e(i?n():n).each(function(){var e=this.text!==t,n=e?this.text:this;(""===o||s.matcher(o,n))&&r.results.push(e?this:{id:this,text:this})}),s.callback(r)}}function k(t,n){if(e.isFunction(t))return!0;if(!t)return!1;throw new Error(n+" must be a function or a falsy value")}function E(t){return e.isFunction(t)?t():t}function T(t){var n=0;return e.each(t,function(e,t){t.children?n+=T(t.children):n++}),n}function O(e,n,i,s){var r,c,a,l,d,h=e,u=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(c=-1,a=0,l=s.tokenSeparators.length;a<l&&(d=s.tokenSeparators[a],!((c=e.indexOf(d))>=0));a++);if(c<0)break;if(r=e.substring(0,c),e=e.substring(c+d.length),r.length>0&&(r=s.createSearchChoice.call(this,r,n))!==t&&null!==r&&s.id(r)!==t&&null!==s.id(r)){for(u=!1,a=0,l=n.length;a<l;a++)if(o(s.id(r),s.id(n[a]))){u=!0;break}u||i(r)}}return h!==e?e:void 0}function P(t,n){var i=function(){};return i.prototype=new t,i.prototype.constructor=i,i.prototype.parent=t.prototype,i.prototype=e.extend(i.prototype,n),i}if(window.Select2===t){var I,M,R,L,j,A,z,D,_={x:0,y:0},I={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 I.LEFT:case I.RIGHT:case I.UP:case I.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case I.SHIFT:case I.CTRL:case I.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},N="<div class='select2-measure-scrollbar'></div>";z=e(document),j=function(){var e=1;return function(){return e++}}(),z.on("mousemove",function(e){_.x=e.pageX,_.y=e.pageY}),M=P(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(n){var s,o,r,c,d=".select2-result";this.opts=n=this.prepareOpts(n),this.id=n.id,n.element.data("select2")!==t&&null!==n.element.data("select2")&&n.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(n.element.attr("id")||"autogen"+j()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=h(function(){return n.element.closest("body")}),v(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.css(E(n.containerCss)),this.container.addClass(E(n.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),this.dropdown.addClass(E(n.dropdownCssClass)),this.dropdown.data("select2",this),this.results=s=this.container.find(".select2-results"),this.search=o=this.container.find("input.select2-input"),this.resultsPage=0,this.context=null,this.initContainer(),l(this.results),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",".select2-results",this.bind(this.highlightUnderEvent)),u(80,this.results),this.dropdown.on("scroll-debounced",".select2-results",this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&s.mousewheel(function(e,t,n,i){var o=s.scrollTop();i>0&&o-i<=0?(s.scrollTop(0),b(e)):i<0&&s.get(0).scrollHeight-s.scrollTop()+i<=s.height()&&(s.scrollTop(s.get(0).scrollHeight-s.height()),b(e))}),a(o),o.on("keyup-change input paste",this.bind(this.updateResults)),o.on("focus",function(){o.addClass("select2-focused")}),o.on("blur",function(){o.removeClass("select2-focused")}),this.opts.treeview&&(d=".select2-result-text"),this.dropdown.on("mouseup",d,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown",function(e){e.stopPropagation()}),e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==n.maximumInputLength&&this.search.attr("maxlength",n.maximumInputLength);var r=n.element.prop("disabled");r===t&&(r=!1),this.enable(!r);var c=n.element.prop("readonly");c===t&&(c=!1),this.readonly(c),D=D||i(),this.autofocus=n.element.prop("autofocus"),n.element.prop("autofocus",!1),this.autofocus&&this.focus()},destroy:function(){var e=this.opts.element,n=e.data("select2");this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),n!==t&&(n.container.remove(),n.dropdown.remove(),e.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())},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},getChildrenByIndent:function(e){var t=e.nextUntil('[data-indent-count="'+e.data("indent-count")+'"]'),n=e.nextUntil('[data-indent-count="0"]');return t.length>n.length?n:t},filterVal:function(e){return e.replace(/[\.]/g,"-").replace(/-$/g,"")},expandNode:function(t,n){var i=this,s=i.getChildrenByIndent(t);s.slideDown(),s.each2(function(){var t=e(this).prevAll('[data-indent-count="'+(e(this).data("indent-count")-1)+'"]').first();t.hasClass("collapsed")&&(n?(t.removeClass("collapsed").addClass("expanded"),t.find(".select2-tree-icon").addClass(i.opts.treeviewExpandedClass)):e(this).hide())})},collapseNode:function(e){this.getChildrenByIndent(e).slideUp()},prepareOpts:function(n){var i,s,c,a,l=this;if(i=n.element,"select"===i.get(0).tagName.toLowerCase()&&(this.select=s=n.element),s&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in n)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),n=e.extend({},{populateResults:function(i,s,o){var r,c=this.opts.id;if(r=function(i,s,a){var d,h,u,f,p,b,g,m,v,w,x=0;for(i=n.sortResults(i,s,o),d=0,h=i.length;d<h;d+=1)u=i[d],p=!0===u.disabled,f=!p&&c(u)!==t,b=u.children&&u.children.length>0,n.treeview&&(x=u.text.lastIndexOf(n.indentChar)+1,u.text=u.text.replace(new RegExp("^"+n.indentChar+"*"),"")),g=e("<li></li>"),g.attr("id","select2-result-"+l.filterVal(u.id)),g.attr("data-indent-count",x),g.addClass("select2-results-dept-"+a),g.addClass("select2-result"),g.addClass(f?"select2-result-selectable":"select2-result-unselectable"),p&&g.addClass("select2-disabled"),b&&g.addClass("select2-result-with-children"),g.addClass(l.opts.formatResultCssClass(u)),m=e(document.createElement("div")),m.addClass("select2-result-label"),m.css({"padding-left":5+15*x}),w=n.formatResult(u,m,o,l.opts.escapeMarkup),w!==t&&m.html(w),g.append(m),b&&(v=e("<ul></ul>"),v.addClass("select2-result-sub"),r(u.children,v,a+1),g.append(v)),g.data("select2-data",u),s.append(g)},r(s,i,0),n.treeview&&(e(".select2-result").each2(function(){var t=e(this).data("indent-count"),i=e('<i class="select2-tree-icon"></i>');if(e(this).next().length>0&&e(this).next().data("indentCount")>t){var s=l.getChildrenByIndent(e(this));s.length>0&&(e(this).addClass("select2-result-parent"),"expanded"==n.treeviewInitState||o.term?(e(this).addClass("expanded"),i.addClass(n.treeviewExpandedClass)):(e(this).addClass("collapsed"),s.hide(),i.addClass(n.treeviewCollapsedClass)))}e(this).find(".select2-result-label").prepend(i)}),e(".select2-tree-icon").click(function(){var t=e(this),i=t.closest("li.select2-result");i.hasClass("expanded")?(i.removeClass("expanded").addClass("collapsed"),t.removeClass(n.treeviewExpandedClass).addClass(n.treeviewCollapsedClass),l.collapseNode(i)):(i.removeClass("collapsed").addClass("expanded"),t.removeClass(n.treeviewCollapsedClass).addClass(n.treeviewExpandedClass),l.expandNode(i,!1))}),l.opts.element.val())){var a=e("#select2-result-"+l.filterVal(l.opts.element.val()));if(a.data("indentCount")>0){var d=a.prevAll('[data-indent-count="0"]').filter(".select2-result-parent").first();l.expandNode(d,!0)}}}},e.fn.select2.defaults,n),"function"!=typeof n.id&&(c=n.id,n.id=function(e){return e[c]}),e.isArray(n.element.data("select2Tags"))){if("tags"in n)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+n.element.attr("id");n.tags=n.element.data("select2Tags")}if(s?(n.query=this.bind(function(e){var n,s,o,r={results:[],more:!1},c=e.term;o=function(t,n){var i;t.is("option")?e.matcher(c,t.text(),t)&&n.push(l.optionToData(t)):t.is("optgroup")&&(i=l.optionToData(t),t.children().each2(function(e,t){o(t,i.children)}),i.children.length>0&&n.push(i))},n=i.children(),this.getPlaceholder()!==t&&n.length>0&&(s=this.getPlaceholderOption())&&(n=n.not(s)),n.each2(function(e,t){o(t,r.results)}),e.callback(r)}),n.id=function(e){return e.id},n.formatResultCssClass=function(e){return e.css}):"query"in n||("ajax"in n?(a=n.element.data("ajax-url"),a&&a.length>0&&(n.ajax.url=a),n.query=y.call(n.element,n.ajax)):"data"in n?n.query=C(n.data):"tags"in n&&(n.query=S(n.tags),n.createSearchChoice===t&&(n.createSearchChoice=function(e){return{id:e,text:e}}),n.initSelection===t&&(n.initSelection=function(t,i){var s=[];e(r(t.val(),n.separator)).each(function(){var t=this,i=this,r=n.tags;e.isFunction(r)&&(r=r()),e(r).each(function(){if(o(this.id,t))return i=this.text,!1}),s.push({id:t,text:i})}),i(s)}))),"function"!=typeof n.query)throw"query function not defined for Select2 "+n.element.attr("id");return n},monitorSource:function(){var e,n=this.opts.element;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),e=this.bind(function(){var e,i=n.prop("disabled");i===t&&(i=!1),this.enable(!i);var e=n.prop("readonly");e===t&&(e=!1),this.readonly(e),v(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(E(this.opts.containerCssClass)),v(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(E(this.opts.dropdownCssClass))}),n.on("propertychange.select2 DOMAttrModified.select2",e),this.mutationCallback===t&&(this.mutationCallback=function(t){t.forEach(e)}),"undefined"!=typeof WebKitMutationObserver&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new WebKitMutationObserver(this.mutationCallback),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var n=e.Event("select2-selecting",{val:this.id(t),object:t});return this.opts.element.trigger(n),!n.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){return e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface(),!0)},readonly:function(e){return e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,n,i,s,o,r=this.dropdown,c=this.container.offset(),a=this.container.outerHeight(!1),l=this.container.outerWidth(!1),d=r.outerHeight(!1),h=e(window).scrollLeft()+e(window).width(),u=e(window).scrollTop()+e(window).height(),f=c.top+a,p=c.left,b=f+d<=u,g=c.top-d>=this.body().scrollTop(),m=0,v=p+m<=h,w=r.hasClass("select2-drop-above");this.opts.dropdownAutoWidth?(s=e(".select2-result",r),r.addClass("select2-drop-auto-width"),r.css("width",""),s.each2(function(){var t=25*e(this).data("indentCount")+14*e(this).find(".select2-result-text").text().length;m=m>t?m:t}),o=e(".select2-results",r)[0],m+=o.scrollHeight===o.clientHeight?0:D.width,m>l?l=m:m=l,v=p+m<=h):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(t=this.body().offset(),f-=t.top,p-=t.left),w?(n=!0,!g&&b&&(n=!1)):(n=!1,!b&&g&&(n=!0)),v||(p=c.left+l-m),n?(f=c.top-d,this.container.addClass("select2-drop-above"),r.addClass("select2-drop-above")):(this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),i=e.extend({top:f,left:p,width:l},E(this.opts.dropdownCss)),r.css(i)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){function t(){return{width:Math.max(document.documentElement.scrollWidth,e(window).width()),height:Math.max(document.documentElement.scrollHeight,e(window).height())}}var n,i,s=this.containerId,o="scroll."+s,r="resize."+s,c="orientationchange."+s;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),n=e("#select2-drop-mask"),0==n.length&&(n=e(document.createElement("div")),n.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),n.hide(),n.appendTo(this.body()),n.on("mousedown touchstart click",function(t){var n,i=e("#select2-drop");i.length>0&&(n=i.data("select2"),n.opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),t.preventDefault(),t.stopPropagation())})),this.dropdown.prev()[0]!==n[0]&&this.dropdown.before(n),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),i=t(),n.css(i).show(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each(function(){e(this).on(r+" "+o+" "+c,function(n){var i=t();e("#select2-drop-mask").css(i),a.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerId,n="scroll."+t,i="resize."+t,s="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(n).off(i).off(s)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return E(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var t,n,i,s,o,r,c,a=this.results;if(!((n=this.highlight())<0)){if(0==n)return void a.scrollTop(0);t=this.findHighlightableChoices().find(".select2-result-label"),i=e(t[n]),s=i.offset().top+i.outerHeight(!0),n===t.length-1&&(c=a.find("li.select2-more-results"),c.length>0&&(s=c.offset().top+c.outerHeight(!0))),o=a.offset().top+a.outerHeight(!0),s>o&&a.scrollTop(a.scrollTop()+(s-o)),r=i.offset().top-a.offset().top,r<0&&"none"!=i.css("display")&&a.scrollTop(a.scrollTop()+r)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-selected):not(.select2-disabled)")},moveHighlight:function(t){for(var n=this.findHighlightableChoices(),i=this.highlight();i>-1&&i<n.length;){i+=t;var s=e(n[i]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(i);break}}},highlight:function(t){var i,s,o=this.findHighlightableChoices();if(0===arguments.length)return n(o.filter(".select2-highlighted")[0],o.get());t>=o.length&&(t=o.length-1),t<0&&(t=0),this.results.find(".select2-highlighted").removeClass("select2-highlighted"),i=e(o[t]),i.addClass("select2-highlighted"),this.ensureHighlightVisible(),(s=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(s),choice:s})},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var n=e(t.target).closest(".select2-result-selectable");if(n.length>0&&!n.is(".select2-highlighted")){var i=this.findHighlightableChoices();this.highlight(i.index(n))}else 0==n.length&&this.results.find(".select2-highlighted").removeClass("select2-highlighted")},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),n=this.resultsPage+1,i=this,s=this.search.val(),o=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:n,context:o,matcher:this.opts.matcher,callback:this.bind(function(r){i.opened()&&(i.opts.populateResults.call(this,e,r.results,{term:s,page:n,context:o}),i.postprocessResults(r,!1,!1),!0===r.more?(t.detach().appendTo(e).text(i.opts.formatLoadMore(n+1)),window.setTimeout(function(){i.loadMoreIfNeeded()},10)):t.remove(),i.positionDropdown(),i.resultsPage=n,i.context=r.context)})}))},tokenize:function(){},updateResults:function(n){function i(){a.removeClass("select2-active"),h.positionDropdown()}function s(e){l.html(e),i()}var r,c,a=this.search,l=this.results,d=this.opts,h=this,u=a.val(),f=e.data(this.container,"select2-last-term");if((!0===n||!f||!o(u,f))&&(e.data(this.container,"select2-last-term",u),!0===n||!1!==this.showSearchInput&&this.opened())){var p=this.getMaximumSelectionSize();if(p>=1&&(r=this.data(),e.isArray(r)&&r.length>=p&&k(d.formatSelectionTooBig,"formatSelectionTooBig")))return void s("<li class='select2-selection-limit'>"+d.formatSelectionTooBig(p)+"</li>");if(a.val().length<d.minimumInputLength)return s(k(d.formatInputTooShort,"formatInputTooShort")?"<li class='select2-no-results'>"+d.formatInputTooShort(a.val(),d.minimumInputLength)+"</li>":""),void(n&&this.showSearch&&this.showSearch(!0));if(d.maximumInputLength&&a.val().length>d.maximumInputLength)return void s(k(d.formatInputTooLong,"formatInputTooLong")?"<li class='select2-no-results'>"+d.formatInputTooLong(a.val(),d.maximumInputLength)+"</li>":"");d.formatSearching&&0===this.findHighlightableChoices().length&&s("<li class='select2-searching'>"+d.formatSearching()+"</li>"),a.addClass("select2-active"),c=this.tokenize(),c!=t&&null!=c&&a.val(c),this.resultsPage=1,d.query({element:d.element,term:a.val(),page:this.resultsPage,context:null,matcher:d.matcher,callback:this.bind(function(r){var c;return this.opened()?(this.context=r.context===t?null:r.context,this.opts.createSearchChoice&&""!==a.val()&&(c=this.opts.createSearchChoice.call(h,a.val(),r.results))!==t&&null!==c&&h.id(c)!==t&&null!==h.id(c)&&0===e(r.results).filter(function(){return o(h.id(this),h.id(c))}).length&&r.results.unshift(c),0===r.results.length&&k(d.formatNoMatches,"formatNoMatches")?void s("<li class='select2-no-results'>"+d.formatNoMatches(a.val())+"</li>"):(l.empty(),h.opts.populateResults.call(this,l,r.results,{term:a.val(),page:this.resultsPage,context:null}),!0===r.more&&k(d.formatLoadMore,"formatLoadMore")&&(l.append("<li class='select2-more-results'>"+h.opts.escapeMarkup(d.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout(function(){h.loadMoreIfNeeded()},10)),this.postprocessResults(r,n),i(),void this.opts.element.trigger({type:"select2-loaded",items:r}))):void this.search.removeClass("select2-active")})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){f(this.search)},selectHighlighted:function(e){var t=this.highlight(),n=this.results.find(".select2-highlighted"),i=n.closest(".select2-result").data("select2-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 e=this.select.children().first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.text()&&""===e.val())return e}},initContainerWidth:function(){function n(){var n,i,s,o,r;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((n=this.opts.element.attr("style"))!==t)for(i=n.split(";"),o=0,r=i.length;o<r;o+=1)if(null!==(s=i[o].replace(/\s/g,"").match(/width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&s.length>=1)return s[1];return"resolve"===this.opts.width?(n=this.opts.element.css("width"),n.indexOf("%")>0?n: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=n.call(this);null!==i&&this.container.css("width",i)}}),R=P(M,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' onclick='return false;' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&nbsp;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>","   </div>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,n,i;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),t=this.search.get(0),t.createTextRange?(n=t.createTextRange(),n.collapse(!1),n.select()):t.setSelectionRange&&(i=this.search.val().length,t.setSelectionRange(i,i)),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},initContainer:function(){var t,n=this.container,i=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+j()),e("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){if(e.which===I.PAGE_UP||e.which===I.PAGE_DOWN)return void b(e);switch(e.which){case I.UP:case I.DOWN:return this.moveHighlight(e.which===I.UP?-1:1),void b(e);case I.ENTER:return this.selectHighlighted(),void b(e);case I.TAB:return void this.selectHighlighted({noFocus:!0});case I.ESC:return this.cancel(e),void b(e)}}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind(function(){this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==I.TAB&&!I.isControl(e)&&!I.isFunctionKey(e)&&e.which!==I.ESC){if(!1===this.opts.openOnEnter&&e.which===I.ENTER)return void b(e);if(e.which==I.DOWN||e.which==I.UP||e.which==I.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void b(e)}return e.which==I.DELETE||e.which==I.BACKSPACE?(this.opts.allowClear&&this.clear(),void b(e)):void 0}})),a(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","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),g(e),this.close(),this.selection.focus())})),t.on("mousedown",this.bind(function(t){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),b(t)})),i.on("mousedown",this.bind(function(){this.search.focus()})),t.on("focus",this.bind(function(e){b(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var t=this.selection.data("select2-data");if(t){var n=this.getPlaceholderOption();this.opts.element.val(n?n.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(t),choice:t}),this.triggerChange({removed:t}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection([]),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(n){n!==t&&null!==n&&(e.updateSelection(n),e.close(),e.setPlaceholder())})}},isPlaceholderOptionSelected:function(){var e;return(e=this.getPlaceholderOption())!==t&&e.is(":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),n=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=e.find(":selected");t(n.optionToData(i))}:"data"in t&&(t.initSelection=t.initSelection||function(n,i){var s=n.val(),r=null;t.query({matcher:function(e,n,i){var c=o(s,t.id(i));return c&&(r=i),c},callback:e.isFunction(i)?function(){i(r)}: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(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,n){var i=0,s=this;if(this.findHighlightableChoices().each2(function(e,t){if(o(s.id(t.data("select2-data")),s.opts.element.val()))return i=e,!1}),!1!==n&&(!0===t&&i>=0?this.highlight(i):this.highlight(0)),!0===t){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(T(e.results)>=r)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var n=this.opts.element.val(),i=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.close(),t&&t.noFocus||this.selection.focus(),o(n,this.id(e))||this.triggerChange({added:e,removed:i})}},updateSelection:function(e){var n,i,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),n=this.opts.formatSelection(e,s,this.opts.escapeMarkup),this.opts.treeview&&(n=n.replace(new RegExp("^"+this.opts.indentChar+"*"),"")),n!==t&&s.append(n),i=this.opts.formatSelectionCssClass(e,s),i!==t&&s.addClass(i),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,n=!1,i=null,s=this,o=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(n=arguments[1]),this.select)this.select.val(e).find(":selected").each2(function(e,t){return i=s.optionToData(t),!1}),this.updateSelection(i),this.setPlaceholder(),n&&this.triggerChange({added:i,removed:o});else{if(!e&&0!==e)return void this.clear(n);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){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),n&&s.triggerChange({added:e,removed:o})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e,n){var i;if(0===arguments.length)return i=this.selection.data("select2-data"),i==t&&(i=null),i;e&&""!==e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:i})):this.clear(n)}}),L=P(M,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <input type='text' autocomplete='off' autocorrect='off' autocapitilize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),n=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var i=[];e.find(":selected").each2(function(e,t){i.push(n.optionToData(t))}),t(i)}:"data"in t&&(t.initSelection=t.initSelection||function(n,i){var s=r(n.val(),t.separator),c=[];t.query({matcher:function(n,i,r){var a=e.grep(s,function(e){return o(e,t.id(r))}).length;return a&&c.push(r),a},callback:e.isFunction(i)?function(){for(var e=[],n=0;n<s.length;n++)for(var r=s[n],a=0;a<c.length;a++){var l=c[a];if(o(r,t.id(l))){e.push(l),c.splice(a,1);break}}i(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。