/**
* HtmlWidget
* Html Widgets for Javascript, PHP and Python (Browser and Server, Desktop and Mobile)
*
* @version: 2.3.0
* https://github.com/foo123/HtmlWidget
*
**/
!function(t,e,n){"use strict";"undefined"!=typeof Components&&"object"==typeof Components.classes&&"object"==typeof Components.classesByID&&Components.utils&&"function"==typeof Components.utils.import?(t.$deps=t.$deps||{})&&(t.EXPORTED_SYMBOLS=[e])&&(t[e]=t.$deps[e]=n.call(t)):"object"==typeof module&&module.exports?(module.$deps=module.$deps||{})&&(module.exports=module.$deps[e]=n.call(t)):"function"==typeof define&&define.amd&&"function"==typeof require&&"function"==typeof require.specified&&require.specified(e)?define(e,["module"],function(e){return n.moduleUri=e.uri,n.call(t)}):e in t||(t[e]=n.call(t)||1)&&"function"==typeof define&&define.amd&&define(function(){return t[e]})}("undefined"!=typeof self?self:this,"HtmlWidget",function(){"use strict";var E,d=Object.prototype.hasOwnProperty,S=Object.keys,q=JSON.stringify,t=Object.prototype.toString,e="undefined"!=typeof Components&&"object"==typeof Components.classes&&"object"==typeof Components.classesByID&&Components.utils&&"function"==typeof Components.utils.import,n="undefined"!=typeof global&&"[object global]"===t.call(global),a=!e&&!n&&"undefined"!=typeof WorkerGlobalScope&&"function"==typeof importScripts&&navigator instanceof WorkerNavigator,T=!e&&!n&&!a,i=0,s={},o=null,l={},C={},r=/[&<>'"]/g,c=/^\s+|\s+$/g,m=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,u=String.prototype.trim?function(e){return String(e).trim()}:function(e){return String(e).replace(c,"")};function p(e){return e.replace(m,"\\$&")}function h(e){return e instanceof String||"[object String]"===t.call(e)}function y(e){return e instanceof Array||"[object Array]"===t.call(e)}function j(e){return"[object Object]"===t.call(e)}function H(e,t){return 1===arguments.length?null!=e:d.call(e,t)&&null!=e[t]}function A(e,t){return 1===arguments.length?null==e||0===e||!1===e||(y(e)||h(e))&&!e.length||j(e)&&!S(e).length:!d.call(e,t)||null==e[t]||0===e[t]||!1===e[t]||(y(e[t])||h(e[t]))&&!e[t].length||j(e[t])&&!S(e[t]).length}function k(e){return String(e).replace(r,function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}})}function w(e,t){var n,a={};for(n in e)d.call(e,n)&&(a[n]=e[n]);if(t)for(n in t)d.call(t,n)&&(a[n]=t[n]);return a}function z(e){for(var t,n,a=e.length-1;0<a;a--)a!==(t=Math.round(a*Math.random()))&&(n=e[a],e[a]=e[t],e[t]=n);return e}function D(e){this.code=e}D.prototype={constructor:D,code:""};var f=E={VERSION:"2.3.0",BASE:"./",enqueueAssets:function(e){o=e&&"function"==typeof e?e:null},enqueue:function(e,t,n,a,i){o&&o(e,t,[n,a,i])},assets:function(e,a){return arguments.length?!0===e?(a=String(a||""),S(l).map(function(e){var t=l[e];if(!A(t,"asset"))if(y(t.asset))for(var n=0;n<t.asset.length;n++)t.asset[n]=t.asset[n].replace("${ASSETS}",a);else t.asset=t.asset.replace("${ASSETS}",a);return[t.type,e,A(t,"asset")?null:t.asset,A(t,"dependencies")?null:t.dependencies,A(t,"attributes")?null:t.attributes]})):void(j(e)&&(l=w(a?l:{},e))):w({},l)},uuid:function(e,t){return t=t||(n?"static2":"dynamic"),[e=e||"widget",(new Date).getTime(),++i,~~(1e3*Math.random()),t].join("_")},code:function(e){return new D(e)},extract_code:function(e){var t,n=[];for(t in e)d.call(e,t)&&e[t]instanceof D&&n.push([t,e[t]]);for(t=0;t<n.length;t++)delete e[n[t][0]];return n},data:function(e,t){var n="";if(arguments.length<2&&(t="data"),t&&d.call(e,t)&&"object"==typeof e[t]){var a,i=e[t];for(a in i)d.call(i,a)&&(n+=(n.length?" ":"")+function e(t,n){if("object"!=typeof n)return t+"='"+n+"'";for(var a="",i=S(n),s=i.length,o=0;o<s;o++)a+=(a.length?" ":"")+e(t+"-"+i[o],n[i[o]]);return a}(t+"-"+a,i[a]))}return n},attributes:function(e,t){if(!t||!e)return"";for(var n,a,i=[],s=t.length,o=0;o<s;o++)n=t[o],d.call(e,n)&&null!=e[n]&&("data"==n?i.push(E.data(e)):(a=e[n],i.push(n+'="'+a+'"')));return i.length?i.join(" "):""},options:function(e,t,n){var a,i,s,o,l,r,c=[];if(y(e=e||{}))for(s=0,r=e.length;s<r;s++)o=e[s],l=[].concat(o),a=null,-1===t?a=s:null!=t&&null!=l[t]&&(a=l[t]),(i=null)!=n?null!=l[n]&&(i=l[n]):i=o,null===a&&(a=i),c.push([a,i]);else for(s in e)d.call(e,s)&&(o=e[s],l=[].concat(o),a=null,-1===t?a=s:null!=t&&null!=l[t]&&(a=l[t]),(i=null)!=n?null!=l[n]&&(i=l[n]):i=o,null===a&&(a=i),c.push([a,i]));return c},shuffle:function(e,t){if(!0===t)for(var n=z(S(e)),a={},i=0,s=n.length;i<s;i++)a[n[i]]=e[n[i]];else a=z(e.slice());return a},menu:function e(t,n){for(var a,i,s,o=" "+(n=n||""),l=n+"<ul>\n",r=0,c=t.length;r<c;r++)i=[],A(a=t[r],"submenu")||i.push("w-submenu-item"),A(a,"active")||i.push("active"),s=H(a,"url")?String(a.url):"#",l+=o+"<li"+(i.length?' class="'+i.join(" ")+'"':"")+">\n",l+=o+'<a href="'+s+'">'+String(a.text)+"</a>\n",A(a,"submenu")||(l+=e(a.submenu,o)),l+=o+"</li>\n";return l+=n+"</ul>\n"},hasClass:function(e,t){return-1!==(" "+e+" ").indexOf(" "+t+" ")},addClass:function(e,t){return E.hasClass(e,t)?e:u(e+" "+t)},removeClass:function(e,t){return E.hasClass(e,t)?u((" "+e+" ").replace(" "+t+" "," ")):e},extractTag:function(e,t,n,a){if(A(t))return!1;var i,s,o,l,r,c,d=(a?a.offset:0)||0;if(h(n)&&(n=n.length?{attr:n}:null),n=new RegExp("<"+t+"\\b"+(n?"[^<>]*?\\b"+n.attr+'\\s*=\\s*"'+(H(n,"value")&&!0!==n.value?H(n,"includes")?'[^"]*?\\b'+p(n.includes)+'\\b[^"]*':p(n.value):'[^"]+')+'"':"")+"[^<>]*>","mi"),i=d,l=(s=e.slice(d)).match(n)){if(o=d+l.index,i+=d=l.index+l[0].length,"/>"===l[0].slice(-2))return a&&(a.offset=i),u(l[0]);for(c=new RegExp("</?"+t+"[^<>]*>","mi"),r=1,s=s.slice(d);s.match(c);){if(i+=d=l.index+l[0].length,0===(r+="</"===l[0].slice(0,2)?-1:1))return a&&(a.offset=i),u(e.slice(o,i-o));s=s.slice(d)}}return!1},addWidget:function(e,t){e&&"function"==typeof t?s["w_"+e]=t:e&&!1===t&&d.call(s,"w_"+e)&&delete s["w_"+e]},widget:function(e,t,n){var a="";if(e){if(t=t||{},n=n||{},d.call(s,"w_"+e))return s["w_"+e](t,n,e);switch("audio"===e?t.type="audio":"video"===e?t.type="video":"checkbox-array"===e||"check-array"===e?t.type="checkbox":"radiobox-array"===e||"radio-array"===e?t.type="radio":"checkbox-list"===e||"checklist"===e?t.type="checkbox":"radiobox-list"===e||"radio-list"===e||"radiolist"===e?t.type="radio":"checkbox"===e||"checkbox-image"===e||"checkbox-label"===e?t.type="checkbox":"radio"===e||"radio-image"===e||"radio-label"===e?t.type="radio":"datetime"===e||"datetimepicker"===e?t.time=!0:"select2"===e?t.select2=!0:"dropdown"===e?t.dropdown=!0:"datatable"===e?t.datatable=!0:"codemirror"===e||"codemirror-editor"===e||"syntax-editor"===e||"source-editor"===e||"syntax"===e||"source"===e||"highlight-editor"===e||"highlighter"===e?t["syntax-editor"]=!0:"tinymce"!==e&&"wysiwyg-editor"!==e&&"wysiwyg"!==e&&"rich-editor"!==e&&"rich"!==e&&"editor"!==e||(t["wysiwyg-editor"]=!0),e){case"empty":a=E.w_empty(t,n,e);break;case"sep":case"separator":a=E.w_sep(t,n,e);break;case"icon":a=E.w_icon(t,n,e);break;case"tooltip":a=E.w_tooltip(t,n,e);break;case"link":a=E.w_link(t,n,e);break;case"button":a=E.w_button(t,n,e);break;case"label":a=E.w_label(t,n,e);break;case"file":a=E.w_file(t,n,e);break;case"textbox":case"textfield":case"text":a=E.w_text(t,n,e);break;case"tinymce":case"editor":case"rich-editor":case"rich":case"wysiwyg-editor":case"wysiwyg":case"codemirror":case"codemirror-editor":case"source-editor":case"source":case"syntax-editor":case"syntax":case"highlight-editor":case"highlighter":case"textarea":a=E.w_textarea(t,n,e);break;case"datetimepicker":case"datepicker":case"datetime":case"date":a=E.w_date(t,n,e);break;case"time":a=E.w_time(t,n,e);break;case"colorpicker":case"colorselector":case"color":a=E.w_color(t,n,e);break;case"rating":a=E.w_rating(t,n,e);break;case"radiobox-array":case"radio-array":case"checkbox-array":case"check-array":a=E.w_control_array(t,n,e);break;case"radiobox-list":case"radio-list":case"radiolist":case"checkbox-list":case"checklist":a=E.w_control_list(t,n,e);break;case"checkbox-image":case"radio-image":case"checkbox-label":case"radio-label":case"checkbox":case"radio":case"control":a=E.w_control(t,n,e);break;case"switch":a=E.w_switch(t,n,e);break;case"range":a=E.w_range(t,n,e);break;case"dropdown":case"selectbox":case"select2":case"select":a=E.w_select(t,n,e);break;case"datatable":case"table":a=E.w_table(t,n,e);break;case"animation":a=E.w_animation(t,n,e);break;case"sprite":a=E.w_sprite(t,n,e);break;case"video":case"audio":case"media":a=E.w_media(t,n,e);break;case"delayable":a=E.w_delayable(t,n,e);break;case"disabable":a=E.w_disabable(t,n,e);break;case"morphable":a=E.w_morphable(t,n,e);break;case"modal":a=E.w_modal(t,n,e);break;case"/modal":a=E.w_modal_end(t,n,e);break;case"menu":a=E.w_menu(t,n,e);break;case"/menu":a=E.w_menu_end(t,n,e);break;case"pagination":a=E.w_pagination(t,n,e);break;case"pages":a=E.w_pages(t,n,e);break;case"tabs":a=E.w_tabs(t,n,e);break;case"accordeon":a=E.w_accordeon(t,n,e);break;case"panel":a=E.w_panel(t,n,e);break;case"/panel":a=E.w_panel_end(t,n,e);break;default:a=""}}return a},w_empty:function(e,t,n){return E.enqueue("styles","htmlwidgets.css"),""},w_sep:function(e,t,n){var a="w-separator";return A(e,"class")||(a+=" "+e.class),e=A(e,"style")?"":'style="'+e.style+'"',E.enqueue("styles","htmlwidgets.css"),'<div class="'+a+'" '+e+"></div>"},w_icon:function(e,t,n){var a,i,s="fa";return A(e,"class")||(s+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',A(e,"icon")||(s+=" fa-"+e.icon),i=A(e,"title")?"":'title="'+e.title+'"',e=E.attributes(e,["data"])+(A(e,"extra")?"":" "+e.extra),E.enqueue("styles","htmlwidgets.css"),'<i class="'+s+'" '+a+" "+i+" "+e+"></i>"},w_label:function(e,t,n){var a=H(e,"id")?e.id:E.uuid(),i=H(e,"init")&&e.init instanceof D?e.init.code:null,s=H(e,"for")?'for="'+e.for+'"':"",o=H(t,"text")?t.text:"",l=H(e,"title")?e.title:o,r="w-widget w-label";return A(e,"class")||(r+=" "+e.class),t=A(e,"style")?"":'style="'+e.style+'"',A(e,"icon")||(r+=" w-icon",o='<i class="fa fa-'+e.icon+' left-fa"></i>'+o),A(e,"iconr")||(r+=" w-icon-right",o=o+'<i class="fa fa-'+e.iconr+' right-fa"></i>'),e=E.attributes(e,["disabled","data"])+(A(e,"extra")?"":" "+e.extra),E.enqueue("styles","htmlwidgets.css"),i&&(T&&null==C["label-instance-"+a]&&(C["label-instance-"+a]=0),E.enqueue("scripts","label-instance-"+a+(T?"-"+ ++C["label-instance-"+a]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+a+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+i+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),'<label id="'+a+'" '+s+' class="'+r+'" title="'+l+'" '+t+' onclick="" '+e+">"+o+"</label>"},w_link:function(e,t,n){var a,i=H(e,"id")?e.id:E.uuid(),s=H(e,"init")&&e.init instanceof D?e.init.code:null,o=H(t,"text")?t.text:"",l=H(e,"title")?e.title:o,r="w-link";return A(e,"class")||(r+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',A(e,"icon")||(r+=" w-icon",o='<i class="fa fa-'+e.icon+' left-fa"></i>'+o),A(e,"iconr")||(r+=" w-icon-right",o=o+'<i class="fa fa-'+e.iconr+' right-fa"></i>'),t=E.attributes(e,["disabled","data"])+(A(e,"extra")?"":" "+e.extra),E.enqueue("styles","htmlwidgets.css"),o=H(e,"for")?'<label id="'+i+'" class="'+r+'" '+a+' onclick="" title="'+l+'" for="'+e.for+'" '+t+">"+o+"</label>":'<a id="'+i+'" class="'+r+'" '+a+' title="'+l+'" href="'+(H(e,"href")?e.href:"#")+'" '+(t+=" "+E.attributes(e,["target","rel"]))+">"+o+"</a>",s&&(T&&null==C["link-instance-"+i]&&(C["link-instance-"+i]=0),E.enqueue("scripts","link-instance-"+i+(T?"-"+ ++C["link-instance-"+i]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+i+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+s+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),o},w_button:function(e,t,n){var a,i=H(e,"id")?e.id:E.uuid(),s=H(e,"init")&&e.init instanceof D?e.init.code:null,o=H(t,"text")?t.text:"",l=H(e,"title")?e.title:o,r="w-widget w-button";return A(e,"class")||(r+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',A(e,"icon")||(o.length?r+=" w-icon":r+=" w-icon-only",o='<span class="fa-wrapper left-fa"><i class="fa fa-'+e.icon+'"></i></span>'+o),A(e,"iconr")||(o.length?r+=" w-icon-right":r+=" w-icon-only",o=o+'<span class="fa-wrapper right-fa"><i class="fa fa-'+e.iconr+'"></i></span>'),t=E.attributes(e,["disabled","data"])+(A(e,"extra")?"":" "+e.extra),E.enqueue("styles","htmlwidgets.css"),o=H(e,"for")?'<label id="'+i+'" for="'+e.for+'" class="'+r+'" '+a+' onclick="" title="'+l+'" '+t+">"+o+"</label>":H(e,"href")?'<a id="'+i+'" href="'+e.href+'" class="'+r+'" '+a+' title="'+l+'" '+(t+=" "+E.attributes(e,["target","rel"]))+">"+o+"</a>":'<button id="'+i+'" type="'+(H(e,"type")?e.type:"button")+'" class="'+r+'" '+a+' title="'+l+'" '+t+">"+o+"</button>",s&&(T&&null==C["button-instance-"+i]&&(C["button-instance-"+i]=0),E.enqueue("scripts","button-instance-"+i+(T?"-"+ ++C["button-instance-"+i]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+i+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+s+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),o},w_control:function(e,t,n){var a,i,s=H(e,"id")?e.id:E.uuid(),o=H(e,"init")&&e.init instanceof D?e.init.code:null,l=A(e,"name")?"":'name="'+e.name+'"',r=A(e,"type")?"checkbox":e.type,c=H(t,"value")?t.value:"1",d=!A(e,"checked")&&e.checked?"checked":"",m=A(e,"style")?"":'style="'+e.style+'"',u=A(e,"title")?"":'title="'+e.title+'"',p=E.attributes(e,["readonly","disabled","data"])+(A(e,"extra")?"":" "+e.extra),h="";return H(e,"state-on")&&(h+=' data-state-on="'+e["state-on"]+'"'),H(e,"state-off")&&(h+=' data-state-off="'+e["state-off"]+'"'),i=A(e,"image")?A(e,"label")?(a="radio"===r?"w-radio":"w-checkbox"," "):(a="radio"===r?"w-radio-label":"w-checkbox-label",e.label):(a="radio"===r?"w-radio-image":"w-checkbox-image",'<span style="background-image:url('+e.image+');"></span>'),t="w-widget w-control",A(e,"class")||(t+=" "+e.class),E.enqueue("styles","htmlwidgets.css"),o&&(T&&null==C["control-instance-"+s]&&(C["control-instance-"+s]=0),E.enqueue("scripts","control-instance-"+s+(T?"-"+ ++C["control-instance-"+s]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+s+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+o+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),'<input type="'+r+'" id="'+s+'" '+l+' class="'+a+'" value="'+c+'" '+p+" "+d+' /><label for="'+s+'" '+u+' class="'+t+'" '+m+" "+h+' onclick="">'+i+"</label>"},w_control_list:function(e,t,n){var a,i,s,o,l,r,c,d,m=H(e,"id")?e.id:E.uuid(),u=H(e,"init")&&e.init instanceof D?e.init.code:null,p=A(e,"name")?null:e.name,h=A(e,"type")?"checkbox":e.type,w=H(t,"value")?t.value:"1",f=A(e,"style")?"":'style="'+e.style+'"',g=A(e,"extra")?"":e.extra,b=[].concat(t.options);if(w=H(t,"value")?t.value:"",o=!!(a=A(e,"class")?"":e.class)&&-1!==(" "+a+" ").indexOf(" w-large "),t=!!a&&-1!==(" "+a+" ").indexOf(" w-xlarge "),i=E.attributes(e,["readonly","disabled","data"]),A(e,"horizontal")||(a+=" w-control-list-horizontal w-clearfloat"),"radio"==h){for(s=t?"w-xlarge":o?"w-large":"",d='<ol id="'+m+'" class="w-control-list w-radio-list '+a+'" '+f+" "+g+">",l=0,r=b.length;l<r;l++)c=b[l],d+='<li class="w-control-list-option">'+E.widget("radio",{id:m+"_option_"+(l+1),name:p,class:s,title:c[1],checked:String(c[0])===String(w),extra:i},{value:c[0]})+" "+E.widget("label",{for:m+"_option_"+(l+1),class:"w-control-list-option-label",title:c[1]},{text:c[1]})+"</li>";d+="</ol>"}else{for(w=[].concat(w),s=t?"w-xlarge":o?"w-large":"",d='<ul id="'+m+'" class="w-control-list w-checkbox-list '+a+'" '+f+" "+g+">",l=0,r=b.length;l<r;l++)c=b[l],d+='<li class="w-control-list-option">'+E.widget("checkbox",{id:m+"_option_"+(l+1),name:p,class:s,title:c[1],checked:-1<w.map(String).indexOf(String(c[0])),extra:i},{value:c[0]})+" "+E.widget("label",{for:m+"_option_"+(l+1),class:"w-control-list-option-label",title:c[1]},{text:c[1]})+"</li>";d+="</ul>"}return E.enqueue("styles","htmlwidgets.css"),u&&(T&&null==C["control-list-instance-"+m]&&(C["control-list-instance-"+m]=0),E.enqueue("scripts","control-list-instance-"+m+(T?"-"+ ++C["control-list-instance-"+m]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+m+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+u+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),d},w_control_array:function(e,t,n){var a,i,s,o,l,r,c,d,m,u=H(e,"id")?e.id:E.uuid(),p=H(e,"init")&&e.init instanceof D?e.init.code:null,h=A(e,"name")?null:e.name,w=A(e,"type")?"checkbox":e.type,f=H(t,"value")?t.value:"1",g=A(e,"style")?"":'style="'+e.style+'"',b=A(e,"extra")?"":e.extra,v=t.fields||{},y=[].concat(t.options),x=H(t,"value")?t.value:{},k=A(e,"class")?"":e.class,_=!!k&&-1!==(" "+k+" ").indexOf(" w-large "),t=!!k&&-1!==(" "+k+" ").indexOf(" w-xlarge "),q=E.attributes(e,["readonly","disabled","data"]),j=S(v);if(A(e,"randomised")||z(j),"radio"==w){for(o=t?"w-xlarge":_?"w-large":"",m='<table id="'+u+'" class="w-control-array w-radio-array '+k+'" '+g+" "+b+">",m+="<thead><tr><td> </td>",r=0,c=y.length;r<c;r++)m+="<td>"+(d=y[r])[1]+"</td>";for(m+="<td> </td></tr></thead><tbody>",i=0,s=j.length;i<s;i++){for(m+="<tr><td>"+v[a=j[i]]+"</td>",l=h+"["+a+"]",r=0,c=y.length;r<c;r++)d=y[r],m+="<td>"+E.widget("radio",{id:u+"_"+a+"_"+(r+1),name:l,class:o,title:d[1],checked:H(x,a)&&String(d[0])===String(x[a]),extra:q},{value:d[0]})+"</td>";m+="<td> </td></tr>"}m+="</tbody></table>"}else{for(o=t?"w-xlarge":_?"w-large":"",m='<table id="'+u+'" class="w-control-array w-checkbox-array '+k+'" '+g+" "+b+">",m+="<thead><tr><td> </td>",r=0,c=y.length;r<c;r++)m+="<td>"+(d=y[r])[1]+"</td>";for(m+="<td> </td></tr></thead><tbody>",i=0,s=j.length;i<s;i++){for(f=H(x,a=j[i])?[].concat(x[a]):[],m+="<tr><td>"+v[a]+"</td>",l=h+"["+a+"]",r=0,c=y.length;r<c;r++)d=y[r],m+="<td>"+E.widget("checkbox",{id:u+"_"+a+"_"+(r+1),name:l,class:o,title:d[1],checked:-1<f.map(String).indexOf(String(d[0])),extra:q},{value:d[0]})+"</td>";m+="<td> </td></tr>"}m+="</tbody></table>"}return E.enqueue("styles","htmlwidgets.css"),p&&(T&&null==C["control-array-instance-"+u]&&(C["control-array-instance-"+u]=0),E.enqueue("scripts","control-array-instance-"+u+(T?"-"+ ++C["control-array-instance-"+u]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+u+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+p+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),m},w_switch:function(e,t,n){var a,i,s,o,l=H(e,"id")?e.id:E.uuid(),r=H(e,"init")&&e.init instanceof D?e.init.code:null,c=A(e,"name")?"":'name="'+e.name+'"',d=A(e,"type")?"checkbox":e.type,m=H(t,"value")?t.value:"1",u=!!H(t,"valueoff")&&t.valueoff,p=!1!==u,h=A(e,"title")?"":'title="'+e.title+'"',w=!A(e,"checked")&&e.checked,f="w-widget w-switch";return A(e,"class")||(f+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',s=!A(e,"reverse")&&e.reverse,t=i=" ",!A(e,"iconon")&&A(e,"iconoff")?(i='<i class="fa fa-'+e.iconon+' not-negative"></i>',t='<i class="fa fa-'+e.iconon+' negative"></i>'):!A(e,"iconoff")&&A(e,"iconon")?(i='<i class="fa fa-'+e.iconoff+' positive"></i>',t='<i class="fa fa-'+e.iconoff+' not-positive"></i>'):A(e,"iconon")||A(e,"iconoff")||(i='<i class="fa fa-'+e.iconon+'"></i>',t='<i class="fa fa-'+e.iconoff+'"></i>'),e=E.attributes(e,["readonly","disabled","data"])+(A(e,"extra")?"":" "+e.extra),t=p?(f+=" dual",d="radio",o=w?'<input type="'+d+'" id="'+l+'-on" '+c+' class="w-switch-state w-state-on" value="'+m+'" '+e+' checked /><input type="'+d+'" id="'+l+'-off" '+c+' class="w-switch-state w-state-off" value="'+u+'" '+e+" />":'<input type="'+d+'" id="'+l+'-on" '+c+' class="w-switch-state w-state-on" value="'+m+'" '+e+' /><input type="'+d+'" id="'+l+'-off" '+c+' class="w-switch-state w-state-off" value="'+u+'" '+e+" checked />",s?(f+=" reverse",'<label for="'+l+'-off" class="w-switch-off" onclick="">'+t+'</label><label for="'+l+'-on" class="w-switch-on" onclick="">'+i+"</label>"):'<label for="'+l+'-on" class="w-switch-on" onclick="">'+i+'</label><label for="'+l+'-off" class="w-switch-off" onclick="">'+t+"</label>"):(o='<input type="'+d+'" id="'+l+'" '+c+' class="w-switch-state" value="'+m+'" '+e+" "+(w=w&&"checked")+" />",s?(f+=" reverse",'<label for="'+l+'" class="w-switch-off" onclick="">'+t+'</label><label for="'+l+'" class="w-switch-on" onclick="">'+i+"</label>"):'<label for="'+l+'" class="w-switch-on" onclick="">'+i+'</label><label for="'+l+'" class="w-switch-off" onclick="">'+t+"</label>"),E.enqueue("styles","htmlwidgets.css"),r&&(T&&null==C["switch-instance-"+l]&&(C["switch-instance-"+l]=0),E.enqueue("scripts","switch-instance-"+l+(T?"-"+ ++C["switch-instance-"+l]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+l+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+r+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),'<span class="'+f+'" '+h+" "+a+">"+o+t+'<span class="w-switch-handle"></span></span>'},w_range:function(e,t,n){var a,i,s,o,l,r,c,d=H(e,"id")?e.id:E.uuid(),m=H(e,"init")&&e.init instanceof D?e.init.code:null,u=A(e,"name")?"":'name="'+e.name+'"',p=A(e,"name2")?"":'name="'+e.name2+'"',h=A(e,"title")?"":'title="'+e.title+'"',w=A(e,"style")?"":e.style,f=E.attributes(e,["readonly","disabled","data"])+(A(e,"extra")?"":" "+e.extra),g="w-widget w-range";return A(e,"class")||(g+=" "+e.class),a=H(t,"value")?t.value:0,(s=!1!==(i=!!H(t,"value2")&&t.value2))&&(g=E.addClass(g,"dual")),(o=!A(e,"circular"))&&!s&&(g=E.addClass(g,"circular")),l=H(e,"min")?parseInt(e.min):0,r=H(e,"max")?parseInt(e.max):100,c=H(e,"step")?e.step:1,t=H(e,"prefix")?e.prefix:"",e=H(e,"suffix")?e.suffix:"",E.enqueue("styles","htmlwidgets.css"),(m||o&&!s)&&(T&&null==C["range-instance-"+d]&&(C["range-instance-"+d]=0),E.enqueue("scripts","range-instance-"+d+(T?"-"+ ++C["range-instance-"+d]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+d+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); "+(m?"("+m+")(element, {});":"")+" "+(o&&!s?" var range = element.getElementsByTagName('input')[0], output = element.getElementsByTagName('output')[0], center, restore = htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop); function computeCenter(element) { var rect = element.getBoundingClientRect(); return { X: rect.left + rect.width / 2, Y: rect.top + rect.height / 2 }; } function update(evt) { var value = range.valueAsNumber, angle, min = +range.min, max = +range.max, span = max - min, step = +range.step; if (evt) { angle = Math.atan2(((evt.changedTouches&&evt.changedTouches.length ? evt.changedTouches[0].clientY : evt.clientY) - center.Y), (evt.changedTouches&&evt.changedTouches.length ? evt.changedTouches[0].clientX : evt.clientX) - center.X) * 180 / Math.PI + 90; if (angle < 0) angle += 360; angle = Math.max(0, Math.min(360, angle)); range.value = Math.max(min, Math.min(max, min + step * Math.ceil(angle / 360 * span / step))); } else { angle = 360 * (value - min) / span; } element.style.setProperty('--value', range.value); element.style.setProperty('--text-value', '\"'+String(range.value)+'\"'); element.style.setProperty('--angle', String(angle)+'deg'); } function updateThrottled(evt) { evt.preventDefault && evt.preventDefault(); update(evt); } function onKeyDown(evt) { switch(evt.key) { case 'ArrowLeft': case 'ArrowDown': evt.preventDefault && evt.preventDefault(); range.stepDown(); update(); break; case 'ArrowRight': case 'ArrowUp': evt.preventDefault && evt.preventDefault(); range.stepUp(); update(); break; } } function onMouseDown(evt) { evt.preventDefault && evt.preventDefault(); center = computeCenter(element); htmlwidgets.addEvent(document, 'mouseup', function clear(evt) { htmlwidgets.removeEvent(document, 'mousemove', updateThrottled, {capture:false,passive:false}); htmlwidgets.removeEvent(document, 'mouseup', clear); htmlwidgets.fireEvent(range, 'change'); }); htmlwidgets.addEvent(document, 'mousemove', updateThrottled, {capture:false,passive:false}); } function onTouchStart(evt) { evt.preventDefault && evt.preventDefault(); center = computeCenter(element); htmlwidgets.addEvent(document, 'touchend', function clear(evt) { htmlwidgets.removeEvent(document, 'touchmove', updateThrottled, {capture:false,passive:false}); htmlwidgets.removeEvent(document, 'touchend', clear); htmlwidgets.fireEvent(range, 'change'); }); htmlwidgets.addEvent(document, 'touchmove', updateThrottled, {capture:false,passive:false}); } function onClick(evt) { center = computeCenter(element); update(evt); htmlwidgets.fireEvent(range, 'change'); } htmlwidgets.addEvent(output, 'keydown', onKeyDown, {capture:false,passive:false}); htmlwidgets.addEvent(output, 'mousedown', onMouseDown, {capture:false,passive:false}); htmlwidgets.addEvent(output, 'touchstart', onTouchStart, {capture:false,passive:false}); htmlwidgets.addEvent(element, 'click', onClick); htmlwidgets.addHandler(element, 'restore', function(element) { restore(element); restore = null; var output = element.getElementsByTagName('output')[0]; htmlwidgets.removeEvent(output, 'keydown', onKeyDown, {capture:false,passive:false}); htmlwidgets.removeEvent(output, 'mousedown', onMouseDown, {capture:false,passive:false}); htmlwidgets.removeEvent(output, 'touchstart', onTouchStart, {capture:false,passive:false}); htmlwidgets.removeEvent(element, 'click', onClick); htmlwidgets.addHandler(element, 'restore', htmlwidgets.noop); }); update(); ":"")+" } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),s?'<div id="'+d+'" class="'+g+'" '+h+" style='--min:"+l+";--max:"+r+";--step:"+c+";--value-a:"+a+";--value-b:"+i+';--text-value-a:"'+a+'";--text-value-b:"'+i+'";--prefix:"'+t+'";--suffix:"'+e+'";'+w+"'><input id=\""+d+'_rng1" type="range" '+u+' min="'+l+'" max="'+r+'" step="'+c+'" value="'+a+'" '+f+" oninput=\"this.parentNode.style.setProperty('--value-a',this.value);this.parentNode.style.setProperty('--text-value-a',JSON.stringify(this.value));\"/><output for=\""+d+'_rng1"></output><input id="'+d+'_rng2" type="range" '+p+' min="'+l+'" max="'+r+'" step="'+c+'" value="'+i+'" '+f+" oninput=\"this.parentNode.style.setProperty('--value-b',this.value);this.parentNode.style.setProperty('--text-value-b',JSON.stringify(this.value));\"/><output for=\""+d+'_rng2"></output><div class="w-range-progress"></div></div>':o?'<div id="'+d+'" class="'+g+'" '+h+" style='--min:"+l+";--max:"+r+";--step:"+c+";--value:"+a+';--text-value:"'+a+'";--prefix:"'+t+'";--suffix:"'+e+'";'+w+'\'><output tabindex="0" for="'+d+'_rng"></output><input id="'+d+'_rng" '+u+' type="range" min="'+l+'" max="'+r+'" step="'+c+'" value="'+a+'" '+f+" hidden/></div>":'<div id="'+d+'" class="'+g+'" '+h+" style='--min:"+l+";--max:"+r+";--step:"+c+";--value:"+a+';--text-value:"'+a+'";--prefix:"'+t+'";--suffix:"'+e+'";'+w+"'><input id=\""+d+'_rng" '+u+' type="range" min="'+l+'" max="'+r+'" step="'+c+'" value="'+a+'" '+f+" oninput=\"this.parentNode.style.setProperty('--value',this.value); this.parentNode.style.setProperty('--text-value',JSON.stringify(this.value));\"/><output for=\""+d+'_rng"></output><div class="w-range-progress"></div></div>'},w_rating:function(e,t,n){var a,i,s,o,l,r,c,d,m=H(e,"id")?e.id:E.uuid(),u=A(e,"name")?'name="__rating_'+m+'"':'name="'+e.name+'"',p=H(t,"value")?t.value:"",h=A(e,"title")?"":'title="'+e.title+'"',w=A(t,"text")?"":t.text,f="w-rating";for(A(e,"class")||(f+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',s=A(e,"icon")?"star":e.icon,d=E.attributes(e,["readonly","disabled","data"]),c='<fieldset id="'+m+'" '+h+' class="'+f+'" '+a+" "+(A(e,"extra")?"":" "+e.extra)+">",w&&(c+="<legend "+h+">"+w+"</legend>"),s=s||"star",o=(i=!A(t,"ratings")&&t.ratings instanceof Array?t.ratings:E.options({1:"1",2:"2",3:"3",4:"4",5:"5"},-1)).length-1;0<=o;o--)l=i[o][0],r=i[o][1],c+='<input type="radio" id="'+m+"_rating_"+l+'" class="w-rating-input" '+u+' value="'+l+'" '+(p&&p==l?"checked":"")+" "+d+'/><label for="'+m+"_rating_"+l+'" class="fa fa-'+(y(s)?s.length>o?s[o]:s[s.length-1]:s)+' w-rating-label" title="'+r+'"> </label>';return c+="</fieldset>",E.enqueue("styles","htmlwidgets.css"),c},w_select:function(e,t,n){var a,i,s,o,l,r,c,d,m,u=H(e,"id")?e.id:E.uuid(),p=H(e,"init")&&e.init instanceof D?e.init.code:null,h=A(e,"name")?"":'name="'+e.name+'"',w=!!e.dropdown,f=A(e,"style")?"":'style="'+e.style+'"',g=A(e,"title")?"":'title="'+e.title+'"',b=E.attributes(e,["multiple","readonly","disabled","data"])+(A(e,"extra")?"":" "+e.extra),v=H(t,"selected")?t.selected:[];for(y(v)||(v=[v]),i="",l=(s=t.options).length,m=!1,o=0;o<l;o++)r=(d=s[o])[0],c=d[1],(d=-1<v.map(String).indexOf(String(r))?' selected="selected"':"").length&&(m=!0),i+='<option value="'+r+'"'+d+">"+c+"</option>";return A(e,"placeholder")||(i='<option value="" class="w-option-placeholder" disabled'+(m?"":" selected")+">"+e.placeholder+"</option>"+i,b+=' data-placeholder="'+e.placeholder+'"'),a=w?"w-widget w-dropdown":"w-widget w-select",A(e,"class")||(a+=" "+e.class),E.enqueue("styles","htmlwidgets.css"),p&&w&&(T&&null==C["dropdown-instance-"+u]&&(C["dropdown-instance-"+u]=0),E.enqueue("scripts","dropdown-instance-"+u+(T?"-"+ ++C["dropdown-instance-"+u]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+u+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+p+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),e.select2&&!w&&(t=j(e.options)?e.options:{},e=E.extract_code(t),a+=" w-select2",T&&null==C["select2-instance-"+u]&&(C["select2-instance-"+u]=0),E.enqueue("scripts","select2-instance-"+u+(T?"-"+ ++C["select2-instance-"+u]:""),["(function(){ var tries = 0, options = "+q(t)+"; "+e.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+" function render() { if ('undefined' === typeof(htmlwidgets) || 'undefined' === typeof(jQuery) || 'function' !== typeof(jQuery.fn.select2)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+u+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); "+(p?"("+p+")(element, options);":"jQuery(element).select2(options); htmlwidgets.addHandler(element, 'restore', function(element) { jQuery(element).select2('destroy'); htmlwidgets.addHandler(element, 'restore', htmlwidgets.noop); });")+" } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js","select2"])),w?'<span class="'+a+'" '+f+'><select id="'+u+'" '+h+' class="w-dropdown-select" '+g+" "+b+">"+i+"</select></span>":'<select id="'+u+'" '+h+' class="'+a+'" '+f+" "+g+" "+b+">"+i+"</select>"},w_text:function(e,t,n){var a=H(e,"id")?e.id:E.uuid(),i=H(e,"init")&&e.init instanceof D?e.init.code:null,s=A(e,"name")?"":'name="'+e.name+'"',o=H(t,"value")?t.value:"",l=H(e,"title")?e.title:"",r=l?'title="'+l+'"':"",c=H(e,"placeholder")?e.placeholder:l,d=A(e,"style")?"":'style="'+e.style+'"',m=A(e,"type")?"text":e.type,u="",p="w-wrapper";return A(e,"icon")||(u+='<span class="fa-wrapper left-fa"><i class="fa fa-'+e.icon+'"></i></span>',p+=" w-icon"),A(e,"iconr")||(u+='<span class="fa-wrapper right-fa"><i class="fa fa-'+e.iconr+'"></i></span>',p+=" w-icon-right"),t=E.attributes(e,["readonly","disabled","data"])+(A(e,"extra")?"":" "+e.extra),l="w-widget w-text",A(e,"class")||(l+=" "+e.class),E.enqueue("styles","htmlwidgets.css"),i&&(T&&null==C["text-instance-"+a]&&(C["text-instance-"+a]=0),E.enqueue("scripts","text-instance-"+a+(T?"-"+ ++C["text-instance-"+a]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+a+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+i+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),u.length?'<span class="'+p+'" '+d+'><input type="'+m+'" id="'+a+'" '+s+" "+r+' class="'+l+'" placeholder="'+c+'" value="'+o+'" '+t+" />"+u+"</span>":'<input type="'+m+'" id="'+a+'" '+s+" "+r+' class="'+l+'" '+d+' placeholder="'+c+'" value="'+o+'" '+t+" />"},w_textarea:function(e,t,n){var a,i,s,o=H(e,"id")?e.id:E.uuid(),l=H(e,"init")&&e.init instanceof D?e.init.code:null,r=A(e,"name")?"":'name="'+e.name+'"',c=H(t,"value")?t.value:"",d=H(e,"title")?e.title:"",m=d?'title="'+d+'"':"",u=H(e,"placeholder")?e.placeholder:d,t=A(e,"style")?"":'style="'+e.style+'"',d=E.attributes(e,["readonly","disabled","data"])+(A(e,"extra")?"":" "+e.extra);return e["syntax-editor"]?(i=j(e.options)?e.options:{},s=E.extract_code(i),A(i,"mode")&&(i.mode="text/html"),A(i,"theme")&&(i.theme="default"),H(i,"readOnly")||(i.readOnly=!!H(e,"readonly")&&!!e.readonly),H(i,"lineWrapping")||(i.lineWrapping=!1),H(i,"lineNumbers")||(i.lineNumbers=!0),H(i,"indentUnit")||(i.indentUnit=4),H(i,"indentWithTabs")||(i.indentWithTabs=!1),H(i,"lint")||(i.lint=!1),H(i,"foldGutter")||(i.foldGutter=!0),H(i,"gutters")||(i.gutters=["CodeMirror-lint-markers","CodeMirror-linenumbers","CodeMirror-foldgutter"]),a="w-widget w-syntax-editor w-codemirror-editor",A(e,"class")||(a+=" "+e.class),T&&null==C["codemirror-instance-"+o]&&(C["codemirror-instance-"+o]=0),E.enqueue("scripts","codemirror-instance-"+o+(T?"-"+ ++C["codemirror-instance-"+o]:""),["(function(){ var tries = 0, options = "+q(i)+"; "+s.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+" function render() { if ('undefined' === typeof(htmlwidgets) || 'function' !== typeof(CodeMirror)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var autosave = false; if (options.autosave) { autosave = true; delete options.autosave; } if (options.grammar && ('undefined' !== typeof(CodeMirrorGrammar))) { var mode = CodeMirrorGrammar.getMode(options.grammar); CodeMirror.defineMode(options.mode, mode); mode.supportCodeFolding = true; CodeMirror.registerHelper('fold', mode.foldType, mode.folder); mode.supportGrammarAnnotations = true; CodeMirror.registerHelper('lint', options.mode, mode.validator); delete options.grammar; } var element = document.getElementById('"+o+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); "+(l?"("+l+")(element, options);":"element.codemirror = CodeMirror.fromTextArea(element, options); htmlwidgets.addHandler(element, 'restore', function(element) { if (element.codemirror) {try{element.codemirror.toTextArea();}catch(e){} element.codemirror = null;} htmlwidgets.addHandler(element, 'restore', htmlwidgets.noop); }); if (autosave) { element.codemirror.on('changes', function(cm){ cm.save(); htmlwidgets.fireEvent(element, 'change'); }); }")+" } } window.requestAnimationFrame(render); })();"],A(i,"grammar")?["htmlwidgets.js","codemirror-htmlmixed"]:["htmlwidgets.js","codemirror-htmlmixed","codemirror-grammar"])):e["wysiwyg-editor"]?(i=j(e.options)?e.options:{},s=E.extract_code(i),H(i,"plugins")||(i.plugins="print preview fullpage searchreplace autolink directionality visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists textcolor wordcount imagetools contextmenu colorpicker textpattern help"),H(i,"toolbar")||(i.toolbar="undo redo formatselect | bold italic strikethrough forecolor backcolor | link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat"),A(i,"theme")&&(i.theme="modern"),A(i,"skin")&&(i.skin="lightgray"),A(i,"directionality")&&(i.directionality="ltr"),A(i,"height")&&(i.height=500),H(i,"placeholder")||(i.placeholder=H(e,"placeholder")?e.placeholder:""),H(i,"automatic_uploads")||(i.automatic_uploads=!0),H(i,"image_advtab")||(i.image_advtab=!0),H(i,"paste_data_images")||(i.paste_data_images=!0),H(i,"browser_spellcheck")||(i.browser_spellcheck=!0),i.selector="#"+o,a="w-widget w-wysiwyg-editor",A(e,"class")||(a+=" "+e.class),T&&null==C["tinymce-instance-"+o]&&(C["tinymce-instance-"+o]=0),E.enqueue("scripts","tinymce-instance-"+o+(T?"-"+ ++C["tinymce-instance-"+o]:""),["(function(){ var tries = 0, options = "+q(i)+"; "+s.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+" function render() { if ('undefined' === typeof(htmlwidgets) || 'undefined' === typeof(tinymce)) {if (tries<10) {tries++; setTimeout(render,100);} return;} var element = document.getElementById('"+o+"'); if (element) { if (options.autosave) { if (!options.setup) { options.setup = function(editor) { editor.on('change', function(){ editor.save(); htmlwidgets.fireEvent(element, 'change'); }); }; } delete options.autosave; } if (options.locale && options.i18n) { tinymce.util.I18n.add(options.locale, options.i18n); delete options.locale; delete options.i18n; } htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); "+(l?"("+l+")(element, options);":"tinymce.init(options); htmlwidgets.addHandler(element, 'restore', function(element) { var prev_editor = tinymce.get(element.id); if (prev_editor) prev_editor.remove(); htmlwidgets.addHandler(element, 'restore', htmlwidgets.noop); }); ")+" } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js","tinymce"])):(a="w-widget w-textarea",A(e,"class")||(a+=" "+e.class),E.enqueue("styles","htmlwidgets.css"),l&&(T&&null==C["textarea-instance-"+o]&&(C["textarea-instance-"+o]=0),E.enqueue("scripts","textarea-instance-"+o+(T?"-"+ ++C["textarea-instance-"+o]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+o+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+l+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"]))),'<textarea id="'+o+'" '+r+" "+m+' class="'+a+'" '+t+' placeholder="'+u+'" '+d+">"+c+"</textarea>"},w_date:function(e,t,n){var a,i,s,o,l=H(e,"id")?e.id:E.uuid(),r=H(e,"init")&&e.init instanceof D?e.init.code:null,c=A(e,"name")?"":'name="'+e.name+'"',d=H(e,"title")?e.title:"",m=d?'title="'+d+'"':"",u=H(e,"placeholder")?e.placeholder:d,p="w-widget w-text w-date";return A(e,"class")||(p+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',s="",o="w-wrapper",A(e,"icon")||(s+='<span class="fa-wrapper left-fa"><i class="fa fa-'+e.icon+'"></i></span>',o+=" w-icon"),A(e,"iconr")||(s+='<span class="fa-wrapper right-fa"><i class="fa fa-'+e.iconr+'"></i></span>',o+=" w-icon-right"),A(e,"icon")&&A(e,"iconr")&&(s+='<span class="fa-wrapper right-fa"><i class="fa fa-calendar"></i></span>',o+=" w-icon-right"),i=E.attributes(e,["readonly","disabled","data"])+(A(e,"extra")?"":" "+e.extra),d=j(e.options)?e.options:{},e=E.extract_code(d),t=H(d,"value")?d.value:H(t,"value")?t.value:"",A(d,"format")&&(d.format="Y-m-d"),T&&null==C["pikadaytime-instance-"+l]&&(C["pikadaytime-instance-"+l]=0),E.enqueue("scripts","pikadaytime-instance-"+l+(T?"-"+ ++C["pikadaytime-instance-"+l]:""),["(function(){ var tries = 0, options = "+q(d)+"; "+e.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+" function render() { if ('undefined' === typeof(htmlwidgets) || 'function' !== typeof(Pikadaytime)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var locale = options.i18n, format = options.format; if ('function' === typeof(DateX)) { var datetime_parse = DateX.getParser(format, locale); options.encoder = function(datetime) {return DateX.format(datetime, format, locale);}; options.decoder = function(datetime) {return !!datetime && datetime_parse(datetime);}; } else { options.encoder = function(datetime, pikaday) {return pikaday._o.showTime ? datetime.toString() : datetime.toDateString();}; options.decoder = function(datetime) {return new Date(Date.parse(datetime));}; } var element = document.getElementById('"+l+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); "+(r?"("+r+")(element, options);":"options.field = element; element.pikadaytime = new Pikadaytime(options); htmlwidgets.addHandler(element, 'restore', function(element) { if (element.pikadaytime) {element.pikadaytime.dispose(); element.pikadaytime = null;} htmlwidgets.addHandler(element, 'restore', htmlwidgets.noop); });")+" } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js","pikadaytime"]),'<span class="'+o+'" '+a+'><input type="text" id="'+l+'" '+c+" "+m+' class="'+p+'" placeholder="'+u+'" value="'+t+'" '+i+" />"+s+"</span>"},w_time:function(e,t,n){var a,i,s,o,l,r,c,d,m,u,p,h,w=H(e,"id")?e.id:E.uuid(),f=A(e,"name")?"":e.name,g=A(e,"title")?"":'title="'+e.title+'"',b=A(e,"format")?["h","m","s"]:e.format.split(":");if(H(t,"value"))for(s=y(t.value)?t.value:t.value.split(":");s.length<3;)s.push("00");else s=["00","00","00"];for(a="w-widget w-time",A(e,"class")||(a+=" "+e.class),t=A(e,"style")?"":'style="'+e.style+'"',i=E.attributes(e,["readonly","disabled","data"])+(A(e,"extra")?"":" "+e.extra),r={h:[],m:[],s:[]},c=0;c<60;c++)for(d=c<10?"0"+c:""+c,u=0;u<b.length;u++)"h"===(p=b[u])&&24<=c||(h=d===s[u]?'selected="selected"':"",r[p].push('<option value="'+d+'" '+h+">"+d+"</option>"));for(l=[],u=0;u<b.length;u++)m=b[u],o=f.length?'name="'+f+"["+m+']"':"",l.push('<select class="w-time-component" id="'+w+"_"+m+'" '+o+" "+g+" "+i+">"+r[m].join("")+"</select>");return l=l.join('<span class="w-time-sep">:</span>'),E.enqueue("styles","htmlwidgets.css"),'<span class="'+a+'" '+t+">"+l+"</span>"},w_color:function(e,t,n){var a,i,s,o,l,r,c,d=H(e,"id")?e.id:E.uuid(),m=H(e,"init")&&e.init instanceof D?e.init.code:null,u=A(e,"name")?"":'name="'+e.name+'"',p=j(e.options)?e.options:{},h=E.extract_code(p);return A(p,"changeEvent")&&(p.changeEvent="change"),A(p,"format")&&(p.format="rgba"),!H(p,"color")&&H(t,"color")&&(p.color=t.color),!H(p,"opacity")&&H(t,"opacity")&&(p.opacity=t.opacity),s=A(r=H(e,"title")?e.title:"")?"":'title="'+r+'"',o=H(e,"placeholder")?e.placeholder:r,a="colorpicker-selector w-colorselector",A(e,"class")||(a+=" "+e.class),i=A(e,"style")?"":'style="'+e.style+'"',c=E.attributes(e,["readonly","disabled","data"])+(A(e,"extra")?"":" "+e.extra),c=A(e,"input")?(A(e,"selector-class")||(a+=" "+e["selector-class"]),'<div id="'+d+'" '+s+' class="'+a+'" '+i+" "+c+"></div>"):!0===e.input?(d="colorselector_"+(l=d),p.input=l,a="w-widget w-text",A(e,"class")||(a+=" "+e.class),t="w-wrapper",r="fa-wrapper",A(e,"iconr")?(t+=" w-icon",r+=" left-fa"):(t+=" w-icon-right",r+=" right-fa"),A(e,"selector-class")||(r+=" "+e["selector-class"]),'<span class="'+t+'" '+i+'><input type="text" id="'+l+'" '+u+" "+s+' class="'+a+'" placeholder="'+o+'" value="" '+c+' /><span id="'+d+'" class="'+r+' colorpicker-selector w-colorselector"></span></span>'):(A(e,"selector-class")||(a+=" "+e["selector-class"]),'<input id="'+e.input+'" type="hidden" '+u+' value="" style="display:none" /><div id="'+d+'" '+s+' class="'+a+'" '+i+" "+c+"></div>"),T&&null==C["colorpicker-instance-"+d]&&(C["colorpicker-instance-"+d]=0),E.enqueue("scripts","colorpicker-instance-"+d+(T?"-"+ ++C["colorpicker-instance-"+d]:""),["(function(){ var tries = 0, options = "+q(p)+"; "+h.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+" function render() { if ('undefined' === typeof(htmlwidgets) || 'function' !== typeof(ColorPicker)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+d+"'); if (element) { if (options.input) options.input = document.getElementById(options.input); htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); "+(m?"("+m+")(element, options)":"element.colorpicker = new ColorPicker(element, options); htmlwidgets.addHandler(element, 'restore', function(element) { if (element.colorpicker) {element.colorpicker.dispose(); element.colorpicker = null;} htmlwidgets.addHandler(element, 'restore', htmlwidgets.noop); });")+"; } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js","colorpicker"]),c},w_file:function(e,t,n){var a,i=H(e,"id")?e.id:E.uuid(),s=H(e,"init")&&e.init instanceof D?e.init.code:null,o=A(e,"name")?"":'name="'+e.name+'"',l=H(t,"value")?t.value:"",r=H(e,"title")?e.title:"",c=r?'title="'+r+'"':"",d=H(e,"placeholder")?e.placeholder:r,m="w-widget w-file w-text";return A(e,"class")||(m+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',t="",r="w-wrapper",A(e,"icon")||(t+='<span class="fa-wrapper left-fa"><i class="fa fa-'+e.icon+'"></i></span>',r+=" w-icon"),A(e,"iconr")||(t+='<span class="fa-wrapper right-fa"><i class="fa fa-'+e.iconr+'"></i></span>',r+=" w-icon-right"),e=E.attributes(e,["accept","multiple","readonly","disabled","data"])+(A(e,"extra")?"":" "+e.extra),E.enqueue("styles","htmlwidgets.css"),T&&null==C["file-instance-"+i]&&(C["file-instance-"+i]=0),E.enqueue("scripts","file-instance-"+i+(T?"-"+ ++C["file-instance-"+i]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+i+"'); var input = document.getElementById('text_input_"+i+"'); if (element && input) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); "+(s?"("+s+")(element, {input:input});":" if (element.changehandler) {htmlwidgets.removeEvent(element, 'change', element.changehandler); element.changehandler = null;} htmlwidgets.addEvent(element, 'change', element.changehandler = function() {input.value = element.value;}); htmlwidgets.addHandler(element, 'restore', function(element) { if (element.changehandler) {htmlwidgets.removeEvent(element, 'change', element.changehandler); element.changehandler = null;} htmlwidgets.addHandler(element, 'restore', htmlwidgets.noop); });")+" } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"]),'<label for="'+i+'" class="'+r+'" '+a+'><input type="file" id="'+i+'" '+o+' class="w-file-input" value="'+l+'" '+e+' style="position:absolute;opacity:0;width:100%;z-index:-1;"/><input type="text" id="text_input_'+i+'" '+c+' class="'+m+'" placeholder="'+d+'" value="'+l+'" form="__NONE__" style="pointer-events:none"/>'+t+"</label>"},w_table:function(e,t,n){var a,i,s,o,l,r,c,d,m,u,p,h=H(e,"id")?e.id:E.uuid(),w=H(e,"init")&&e.init instanceof D?e.init.code:null,f="w-widget w-table";A(e,"class")||(f+=" "+e.class);A(e.footer);for(var g,b=A(e,"style")?"":'style="'+e.style+'"',v=A(e,"extra")?"":e.extra,y="",x=t.columns,k=(g=S(data_cols)).length,_=0;_<k;_++)y+='<th data-columnkey="'+g[_]+'"><span>'+x[g[_]]+"</span></th>";for(y="<tr>"+y+"</tr>",s=H(e.header)&&A(e.header)?"":"<thead>"+y+"</thead>",o=A(e.footer)?"":"<tfoot>"+y+"</tfoot>",i="",u=t.rows.length,m=0;m<u;m++){for(r=null!=(l=t.rows[m]).id?l.id:m,d=null!=l.cells?l.cells:l,c=S(d),i+='\n<tr data-row="'+r+'">',_=0;_<k;_++)i+='<td data-columnkey="'+g[_]+'" data-column="'+x[g[_]]+'">'+d[c[_]]+"</td>";i+="</tr>"}return a=E.data(e),E.enqueue("styles","htmlwidgets.css"),w&&A(e,"datatable")&&(T&&null==C["table-instance-"+h]&&(C["table-instance-"+h]=0),E.enqueue("scripts","table-instance-"+h+(T?"-"+ ++C["table-instance-"+h]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+h+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+w+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),e.datatable&&(p=j(e.options)?e.options:{},e=E.extract_code(p),f+=" w-datatable",T&&null==C["datatable-instance-"+h]&&(C["datatable-instance-"+h]=0),E.enqueue("scripts","datatable-instance-"+h+(T?"-"+ ++C["datatable-instance-"+h]:""),["(function(){ var tries = 0, options = "+q(p)+"; "+e.map(function(e){return"options['"+e[0]+"'] = "+e[1].code+";"}).join("\n")+" function render() { if ('undefined' === typeof(htmlwidgets) || 'undefined' === typeof(jQuery) || 'function' !== typeof(jQuery.fn.DataTable)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+h+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); "+(w?"("+w+")(element, options);":"element.datatable = jQuery(element).DataTable(options); htmlwidgets.addHandler(element, 'restore', function(element) { if (element.datatable) {element.datatable.destroy(); element.datatable = null;} htmlwidgets.addHandler(element, 'restore', htmlwidgets.noop); });")+" } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js","datatables-all"])),'<table id="'+h+'" class="'+f+'" '+b+" "+v+" "+a+">"+s+"<tbody>"+i+"</tbody>"+o+"</table>"},w_tooltip:function(e,t,n){var a,i,s=H(e,"id")?e.id:E.uuid(),o=H(t,"text")?t.text:"",l=H(e,"title")?e.title:o,r="w-tooltip";return A(e,"class")||(r+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',i=A(e,"extra")?"":e.extra,A(e,"icon")?A(e,"iconr")||(o=o+'<i class="fa fa-'+e.iconr+' right-fa"></i>'):o='<i class="fa fa-'+e.icon+' left-fa"></i>'+o,t=A(e,"tooltip")?'<div class="w-tooltip-arrow w-arrow-right"></div>':"top"===e.toolip?'<div class="w-tooltip-arrow w-arrow-bottom"></div>':"bottom"===e.toolip?'<div class="w-tooltip-arrow w-arrow-top"></div>':"right"===e.toolip?'<div class="w-tooltip-arrow w-arrow-left"></div>':'<div class="w-tooltip-arrow w-arrow-right"></div>',e=E.data(e),E.enqueue("styles","htmlwidgets.css"),'<div id="'+s+'" class="'+r+'" '+a+" "+i+' title="'+l+'" '+e+">"+o+t+"</div>"},w_media:function(e,t,n){var a,i,s,o,l,r,c=H(e,"id")?e.id:E.uuid(),d=H(e,"init")&&e.init instanceof D?e.init.code:null,m=A(e,"type")?"video":e.type;"audio"!==m&&(m="video"),a="w-media w-"+m,A(e,"class")||(a+=" "+e.class),i=A(e,"style")?"":'style="'+e.style+'"',s=E.attributes(e,["title","width","height","src","controls","autoplay","loop","data"])+(A(e,"extra")?"":" "+e.extra),e=A(t,"text")?"":t.text,l="";for(var u=0,p=(o=A(t,"sources")?[]:t.sources).length;u<p;u++)l+='<source src="'+(r=o[u])[0]+'" type="'+r[1]+'" />';return E.enqueue("scripts","html5media"),d&&(T&&null==C["media-instance-"+c]&&(C["media-instance-"+c]=0),E.enqueue("scripts","media-instance-"+c+(T?"-"+ ++C["media-instance-"+c]:""),["(function(){ var tries = 0; function render() { if ('undefined' === typeof(htmlwidgets)) {if (tries<10) {tries++; setTimeout(render, 100);} return;} var element = document.getElementById('"+c+"'); if (element) { htmlwidgets.getHandler(element, 'restore', htmlwidgets.noop)(element); ("+d+")(element, {}); } } window.requestAnimationFrame(render); })();"],["htmlwidgets.js"])),"<"+m+' id="'+c+'" class="'+a+'" '+i+" "+s+">"+l+e+"</"+m+">"},w_modal:function(e,t,n){var a,i,s,o,l=H(e,"id")?e.id:E.uuid(),r=!H(e,"controller")||!A(e,"controller"),c="w-modal w-dialog";return A(e,"class")||(c+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',i=A(e,"extra")?"":e.extra,o=H(t,"title")?t.title:"",s=A(e,"icon")?"":'<i class="fa fa-'+e.icon+'"></i>',t=r&&!A(e,"autoclose")?'<label for="modal_'+l+'" class="w-modal-overlay" onclick="">':'<div class="w-modal-overlay">',e=E.data(e),E.enqueue("styles","htmlwidgets.css"),(r?'<input id="modal_'+l+'" type="checkbox" class="w-modal-controller" />':"")+t+'<div id="'+l+'" class="'+c+'" '+a+" "+i+" "+e+'><div class="w-dialog-title">'+s+o+'<label for="modal_'+l+'" class="w-label w-dialog-close" title="Close" onclick=""><i class="fa fa-times-circle"></i></label></div><div class="w-dialog-content">'},w_modal_end:function(e,t,n){var a=H(e,"buttons")?e.buttons:"",e=A(e,"autoclose")?"</div>":"</label>";return"</div>"+(a&&a.length?'<div class="w-dialog-buttons">'+a+"</div>":"")+"</div>"+e},w_menu:function(e,t,n){var a,i,s,o,l=H(e,"id")?e.id:E.uuid(),r="w-widget";return A(e,"class")||(r+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',i=A(e,"extra")?"":e.extra,s=E.data(e),y(t)&&t.length?(o='<nav id="'+l+'" class="'+r+'" '+a+" "+i+" "+s+">\n",A(e,"mobile")&&(o+='<label for="mobile-menu_'+l+'" class="w-menu-controller-bt"><i class="fa fa-bars fa-2x"></i> </label><input id="mobile-menu_'+l+'" type="checkbox" class="w-menu-controller" value="1" />\n'),o+=E.menu(t),o+="</nav>",E.enqueue("styles","htmlwidgets.css"),o):'<nav id="'+l+'" class="'+r+'" '+a+" "+i+" "+s+">"},w_menu_end:function(e,t,n){return E.enqueue("styles","htmlwidgets.css"),"</nav>"},w_pagination:function(e,t,n){var a,i,s,o,l,r,c,d,m,u,p,h,w,f,g,b,v,y=H(e,"id")?e.id:E.uuid(),x="w-pagination pagination";if(A(e,"class")||(x+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',i=A(e,"extra")?"":e.extra,s=parseInt(t.totalItems),g=parseInt(t.itemsPerPage),o=H(t,"currentPage")?parseInt(t.currentPage):1,l=H(e,"maxPages")?parseInt(e.maxPages):10,r=H(e,"placeholder")?String(e.placeholder):"(:page)",c=H(e,"urlPattern")?String(e.urlPattern):"?page="+r,d=H(e,"previousText")?String(e.previousText):"« Previous",m=H(e,"nextText")?String(e.nextText):"Next »",t=H(e,"ellipsis")?String(e.ellipsis):"...",e=!A(e,"selectBox"),1<(u=g<=0||s<=0?0:Math.ceil(s/g))){if(p=[],u<=l)for(w=1;w<=u;++w)p.push({text:w,url:c.replace(r,String(w)),isCurrent:w===o});else{for((g=u<o+(g=Math.floor((l-3)/2))?u-l+2:o-g)<2&&(g=2),u<=(b=g+l-3)&&(b=u-1),p.push({text:1,url:c.replace(r,String(1)),isCurrent:1===o}),2<g&&p.push({text:t,url:null,isCurrent:!1}),w=g;w<=b;++w)p.push({text:w,url:c.replace(r,String(w)),isCurrent:w===o});b<u-1&&p.push({text:t,url:null,isCurrent:!1}),p.push({text:u,url:c.replace(r,String(u)),isCurrent:u===o})}if(e){for(v='<div id="'+y+'" class="'+x+'" '+a+" "+i+">",1<o&&(v+='<span class="page-previous"><a href="'+k(c.replace(r,String(o-1)))+'">'+d+"</a></span>"),v+='<select class="page-select">',w=0,f=p.length;w<f;++w)(h=p[w]).url?v+='<option value="'+k(h.url)+'"'+(h.isCurrent?" selected":"")+">"+String(h.text)+"</option>":v+="<option disabled>"+String(h.text)+"</option>";v+="</select>",o<u&&(v+='<span class="page-next"><a href="'+k(c.replace(r,String(o+1)))+'">'+m+"</a></span>"),v+="</div>"}else{for(v='<ul id="'+y+'" class="'+x+'" '+a+" "+i+">",1<o&&(v+='<li class="page-previous"><a href="'+k(c.replace(r,String(o-1)))+'">'+d+"</a></li>"),w=0,f=p.length;w<f;++w)(h=p[w]).url?v+='<li class="page-item'+(1==h.text?" page-first":"")+(u==h.text?" page-last":"")+(h.isCurrent?" page-active active":"")+'"><a href="'+k(h.url)+'">'+String(h.text)+"</a></li>":v+='<li class="page-item disabled"><span>'+String(h.text)+"</span></li>";o<u&&(v+='<li class="page-next"><a href="'+k(c.replace(r,String(o+1)))+'">'+m+"</a></li>"),v+="</ul>"}return E.enqueue("styles","htmlwidgets.css"),v}return""},w_delayable:function(e,t,n){var a,i,s,o=H(e,"id")?e.id:E.uuid(),l="w-delayable-overlay";return A(e,"class")||(l+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',i=A(e,"extra")?"":e.extra,s="w-spinner",s+=A(e,"spinner")?" w-spinner-dots":" "+e.spinner,E.enqueue("styles","htmlwidgets.css"),'<div id="'+o+'" class="'+l+'" '+a+" "+i+'><div class="'+s+'"></div></div>'},w_disabable:function(e,t,n){var a,i=H(e,"id")?e.id:E.uuid(),s="w-disabable-overlay";return A(e,"class")||(s+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',e=A(e,"extra")?"":e.extra,E.enqueue("styles","htmlwidgets.css"),'<div id="'+i+'" class="'+s+'" '+a+" "+e+"></div>"},w_morphable:function(e,t,n){for(var a,i,s,o,l,r=H(e,"id")?e.id:E.uuid(),c=[].concat(e.modes),d=A(e,"mode")?"mode-${MODE}":e.mode,m=A(e,"show")?"show-if-${MODE}":e.show,u=A(e,"hide")?"hide-if-${MODE}":e.hide,p="#"+r+".w-morphable:not(.w-animated-morphable)",h="#"+r+".w-morphable.w-animated-morphable",w=[],f=[],g=[],b=[],v=[],y=[],x=[],k=[],_=c.length,q=0;q<_;q++)l=d.split("${MODE}").join(c[q]),a=" .w-morphable-item."+u.split("${MODE}").join(c[q]),i=" .w-morphable-item."+u.split("${MODE}").join("not-"+c[q]),s=" .w-morphable-item."+m.split("${MODE}").join(c[q]),o=" .w-morphable-item."+m.split("${MODE}").join("not-"+c[q]),w.push(p+".w-morphable-level-1 > .w-morphable-item"),v.push(h+".w-morphable-level-1 > .w-morphable-item"),b.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+".w-morphable-level-1 >"+a),b.push(p+".w-morphable-class."+l+".w-morphable-level-1 >"+a),f.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+".w-morphable-level-1 >"+s),f.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+".w-morphable-level-1 >"+o),f.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+".w-morphable-level-1 >"+i),f.push(p+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+s),f.push(p+".w-morphable-class."+l+".w-morphable-level-1 >"+o),f.push(p+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+i),g.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+".w-morphable-level-1 >"+s),g.push(p+".w-morphable-class."+l+".w-morphable-level-1 >"+s),w.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+".w-morphable-level-1 >"+a),w.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+".w-morphable-level-1 >"+i),w.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+".w-morphable-level-1 >"+o),w.push(p+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+a),w.push(p+".w-morphable-class."+l+".w-morphable-level-1 >"+i),w.push(p+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+o),k.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+".w-morphable-level-1 >"+a),k.push(h+".w-morphable-class."+l+".w-morphable-level-1 >"+a),y.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+".w-morphable-level-1 >"+s),y.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+".w-morphable-level-1 >"+o),y.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+".w-morphable-level-1 >"+i),y.push(h+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+s),y.push(h+".w-morphable-class."+l+".w-morphable-level-1 >"+o),y.push(h+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+i),x.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+".w-morphable-level-1 >"+s),x.push(h+".w-morphable-class."+l+".w-morphable-level-1 >"+s),v.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+".w-morphable-level-1 >"+a),v.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+".w-morphable-level-1 >"+i),v.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+".w-morphable-level-1 >"+o),v.push(h+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+a),v.push(h+".w-morphable-class."+l+".w-morphable-level-1 >"+i),v.push(h+".w-morphable-class:not(."+l+").w-morphable-level-1 >"+o),w.push(p+":not(.w-morphable-level-1) .w-morphable-item"),v.push(h+":not(.w-morphable-level-1) .w-morphable-item"),b.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+":not(.w-morphable-level-1)"+a),b.push(p+".w-morphable-class."+l+":not(.w-morphable-level-1)"+a),f.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+":not(.w-morphable-level-1)"+s),f.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+":not(.w-morphable-level-1)"+o),f.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+":not(.w-morphable-level-1)"+i),f.push(p+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+s),f.push(p+".w-morphable-class."+l+":not(.w-morphable-level-1)"+o),f.push(p+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+i),g.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+":not(.w-morphable-level-1)"+s),g.push(p+".w-morphable-class."+l+":not(.w-morphable-level-1)"+s),w.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+":not(.w-morphable-level-1)"+a),w.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+p+":not(.w-morphable-level-1)"+i),w.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+p+":not(.w-morphable-level-1)"+o),w.push(p+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+a),w.push(p+".w-morphable-class."+l+":not(.w-morphable-level-1)"+i),w.push(p+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+o),k.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+":not(.w-morphable-level-1)"+a),k.push(h+".w-morphable-class."+l+":not(.w-morphable-level-1)"+a),y.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+":not(.w-morphable-level-1)"+s),y.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+":not(.w-morphable-level-1)"+o),y.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+":not(.w-morphable-level-1)"+i),y.push(h+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+s),y.push(h+".w-morphable-class."+l+":not(.w-morphable-level-1)"+o),y.push(h+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+i),x.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+":not(.w-morphable-level-1)"+s),x.push(h+".w-morphable-class."+l+":not(.w-morphable-level-1)"+s),v.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+":not(.w-morphable-level-1)"+a),v.push("input[data-morph-"+r+'="'+l+'"]:checked ~ '+h+":not(.w-morphable-level-1)"+i),v.push("input[data-morph-"+r+'="'+l+'"]:not(:checked) ~ '+h+":not(.w-morphable-level-1)"+o),v.push(h+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+a),v.push(h+".w-morphable-class."+l+":not(.w-morphable-level-1)"+i),v.push(h+".w-morphable-class:not(."+l+"):not(.w-morphable-level-1)"+o);return e="",e+=f.join(",")+"{display: none !important}",e+=w.join(",")+"{display: block}",e+=b.join(",")+"{display: none !important}",e+=g.join(",")+"{display: block !important}",e+=y.join(",")+"{pointer-events: none !important; overflow: hidden !important;min-width: 0 !important; max-width: 0 !important;min-height: 0 !important; max-height: 0 !important; opacity: 0 !important;-webkit-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-moz-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-ms-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-o-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;}",e+=v.join(",")+"{overflow: hidden !important;min-width: 0 !important; max-width: 5000px; min-height: 0 !important; max-height: 5000px; opacity: 1;-webkit-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-moz-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-ms-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-o-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;}",e+=k.join(",")+"{pointer-events: none !important; overflow: hidden !important;min-width: 0 !important; max-width: 0 !important;min-height: 0 !important; max-height: 0 !important; opacity: 0 !important;-webkit-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-moz-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-ms-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;-o-transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;transition: opacity 0.4s ease, max-width 0.6s ease 0.2s, max-height 0.6s ease 0.2s;}",e+=x.join(",")+"{overflow: hidden !important;min-width: 0 !important; max-width: 5000px !important; min-height: 0 !important; max-height: 5000px !important; opacity: 1 !important;-webkit-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-moz-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-ms-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;-o-transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;transition: opacity 0.4s ease 0.2s, max-width 0.6s ease, max-height 0.6s ease;}",E.enqueue("styles","w-morphable-"+r,[e],["htmlwidgets.css"]),""},w_panel:function(e,t,n){var a,i,s,o,l=H(e,"id")?e.id:E.uuid(),r="w-panel";return A(e,"class")||(r+=" "+e.class),a=A(e,"style")?"":'style="'+e.style+'"',s=A(e,"title")?" ":e.title,o=A(e,"opened")?"":"checked",i=A(e,"extra")?"":e.extra,e=E.data(e),E.enqueue("styles","htmlwidgets.css"),'<input type="checkbox" id="controller_'+l+'" class="w-panel-controller" value="1" '+o+'/><div id="'+l+'" class="'+r+'" '+a+" "+i+" "+e+'><div class="w-panel-header">'+s+'<label class="w-panel-controller-button fa fa-2x" for="controller_'+l+'" onclick=""></label></div><div class="w-panel-content">'},w_panel_end:function(e,t,n){return"</div></div>"},w_accordeon:function(e,t,n){for(var a=H(e,"id")?e.id:E.uuid(),i=A(e,"context")?"":e.context+" ",s=A(e,"height")?"1500px":e.height,o=A(e,"independent")?"radio":"checkbox",l=[].concat(e.items),r="ctrl_"+a,e='<input name="'+r+'" type="'+o+'" id="item_'+l.join('" class="w-transition-controller w-'+r+'-controller"/><input name="'+r+'" type="'+o+'" id="item_')+'" class="w-transition-controller w-'+r+'-controller"/>',o="",c=[],d=0,m=l.length;d<m;d++)c.push(".w-"+r+"-controller.w-transition-controller:not(#item_"+l[d]+"):checked ~ "+i+"#"+l[d]);for(o+=c.join(",")+"{ max-height: 0; -webkit-transition: max-height .3s ease; -moz-transition: max-height .3s ease; -ms-transition: max-height .3s ease; -o-transition: max-height .3s ease; transition: max-height .3s ease;}",c=[],d=0,m=l.length;d<m;d++)c.push("#item_"+l[d]+".w-"+r+"-controller.w-transition-controller:checked ~ "+i+"#"+l[d]);return o+=c.join(",")+"{ max-height: "+s+"; -webkit-transition: max-height .2s ease .1s; -moz-transition: max-height .2s ease .1s; -ms-transition: max-height .2s ease .1s; -o-transition: max-height .2s ease .1s; transition: max-height .2s ease .1s;}",E.enqueue("styles","w-accordeon-"+a,[o],["htmlwidgets.css"]),e},w_tabs:function(e,t,n){for(var a,i=H(e,"id")?e.id:E.uuid(),s=A(e,"context")?"":e.context+" ",o=[].concat(e.tabs),l=A(e["3d"])?(a="w-fx-slideout","w-fx-slidein"):(a="w-fx-slideout-3d","w-fx-slidein-3d"),r="ctrl_"+i,c='<input name="'+r+'" checked type="radio" id="tab_'+o.join('" class="w-transition-controller w-'+r+'-controller"/><input name="'+r+'" type="radio" id="tab_')+'" class="w-transition-controller w-'+r+'-controller"/>',e="",d=[],m=0,u=o.length;m<u;m++)d.push(".w-"+r+"-controller.w-transition-controller:not(#tab_"+o[m]+"):checked ~ "+s+"#"+o[m]);for(e+=d.join(",")+"{ position: absolute; -webkit-animation-name: "+a+"; -moz-animation-name: "+a+"; -ms-animation-name: "+a+"; -o-animation-name: "+a+"; animation-name: "+a+"; -webkit-animation-timing-function: ease-out; -moz-animation-timing-function: ease-out; -ms-animation-timing-function: ease-out; -o-animation-timing-function: ease-out; animation-timing-function: ease-out;}",d=[],m=0,u=o.length;m<u;m++)d.push("#tab_"+o[m]+".w-"+r+"-controller.w-transition-controller:checked ~ "+s+"#"+o[m]);return e+=d.join(",")+"{ position: relative; z-index: 10; -webkit-animation-name: "+l+"; -moz-animation-name: "+l+"; -ms-animation-name: "+l+"; -o-animation-name: "+l+"; animation-name: "+l+"; -webkit-animation-timing-function: ease-in; -moz-animation-timing-function: ease-in; -ms-animation-timing-function: ease-in; -o-animation-timing-function: ease-in; animation-timing-function: ease-in;}",E.enqueue("styles","w-tabs-"+i,[e],["htmlwidgets.css"]),c},w_pages:function(e,t,n){var a,i,s,o,l,r=H(e,"id")?e.id:E.uuid(),c=A(e,"context")?"":e.context+" ",d=[].concat(e.pages),m=A(e["3d"])?(o="translateX(0px)",l="translateX(-100%)","translateX(100%)"):(o="translate3d(0px,0px,0px)",l="translate3d(-100%,0px,0px)","translate3d(100%,0px,0px)"),u='<span id="page_'+d.join('" class="w-page-controller"></span><span id="page_')+'" class="w-page-controller"></span>',p="",e=d.shift();for(p+="#"+e+".w-page{ position: relative; -webkit-transform: "+o+"; -moz-transform: "+o+"; -ms-transform: "+o+"; -o-transform: "+o+"; transform: "+o+";}.w-page-controller:not(#page_"+e+"):target ~ "+c+"#"+e+".w-page{ position: absolute; -webkit-transform: "+l+"; -moz-transform: "+l+"; -ms-transform: "+l+"; -o-transform: "+l+"; transform: "+l+"; -webkit-transition: -webkit-transform .3s ease; -moz-transition: -moz-transform .3s ease; -ms-transition: -ms-transform .3s ease; -o-transition: -o-transform .3s ease; transition: transform .3s ease;}",s=[],a=0,i=d.length;a<i;a++)s.push("#page_"+d[a]+".w-page-controller:not(:target) ~ "+c+"#"+d[a]+".w-page");for(p+=s.join(",")+"{ -webkit-transform: "+m+"; -moz-transform: "+m+"; -ms-transform: "+m+"; -o-transform: "+m+"; transform: "+m+";}",s=[],a=0,i=d.length;a<i;a++)s.push("#page_"+d[a]+".w-page-controller:target ~ "+c+"#"+d[a]+".w-page");return p+=s.join(",")+"{ position: relative; -webkit-transform: "+o+"; -moz-transform: "+o+"; -ms-transform: "+o+"; -o-transform: "+o+"; transform: "+o+"; -webkit-transition: -webkit-transform .3s ease; -moz-transition: -moz-transform .3s ease; -ms-transition: -ms-transform .3s ease; -o-transition: -o-transform .3s ease; transition: transform .3s ease;}",E.enqueue("styles","w-pages-"+r,[p],["htmlwidgets.css"]),u},w_animation:function(e,t,n){var a,i=H(e,"id")?e.id:E.uuid("widget_animation"),s=H(e,"selector")?e.selector:".animate-"+i,o=A(e,"animation")?"":e.animation,l=A(e,"transition")?"":e.transition,r=H(e,"duration")?e.duration:"0.5s",c=H(e,"delay")?e.delay:"0s",d=A(e,"timing-function")?"":e["timing-function"],m=A(e,"easing")?"linear":e.easing;return d.length||(d=m),a=A(e,"iteration-count")?"1":e["iteration-count"],m=A(e,"fill-mode")?"both":e["fill-mode"],e="",o.length&&(e+=s+"{-webkit-animation-duration: "+r+";-moz-animation-duration: "+r+";-ms-animation-duration: "+r+";-o-animation-duration: "+r+";animation-duration: "+r+";-webkit-animation-delay: "+c+";-moz-animation-delay: "+c+";-ms-animation-delay: "+c+";-o-animation-delay: "+c+";animation-delay: "+c+";-webkit-animation-iteration-count: "+a+";-moz-animation-iteration-count: "+a+";-ms-animation-iteration-count: "+a+";-o-animation-iteration-count: "+a+";animation-iteration-count: "+a+";-webkit-animation-timing-function: "+d+";-moz-animation-timing-function: "+d+";-ms-animation-timing-function: "+d+";-o-animation-timing-function: "+d+";animation-timing-function: "+d+";-webkit-animation-fill-mode: "+m+";-moz-animation-fill-mode: "+m+";-ms-animation-fill-mode: "+m+";-o-animation-fill-mode: "+m+";animation-fill-mode: "+m+";-webkit-animation-name: "+i+";-moz-animation-name: "+i+";-ms-animation-name: "+i+";-o-animation-name: "+i+";animation-name: "+i+";}@-webkit-keyframes "+i+"{"+o+"}@keyframes "+i+"{"+o+"}"),l.length&&(e+=s+"{-webkit-transition: "+l+" "+r+" "+d+" "+c+";-moz-transition: "+l+" "+r+" "+d+" "+c+";-ms-transition: "+l+" "+r+" "+d+" "+c+";-o-transition: "+l+" "+r+" "+d+" "+c+";transition: "+l+" "+r+" "+d+" "+c+";}"),E.enqueue("styles","w-animation-"+i,[e],["htmlwidgets.css"]),""},w_sprite:function(e,t,n){var a,i,s,o,l,r,c,d,m,u,p,h,w,f,g,b,v=H(e,"id")?e.id:E.uuid("widget_sprite"),y=H(t,"text")?t.text:"",x=H(e,"title")?e.title:y,k=A(e,"style")?"":'style="'+e.style+'"',_=A(e,"extra")?"":e.extra,q=H(e,"animation")?e.animation:"sprite-"+v,j="w-sprite "+q+"-class";return A(e,"class")||(j+=" "+e.class),a=H(e,"sprite")?e.sprite:v,b=H(e,"iteration")?e.iteration:"infinite",o=H(e,"fps")?+e.fps:12,i=H(e,"width")?+e.width:100,s=H(e,"height")?+e.height:100,o=(t=H(e,"rows")?+e.rows:1)*(e=H(e,"columns")?+e.columns:1)/o,b=1<t&&1<e?(l=!0,r="background-position-x",c="background-position-y",m=d="0%",u="-"+100*e+"%",p="-"+100*t+"%",h=q+"-grid-x, "+q+"-grid-y",w=o/t+"s, "+o+"s",f="0s, 0s",g="steps("+e+"), steps("+t+")",b+", "+b):(g=1<t?(l=!1,r="background-position",d="0% 0%",u="0% -"+100*t+"%",h=q+"-grid-x",w=o+"s",f="0s","steps("+t+")"):(l=!1,r="background-position",d="0% 0%",u="-"+100*e+"% 0%",h=q+"-grid-x",w=o+"s",f="0s","steps("+e+")"),b),u="#"+v+".w-sprite."+q+"-class{width: "+i+"px; height: "+s+'px;background-image: url("'+a+'");background-repeat: none;background-position: 0% 0%;background-size: auto auto;-webkit-animation-name: '+h+";-webkit-animation-duration: "+w+";-webkit-animation-delay: "+f+";-webkit-animation-timing-function: "+g+";-webkit-animation-iteration-count: "+b+";-moz-animation-name: "+h+";-moz-animation-duration: "+w+";-moz-animation-delay: "+f+";-moz-animation-timing-function: "+g+";-moz-animation-iteration-count: "+b+";-ms-animation-name: "+h+";-ms-animation-duration: "+w+";-ms-animation-delay: "+f+";-ms-animation-timing-function: "+g+";-ms-animation-iteration-count: "+b+";-o-animation-name: "+h+";-o-animation-duration: "+w+";-o-animation-delay: "+f+";-o-animation-timing-function: "+g+";-o-animation-iteration-count: "+b+";animation-name: "+h+";animation-duration: "+w+";animation-delay: "+f+";animation-timing-function: "+g+";animation-iteration-count: "+b+";}#"+v+".w-sprite.responsive."+q+"-class,#"+v+".w-sprite.sprite-responsive."+q+"-class,#"+v+".w-sprite.w-sprite-responsive."+q+"-class{width: 100% !important; height: auto !important;padding-bottom: "+100*s/i+"% !important;background-size: "+(100*e+"% "+100*t+"%")+" !important;}@-webkit-keyframes "+q+"-grid-x { 0% { "+r+": "+d+"; } 100% { "+r+": "+u+"; }}@-moz-keyframes "+q+"-grid-x { 0% { "+r+": "+d+"; } 100% { "+r+": "+u+"; }}@-ms-keyframes "+q+"-grid-x { 0% { "+r+": "+d+"; } 100% { "+r+": "+u+"; }}@-o-keyframes "+q+"-grid-x { 0% { "+r+": "+d+"; } 100% { "+r+": "+u+"; }}@keyframes "+q+"-grid-x { 0% { "+r+": "+d+"; } 100% { "+r+": "+u+"; }}",l&&(u+="\n@-webkit-keyframes "+q+"-grid-y { 0% { "+c+": "+m+"; } 100% { "+c+": "+p+"; }}@-moz-keyframes "+q+"-grid-y { 0% { "+c+": "+m+"; } 100% { "+c+": "+p+"; }}@-ms-keyframes "+q+"-grid-y { 0% { "+c+": "+m+"; } 100% { "+c+": "+p+"; }}@-o-keyframes "+q+"-grid-y { 0% { "+c+": "+m+"; } 100% { "+c+": "+p+"; }}@keyframes "+q+"-grid-y { 0% { "+c+": "+m+"; } 100% { "+c+": "+p+"; }}"),E.enqueue("styles","w-sprite-"+v,[u],["htmlwidgets.css"]),'<div id="'+v+'" class="'+j+'" title="'+x+'" '+k+" "+_+">"+y+"</div>"}};return e?f.BASE="./":n?f.BASE=__dirname:a?f.BASE=this.location.href.split("/").slice(0,-1).join("/"):(a=document.getElementsByTagName("script"),f.BASE=(a[a.length-1].src||"./").split("/").slice(0,-1).join("/")),f});
|