WordPress.org

Plugin Directory

Changeset 1596721


Ignore:
Timestamp:
02/15/17 17:44:37 (10 months ago)
Author:
EkAndreas
Message:

release 0.2.5

Location:
listig/trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • listig/trunk/composer.json

    r1596578 r1596721  
    11{ 
    22    "name": "ekandreas/listig", 
    3     "version": "0.2.4", 
     3    "version": "0.2.5", 
    44    "description": "List Manager as a WordPress plugin", 
    55    "keywords": ["wordpress","wordpress-plugin","list-manager","query","structures","tool","editorial"], 
  • listig/trunk/dist/app.js

    r1596578 r1596721  
    2424function(e){function t(e,t,n,r){var i,o,a,s,l,u,c,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!r&&((t?t.ownerDocument||t:H)!==O&&L(t),t=t||O,P)){if(11!==h&&(l=ge.exec(e)))if(i=l[1]){if(9===h){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(p&&(a=p.getElementById(i))&&F(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&_.getElementsByClassName&&t.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(i)),n}if(_.qsa&&!V[e+" "]&&(!I||!I.test(e))){if(1!==h)p=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(we,_e):t.setAttribute("id",s=q),u=E(e),o=u.length;o--;)u[o]="#"+s+" "+d(u[o]);c=u.join(","),p=ye.test(e)&&f(t.parentNode)||t}if(c)try{return Q.apply(n,p.querySelectorAll(c)),n}catch(e){}finally{s===q&&t.removeAttribute("id")}}}return A(e.replace(se,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[q]=!0,e}function i(e){var t=O.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)C.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function c(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function f(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function p(){}function d(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function h(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=U++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var u,c,f,p=[B,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(f=t[q]||(t[q]={}),c=f[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[o])&&u[0]===B&&u[1]===s)return p[2]=u[2];if(c[o]=p,p[2]=e(t,n,l))return!0}return!1}}function v(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function g(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function y(e,t,n,i,o,a){return i&&!i[q]&&(i=y(i)),o&&!o[q]&&(o=y(o,a)),r(function(r,a,s,l){var u,c,f,p=[],d=[],h=a.length,v=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?v:g(v,p,e,s,l),b=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,b,s,l),i)for(u=g(b,d),i(u,[],s,l),c=u.length;c--;)(f=u[c])&&(b[d[c]]=!(y[d[c]]=f));if(r){if(o||e){if(o){for(u=[],c=b.length;c--;)(f=b[c])&&u.push(y[c]=f);o(null,b=[],u,l)}for(c=b.length;c--;)(f=b[c])&&(u=o?ee(r,f):p[c])>-1&&(r[u]=!(a[u]=f))}}else b=g(b===a?b.splice(h,b.length):b),o?o(null,a,b,l):Q.apply(a,b)})}function b(e){for(var t,n,r,i=e.length,o=C.relative[e[0].type],a=o||C.relative[" "],s=o?1:0,l=h(function(e){return e===t},a,!0),u=h(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==$)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];s<i;s++)if(n=C.relative[e[s].type])c=[h(v(c),n)];else{if(n=C.filter[e[s].type].apply(null,e[s].matches),n[q]){for(r=++s;r<i&&!C.relative[e[r].type];r++);return y(s>1&&v(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s<r&&b(e.slice(s,r)),r<i&&b(e=e.slice(r)),r<i&&d(e))}c.push(n)}return v(c)}function x(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,l,u){var c,f,p,d=0,h="0",v=r&&[],m=[],y=$,b=r||o&&C.find.TAG("*",u),x=B+=null==y?1:Math.random()||.1,w=b.length;for(u&&($=a===O||a||u);h!==w&&null!=(c=b[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument===O||(L(c),s=!P);p=e[f++];)if(p(c,a||O,s)){l.push(c);break}u&&(B=x)}i&&((c=!p&&c)&&d--,r&&v.push(c))}if(d+=h,i&&h!==d){for(f=0;p=n[f++];)p(v,m,a,s);if(r){if(d>0)for(;h--;)v[h]||m[h]||(m[h]=K.call(l));m=g(m)}Q.apply(l,m),u&&!r&&m.length>0&&d+n.length>1&&t.uniqueSort(l)}return u&&(B=x,$=y),v};return i?r(a):a}var w,_,C,T,k,E,S,A,$,N,D,L,O,j,P,I,R,M,F,q="sizzle"+1*new Date,H=e.document,B=0,U=0,W=n(),X=n(),V=n(),z=function(e,t){return e===t&&(D=!0),0},J={}.hasOwnProperty,Y=[],K=Y.pop,G=Y.push,Q=Y.push,Z=Y.slice,ee=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",oe=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ue=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),pe=new RegExp("^"+re+"$"),de={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ve=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),xe=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,_e=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ce=function(){L()},Te=h(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{Q.apply(Y=Z.call(H.childNodes),H.childNodes),Y[H.childNodes.length].nodeType}catch(e){Q={apply:Y.length?function(e,t){G.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}_=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:H;return r!==O&&9===r.nodeType&&r.documentElement?(O=r,j=O.documentElement,P=!k(O),H!==O&&(n=O.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ce,!1):n.attachEvent&&n.attachEvent("onunload",Ce)),_.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),_.getElementsByTagName=i(function(e){return e.appendChild(O.createComment("")),!e.getElementsByTagName("*").length}),_.getElementsByClassName=me.test(O.getElementsByClassName),_.getById=i(function(e){return j.appendChild(e).id=q,!O.getElementsByName||!O.getElementsByName(q).length}),_.getById?(C.filter.ID=function(e){var t=e.replace(be,xe);return function(e){return e.getAttribute("id")===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n=t.getElementById(e);return n?[n]:[]}}):(C.filter.ID=function(e){var t=e.replace(be,xe);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},C.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n,r,i,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),C.find.TAG=_.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):_.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},C.find.CLASS=_.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&P)return t.getElementsByClassName(e)},R=[],I=[],(_.qsa=me.test(O.querySelectorAll))&&(i(function(e){j.appendChild(e).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||I.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+q+"-]").length||I.push("~="),e.querySelectorAll(":checked").length||I.push(":checked"),e.querySelectorAll("a#"+q+"+*").length||I.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=O.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&I.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&I.push(":enabled",":disabled"),j.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&I.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),I.push(",.*:")})),(_.matchesSelector=me.test(M=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&i(function(e){_.disconnectedMatch=M.call(e,"*"),M.call(e,"[s!='']:x"),R.push("!=",oe)}),I=I.length&&new RegExp(I.join("|")),R=R.length&&new RegExp(R.join("|")),t=me.test(j.compareDocumentPosition),F=t||me.test(j.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},z=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!_.sortDetached&&t.compareDocumentPosition(e)===n?e===O||e.ownerDocument===H&&F(H,e)?-1:t===O||t.ownerDocument===H&&F(H,t)?1:N?ee(N,e)-ee(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],l=[t];if(!i||!o)return e===O?-1:t===O?1:i?-1:o?1:N?ee(N,e)-ee(N,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;s[r]===l[r];)r++;return r?a(s[r],l[r]):s[r]===H?-1:l[r]===H?1:0},O):O},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==O&&L(e),n=n.replace(ce,"='$1']"),_.matchesSelector&&P&&!V[n+" "]&&(!R||!R.test(n))&&(!I||!I.test(n)))try{var r=M.call(e,n);if(r||_.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,O,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==O&&L(e),F(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==O&&L(e);var n=C.attrHandle[t.toLowerCase()],r=n&&J.call(C.attrHandle,t.toLowerCase())?n(e,t,!P):void 0;return void 0!==r?r:_.attributes||!P?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(we,_e)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(D=!_.detectDuplicates,N=!_.sortStable&&e.slice(0),e.sort(z),D){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return N=null,e},T=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=T(t);return n},C=t.selectors={cacheLength:50,createPseudo:r,match:de,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(be,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return de.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=E(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,p,d,h,v=o!==a?"nextSibling":"previousSibling",m=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(m){if(o){for(;v;){for(p=t;p=p[v];)if(s?p.nodeName.toLowerCase()===g:1===p.nodeType)return!1;h=v="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&y){for(p=m,f=p[q]||(p[q]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),u=c[e]||[],d=u[0]===B&&u[1],b=d&&u[2],p=d&&m.childNodes[d];p=++d&&p&&p[v]||(b=d=0)||h.pop();)if(1===p.nodeType&&++b&&p===t){c[e]=[B,d,b];break}}else if(y&&(p=t,f=p[q]||(p[q]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),u=c[e]||[],d=u[0]===B&&u[1],b=d),b===!1)for(;(p=++d&&p&&p[v]||(b=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==g:1!==p.nodeType)||!++b||(y&&(f=p[q]||(p[q]={}),c=f[p.uniqueID]||(f[p.uniqueID]={}),c[e]=[B,b]),p!==t)););return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,n){var i,o=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[q]?o(n):o.length>1?(i=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=S(e.replace(se,"$1"));return i[q]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,xe),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:r(function(e){return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,xe).toLowerCase(),function(t){var n;do if(n=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===j},focus:function(e){return e===O.activeElement&&(!O.hasFocus||O.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:u(!1),disabled:u(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return ve.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[n<0?n+t:n]}),even:c(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},C.pseudos.nth=C.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[w]=s(w);for(w in{submit:!0,reset:!0})C.pseudos[w]=l(w);return p.prototype=C.filters=C.pseudos,C.setFilters=new p,E=t.tokenize=function(e,n){var r,i,o,a,s,l,u,c=X[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=C.preFilter;s;){r&&!(i=le.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=ue.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(se," ")}),s=s.slice(r.length));for(a in C.filter)!(i=de[a].exec(s))||u[a]&&!(i=u[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):X(e,l).slice(0)},S=t.compile=function(e,t){var n,r=[],i=[],o=V[e+" "];if(!o){for(t||(t=E(e)),n=t.length;n--;)o=b(t[n]),o[q]?r.push(o):i.push(o);o=V(e,x(i,r)),o.selector=e}return o},A=t.select=function(e,t,n,r){var i,o,a,s,l,u="function"==typeof e&&e,c=!r&&E(e=u.selector||e);if(n=n||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&9===t.nodeType&&P&&C.relative[o[1].type]){if(t=(C.find.ID(a.matches[0].replace(be,xe),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=de.needsContext.test(e)?0:o.length;i--&&(a=o[i],!C.relative[s=a.type]);)if((l=C.find[s])&&(r=l(a.matches[0].replace(be,xe),ye.test(o[0].type)&&f(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return Q.apply(n,r),n;break}}return(u||S(e,c))(r,t,!P,n,!t||ye.test(e)&&f(t.parentNode)||t),n},_.sortStable=q.split("").sort(z).join("")===q,_.detectDuplicates=!!D,L(),_.sortDetached=i(function(e){return 1&e.compareDocumentPosition(O.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),_.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(n);ye.find=Ce,ye.expr=Ce.selectors,ye.expr[":"]=ye.expr.pseudos,ye.uniqueSort=ye.unique=Ce.uniqueSort,ye.text=Ce.getText,ye.isXMLDoc=Ce.isXML,ye.contains=Ce.contains,ye.escapeSelector=Ce.escape;var Te=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&ye(e).is(n))break;r.push(e)}return r},ke=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Ee=ye.expr.match.needsContext,Se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Ae=/^.[^:#\[\.,]*$/;ye.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ye.find.matchesSelector(r,e)?[r]:[]:ye.find.matches(e,ye.grep(t,function(e){return 1===e.nodeType}))},ye.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ye(e).filter(function(){for(t=0;t<r;t++)if(ye.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ye.find(e,i[t],n);return r>1?ye.uniqueSort(n):n},filter:function(e){return this.pushStack(l(this,e||[],!1))},not:function(e){return this.pushStack(l(this,e||[],!0))},is:function(e){return!!l(this,"string"==typeof e&&Ee.test(e)?ye(e):e||[],!1).length}});var $e,Ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,De=ye.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||$e,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ne.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ye?t[0]:t,ye.merge(this,ye.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:oe,!0)),Se.test(r[1])&&ye.isPlainObject(t))for(r in t)ye.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=oe.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ye.isFunction(e)?void 0!==n.ready?n.ready(e):e(ye):ye.makeArray(e,this)};De.prototype=ye.fn,$e=ye(oe);var Le=/^(?:parents|prev(?:Until|All))/,Oe={children:!0,contents:!0,next:!0,prev:!0};ye.fn.extend({has:function(e){var t=ye(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ye.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ye(e);if(!Ee.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ye.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?ye.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?ce.call(ye(e),this[0]):ce.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ye.uniqueSort(ye.merge(this.get(),ye(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ye.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Te(e,"parentNode")},parentsUntil:function(e,t,n){return Te(e,"parentNode",n)},next:function(e){return u(e,"nextSibling")},prev:function(e){return u(e,"previousSibling")},nextAll:function(e){return Te(e,"nextSibling")},prevAll:function(e){return Te(e,"previousSibling")},nextUntil:function(e,t,n){return Te(e,"nextSibling",n)},prevUntil:function(e,t,n){return Te(e,"previousSibling",n)},siblings:function(e){return ke((e.parentNode||{}).firstChild,e)},children:function(e){return ke(e.firstChild)},contents:function(e){return e.contentDocument||ye.merge([],e.childNodes)}},function(e,t){ye.fn[e]=function(n,r){var i=ye.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ye.filter(r,i)),this.length>1&&(Oe[e]||ye.uniqueSort(i),Le.test(e)&&i.reverse()),this.pushStack(i)}});var je=/[^\x20\t\r\n\f]+/g;ye.Callbacks=function(e){e="string"==typeof e?c(e):ye.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)o[s].apply(n[0],n[1])===!1&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){ye.each(n,function(n,r){ye.isFunction(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==ye.type(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return ye.each(arguments,function(e,t){for(var n;(n=ye.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?ye.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},ye.extend({Deferred:function(e){var t=[["notify","progress",ye.Callbacks("memory"),ye.Callbacks("memory"),2],["resolve","done",ye.Callbacks("once memory"),ye.Callbacks("once memory"),0,"resolved"],["reject","fail",ye.Callbacks("once memory"),ye.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return ye.Deferred(function(n){ye.each(t,function(t,r){var i=ye.isFunction(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&ye.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,r,i){function o(e,t,r,i){return function(){var s=this,l=arguments,u=function(){var n,u;if(!(e<a)){if(n=r.apply(s,l),n===t.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,ye.isFunction(u)?i?u.call(n,o(a,t,f,i),o(a,t,p,i)):(a++,u.call(n,o(a,t,f,i),o(a,t,p,i),o(a,t,f,t.notifyWith))):(r!==f&&(s=void 0,l=[n]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(n){ye.Deferred.exceptionHook&&ye.Deferred.exceptionHook(n,c.stackTrace),e+1>=a&&(r!==p&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?c():(ye.Deferred.getStackHook&&(c.stackTrace=ye.Deferred.getStackHook()),n.setTimeout(c))}}var a=0;return ye.Deferred(function(n){t[0][3].add(o(0,n,ye.isFunction(i)?i:f,n.notifyWith)),t[1][3].add(o(0,n,ye.isFunction(e)?e:f)),t[2][3].add(o(0,n,ye.isFunction(r)?r:p))}).promise()},promise:function(e){return null!=e?ye.extend(e,i):i}},o={};return ye.each(t,function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},t[3-e][2].disable,t[0][2].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=se.call(arguments),o=ye.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?se.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(d(e,o.done(a(n)).resolve,o.reject),"pending"===o.state()||ye.isFunction(i[n]&&i[n].then)))return o.then();for(;n--;)d(i[n],a(n),o.reject);return o.promise()}});var Pe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ye.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Pe.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ye.readyException=function(e){n.setTimeout(function(){throw e})};var Ie=ye.Deferred();ye.fn.ready=function(e){return Ie.then(e).catch(function(e){ye.readyException(e)}),this},ye.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ye.readyWait++:ye.ready(!0)},ready:function(e){(e===!0?--ye.readyWait:ye.isReady)||(ye.isReady=!0,e!==!0&&--ye.readyWait>0||Ie.resolveWith(oe,[ye]))}}),ye.ready.then=Ie.then,"complete"===oe.readyState||"loading"!==oe.readyState&&!oe.documentElement.doScroll?n.setTimeout(ye.ready):(oe.addEventListener("DOMContentLoaded",h),n.addEventListener("load",h));var Re=function(e,t,n,r,i,o,a){var s=0,l=e.length,u=null==n;if("object"===ye.type(n)){i=!0;for(s in n)Re(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,ye.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(ye(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:u?t.call(e):l?t(e[0],n):o},Me=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};v.uid=1,v.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Me(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[ye.camelCase(t)]=n;else for(r in t)i[ye.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ye.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){ye.isArray(t)?t=t.map(ye.camelCase):(t=ye.camelCase(t),t=t in r?[t]:t.match(je)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||ye.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ye.isEmptyObject(t)}};var Fe=new v,qe=new v,He=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Be=/[A-Z]/g;ye.extend({hasData:function(e){return qe.hasData(e)||Fe.hasData(e)},data:function(e,t,n){return qe.access(e,t,n)},removeData:function(e,t){qe.remove(e,t)},_data:function(e,t,n){return Fe.access(e,t,n)},_removeData:function(e,t){Fe.remove(e,t)}}),ye.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=qe.get(o),1===o.nodeType&&!Fe.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=ye.camelCase(r.slice(5)),g(o,r,i[r])));Fe.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){qe.set(this,e)}):Re(this,function(t){var n;if(o&&void 0===t){if(n=qe.get(o,e),void 0!==n)return n;if(n=g(o,e),void 0!==n)return n}else this.each(function(){qe.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){qe.remove(this,e)})}}),ye.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Fe.get(e,t),n&&(!r||ye.isArray(n)?r=Fe.access(e,t,ye.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ye.queue(e,t),r=n.length,i=n.shift(),o=ye._queueHooks(e,t),a=function(){ye.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Fe.get(e,n)||Fe.access(e,n,{empty:ye.Callbacks("once memory").add(function(){Fe.remove(e,[t+"queue",n])})})}}),ye.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ye.queue(this[0],e):void 0===t?this:this.each(function(){var n=ye.queue(this,e,t);ye._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ye.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ye.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ye.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=Fe.get(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Ue=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,We=new RegExp("^(?:([+-])=|)("+Ue+")([a-z%]*)$","i"),Xe=["Top","Right","Bottom","Left"],Ve=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&ye.contains(e.ownerDocument,e)&&"none"===ye.css(e,"display")},ze=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i},Je={};ye.fn.extend({show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ve(this)?ye(this).show():ye(this).hide()})}});var Ye=/^(?:checkbox|radio)$/i,Ke=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Ge=/^$|\/(?:java|ecma)script/i,Qe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Qe.optgroup=Qe.option,Qe.tbody=Qe.tfoot=Qe.colgroup=Qe.caption=Qe.thead,Qe.th=Qe.td; 
    2525var Ze=/<|&#?\w+;/;!function(){var e=oe.createDocumentFragment(),t=e.appendChild(oe.createElement("div")),n=oe.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),me.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",me.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var et=oe.documentElement,tt=/^key/,nt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,rt=/^([^.]*)(?:\.(.+)|)/;ye.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,f,p,d,h,v,m=Fe.get(e);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),i&&ye.find.matchesSelector(et,i),n.guid||(n.guid=ye.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(t){return"undefined"!=typeof ye&&ye.event.triggered!==t.type?ye.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(je)||[""],u=t.length;u--;)s=rt.exec(t[u])||[],d=v=s[1],h=(s[2]||"").split(".").sort(),d&&(f=ye.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ye.event.special[d]||{},c=ye.extend({type:d,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ye.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=l[d])||(p=l[d]=[],p.delegateCount=0,f.setup&&f.setup.call(e,r,h,a)!==!1||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ye.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,u,c,f,p,d,h,v,m=Fe.hasData(e)&&Fe.get(e);if(m&&(l=m.events)){for(t=(t||"").match(je)||[""],u=t.length;u--;)if(s=rt.exec(t[u])||[],d=v=s[1],h=(s[2]||"").split(".").sort(),d){for(f=ye.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=l[d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&v!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||ye.removeEvent(e,d,m.handle),delete l[d])}else for(d in l)ye.event.remove(e,d+t[u],n,r,!0);ye.isEmptyObject(l)&&Fe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=ye.event.fix(e),l=new Array(arguments.length),u=(Fe.get(this,"events")||{})[s.type]||[],c=ye.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,s)!==!1){for(a=ye.event.handlers.call(this,s,u),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,r=((ye.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,l),void 0!==r&&(s.result=r)===!1&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||u.disabled!==!0)){for(o=[],a={},n=0;n<l;n++)r=t[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?ye(i,this).index(u)>-1:ye.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(ye.Event.prototype,e,{enumerable:!0,configurable:!0,get:ye.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[ye.expando]?e:new ye.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==E()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===E()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ye.nodeName(this,"input"))return this.click(),!1},_default:function(e){return ye.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ye.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ye.Event=function(e,t){return this instanceof ye.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?T:k,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ye.extend(this,t),this.timeStamp=e&&e.timeStamp||ye.now(),void(this[ye.expando]=!0)):new ye.Event(e,t)},ye.Event.prototype={constructor:ye.Event,isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=T,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=T,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=T,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ye.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&tt.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&nt.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},ye.event.addProp),ye.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ye.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||ye.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),ye.fn.extend({on:function(e,t,n,r){return S(this,e,t,n,r)},one:function(e,t,n,r){return S(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ye(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=k),this.each(function(){ye.event.remove(this,e,n,t)})}});var it=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ot=/<script|<style|<link/i,at=/checked\s*(?:[^=]|=\s*.checked.)/i,st=/^true\/(.*)/,lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ye.extend({htmlPrefilter:function(e){return e.replace(it,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=ye.contains(e.ownerDocument,e);if(!(me.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ye.isXMLDoc(e)))for(a=w(s),o=w(e),r=0,i=o.length;r<i;r++)L(o[r],a[r]);if(t)if(n)for(o=o||w(e),a=a||w(s),r=0,i=o.length;r<i;r++)D(o[r],a[r]);else D(e,s);return a=w(s,"script"),a.length>0&&_(a,!l&&w(e,"script")),s},cleanData:function(e){for(var t,n,r,i=ye.event.special,o=0;void 0!==(n=e[o]);o++)if(Me(n)){if(t=n[Fe.expando]){if(t.events)for(r in t.events)i[r]?ye.event.remove(n,r):ye.removeEvent(n,r,t.handle);n[Fe.expando]=void 0}n[qe.expando]&&(n[qe.expando]=void 0)}}}),ye.fn.extend({detach:function(e){return j(this,e,!0)},remove:function(e){return j(this,e)},text:function(e){return Re(this,function(e){return void 0===e?ye.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return O(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=A(this,e);t.appendChild(e)}})},prepend:function(){return O(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=A(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return O(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return O(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ye.cleanData(w(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ye.clone(this,e,t)})},html:function(e){return Re(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ot.test(e)&&!Qe[(Ke.exec(e)||["",""])[1].toLowerCase()]){e=ye.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(ye.cleanData(w(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return O(this,arguments,function(t){var n=this.parentNode;ye.inArray(this,e)<0&&(ye.cleanData(w(this)),n&&n.replaceChild(t,this))},e)}}),ye.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ye.fn[e]=function(e){for(var n,r=[],i=ye(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),ye(i[a])[t](n),ue.apply(r,n.get());return this.pushStack(r)}});var ut=/^margin/,ct=new RegExp("^("+Ue+")(?!px)[a-z%]+$","i"),ft=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)};!function(){function e(){if(s){s.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",et.appendChild(a);var e=n.getComputedStyle(s);t="1%"!==e.top,o="2px"===e.marginLeft,r="4px"===e.width,s.style.marginRight="50%",i="4px"===e.marginRight,et.removeChild(a),s=null}}var t,r,i,o,a=oe.createElement("div"),s=oe.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",me.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),ye.extend(me,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return e(),r},pixelMarginRight:function(){return e(),i},reliableMarginLeft:function(){return e(),o}}))}();var pt=/^(none|table(?!-c[ea]).+)/,dt={position:"absolute",visibility:"hidden",display:"block"},ht={letterSpacing:"0",fontWeight:"400"},vt=["Webkit","Moz","ms"],mt=oe.createElement("div").style;ye.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=P(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=ye.camelCase(t),l=e.style;return t=ye.cssProps[s]||(ye.cssProps[s]=R(s)||s),a=ye.cssHooks[t]||ye.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t]:(o=typeof n,"string"===o&&(i=We.exec(n))&&i[1]&&(n=y(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(ye.cssNumber[s]?"":"px")),me.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l[t]=n)),void 0)}},css:function(e,t,n,r){var i,o,a,s=ye.camelCase(t);return t=ye.cssProps[s]||(ye.cssProps[s]=R(s)||s),a=ye.cssHooks[t]||ye.cssHooks[s],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=P(e,t,r)),"normal"===i&&t in ht&&(i=ht[t]),""===n||n?(o=parseFloat(i),n===!0||isFinite(o)?o||0:i):i}}),ye.each(["height","width"],function(e,t){ye.cssHooks[t]={get:function(e,n,r){if(n)return!pt.test(ye.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?q(e,t,r):ze(e,dt,function(){return q(e,t,r)})},set:function(e,n,r){var i,o=r&&ft(e),a=r&&F(e,t,r,"border-box"===ye.css(e,"boxSizing",!1,o),o);return a&&(i=We.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=ye.css(e,t)),M(e,n,a)}}}),ye.cssHooks.marginLeft=I(me.reliableMarginLeft,function(e,t){if(t)return(parseFloat(P(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ye.each({margin:"",padding:"",border:"Width"},function(e,t){ye.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Xe[r]+t]=o[r]||o[r-2]||o[0];return i}},ut.test(e)||(ye.cssHooks[e+t].set=M)}),ye.fn.extend({css:function(e,t){return Re(this,function(e,t,n){var r,i,o={},a=0;if(ye.isArray(t)){for(r=ft(e),i=t.length;a<i;a++)o[t[a]]=ye.css(e,t[a],!1,r);return o}return void 0!==n?ye.style(e,t,n):ye.css(e,t)},e,t,arguments.length>1)}}),ye.Tween=H,H.prototype={constructor:H,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ye.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ye.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=ye.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ye.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ye.fx.step[e.prop]?ye.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ye.cssProps[e.prop]]&&!ye.cssHooks[e.prop]?e.elem[e.prop]=e.now:ye.style(e.elem,e.prop,e.now+e.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ye.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ye.fx=H.prototype.init,ye.fx.step={};var gt,yt,bt=/^(?:toggle|show|hide)$/,xt=/queueHooks$/;ye.Animation=ye.extend(J,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return y(n.elem,e,We.exec(t),n),n}]},tweener:function(e,t){ye.isFunction(e)?(t=e,e=["*"]):e=e.match(je);for(var n,r=0,i=e.length;r<i;r++)n=e[r],J.tweeners[n]=J.tweeners[n]||[],J.tweeners[n].unshift(t)},prefilters:[V],prefilter:function(e,t){t?J.prefilters.unshift(e):J.prefilters.push(e)}}),ye.speed=function(e,t,n){var r=e&&"object"==typeof e?ye.extend({},e):{complete:n||!n&&t||ye.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ye.isFunction(t)&&t};return ye.fx.off||oe.hidden?r.duration=0:"number"!=typeof r.duration&&(r.duration in ye.fx.speeds?r.duration=ye.fx.speeds[r.duration]:r.duration=ye.fx.speeds._default),null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){ye.isFunction(r.old)&&r.old.call(this),r.queue&&ye.dequeue(this,r.queue)},r},ye.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ve).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ye.isEmptyObject(e),o=ye.speed(t,n,r),a=function(){var t=J(this,ye.extend({},e),o);(i||Fe.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=ye.timers,a=Fe.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&xt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||ye.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Fe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=ye.timers,a=r?r.length:0;for(n.finish=!0,ye.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ye.each(["toggle","show","hide"],function(e,t){var n=ye.fn[t];ye.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(W(t,!0),e,r,i)}}),ye.each({slideDown:W("show"),slideUp:W("hide"),slideToggle:W("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ye.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ye.timers=[],ye.fx.tick=function(){var e,t=0,n=ye.timers;for(gt=ye.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||ye.fx.stop(),gt=void 0},ye.fx.timer=function(e){ye.timers.push(e),e()?ye.fx.start():ye.timers.pop()},ye.fx.interval=13,ye.fx.start=function(){yt||(yt=n.requestAnimationFrame?n.requestAnimationFrame(B):n.setInterval(ye.fx.tick,ye.fx.interval))},ye.fx.stop=function(){n.cancelAnimationFrame?n.cancelAnimationFrame(yt):n.clearInterval(yt),yt=null},ye.fx.speeds={slow:600,fast:200,_default:400},ye.fn.delay=function(e,t){return e=ye.fx?ye.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}})},function(){var e=oe.createElement("input"),t=oe.createElement("select"),n=t.appendChild(oe.createElement("option"));e.type="checkbox",me.checkOn=""!==e.value,me.optSelected=n.selected,e=oe.createElement("input"),e.value="t",e.type="radio",me.radioValue="t"===e.value}();var wt,_t=ye.expr.attrHandle;ye.fn.extend({attr:function(e,t){return Re(this,ye.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ye.removeAttr(this,e)})}}),ye.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ye.prop(e,t,n):(1===o&&ye.isXMLDoc(e)||(i=ye.attrHooks[t.toLowerCase()]||(ye.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void ye.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=ye.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!me.radioValue&&"radio"===t&&ye.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(je);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return t===!1?ye.removeAttr(e,n):e.setAttribute(n,n),n}},ye.each(ye.expr.match.bool.source.match(/\w+/g),function(e,t){var n=_t[t]||ye.find.attr;_t[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=_t[a],_t[a]=i,i=null!=n(e,t,r)?a:null,_t[a]=o),i}});var Ct=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;ye.fn.extend({prop:function(e,t){return Re(this,ye.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ye.propFix[e]||e]})}}),ye.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ye.isXMLDoc(e)||(t=ye.propFix[t]||t,i=ye.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ye.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),me.optSelected||(ye.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ye.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ye.propFix[this.toLowerCase()]=this}),ye.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(ye.isFunction(e))return this.each(function(t){ye(this).addClass(e.call(this,t,K(this)))});if("string"==typeof e&&e)for(t=e.match(je)||[];n=this[l++];)if(i=K(n),r=1===n.nodeType&&" "+Y(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=Y(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(ye.isFunction(e))return this.each(function(t){ye(this).removeClass(e.call(this,t,K(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(je)||[];n=this[l++];)if(i=K(n),r=1===n.nodeType&&" "+Y(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=Y(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ye.isFunction(e)?this.each(function(n){ye(this).toggleClass(e.call(this,n,K(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=ye(this),o=e.match(je)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=K(this),t&&Fe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Fe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Y(K(n))+" ").indexOf(t)>-1)return!0;return!1}});var kt=/\r/g;ye.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=ye.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,ye(this).val()):e,null==i?i="":"number"==typeof i?i+="":ye.isArray(i)&&(i=ye.map(i,function(e){return null==e?"":e+""})),t=ye.valHooks[this.type]||ye.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=ye.valHooks[i.type]||ye.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(kt,""):null==n?"":n)}}}),ye.extend({valHooks:{option:{get:function(e){var t=ye.find.attr(e,"value");return null!=t?t:Y(ye.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(n=i[r],(n.selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!ye.nodeName(n.parentNode,"optgroup"))){if(t=ye(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=ye.makeArray(t),a=i.length;a--;)r=i[a],(r.selected=ye.inArray(ye.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ye.each(["radio","checkbox"],function(){ye.valHooks[this]={set:function(e,t){if(ye.isArray(t))return e.checked=ye.inArray(ye(e).val(),t)>-1}},me.checkOn||(ye.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=/^(?:focusinfocus|focusoutblur)$/;ye.extend(ye.event,{trigger:function(e,t,r,i){var o,a,s,l,u,c,f,p=[r||oe],d=de.call(e,"type")?e.type:e,h=de.call(e,"namespace")?e.namespace.split("."):[];if(a=s=r=r||oe,3!==r.nodeType&&8!==r.nodeType&&!Et.test(d+ye.event.triggered)&&(d.indexOf(".")>-1&&(h=d.split("."),d=h.shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,e=e[ye.expando]?e:new ye.Event(d,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:ye.makeArray(t,[e]),f=ye.event.special[d]||{},i||!f.trigger||f.trigger.apply(r,t)!==!1)){if(!i&&!f.noBubble&&!ye.isWindow(r)){for(l=f.delegateType||d,Et.test(l+d)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||oe)&&p.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)e.type=o>1?l:f.bindType||d,c=(Fe.get(a,"events")||{})[e.type]&&Fe.get(a,"handle"),c&&c.apply(a,t),c=u&&a[u],c&&c.apply&&Me(a)&&(e.result=c.apply(a,t),e.result===!1&&e.preventDefault());return e.type=d,i||e.isDefaultPrevented()||f._default&&f._default.apply(p.pop(),t)!==!1||!Me(r)||u&&ye.isFunction(r[d])&&!ye.isWindow(r)&&(s=r[u],s&&(r[u]=null),ye.event.triggered=d,r[d](),ye.event.triggered=void 0,s&&(r[u]=s)),e.result}},simulate:function(e,t,n){var r=ye.extend(new ye.Event,n,{type:e,isSimulated:!0});ye.event.trigger(r,null,t)}}),ye.fn.extend({trigger:function(e,t){return this.each(function(){ye.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ye.event.trigger(e,t,n,!0)}}),ye.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){ye.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ye.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),me.focusin="onfocusin"in n,me.focusin||ye.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ye.event.simulate(t,e.target,ye.event.fix(e))};ye.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Fe.access(r,t);i||r.addEventListener(e,n,!0),Fe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Fe.access(r,t)-1;i?Fe.access(r,t,i):(r.removeEventListener(e,n,!0),Fe.remove(r,t))}}});var St=n.location,At=ye.now(),$t=/\?/;ye.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ye.error("Invalid XML: "+e),t};var Nt=/\[\]$/,Dt=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;ye.param=function(e,t){var n,r=[],i=function(e,t){var n=ye.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(ye.isArray(e)||e.jquery&&!ye.isPlainObject(e))ye.each(e,function(){i(this.name,this.value)});else for(n in e)G(n,e[n],t,i);return r.join("&")},ye.fn.extend({serialize:function(){return ye.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ye.prop(this,"elements");return e?ye.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ye(this).is(":disabled")&&Ot.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!Ye.test(e))}).map(function(e,t){var n=ye(this).val();return null==n?null:ye.isArray(n)?ye.map(n,function(e){return{name:t.name,value:e.replace(Dt,"\r\n")}}):{name:t.name,value:n.replace(Dt,"\r\n")}}).get()}});var jt=/%20/g,Pt=/#.*$/,It=/([?&])_=[^&]*/,Rt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Mt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ft=/^(?:GET|HEAD)$/,qt=/^\/\//,Ht={},Bt={},Ut="*/".concat("*"),Wt=oe.createElement("a");Wt.href=St.href,ye.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:Mt.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ye.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ee(ee(e,ye.ajaxSettings),t):ee(ye.ajaxSettings,e)},ajaxPrefilter:Q(Ht),ajaxTransport:Q(Bt),ajax:function(e,t){function r(e,t,r,s){var u,p,d,x,w,_=t;c||(c=!0,l&&n.clearTimeout(l),i=void 0,a=s||"",C.readyState=e>0?4:0,u=e>=200&&e<300||304===e,r&&(x=te(h,C,r)),x=ne(h,x,C,u),u?(h.ifModified&&(w=C.getResponseHeader("Last-Modified"),w&&(ye.lastModified[o]=w),w=C.getResponseHeader("etag"),w&&(ye.etag[o]=w)),204===e||"HEAD"===h.type?_="nocontent":304===e?_="notmodified":(_=x.state,p=x.data,d=x.error,u=!d)):(d=_,!e&&_||(_="error",e<0&&(e=0))),C.status=e,C.statusText=(t||_)+"",u?g.resolveWith(v,[p,_,C]):g.rejectWith(v,[C,_,d]),C.statusCode(b),b=void 0,f&&m.trigger(u?"ajaxSuccess":"ajaxError",[C,h,u?p:d]),y.fireWith(v,[C,_]),f&&(m.trigger("ajaxComplete",[C,h]),--ye.active||ye.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,o,a,s,l,u,c,f,p,d,h=ye.ajaxSetup({},t),v=h.context||h,m=h.context&&(v.nodeType||v.jquery)?ye(v):ye.event,g=ye.Deferred(),y=ye.Callbacks("once memory"),b=h.statusCode||{},x={},w={},_="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Rt.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||_;return i&&i.abort(t),r(0,t),this}};if(g.promise(C),h.url=((e||h.url||St.href)+"").replace(qt,St.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(je)||[""],null==h.crossDomain){u=oe.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=Wt.protocol+"//"+Wt.host!=u.protocol+"//"+u.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ye.param(h.data,h.traditional)),Z(Ht,h,t,C),c)return C;f=ye.event&&h.global,f&&0===ye.active++&&ye.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ft.test(h.type),o=h.url.replace(Pt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(jt,"+")):(d=h.url.slice(o.length),h.data&&(o+=($t.test(o)?"&":"?")+h.data,delete h.data),h.cache===!1&&(o=o.replace(It,"$1"),d=($t.test(o)?"&":"?")+"_="+At++ +d),h.url=o+d),h.ifModified&&(ye.lastModified[o]&&C.setRequestHeader("If-Modified-Since",ye.lastModified[o]),ye.etag[o]&&C.setRequestHeader("If-None-Match",ye.etag[o])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ut+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)C.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(h.beforeSend.call(v,C,h)===!1||c))return C.abort();if(_="abort",y.add(h.complete),C.done(h.success),C.fail(h.error),i=Z(Bt,h,t,C)){if(C.readyState=1,f&&m.trigger("ajaxSend",[C,h]),c)return C;h.async&&h.timeout>0&&(l=n.setTimeout(function(){C.abort("timeout")},h.timeout));try{c=!1,i.send(x,r)}catch(e){if(c)throw e;r(-1,e)}}else r(-1,"No Transport");return C},getJSON:function(e,t,n){return ye.get(e,t,n,"json")},getScript:function(e,t){return ye.get(e,void 0,t,"script")}}),ye.each(["get","post"],function(e,t){ye[t]=function(e,n,r,i){return ye.isFunction(n)&&(i=i||r,r=n,n=void 0),ye.ajax(ye.extend({url:e,type:t,dataType:i,data:n,success:r},ye.isPlainObject(e)&&e))}}),ye._evalUrl=function(e){return ye.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ye.fn.extend({wrapAll:function(e){var t;return this[0]&&(ye.isFunction(e)&&(e=e.call(this[0])),t=ye(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ye.isFunction(e)?this.each(function(t){ye(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ye(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ye.isFunction(e);return this.each(function(n){ye(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ 
    26 ye(this).replaceWith(this.childNodes)}),this}}),ye.expr.pseudos.hidden=function(e){return!ye.expr.pseudos.visible(e)},ye.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ye.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},Vt=ye.ajaxSettings.xhr();me.cors=!!Vt&&"withCredentials"in Vt,me.ajax=Vt=!!Vt,ye.ajaxTransport(function(e){var t,r;if(me.cors||Vt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Xt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),ye.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ye.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ye.globalEval(e),e}}}),ye.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ye.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=ye("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),oe.head.appendChild(t[0])},abort:function(){n&&n()}}}});var zt=[],Jt=/(=)\?(?=&|$)|\?\?/;ye.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||ye.expando+"_"+At++;return this[e]=!0,e}}),ye.ajaxPrefilter("json jsonp",function(e,t,r){var i,o,a,s=e.jsonp!==!1&&(Jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=ye.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Jt,"$1"+i):e.jsonp!==!1&&(e.url+=($t.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||ye.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?ye(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,zt.push(i)),a&&ye.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),me.createHTMLDocument=function(){var e=oe.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),ye.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(me.createHTMLDocument?(t=oe.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=oe.location.href,t.head.appendChild(r)):t=oe),i=Se.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=C([e],t,o),o&&o.length&&ye(o).remove(),ye.merge([],i.childNodes))},ye.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=Y(e.slice(s)),e=e.slice(0,s)),ye.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&ye.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ye("<div>").append(ye.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ye.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ye.fn[t]=function(e){return this.on(t,e)}}),ye.expr.pseudos.animated=function(e){return ye.grep(ye.timers,function(t){return e===t.elem}).length},ye.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u,c=ye.css(e,"position"),f=ye(e),p={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=ye.css(e,"top"),l=ye.css(e,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),ye.isFunction(t)&&(t=t.call(e,n,ye.extend({},s))),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+i),"using"in t?t.using.call(e,p):f.css(p)}},ye.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ye.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),r.width||r.height?(i=o.ownerDocument,n=re(i),t=i.documentElement,{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===ye.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ye.nodeName(e[0],"html")||(r=e.offset()),r={top:r.top+ye.css(e[0],"borderTopWidth",!0),left:r.left+ye.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-ye.css(n,"marginTop",!0),left:t.left-r.left-ye.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===ye.css(e,"position");)e=e.offsetParent;return e||et})}}),ye.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;ye.fn[e]=function(r){return Re(this,function(e,r,i){var o=re(e);return void 0===i?o?o[t]:e[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i)},e,r,arguments.length)}}),ye.each(["top","left"],function(e,t){ye.cssHooks[t]=I(me.pixelPosition,function(e,n){if(n)return n=P(e,t),ct.test(n)?ye(e).position()[t]+"px":n})}),ye.each({Height:"height",Width:"width"},function(e,t){ye.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ye.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||o===!0?"margin":"border");return Re(this,function(t,n,i){var o;return ye.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?ye.css(t,n,s):ye.style(t,n,i,s)},t,a?i:void 0,a)}})}),ye.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),ye.parseJSON=JSON.parse,r=[],i=function(){return ye}.apply(t,r),!(void 0!==i&&(e.exports=i));var Yt=n.jQuery,Kt=n.$;return ye.noConflict=function(e){return n.$===ye&&(n.$=Kt),e&&n.jQuery===ye&&(n.jQuery=Yt),ye},o||(n.jQuery=n.$=ye),ye})},function(e,t,n){"use strict";var r=n(0),i=n(20),o=n(23),a=n(29),s=n(27),l=n(9),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(22);e.exports=function(e){return new Promise(function(t,c){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",v=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||s(e.url)||(d=new window.XDomainRequest,h="onload",v=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var m=e.auth.username||"",g=e.auth.password||"";p.Authorization="Basic "+u(m+":"+g)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||v)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,o={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};i(t,c,o),d=null}},d.onerror=function(){c(l("Network Error",e)),d=null},d.ontimeout=function(){c(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED")),d=null},r.isStandardBrowserEnv()){var y=n(25),b=(e.withCredentials||s(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}if("setRequestHeader"in d&&r.forEach(p,function(e,t){"undefined"==typeof f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(e){if("json"!==d.responseType)throw e}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),c(e),d=null)}),void 0===f&&(f=null),d.send(f)})}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(19);e.exports=function(e,t,n,i){var o=new Error(e);return r(o,t,n,i)}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){(function(e){n(41),e(function(e){e("#listig-main-page").length&&new Vue({template:"<main-page></main-page>",component:ListigMainPage,el:"#listig-main-page"}),e("#listig-help-page").length&&new Vue({template:"<help-page></help-page>",component:ListigHelpPage,el:"#listig-help-page"}),e("#listig-settings-page").length&&new Vue({template:"<settings-page></settings-page>",component:ListigSettingsPage,el:"#listig-settings-page"})})}).call(t,n(5))},function(e,t){},function(e,t,n){e.exports=n(14)},function(e,t,n){"use strict";function r(e){var t=new a(e),n=o(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var i=n(0),o=n(10),a=n(16),s=n(4),l=r(s);l.Axios=a,l.create=function(e){return r(i.merge(s,e))},l.Cancel=n(7),l.CancelToken=n(15),l.isCancel=n(8),l.all=function(e){return Promise.all(e)},l.spread=n(30),e.exports=l,e.exports.default=l},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new i(e),t(n.reason))})}var i=n(7);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var i=n(4),o=n(0),a=n(17),s=n(18),l=n(26),u=n(24);r.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),e=o.merge(i,this.defaults,{method:"get"},e),e.baseURL&&!l(e.url)&&(e.url=u(e.baseURL,e.url));var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head"],function(e){r.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";function r(){this.handlers=[]}var i=n(0);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var i=n(0),o=n(21),a=n(8),s=n(4);e.exports=function(e){r(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||s.adapter;return t(e).then(function(t){return r(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){return e.config=t,n&&(e.code=n),e.response=r,e}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n)):e(n)}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function i(e){for(var t,n,i=String(e),a="",s=0,l=o;i.charAt(0|s)||(l="=",s%1);a+=l.charAt(63&t>>8-s%1*8)){if(n=i.charCodeAt(s+=.75),n>255)throw new r;t=t<<8|n}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=i},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(0);e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(i.isArray(e)&&(t+="[]"),i.isArray(e)||(e=[e]),i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),o=a.join("&")}return o&&(e+=(e.indexOf("?")===-1?"?":"&")+o),e}},function(e,t,n){"use strict";e.exports=function(e,t){return e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(i.setAttribute("href",t),t=i.href),i.setAttribute("href",t),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return t=e(window.location.href),function(n){var i=r.isString(n)?e(n):n;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e){var t,n,i,o={};return e?(r.forEach(e.split("\n"),function(e){i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t&&(o[t]=o[t]?o[t]+", "+n:n)}),o):o}},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={mounted:function(){},created:function(){var e=this;window.eventBus.$on("list-edit",function(t){e.edit(t)})},data:function(){return{moduleClass:"modal",form:{id:0,name:"",description:"",private:!1,posts:[]},lang:listig.lang}},methods:{edit:function(e){var t=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.get(listig.restUrl+"/listing/"+e).then(function(e){t.form.id=e.data.id,t.form.name=e.data.name,t.form.description=e.data.description,t.form.private=e.data.private,t.form.posts=e.data.posts,t.moduleClass="modal is-active",setTimeout(function(){t.$refs.editName.focus()},500)})},close:function(){var e=this;e.moduleClass="modal"},hide:function(){var e=this;e.close()},save:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.post(listig.restUrl+"/listing/"+e.form.id,e.form).then(function(t){e.form.name="",e.form.description="",e.form.private=!1,e.form.posts=[],window.eventBus.$emit("list-rebound",t.data.id),e.close()})},destroy:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.delete(listig.restUrl+"/listing/"+e.form.id).then(function(t){window.eventBus.$emit("list-rebound",e.form.id),e.close()})}}}},function(e,t,n){(function(t){e.exports={props:["id"],data:function(){return{name:"",posts:[],selectedIndex:-1,dirty:!1,drag:!1}},created:function(){var e=this;window.eventBus.$on("list-dirty",function(t){t==e.id&&(e.dirty=!0)}),window.eventBus.$on("post-selected",function(t){e.selectedIndex=e.posts.indexOf(t)}),t(window).bind("beforeunload",function(t){return e.dirty?"Unsaved changes in list "+e.name:void(t=null)})},mounted:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.get(listig.restUrl+"/listing/"+e.id).then(function(t){e.dirty=!1,e.name=t.data.name,e.posts=t.data.posts})},methods:{focusOnPost:function(e){window.eventBus.$emit("post-selected",e),window.eventBus.$emit("post-edit",{listId:self.id,post:e})},addEmpty:function(){var e=this;e.dirty=!0;var t={headline:"New post item"};e.posts.push(t),e.focusOnPost(t)},listEdit:function(){var e=this;window.eventBus.$emit("list-edit",e.id)},dragAdded:function(e){var t=this;t.dirty=!0,t.focusOnPost(t.posts[e.newIndex])},postEdit:function(e){var t=this;t.focusOnPost(e)},postRemove:function(e){var t=this;window.eventBus.$emit("post-selected",null);var n=t.posts.indexOf(e);t.posts.splice(n,1),t.dirty=!0},save:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.post(listig.restUrl+"/listing/"+e.id+"/posts",e.posts).then(function(t){e.dirty=!1})},dragEnded:function(e){var t=this;t.dirty=!0,t.focusOnPost(t.posts[e.newIndex])}}}}).call(t,n(5))},function(e,t){e.exports={data:function(){return{listings:[]}},created:function(){var e=this;window.eventBus.$on("list-rebound",function(t){t?e.getSingle(t):e.getAll()})},mounted:function(){var e=this;e.getAll()},methods:{getAll:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.get(listig.restUrl+"/listing").then(function(t){e.listings.length?t.data.forEach(function(t,n){e.listIndex(t.id)<0&&e.listings.unshift(t)}):e.listings=t.data})},getSingle:function(e){var t=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.get(listig.restUrl+"/listing/"+e).then(function(n){var r=t.listIndex(e);null==n.data?t.listings.splice(r,1):r<0?t.listings.unshift(n.data):t.listings[r]=n.data})},listIndex:function(e){for(var t=this,n=0;n<t.listings.length;n++)if(t.listings[n].id==e)return n;return-1},edit:function(e){window.eventBus.$emit("list-edit",e)}}}},function(e,t,n){(function(t){e.exports={data:function(){return{dirty:!1,currentListId:0,post:{},file_frame:null,wp_media_post_id:0,lang:listig.lang}},created:function(){var e=this;window.eventBus.$on("post-edit",function(t){e.currentListId=t.listId,e.edit(t.post)})},methods:{edit:function(e){var t=this;t.post=e},changed:function(e){var t=this;window.eventBus.$emit("list-dirty",t.currentListId)},changeImage:function(){var e=this;return e.wp_media_post_id=wp.media.model.settings.post.id,e.file_frame?(e.file_frame.uploader.uploader.param("post_id",e.post.id),void e.file_frame.open()):(wp.media.model.settings.post.id=e.post.id,e.file_frame=wp.media.frames.file_frame=wp.media({title:t(this).data("uploader_title"),button:{text:t(this).data("uploader_button_text")},multiple:!1}),e.file_frame.on("select",function(){attachment=e.file_frame.state().get("selection").first().toJSON(),e.post.imageId=attachment.id,e.post.imageUrl=attachment.url,window.eventBus.$emit("list-dirty",e.currentListId),wp.media.model.settings.post.id=e.wp_media_post_id}),void e.file_frame.open())},removeImage:function(){var e=this;e.post.imageId=0,e.post.imageUrl="",window.eventBus.$emit("list-dirty",e.currentListId)}}}}).call(t,n(5))},function(e,t){e.exports={}},function(e,t){e.exports={mounted:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.get(listig.restUrl+"/author").then(function(t){e.authors=t.data}),axios.get(listig.restUrl+"/posttype").then(function(t){e.posttypes=t.data}),e.search()},data:function(){return{currentPostId:0,searchTimer:0,authors:[],posttypes:[],posts:[],maxPages:1,form:{page:1,author:0,search:"",posttype:0,postsPerPage:listig.userSettings[0]?parseInt(listig.userSettings[0].searchPostsPerPage):10},lang:listig.lang}},methods:{search:function(e){var t=this;t.form.page=1,t.maxPages=1,t.queryForm()},queryForm:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.post(listig.restUrl+"/post-search",e.form).then(function(t){e.posts=t.data.posts,e.maxPages=t.data.query.max_num_pages,e.form.page=t.data.query.query.paged})},searchBounce:function(){var e=this;clearTimeout(e.searchTimer),this.searchTimer=setTimeout(function(){e.search()}.bind(this),300)},changePostsPerPage:function(){var e=this,t=[{searchPostsPerPage:e.form.postsPerPage}];axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.post(listig.restUrl+"/user-setting",t).then(function(t){e.search()})},next:function(){var e=this;e.form.page++,e.queryForm()},previous:function(){var e=this;e.form.page--,e.queryForm()}}}},function(e,t){e.exports={props:["title","showNewList","links"],data:function(){return{lang:listig.lang}},methods:{newList:function(){window.eventBus.$emit("list-edit")}}}},function(e,t){e.exports={data:function(){return{title:"Listig - "+listig.lang.helpTitle,links:[{title:"Lists",url:"?page=listig/main"},{title:"Settings",url:"?page=listig/settings"}]}}}},function(e,t){e.exports={data:function(){return{links:[],title:"Listig"}}}},function(e,t){e.exports={data:function(){return{links:[{title:"Lists",url:"?page=listig/main"},{title:"Help",url:"?page=listig/help"}],title:"Listig - "+listig.lang.settingsTitle}}}},function(e,t,n){window.Vue=n(85),window.axios=n(13),window.ListigPostPreview=n(58),window.ListigPostEdit=n(57),window.ListigPostSearch=n(59),window.ListigListEdit=n(54),window.ListigListItem=n(55),window.ListigListings=n(56),window.ListigTopMenu=n(60),window.ListigMainPage=n(62),window.ListigSettingsPage=n(63),window.ListigHelpPage=n(61),window.draggable=n(86),window.eventBus=new Vue,Vue.component("draggable",window.draggable),Vue.component("post-edit",window.ListigPostEdit),Vue.component("list-edit",window.ListigListEdit),Vue.component("list-item",window.ListigListItem),Vue.component("listings",window.ListigListings),Vue.component("post-search",window.ListigPostSearch),Vue.component("post-preview",window.ListigPostPreview),Vue.component("main-page",window.ListigMainPage),Vue.component("settings-page",window.ListigSettingsPage),Vue.component("help-page",window.ListigHelpPage),Vue.component("top-menu",window.ListigTopMenu)},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".page-frame{margin-right:20px}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,"",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".new-icon{margin-top:6px}.top-menu{background-color:#f5f5f5}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".draggable-container{min-height:20px}.draggable-post:hover{cursor:move}.post-label{float:right}.selected-post{color:#333;font-weight:bolder}.button-page-next span i{margin-top:5px;margin-left:10px}.button-page-previous span i{margin-top:5px;margin-right:10px}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".draggable-post:hover{cursor:move}.file-icon{margin-right:10px;color:#999}.gear-icon{color:#999}.initial-area{min-height:40px}.active-post{font-weight:bolder}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,"",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,"",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".page-frame{margin-right:20px}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".gear-icon{color:#999}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".page-frame{margin-right:20px}",""])},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&s())}function s(){if(!v){var e=i(a);v=!0;for(var t=h.length;t;){for(d=h,h=[];++m<t;)d&&d[m].run();m=-1,t=h.length}d=null,v=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function u(){}var c,f,p=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,h=[],v=!1,m=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new l(e,t)),1!==h.length||v||i(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=u,p.addListener=u,p.once=u,p.off=u,p.removeListener=u,p.removeAllListeners=u,p.emit=u,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){var r,i;/**! 
     26ye(this).replaceWith(this.childNodes)}),this}}),ye.expr.pseudos.hidden=function(e){return!ye.expr.pseudos.visible(e)},ye.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ye.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},Vt=ye.ajaxSettings.xhr();me.cors=!!Vt&&"withCredentials"in Vt,me.ajax=Vt=!!Vt,ye.ajaxTransport(function(e){var t,r;if(me.cors||Vt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Xt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),ye.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ye.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ye.globalEval(e),e}}}),ye.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ye.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=ye("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),oe.head.appendChild(t[0])},abort:function(){n&&n()}}}});var zt=[],Jt=/(=)\?(?=&|$)|\?\?/;ye.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||ye.expando+"_"+At++;return this[e]=!0,e}}),ye.ajaxPrefilter("json jsonp",function(e,t,r){var i,o,a,s=e.jsonp!==!1&&(Jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=ye.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Jt,"$1"+i):e.jsonp!==!1&&(e.url+=($t.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||ye.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always(function(){void 0===o?ye(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,zt.push(i)),a&&ye.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),me.createHTMLDocument=function(){var e=oe.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),ye.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,o;return t||(me.createHTMLDocument?(t=oe.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=oe.location.href,t.head.appendChild(r)):t=oe),i=Se.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=C([e],t,o),o&&o.length&&ye(o).remove(),ye.merge([],i.childNodes))},ye.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=Y(e.slice(s)),e=e.slice(0,s)),ye.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&ye.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ye("<div>").append(ye.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ye.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ye.fn[t]=function(e){return this.on(t,e)}}),ye.expr.pseudos.animated=function(e){return ye.grep(ye.timers,function(t){return e===t.elem}).length},ye.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u,c=ye.css(e,"position"),f=ye(e),p={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=ye.css(e,"top"),l=ye.css(e,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),ye.isFunction(t)&&(t=t.call(e,n,ye.extend({},s))),null!=t.top&&(p.top=t.top-s.top+a),null!=t.left&&(p.left=t.left-s.left+i),"using"in t?t.using.call(e,p):f.css(p)}},ye.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ye.offset.setOffset(this,e,t)});var t,n,r,i,o=this[0];if(o)return o.getClientRects().length?(r=o.getBoundingClientRect(),r.width||r.height?(i=o.ownerDocument,n=re(i),t=i.documentElement,{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===ye.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ye.nodeName(e[0],"html")||(r=e.offset()),r={top:r.top+ye.css(e[0],"borderTopWidth",!0),left:r.left+ye.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-ye.css(n,"marginTop",!0),left:t.left-r.left-ye.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===ye.css(e,"position");)e=e.offsetParent;return e||et})}}),ye.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;ye.fn[e]=function(r){return Re(this,function(e,r,i){var o=re(e);return void 0===i?o?o[t]:e[r]:void(o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i)},e,r,arguments.length)}}),ye.each(["top","left"],function(e,t){ye.cssHooks[t]=I(me.pixelPosition,function(e,n){if(n)return n=P(e,t),ct.test(n)?ye(e).position()[t]+"px":n})}),ye.each({Height:"height",Width:"width"},function(e,t){ye.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ye.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||o===!0?"margin":"border");return Re(this,function(t,n,i){var o;return ye.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?ye.css(t,n,s):ye.style(t,n,i,s)},t,a?i:void 0,a)}})}),ye.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),ye.parseJSON=JSON.parse,r=[],i=function(){return ye}.apply(t,r),!(void 0!==i&&(e.exports=i));var Yt=n.jQuery,Kt=n.$;return ye.noConflict=function(e){return n.$===ye&&(n.$=Kt),e&&n.jQuery===ye&&(n.jQuery=Yt),ye},o||(n.jQuery=n.$=ye),ye})},function(e,t,n){"use strict";var r=n(0),i=n(20),o=n(23),a=n(29),s=n(27),l=n(9),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(22);e.exports=function(e){return new Promise(function(t,c){var f=e.data,p=e.headers;r.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest,h="onreadystatechange",v=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||s(e.url)||(d=new window.XDomainRequest,h="onload",v=!0,d.onprogress=function(){},d.ontimeout=function(){}),e.auth){var m=e.auth.username||"",g=e.auth.password||"";p.Authorization="Basic "+u(m+":"+g)}if(d.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d[h]=function(){if(d&&(4===d.readyState||v)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?d.response:d.responseText,o={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:e,request:d};i(t,c,o),d=null}},d.onerror=function(){c(l("Network Error",e)),d=null},d.ontimeout=function(){c(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED")),d=null},r.isStandardBrowserEnv()){var y=n(25),b=(e.withCredentials||s(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;b&&(p[e.xsrfHeaderName]=b)}if("setRequestHeader"in d&&r.forEach(p,function(e,t){"undefined"==typeof f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)}),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(e){if("json"!==d.responseType)throw e}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){d&&(d.abort(),c(e),d=null)}),void 0===f&&(f=null),d.send(f)})}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(19);e.exports=function(e,t,n,i){var o=new Error(e);return r(o,t,n,i)}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){(function(e){n(41),e(function(e){e("#listig-main-page").length&&new Vue({template:"<main-page></main-page>",component:ListigMainPage,el:"#listig-main-page"}),e("#listig-help-page").length&&new Vue({template:"<help-page></help-page>",component:ListigHelpPage,el:"#listig-help-page"}),e("#listig-settings-page").length&&new Vue({template:"<settings-page></settings-page>",component:ListigSettingsPage,el:"#listig-settings-page"})})}).call(t,n(5))},function(e,t){},function(e,t,n){e.exports=n(14)},function(e,t,n){"use strict";function r(e){var t=new a(e),n=o(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var i=n(0),o=n(10),a=n(16),s=n(4),l=r(s);l.Axios=a,l.create=function(e){return r(i.merge(s,e))},l.Cancel=n(7),l.CancelToken=n(15),l.isCancel=n(8),l.all=function(e){return Promise.all(e)},l.spread=n(30),e.exports=l,e.exports.default=l},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;e(function(e){n.reason||(n.reason=new i(e),t(n.reason))})}var i=n(7);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var i=n(4),o=n(0),a=n(17),s=n(18),l=n(26),u=n(24);r.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),e=o.merge(i,this.defaults,{method:"get"},e),e.baseURL&&!l(e.url)&&(e.url=u(e.baseURL,e.url));var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head"],function(e){r.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}}),o.forEach(["post","put","patch"],function(e){r.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}}),e.exports=r},function(e,t,n){"use strict";function r(){this.handlers=[]}var i=n(0);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var i=n(0),o=n(21),a=n(8),s=n(4);e.exports=function(e){r(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]});var t=e.adapter||s.adapter;return t(e).then(function(t){return r(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){return e.config=t,n&&(e.code=n),e.response=r,e}},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n)):e(n)}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n){return r.forEach(n,function(n){e=n(e,t)}),e}},function(e,t,n){"use strict";function r(){this.message="String contains an invalid character"}function i(e){for(var t,n,i=String(e),a="",s=0,l=o;i.charAt(0|s)||(l="=",s%1);a+=l.charAt(63&t>>8-s%1*8)){if(n=i.charCodeAt(s+=.75),n>255)throw new r;t=t<<8|n}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.prototype=new Error,r.prototype.code=5,r.prototype.name="InvalidCharacterError",e.exports=i},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(0);e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(i.isURLSearchParams(t))o=t.toString();else{var a=[];i.forEach(t,function(e,t){null!==e&&"undefined"!=typeof e&&(i.isArray(e)&&(t+="[]"),i.isArray(e)||(e=[e]),i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))}))}),o=a.join("&")}return o&&(e+=(e.indexOf("?")===-1?"?":"&")+o),e}},function(e,t,n){"use strict";e.exports=function(e,t){return e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,"")}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(i.setAttribute("href",t),t=i.href),i.setAttribute("href",t),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var t,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return t=e(window.location.href),function(n){var i=r.isString(n)?e(n):n;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){r.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e){var t,n,i,o={};return e?(r.forEach(e.split("\n"),function(e){i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t&&(o[t]=o[t]?o[t]+", "+n:n)}),o):o}},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={mounted:function(){},created:function(){var e=this;window.eventBus.$on("list-edit",function(t){e.edit(t)})},data:function(){return{moduleClass:"modal",form:{id:0,name:"",description:"",private:!1,posts:[]},lang:listig.lang}},methods:{edit:function(e){var t=this;t.clearForm(),axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.get(listig.restUrl+"/listing/"+e).then(function(e){e.data&&(t.form.id=e.data.id,t.form.name=e.data.name,t.form.description=e.data.description,t.form.private=e.data.private,t.form.posts=e.data.posts),t.moduleClass="modal is-active",setTimeout(function(){t.$refs.editName.focus()},500)})},close:function(){var e=this;e.moduleClass="modal"},hide:function(){var e=this;e.close()},save:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.post(listig.restUrl+"/listing/"+e.form.id,e.form).then(function(t){e.close(),e.clearForm(),window.eventBus.$emit("list-rebound",t.data.id)})},destroy:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.delete(listig.restUrl+"/listing/"+e.form.id).then(function(t){e.close(),window.eventBus.$emit("list-hide",e.form.id),window.eventBus.$emit("list-rebound",e.form.id)})},clearForm:function(){var e=this;e.form.id=0,e.form.name="",e.form.description="",e.form.private=!1,e.form.posts=[]}}}},function(e,t,n){(function(t){e.exports={props:["id"],data:function(){return{name:"",posts:[],selectedIndex:-1,dirty:!1,drag:!1}},created:function(){var e=this;window.eventBus.$on("list-dirty",function(t){t==e.id&&(e.dirty=!0)}),window.eventBus.$on("post-selected",function(t){e.selectedIndex=e.posts.indexOf(t)}),t(window).bind("beforeunload",function(t){return e.dirty?"Unsaved changes in list "+e.name:void(t=null)})},mounted:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.get(listig.restUrl+"/listing/"+e.id).then(function(t){e.dirty=!1,e.name=t.data.name,e.posts=t.data.posts})},methods:{focusOnPost:function(e){var t=this;window.eventBus.$emit("post-selected",e),window.eventBus.$emit("post-edit",{listId:t.id,post:e})},addEmpty:function(){var e=this;e.dirty=!0;var t={headline:"New post item"};e.posts.push(t),e.focusOnPost(t)},listEdit:function(){var e=this;window.eventBus.$emit("list-edit",e.id)},dragAdded:function(e){var t=this;t.dirty=!0,t.focusOnPost(t.posts[e.newIndex])},postEdit:function(e){var t=this;t.focusOnPost(e)},postRemove:function(e){var t=this;window.eventBus.$emit("post-selected",null);var n=t.posts.indexOf(e);t.posts.splice(n,1),t.dirty=!0},save:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.post(listig.restUrl+"/listing/"+e.id+"/posts",e.posts).then(function(t){e.dirty=!1})},dragEnded:function(e){var t=this;t.dirty=!0,t.focusOnPost(t.posts[e.newIndex])}}}}).call(t,n(5))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{lists:[]}},created:function(){var e=this;window.eventBus.$on("list-rebound",function(t){t?e.getSingle(t):e.getAll()})},mounted:function(){var e=this;e.getAll()},methods:{getAll:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.get(listig.restUrl+"/listing").then(function(t){t.data.forEach(function(t){e.lists.push(t.id)})})},getSingle:function(e){var t=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.get(listig.restUrl+"/listing/"+e).then(function(n){var r=t.lists.indexOf(e);return r<0?void t.lists.unshift(n.data.id):n.data?void(t.lists[r]=n.data):void t.lists.splice(r,1)})}}}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default={data:function(){return{dirty:!1,currentListId:0,post:{},file_frame:null,wp_media_post_id:0,lang:listig.lang}},created:function(){var e=this;window.eventBus.$on("post-edit",function(t){e.currentListId=t.listId,e.edit(t.post)})},methods:{edit:function(e){var t=this;t.post=e},changed:function(e){var t=this;window.eventBus.$emit("list-dirty",t.currentListId)},changeImage:function(){var t=this;return t.wp_media_post_id=wp.media.model.settings.post.id,t.file_frame?(t.file_frame.uploader.uploader.param("post_id",t.post.id),void t.file_frame.open()):(wp.media.model.settings.post.id=t.post.id,t.file_frame=wp.media.frames.file_frame=wp.media({title:e(this).data("uploader_title"),button:{text:e(this).data("uploader_button_text")},multiple:!1}),t.file_frame.on("select",function(){attachment=t.file_frame.state().get("selection").first().toJSON(),t.post.imageId=attachment.id,t.post.imageUrl=attachment.url,window.eventBus.$emit("list-dirty",t.currentListId),wp.media.model.settings.post.id=t.wp_media_post_id}),void t.file_frame.open())},removeImage:function(){var e=this;e.post.imageId=0,e.post.imageUrl="",window.eventBus.$emit("list-dirty",e.currentListId)}}}}).call(t,n(5))},function(e,t){e.exports={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={mounted:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.get(listig.restUrl+"/author").then(function(t){e.authors=t.data}),axios.get(listig.restUrl+"/posttype").then(function(t){e.posttypes=t.data}),e.search()},data:function(){return{currentPostId:0,searchTimer:0,authors:[],posttypes:[],posts:[],maxPages:1,form:{page:1,author:0,search:"",posttype:0,postsPerPage:listig.userSettings[0]?parseInt(listig.userSettings[0].searchPostsPerPage):10},lang:listig.lang}},methods:{search:function(e){var t=this;t.form.page=1,t.maxPages=1,t.queryForm()},queryForm:function(){var e=this;axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.post(listig.restUrl+"/post-search",e.form).then(function(t){e.posts=t.data.posts,e.maxPages=t.data.query.max_num_pages,e.form.page=t.data.query.query.paged})},searchBounce:function(){var e=this;clearTimeout(e.searchTimer),this.searchTimer=setTimeout(function(){e.search()}.bind(this),300)},changePostsPerPage:function(){var e=this,t=[{searchPostsPerPage:e.form.postsPerPage}];axios.defaults.headers.common["X-WP-Nonce"]=listig.nonce,axios.post(listig.restUrl+"/user-setting",t).then(function(t){e.search()})},next:function(){var e=this;e.form.page++,e.queryForm()},previous:function(){var e=this;e.form.page--,e.queryForm()}}}},function(e,t){e.exports={props:["title","showNewList","links"],data:function(){return{lang:listig.lang}},methods:{newList:function(){window.eventBus.$emit("list-edit",0)}}}},function(e,t){e.exports={data:function(){return{title:"Listig - "+listig.lang.helpTitle,links:[{title:"Lists",url:"?page=listig/main"},{title:"Settings",url:"?page=listig/settings"}]}}}},function(e,t){e.exports={data:function(){return{links:[],title:"Listig"}}}},function(e,t){e.exports={data:function(){return{links:[{title:"Lists",url:"?page=listig/main"},{title:"Help",url:"?page=listig/help"}],title:"Listig - "+listig.lang.settingsTitle}}}},function(e,t,n){window.Vue=n(85),window.axios=n(13),window.ListigPostPreview=n(58),window.ListigPostEdit=n(57),window.ListigPostSearch=n(59),window.ListigListEdit=n(54),window.ListigListItem=n(55),window.ListigListings=n(56),window.ListigTopMenu=n(60),window.ListigMainPage=n(62),window.ListigSettingsPage=n(63),window.ListigHelpPage=n(61),window.draggable=n(86),window.eventBus=new Vue,Vue.component("draggable",window.draggable),Vue.component("post-edit",window.ListigPostEdit),Vue.component("list-edit",window.ListigListEdit),Vue.component("list-item",window.ListigListItem),Vue.component("listings",window.ListigListings),Vue.component("post-search",window.ListigPostSearch),Vue.component("post-preview",window.ListigPostPreview),Vue.component("main-page",window.ListigMainPage),Vue.component("settings-page",window.ListigSettingsPage),Vue.component("help-page",window.ListigHelpPage),Vue.component("top-menu",window.ListigTopMenu)},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".page-frame{margin-right:20px}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,"",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".new-icon{margin-top:6px}.top-menu{background-color:#f5f5f5}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".draggable-container{min-height:20px}.draggable-post:hover{cursor:move}.post-label{float:right}.selected-post{color:#333;font-weight:bolder}.button-page-next span i{margin-top:5px;margin-left:10px}.button-page-previous span i{margin-top:5px;margin-right:10px}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".draggable-post:hover{cursor:move}.file-icon{margin-right:10px;color:#999}.gear-icon{color:#999}.initial-area{min-height:40px}.active-post{font-weight:bolder}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,"",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,"",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".page-frame{margin-right:20px}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".gear-icon{color:#999}",""])},function(e,t,n){t=e.exports=n(1)(),t.push([e.i,".page-frame{margin-right:20px}",""])},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&s())}function s(){if(!v){var e=i(a);v=!0;for(var t=h.length;t;){for(d=h,h=[];++m<t;)d&&d[m].run();m=-1,t=h.length}d=null,v=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function u(){}var c,f,p=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,h=[],v=!1,m=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new l(e,t)),1!==h.length||v||i(s)},l.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=u,p.addListener=u,p.once=u,p.off=u,p.removeListener=u,p.removeAllListeners=u,p.emit=u,p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){var r,i;/**! 
    2727 * Sortable 
    2828 * @author  RubaXa   <trash@rubaxa.org> 
    2929 * @license MIT 
    3030 */ 
    31 !function(o){"use strict";r=o,i="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==i&&(e.exports=i))}(function(){"use strict";function e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=g({},t),e[R]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1};for(var r in n)!(r in t)&&(t[r]=n[r]);z(t);for(var o in this)"_"===o.charAt(0)&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&H,i(e,"mousedown",this._onTapStart),i(e,"touchstart",this._onTapStart),this.nativeDraggable&&(i(e,"dragover",this),i(e,"dragenter",this)),X.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function t(e){w&&w.state!==e&&(s(w,"display",e?"none":""),!e&&w.state&&_.insertBefore(w,y),w.state=e)}function n(e,t,n){if(e){n=n||F,t=t.split(".");var r=t.shift().toUpperCase(),i=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");do if(">*"===r&&e.parentNode===n||(""===r||e.nodeName.toUpperCase()==r)&&(!t.length||((" "+e.className+" ").match(i)||[]).length==t.length))return e;while(e!==n&&(e=e.parentNode))}return null}function r(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}function i(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}function a(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(I," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(I," ")}}function s(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return F.defaultView&&F.defaultView.getComputedStyle?n=F.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function l(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function u(e,t,n,r,i,o,a){var s=F.createEvent("Event"),l=(e||t[R]).options,u="on"+n.charAt(0).toUpperCase()+n.substr(1);s.initEvent(n,!0,!0),s.to=t,s.from=i||t,s.item=r||t,s.clone=w,s.oldIndex=o,s.newIndex=a,t.dispatchEvent(s),l[u]&&l[u].call(e,s)}function c(e,t,n,r,i,o){var a,s,l=e[R],u=l.options.onMove;return a=F.createEvent("Event"),a.initEvent("move",!0,!0),a.to=t,a.from=e,a.dragged=n,a.draggedRect=r,a.related=i||t,a.relatedRect=o||t.getBoundingClientRect(),e.dispatchEvent(a),u&&(s=u.call(l,a)),s}function f(e){e.draggable=!1}function p(){U=!1}function d(e,t){var n=e.lastElementChild,r=n.getBoundingClientRect();return(t.clientY-(r.top+r.height)>5||t.clientX-(r.right+r.width)>5)&&n}function h(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function v(e){var t=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"!==e.nodeName.toUpperCase()&&t++;return t}function m(e,t){var n,r;return function(){void 0===n&&(n=arguments,r=this,setTimeout(function(){1===n.length?e.call(r,n[0]):e.apply(r,n),n=void 0},t))}}function g(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var y,b,x,w,_,C,T,k,E,S,A,$,N,D,L,O,j,P={},I=/\s+/g,R="Sortable"+(new Date).getTime(),M=window,F=M.document,q=M.parseInt,H=!!("draggable"in F.createElement("div")),B=function(e){return e=F.createElement("x"),e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),U=!1,W=Math.abs,X=([].slice,[]),V=m(function(e,t,n){if(n&&t.scroll){var r,i,o,a,s=t.scrollSensitivity,l=t.scrollSpeed,u=e.clientX,c=e.clientY,f=window.innerWidth,p=window.innerHeight;if(k!==n&&(T=t.scroll,k=n,T===!0)){T=n;do if(T.offsetWidth<T.scrollWidth||T.offsetHeight<T.scrollHeight)break;while(T=T.parentNode)}T&&(r=T,i=T.getBoundingClientRect(),o=(W(i.right-u)<=s)-(W(i.left-u)<=s),a=(W(i.bottom-c)<=s)-(W(i.top-c)<=s)),o||a||(o=(f-u<=s)-(u<=s),a=(p-c<=s)-(c<=s),(o||a)&&(r=M)),P.vx===o&&P.vy===a&&P.el===r||(P.el=r,P.vx=o,P.vy=a,clearInterval(P.pid),r&&(P.pid=setInterval(function(){r===M?M.scrollTo(M.pageXOffset+o*l,M.pageYOffset+a*l):(a&&(r.scrollTop+=a*l),o&&(r.scrollLeft+=o*l))},24)))}},30),z=function(e){var t=e.group;t&&"object"==typeof t||(t=e.group={name:t}),["pull","put"].forEach(function(e){e in t||(t[e]=!0)}),e.groups=" "+t.name+(t.put.join?" "+t.put.join(" "):"")+" "};return e.prototype={constructor:e,_onTapStart:function(e){var t=this,r=this.el,i=this.options,o=e.type,a=e.touches&&e.touches[0],s=(a||e).target,l=s,c=i.filter;if(!("mousedown"===o&&0!==e.button||i.disabled)&&(s=n(s,i.draggable,r))){if($=v(s),"function"==typeof c){if(c.call(this,e,s,this))return u(t,l,"filter",s,r,$),void e.preventDefault()}else if(c&&(c=c.split(",").some(function(e){if(e=n(l,e.trim(),r))return u(t,e,"filter",s,r,$),!0})))return void e.preventDefault();i.handle&&!n(l,i.handle,r)||this._prepareDragStart(e,a,s)}},_prepareDragStart:function(e,t,n){var r,o=this,s=o.el,u=o.options,c=s.ownerDocument;n&&!y&&n.parentNode===s&&(L=e,_=s,y=n,b=y.parentNode,C=y.nextSibling,D=u.group,r=function(){o._disableDelayedDrag(),y.draggable=!0,a(y,o.options.chosenClass,!0),o._triggerDragStart(t)},u.ignore.split(",").forEach(function(e){l(y,e.trim(),f)}),i(c,"mouseup",o._onDrop),i(c,"touchend",o._onDrop),i(c,"touchcancel",o._onDrop),u.delay?(i(c,"mouseup",o._disableDelayedDrag),i(c,"touchend",o._disableDelayedDrag),i(c,"touchcancel",o._disableDelayedDrag),i(c,"mousemove",o._disableDelayedDrag),i(c,"touchmove",o._disableDelayedDrag),o._dragStartTimer=setTimeout(r,u.delay)):r())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),o(e,"mouseup",this._disableDelayedDrag),o(e,"touchend",this._disableDelayedDrag),o(e,"touchcancel",this._disableDelayedDrag),o(e,"mousemove",this._disableDelayedDrag),o(e,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(e){e?(L={target:y,clientX:e.clientX,clientY:e.clientY},this._onDragStart(L,"touch")):this.nativeDraggable?(i(y,"dragend",this),i(_,"dragstart",this._onDragStart)):this._onDragStart(L,!0);try{F.selection?F.selection.empty():window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){_&&y&&(a(y,this.options.ghostClass,!0),e.active=this,u(this,_,"start",y,_,$))},_emulateDragOver:function(){if(O){if(this._lastX===O.clientX&&this._lastY===O.clientY)return;this._lastX=O.clientX,this._lastY=O.clientY,B||s(x,"display","none");var e=F.elementFromPoint(O.clientX,O.clientY),t=e,n=" "+this.options.group.name,r=X.length;if(t)do{if(t[R]&&t[R].options.groups.indexOf(n)>-1){for(;r--;)X[r]({clientX:O.clientX,clientY:O.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);B||s(x,"display","")}},_onTouchMove:function(t){if(L){e.active||this._dragStarted(),this._appendGhost();var n=t.touches?t.touches[0]:t,r=n.clientX-L.clientX,i=n.clientY-L.clientY,o=t.touches?"translate3d("+r+"px,"+i+"px,0)":"translate("+r+"px,"+i+"px)";j=!0,O=n,s(x,"webkitTransform",o),s(x,"mozTransform",o),s(x,"msTransform",o),s(x,"transform",o),t.preventDefault()}},_appendGhost:function(){if(!x){var e,t=y.getBoundingClientRect(),n=s(y),r=this.options;x=y.cloneNode(!0),a(x,r.ghostClass,!1),a(x,r.fallbackClass,!0),s(x,"top",t.top-q(n.marginTop,10)),s(x,"left",t.left-q(n.marginLeft,10)),s(x,"width",t.width),s(x,"height",t.height),s(x,"opacity","0.8"),s(x,"position","fixed"),s(x,"zIndex","100000"),s(x,"pointerEvents","none"),r.fallbackOnBody&&F.body.appendChild(x)||_.appendChild(x),e=x.getBoundingClientRect(),s(x,"width",2*t.width-e.width),s(x,"height",2*t.height-e.height)}},_onDragStart:function(e,t){var n=e.dataTransfer,r=this.options;this._offUpEvents(),"clone"==D.pull&&(w=y.cloneNode(!0),s(w,"display","none"),_.insertBefore(w,y)),t?("touch"===t?(i(F,"touchmove",this._onTouchMove),i(F,"touchend",this._onDrop),i(F,"touchcancel",this._onDrop)):(i(F,"mousemove",this._onTouchMove),i(F,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(n&&(n.effectAllowed="move",r.setData&&r.setData.call(this,n,y)),i(F,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(e){var r,i,o,a=this.el,l=this.options,u=l.group,f=u.put,h=D===u,v=l.sort;if(void 0!==e.preventDefault&&(e.preventDefault(),!l.dragoverBubble&&e.stopPropagation()),j=!0,D&&!l.disabled&&(h?v||(o=!_.contains(y)):D.pull&&f&&(D.name===u.name||f.indexOf&&~f.indexOf(D.name)))&&(void 0===e.rootEl||e.rootEl===this.el)){if(V(e,l,this.el),U)return;if(r=n(e.target,l.draggable,a),i=y.getBoundingClientRect(),o)return t(!0),void(w||C?_.insertBefore(y,w||C):v||_.appendChild(y));if(0===a.children.length||a.children[0]===x||a===e.target&&(r=d(a,e))){if(r){if(r.animated)return;g=r.getBoundingClientRect()}t(h),c(_,a,y,i,r,g)!==!1&&(y.contains(a)||(a.appendChild(y),b=a),this._animate(i,y),r&&this._animate(g,r))}else if(r&&!r.animated&&r!==y&&void 0!==r.parentNode[R]){E!==r&&(E=r,S=s(r),A=s(r.parentNode));var m,g=r.getBoundingClientRect(),T=g.right-g.left,k=g.bottom-g.top,$=/left|right|inline/.test(S.cssFloat+S.display)||"flex"==A.display&&0===A["flex-direction"].indexOf("row"),N=r.offsetWidth>y.offsetWidth,L=r.offsetHeight>y.offsetHeight,O=($?(e.clientX-g.left)/T:(e.clientY-g.top)/k)>.5,P=r.nextElementSibling,I=c(_,a,y,i,r,g);if(I!==!1){if(U=!0,setTimeout(p,30),t(h),1===I||I===-1)m=1===I;else if($){var M=y.offsetTop,F=r.offsetTop;m=M===F?r.previousElementSibling===y&&!N||O&&N:F>M}else m=P!==y&&!L||O&&L;y.contains(a)||(m&&!P?a.appendChild(y):r.parentNode.insertBefore(y,m?P:r)),b=y.parentNode,this._animate(i,y),this._animate(g,r)}}}},_animate:function(e,t){var n=this.options.animation;if(n){var r=t.getBoundingClientRect();s(t,"transition","none"),s(t,"transform","translate3d("+(e.left-r.left)+"px,"+(e.top-r.top)+"px,0)"),t.offsetWidth,s(t,"transition","all "+n+"ms"),s(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=setTimeout(function(){s(t,"transition",""),s(t,"transform",""),t.animated=!1},n)}},_offUpEvents:function(){var e=this.el.ownerDocument;o(F,"touchmove",this._onTouchMove),o(e,"mouseup",this._onDrop),o(e,"touchend",this._onDrop),o(e,"touchcancel",this._onDrop)},_onDrop:function(t){var n=this.el,r=this.options;clearInterval(this._loopId),clearInterval(P.pid),clearTimeout(this._dragStartTimer),o(F,"mousemove",this._onTouchMove),this.nativeDraggable&&(o(F,"drop",this),o(n,"dragstart",this._onDragStart)),this._offUpEvents(),t&&(j&&(t.preventDefault(),!r.dropBubble&&t.stopPropagation()),x&&x.parentNode.removeChild(x),y&&(this.nativeDraggable&&o(y,"dragend",this),f(y),a(y,this.options.ghostClass,!1),a(y,this.options.chosenClass,!1),_!==b?(N=v(y),N>=0&&(u(null,b,"sort",y,_,$,N),u(this,_,"sort",y,_,$,N),u(null,b,"add",y,_,$,N),u(this,_,"remove",y,_,$,N))):(w&&w.parentNode.removeChild(w),y.nextSibling!==C&&(N=v(y),N>=0&&(u(this,_,"update",y,_,$,N),u(this,_,"sort",y,_,$,N)))),e.active&&(null!==N&&N!==-1||(N=$),u(this,_,"end",y,_,$,N),this.save())),_=y=b=x=C=w=T=k=L=O=j=N=E=S=D=e.active=null)},handleEvent:function(e){var t=e.type;"dragover"===t||"dragenter"===t?y&&(this._onDragOver(e),r(e)):"drop"!==t&&"dragend"!==t||this._onDrop(e)},toArray:function(){for(var e,t=[],r=this.el.children,i=0,o=r.length,a=this.options;i<o;i++)e=r[i],n(e,a.draggable,this.el)&&t.push(e.getAttribute(a.dataIdAttr)||h(e));return t},sort:function(e){var t={},r=this.el;this.toArray().forEach(function(e,i){var o=r.children[i];n(o,this.options.draggable,r)&&(t[e]=o)},this),e.forEach(function(e){t[e]&&(r.removeChild(t[e]),r.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return n(e,t||this.options.draggable,this.el)},option:function(e,t){var n=this.options;return void 0===t?n[e]:(n[e]=t,void("group"===e&&z(n)))},destroy:function(){var e=this.el;e[R]=null,o(e,"mousedown",this._onTapStart),o(e,"touchstart",this._onTapStart),this.nativeDraggable&&(o(e,"dragover",this),o(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),X.splice(X.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},e.utils={on:i,off:o,css:s,find:l,is:function(e,t){return!!n(e,t,e)},extend:g,throttle:m,closest:n,toggleClass:a,index:v},e.create=function(t,n){return new e(t,n)},e.version="1.4.2",e})},function(e,t,n){n(80);var r=n(2)(n(31),n(70),null,null);e.exports=r.exports},function(e,t,n){n(78);var r=n(2)(n(32),n(68),null,null);e.exports=r.exports},function(e,t,n){n(82);var r=n(2)(n(33),n(72),null,null);e.exports=r.exports},function(e,t,n){n(79);var r=n(2)(n(34),n(69),null,null);e.exports=r.exports},function(e,t,n){n(75);var r=n(2)(n(35),n(65),null,null);e.exports=r.exports},function(e,t,n){n(77);var r=n(2)(n(36),n(67),null,null);e.exports=r.exports},function(e,t,n){n(76);var r=n(2)(n(37),n(66),null,null);e.exports=r.exports},function(e,t,n){n(81);var r=n(2)(n(38),n(71),null,null);e.exports=r.exports},function(e,t,n){n(83);var r=n(2)(n(39),n(73),null,null);e.exports=r.exports},function(e,t,n){n(74);var r=n(2)(n(40),n(64),null,null);e.exports=r.exports},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-frame"},[n("top-menu",{attrs:{links:e.links,showNewList:"false",title:e.title}}),e._v("\n\n         "),n("br")],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;e._self._c||t;return e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("p",[n("strong",[e._v("Post Title")])]),e._v(" "),n("br"),e._v(" "),n("article",{staticClass:"media"},[n("div",{staticClass:"media-left"},[n("figure",{staticClass:"image is-64x64"},[n("img",{attrs:{src:"http://bulma.io/images/placeholders/128x128.png",alt:"Image"}})])]),e._v(" "),n("div",{staticClass:"media-content"},[n("div",{staticClass:"content"},[n("p",[e._v("\n                    Post Preamble Content, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa\n                    fringilla egestas. Nullam condimentum luctus turpis.\n                ")])])])])])}]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"nav has-shadow top-menu"},[n("div",{staticClass:"nav-left"},[n("a",{staticClass:"nav-item"},[n("i",{staticClass:"fa fa-list-ul"}),e._v(" "+e._s(e.title)+"\n        ")])]),e._v(" "),n("div",{staticClass:"nav-center"},["true"==e.showNewList?n("div",{staticClass:"nav-item"},[n("a",{staticClass:"button is-primary",on:{click:e.newList}},[e._m(0),e._v("\n                 "+e._s(e.lang.newListLabel)+"\n            ")])]):e._e()]),e._v(" "),e._m(1),e._v(" "),n("div",{staticClass:"nav-right nav-menu"},e._l(e.links,function(t){return n("a",{staticClass:"nav-item",attrs:{href:t.url}},[e._v("\n            "+e._s(t.title)+"\n        ")])}))])},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon is-small new-icon"},[n("i",{staticClass:"fa fa-plus"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"nav-toggle"},[n("span"),e._v(" "),n("span"),e._v(" "),n("span")])}]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"panel"},[n("p",{staticClass:"panel-heading"},[e._v("\n        "+e._s(e.lang.postSearchLabel)+"\n    ")]),e._v(" "),n("div",{staticClass:"panel-block"},[n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-4"},[n("div",{staticClass:"control has-icon"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.form.search,expression:"form.search"}],staticClass:"input is-small",attrs:{type:"text",placeholder:e.lang.searchPlaceholder},domProps:{value:e._s(e.form.search)},on:{keyup:e.searchBounce,input:function(t){t.target.composing||(e.form.search=t.target.value)}}}),e._v(" "),e._m(0)])]),e._v(" "),n("div",{staticClass:"column is-4"},[n("div",{staticClass:"control"},[n("p",{staticClass:"control"},[n("span",{staticClass:"select is-small"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.form.author,expression:"form.author"}],on:{change:[function(t){e.form.author=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t})[0]},e.search]}},[n("option",{attrs:{value:"0"}},[e._v("-- "+e._s(e.lang.noAuthorLabel)+" --")]),e._v(" "),e._l(e.authors,function(t){return n("option",{domProps:{value:t.data.ID}},[e._v(e._s(t.data.display_name))])})],2)])])])]),e._v(" "),n("div",{staticClass:"column is-4"},[n("div",{staticClass:"control"},[n("p",{staticClass:"control"},[n("span",{staticClass:"select is-small"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.form.posttype,expression:"form.posttype"}],on:{change:[function(t){e.form.posttype=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t})[0]},e.search]}},[n("option",{attrs:{value:"0"}},[e._v("-- "+e._s(e.lang.noPosttypeLabel)+" --")]),e._v(" "),e._l(e.posttypes,function(t){return n("option",{domProps:{value:t.name}},[e._v(e._s(t.label))])})],2)])])])])])]),e._v(" "),n("draggable",{staticClass:"draggable-container",attrs:{list:e.posts,options:{group:"posts",animation:350,pull:"clone",put:!1}}},e._l(e.posts,function(t){return n("div",{key:t.id,staticClass:"panel-block draggable-post",class:{"is-active":t.id==e.currentPostId},on:{click:function(n){e.currentPostId=t.id}}},[n("span",{staticClass:"{ 'selected-post' : post.id==currentPost}"},[e._v("\n                "+e._s(t.headline)+"\n            ")])])})),e._v(" "),n("div",{staticClass:"panel-block"},[e.form.page>1?n("a",{staticClass:"button button-page-previous is-outlined is-small",on:{click:e.previous}},[e._m(1),e._v("\n            "+e._s(e.lang.previousLabel)+"\n        ")]):e._e(),e._v(" \n\n        "),n("span",{staticClass:"tag is-primary"},[e._v(e._s(e.form.page)+" / "+e._s(e.maxPages))]),e._v(" \n\n        "),e.form.page<e.maxPages?n("a",{staticClass:"button button-page-next is-outlined is-small",on:{click:e.next}},[e._v("\n            "+e._s(e.lang.nextLabel)+"\n            "),e._m(2)]):e._e(),e._v(" \n\n        "),n("p",{staticClass:"control"},[n("span",{staticClass:"select is-small pull-right"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.form.postsPerPage,expression:"form.postsPerPage"}],on:{change:[function(t){e.form.postsPerPage=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t})[0]},e.changePostsPerPage]}},[n("option",{attrs:{value:"5"}},[e._v("5")]),e._v(" "),n("option",{attrs:{value:"10"}},[e._v("10")]),e._v(" "),n("option",{attrs:{value:"20"}},[e._v("20")]),e._v(" "),n("option",{attrs:{value:"100"}},[e._v("100")])])])])])],1)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon is-small"},[n("i",{staticClass:"fa fa-search"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon is-small"},[n("i",{staticClass:"fa fa-angle-left"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon is-small"},[n("i",{staticClass:"fa fa-angle-right"})])}]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"panel"},[n("p",{staticClass:"panel-heading"},[e._v("\n        "+e._s(e.name)+" \n        "),n("a",{staticClass:"icon is-pulled-right gear-icon",on:{click:e.listEdit}},[n("i",{staticClass:"fa fa-gear"})]),e._v(" "),n("a",{staticClass:"icon is-pulled-right file-icon",on:{click:e.addEmpty}},[n("i",{staticClass:"fa fa-file-o"})])]),e._v(" "),n("draggable",{class:{"panel-block initial-area":0==e.posts.length},attrs:{list:e.posts,options:{group:"posts",animation:350}},on:{add:e.dragAdded,end:e.dragEnded}},e._l(e.posts,function(t,r){return n("div",{staticClass:"panel-block draggable-post",class:{"is-active":e.selectedIndex==e.posts.indexOf(t)},on:{click:function(n){e.postEdit(t)}}},[n("a",{staticClass:"delete is-small",on:{click:function(n){e.postRemove(t)}}}),e._v("  \n            "),n("span",{class:{"active-post":e.selectedIndex==e.posts.indexOf(t)}},[e._v(e._s(t.headline))])])})),e._v(" "),e.dirty?n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("button",{staticClass:"button is-primary",on:{click:e.save}},[e._v("Save")])])]):e._e()],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.post?n("div",[n("div",{staticClass:"box"},[n("h2",{staticClass:"title is-2"},[e._v(e._s(e.post.headline))]),e._v(" "),n("article",{staticClass:"media"},[e.post.imageUrl?n("div",{staticClass:"media-left"},[n("figure",{staticClass:"image is-64x64"},[n("img",{attrs:{src:e.post.imageUrl,alt:"Image"}})])]):e._e(),e._v(" "),n("div",{staticClass:"media-content"},[n("div",{staticClass:"content",domProps:{innerHTML:e._s(e.post.excerpt)}})])])]),e._v(" "),n("div",{staticClass:"panel"},[n("p",{staticClass:"panel-heading"},[e._v("\n            "+e._s(e.lang.postEditLabel)+"\n        ")]),e._v(" "),n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.post.headline,expression:"post.headline"}],staticClass:"input",attrs:{type:"text",placeholder:e.lang.headlineLabel},domProps:{value:e._s(e.post.headline)},on:{keyup:function(t){e.changed(e.post)},input:function(t){t.target.composing||(e.post.headline=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.post.excerpt,expression:"post.excerpt"}],staticClass:"textarea",attrs:{placeholder:e.lang.excerptLabel},domProps:{value:e._s(e.post.excerpt)},on:{keyup:function(t){e.changed(e.post)},input:function(t){t.target.composing||(e.post.excerpt=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.post.url,expression:"post.url"}],staticClass:"input",attrs:{type:"text",placeholder:e.lang.urlLabel},domProps:{value:e._s(e.post.url)},on:{keyup:function(t){e.changed(e.post)},input:function(t){t.target.composing||(e.post.url=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("button",{staticClass:"button",on:{click:e.changeImage}},[e.post.imageUrl?n("span",[e._v("\n                        "+e._s(e.lang.changeImageLabel)+"\n                    ")]):e._e(),e._v(" "),e.post.imageUrl?e._e():n("span",[e._v("\n                        "+e._s(e.lang.addImageLabel)+"\n                    ")])]),e._v(" "),e.post.imageUrl?n("button",{staticClass:"button",on:{click:e.removeImage}},[e._v("\n                    "+e._s(e.lang.removeImageLabel)+"\n                ")]):e._e()])]),e._v(" "),e.dirty?n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("button",{staticClass:"button is-primary"},[e._v(e._s(e.lang.saveLabel))])])]):e._e()])]):e._e()},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.moduleClass},[n("div",{staticClass:"modal-background",on:{click:e.close}}),e._v(" "),n("div",{staticClass:"modal-card"},[n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.lang.editLabel)+" "+e._s(e.form.id))]),e._v(" "),n("button",{staticClass:"delete",on:{click:e.close}})]),e._v(" "),n("section",{staticClass:"modal-card-body"},[n("label",{staticClass:"label"},[e._v("ID: "+e._s(e.form.id))]),e._v(" "),n("label",{staticClass:"label"},[e._v(e._s(e.lang.nameLabel))]),e._v(" "),n("p",{staticClass:"control"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.form.name,expression:"form.name"}],ref:"editName",staticClass:"input",attrs:{type:"text",placeholder:e.lang.namePlaceholder},domProps:{value:e._s(e.form.name)},on:{input:function(t){t.target.composing||(e.form.name=t.target.value)}}})]),e._v(" "),n("label",{staticClass:"label"},[e._v(e._s(e.lang.descriptionLabel))]),e._v(" "),n("p",{staticClass:"control"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.form.description,expression:"form.description"}],staticClass:"textarea",attrs:{placeholder:e.lang.descriptionPlaceholder},domProps:{value:e._s(e.form.description)},on:{input:function(t){t.target.composing||(e.form.description=t.target.value)}}})]),e._v(" "),n("p",{staticClass:"control"},[n("label",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.form.private,expression:"form.private"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.form.private)?e._i(e.form.private,null)>-1:e.form.private},on:{click:function(t){var n=e.form.private,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);i?a<0&&(e.form.private=n.concat(o)):a>-1&&(e.form.private=n.slice(0,a).concat(n.slice(a+1)))}else e.form.private=i}}}),e._v("\n                    "+e._s(e.lang.privateLabel)+"\n                ")])])]),e._v(" "),n("footer",{staticClass:"modal-card-foot"},[n("a",{staticClass:"button is-success",on:{click:e.save}},[e._v(e._s(e.lang.saveLabel))]),e._v(" "),n("a",{staticClass:"button",on:{click:e.close}},[e._v(e._s(e.lang.cancelLabel))]),e._v(" "),n("a",{staticClass:"button is-warning",on:{click:e.hide}},[e._v(e._s(e.lang.hideListLabel))]),e._v(" "),n("a",{staticClass:"button is-danger",on:{click:e.destroy}},[e._v(e._s(e.lang.destroyLabel))])])])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-frame"},[n("top-menu",{attrs:{links:e.links,showNewList:"false",title:e.title}}),e._v("\n\n         "),n("br")],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",e._l(e.listings,function(e){return n("list-item",{attrs:{id:e.id}})}))},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-frame"},[n("top-menu",{attrs:{links:e.links,showNewList:"true",title:e.title}}),e._v("\n\n     "),n("br"),e._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column"},[n("post-search")],1),e._v(" "),n("div",{staticClass:"column"},[n("listings")],1),e._v(" "),n("div",{staticClass:"column"},[n("post-edit")],1)]),e._v(" "),n("list-edit",{ref:"listEdit"})],1)},staticRenderFns:[]}},function(e,t,n){var r=n(42);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("6ae5e8ac",r,!0)},function(e,t,n){var r=n(43);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("9658fb96",r,!0)},function(e,t,n){var r=n(44);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("bc0d913c",r,!0)},function(e,t,n){var r=n(45);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("876730e2",r,!0)},function(e,t,n){var r=n(46);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("48e47d61",r,!0)},function(e,t,n){var r=n(47);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("5da995f3",r,!0)},function(e,t,n){var r=n(48);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("6aebc22f",r,!0)},function(e,t,n){var r=n(49);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("1bdd9fb0",r,!0)},function(e,t,n){var r=n(50);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("41cae2ae",r,!0)},function(e,t,n){var r=n(51);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("f0e85eca",r,!0)},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],l=o[2],u=o[3],c={id:e+":"+i,css:s,media:l,sourceMap:u};r[a]?r[a].parts.push(c):n.push(r[a]={id:a,parts:[c]})}return n}},function(e,t,n){"use strict";(function(t){/*! 
     31!function(o){"use strict";r=o,i="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==i&&(e.exports=i))}(function(){"use strict";function e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=g({},t),e[R]=this;var n={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",ignore:"a, img",filter:null,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1};for(var r in n)!(r in t)&&(t[r]=n[r]);z(t);for(var o in this)"_"===o.charAt(0)&&(this[o]=this[o].bind(this));this.nativeDraggable=!t.forceFallback&&H,i(e,"mousedown",this._onTapStart),i(e,"touchstart",this._onTapStart),this.nativeDraggable&&(i(e,"dragover",this),i(e,"dragenter",this)),X.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function t(e){w&&w.state!==e&&(s(w,"display",e?"none":""),!e&&w.state&&_.insertBefore(w,y),w.state=e)}function n(e,t,n){if(e){n=n||F,t=t.split(".");var r=t.shift().toUpperCase(),i=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");do if(">*"===r&&e.parentNode===n||(""===r||e.nodeName.toUpperCase()==r)&&(!t.length||((" "+e.className+" ").match(i)||[]).length==t.length))return e;while(e!==n&&(e=e.parentNode))}return null}function r(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}function i(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}function a(e,t,n){if(e)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(I," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(I," ")}}function s(e,t,n){var r=e&&e.style;if(r){if(void 0===n)return F.defaultView&&F.defaultView.getComputedStyle?n=F.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function l(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function u(e,t,n,r,i,o,a){var s=F.createEvent("Event"),l=(e||t[R]).options,u="on"+n.charAt(0).toUpperCase()+n.substr(1);s.initEvent(n,!0,!0),s.to=t,s.from=i||t,s.item=r||t,s.clone=w,s.oldIndex=o,s.newIndex=a,t.dispatchEvent(s),l[u]&&l[u].call(e,s)}function c(e,t,n,r,i,o){var a,s,l=e[R],u=l.options.onMove;return a=F.createEvent("Event"),a.initEvent("move",!0,!0),a.to=t,a.from=e,a.dragged=n,a.draggedRect=r,a.related=i||t,a.relatedRect=o||t.getBoundingClientRect(),e.dispatchEvent(a),u&&(s=u.call(l,a)),s}function f(e){e.draggable=!1}function p(){U=!1}function d(e,t){var n=e.lastElementChild,r=n.getBoundingClientRect();return(t.clientY-(r.top+r.height)>5||t.clientX-(r.right+r.width)>5)&&n}function h(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function v(e){var t=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"!==e.nodeName.toUpperCase()&&t++;return t}function m(e,t){var n,r;return function(){void 0===n&&(n=arguments,r=this,setTimeout(function(){1===n.length?e.call(r,n[0]):e.apply(r,n),n=void 0},t))}}function g(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var y,b,x,w,_,C,T,k,E,S,A,$,N,D,L,O,j,P={},I=/\s+/g,R="Sortable"+(new Date).getTime(),M=window,F=M.document,q=M.parseInt,H=!!("draggable"in F.createElement("div")),B=function(e){return e=F.createElement("x"),e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),U=!1,W=Math.abs,X=([].slice,[]),V=m(function(e,t,n){if(n&&t.scroll){var r,i,o,a,s=t.scrollSensitivity,l=t.scrollSpeed,u=e.clientX,c=e.clientY,f=window.innerWidth,p=window.innerHeight;if(k!==n&&(T=t.scroll,k=n,T===!0)){T=n;do if(T.offsetWidth<T.scrollWidth||T.offsetHeight<T.scrollHeight)break;while(T=T.parentNode)}T&&(r=T,i=T.getBoundingClientRect(),o=(W(i.right-u)<=s)-(W(i.left-u)<=s),a=(W(i.bottom-c)<=s)-(W(i.top-c)<=s)),o||a||(o=(f-u<=s)-(u<=s),a=(p-c<=s)-(c<=s),(o||a)&&(r=M)),P.vx===o&&P.vy===a&&P.el===r||(P.el=r,P.vx=o,P.vy=a,clearInterval(P.pid),r&&(P.pid=setInterval(function(){r===M?M.scrollTo(M.pageXOffset+o*l,M.pageYOffset+a*l):(a&&(r.scrollTop+=a*l),o&&(r.scrollLeft+=o*l))},24)))}},30),z=function(e){var t=e.group;t&&"object"==typeof t||(t=e.group={name:t}),["pull","put"].forEach(function(e){e in t||(t[e]=!0)}),e.groups=" "+t.name+(t.put.join?" "+t.put.join(" "):"")+" "};return e.prototype={constructor:e,_onTapStart:function(e){var t=this,r=this.el,i=this.options,o=e.type,a=e.touches&&e.touches[0],s=(a||e).target,l=s,c=i.filter;if(!("mousedown"===o&&0!==e.button||i.disabled)&&(s=n(s,i.draggable,r))){if($=v(s),"function"==typeof c){if(c.call(this,e,s,this))return u(t,l,"filter",s,r,$),void e.preventDefault()}else if(c&&(c=c.split(",").some(function(e){if(e=n(l,e.trim(),r))return u(t,e,"filter",s,r,$),!0})))return void e.preventDefault();i.handle&&!n(l,i.handle,r)||this._prepareDragStart(e,a,s)}},_prepareDragStart:function(e,t,n){var r,o=this,s=o.el,u=o.options,c=s.ownerDocument;n&&!y&&n.parentNode===s&&(L=e,_=s,y=n,b=y.parentNode,C=y.nextSibling,D=u.group,r=function(){o._disableDelayedDrag(),y.draggable=!0,a(y,o.options.chosenClass,!0),o._triggerDragStart(t)},u.ignore.split(",").forEach(function(e){l(y,e.trim(),f)}),i(c,"mouseup",o._onDrop),i(c,"touchend",o._onDrop),i(c,"touchcancel",o._onDrop),u.delay?(i(c,"mouseup",o._disableDelayedDrag),i(c,"touchend",o._disableDelayedDrag),i(c,"touchcancel",o._disableDelayedDrag),i(c,"mousemove",o._disableDelayedDrag),i(c,"touchmove",o._disableDelayedDrag),o._dragStartTimer=setTimeout(r,u.delay)):r())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),o(e,"mouseup",this._disableDelayedDrag),o(e,"touchend",this._disableDelayedDrag),o(e,"touchcancel",this._disableDelayedDrag),o(e,"mousemove",this._disableDelayedDrag),o(e,"touchmove",this._disableDelayedDrag)},_triggerDragStart:function(e){e?(L={target:y,clientX:e.clientX,clientY:e.clientY},this._onDragStart(L,"touch")):this.nativeDraggable?(i(y,"dragend",this),i(_,"dragstart",this._onDragStart)):this._onDragStart(L,!0);try{F.selection?F.selection.empty():window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){_&&y&&(a(y,this.options.ghostClass,!0),e.active=this,u(this,_,"start",y,_,$))},_emulateDragOver:function(){if(O){if(this._lastX===O.clientX&&this._lastY===O.clientY)return;this._lastX=O.clientX,this._lastY=O.clientY,B||s(x,"display","none");var e=F.elementFromPoint(O.clientX,O.clientY),t=e,n=" "+this.options.group.name,r=X.length;if(t)do{if(t[R]&&t[R].options.groups.indexOf(n)>-1){for(;r--;)X[r]({clientX:O.clientX,clientY:O.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);B||s(x,"display","")}},_onTouchMove:function(t){if(L){e.active||this._dragStarted(),this._appendGhost();var n=t.touches?t.touches[0]:t,r=n.clientX-L.clientX,i=n.clientY-L.clientY,o=t.touches?"translate3d("+r+"px,"+i+"px,0)":"translate("+r+"px,"+i+"px)";j=!0,O=n,s(x,"webkitTransform",o),s(x,"mozTransform",o),s(x,"msTransform",o),s(x,"transform",o),t.preventDefault()}},_appendGhost:function(){if(!x){var e,t=y.getBoundingClientRect(),n=s(y),r=this.options;x=y.cloneNode(!0),a(x,r.ghostClass,!1),a(x,r.fallbackClass,!0),s(x,"top",t.top-q(n.marginTop,10)),s(x,"left",t.left-q(n.marginLeft,10)),s(x,"width",t.width),s(x,"height",t.height),s(x,"opacity","0.8"),s(x,"position","fixed"),s(x,"zIndex","100000"),s(x,"pointerEvents","none"),r.fallbackOnBody&&F.body.appendChild(x)||_.appendChild(x),e=x.getBoundingClientRect(),s(x,"width",2*t.width-e.width),s(x,"height",2*t.height-e.height)}},_onDragStart:function(e,t){var n=e.dataTransfer,r=this.options;this._offUpEvents(),"clone"==D.pull&&(w=y.cloneNode(!0),s(w,"display","none"),_.insertBefore(w,y)),t?("touch"===t?(i(F,"touchmove",this._onTouchMove),i(F,"touchend",this._onDrop),i(F,"touchcancel",this._onDrop)):(i(F,"mousemove",this._onTouchMove),i(F,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(n&&(n.effectAllowed="move",r.setData&&r.setData.call(this,n,y)),i(F,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(e){var r,i,o,a=this.el,l=this.options,u=l.group,f=u.put,h=D===u,v=l.sort;if(void 0!==e.preventDefault&&(e.preventDefault(),!l.dragoverBubble&&e.stopPropagation()),j=!0,D&&!l.disabled&&(h?v||(o=!_.contains(y)):D.pull&&f&&(D.name===u.name||f.indexOf&&~f.indexOf(D.name)))&&(void 0===e.rootEl||e.rootEl===this.el)){if(V(e,l,this.el),U)return;if(r=n(e.target,l.draggable,a),i=y.getBoundingClientRect(),o)return t(!0),void(w||C?_.insertBefore(y,w||C):v||_.appendChild(y));if(0===a.children.length||a.children[0]===x||a===e.target&&(r=d(a,e))){if(r){if(r.animated)return;g=r.getBoundingClientRect()}t(h),c(_,a,y,i,r,g)!==!1&&(y.contains(a)||(a.appendChild(y),b=a),this._animate(i,y),r&&this._animate(g,r))}else if(r&&!r.animated&&r!==y&&void 0!==r.parentNode[R]){E!==r&&(E=r,S=s(r),A=s(r.parentNode));var m,g=r.getBoundingClientRect(),T=g.right-g.left,k=g.bottom-g.top,$=/left|right|inline/.test(S.cssFloat+S.display)||"flex"==A.display&&0===A["flex-direction"].indexOf("row"),N=r.offsetWidth>y.offsetWidth,L=r.offsetHeight>y.offsetHeight,O=($?(e.clientX-g.left)/T:(e.clientY-g.top)/k)>.5,P=r.nextElementSibling,I=c(_,a,y,i,r,g);if(I!==!1){if(U=!0,setTimeout(p,30),t(h),1===I||I===-1)m=1===I;else if($){var M=y.offsetTop,F=r.offsetTop;m=M===F?r.previousElementSibling===y&&!N||O&&N:F>M}else m=P!==y&&!L||O&&L;y.contains(a)||(m&&!P?a.appendChild(y):r.parentNode.insertBefore(y,m?P:r)),b=y.parentNode,this._animate(i,y),this._animate(g,r)}}}},_animate:function(e,t){var n=this.options.animation;if(n){var r=t.getBoundingClientRect();s(t,"transition","none"),s(t,"transform","translate3d("+(e.left-r.left)+"px,"+(e.top-r.top)+"px,0)"),t.offsetWidth,s(t,"transition","all "+n+"ms"),s(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=setTimeout(function(){s(t,"transition",""),s(t,"transform",""),t.animated=!1},n)}},_offUpEvents:function(){var e=this.el.ownerDocument;o(F,"touchmove",this._onTouchMove),o(e,"mouseup",this._onDrop),o(e,"touchend",this._onDrop),o(e,"touchcancel",this._onDrop)},_onDrop:function(t){var n=this.el,r=this.options;clearInterval(this._loopId),clearInterval(P.pid),clearTimeout(this._dragStartTimer),o(F,"mousemove",this._onTouchMove),this.nativeDraggable&&(o(F,"drop",this),o(n,"dragstart",this._onDragStart)),this._offUpEvents(),t&&(j&&(t.preventDefault(),!r.dropBubble&&t.stopPropagation()),x&&x.parentNode.removeChild(x),y&&(this.nativeDraggable&&o(y,"dragend",this),f(y),a(y,this.options.ghostClass,!1),a(y,this.options.chosenClass,!1),_!==b?(N=v(y),N>=0&&(u(null,b,"sort",y,_,$,N),u(this,_,"sort",y,_,$,N),u(null,b,"add",y,_,$,N),u(this,_,"remove",y,_,$,N))):(w&&w.parentNode.removeChild(w),y.nextSibling!==C&&(N=v(y),N>=0&&(u(this,_,"update",y,_,$,N),u(this,_,"sort",y,_,$,N)))),e.active&&(null!==N&&N!==-1||(N=$),u(this,_,"end",y,_,$,N),this.save())),_=y=b=x=C=w=T=k=L=O=j=N=E=S=D=e.active=null)},handleEvent:function(e){var t=e.type;"dragover"===t||"dragenter"===t?y&&(this._onDragOver(e),r(e)):"drop"!==t&&"dragend"!==t||this._onDrop(e)},toArray:function(){for(var e,t=[],r=this.el.children,i=0,o=r.length,a=this.options;i<o;i++)e=r[i],n(e,a.draggable,this.el)&&t.push(e.getAttribute(a.dataIdAttr)||h(e));return t},sort:function(e){var t={},r=this.el;this.toArray().forEach(function(e,i){var o=r.children[i];n(o,this.options.draggable,r)&&(t[e]=o)},this),e.forEach(function(e){t[e]&&(r.removeChild(t[e]),r.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return n(e,t||this.options.draggable,this.el)},option:function(e,t){var n=this.options;return void 0===t?n[e]:(n[e]=t,void("group"===e&&z(n)))},destroy:function(){var e=this.el;e[R]=null,o(e,"mousedown",this._onTapStart),o(e,"touchstart",this._onTapStart),this.nativeDraggable&&(o(e,"dragover",this),o(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),X.splice(X.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},e.utils={on:i,off:o,css:s,find:l,is:function(e,t){return!!n(e,t,e)},extend:g,throttle:m,closest:n,toggleClass:a,index:v},e.create=function(t,n){return new e(t,n)},e.version="1.4.2",e})},function(e,t,n){n(80);var r=n(2)(n(31),n(70),null,null);e.exports=r.exports},function(e,t,n){n(78);var r=n(2)(n(32),n(68),null,null);e.exports=r.exports},function(e,t,n){n(82);var r=n(2)(n(33),n(72),null,null);e.exports=r.exports},function(e,t,n){n(79);var r=n(2)(n(34),n(69),null,null);e.exports=r.exports},function(e,t,n){n(75);var r=n(2)(n(35),n(65),null,null);e.exports=r.exports},function(e,t,n){n(77);var r=n(2)(n(36),n(67),null,null);e.exports=r.exports},function(e,t,n){n(76);var r=n(2)(n(37),n(66),null,null);e.exports=r.exports},function(e,t,n){n(81);var r=n(2)(n(38),n(71),null,null);e.exports=r.exports},function(e,t,n){n(83);var r=n(2)(n(39),n(73),null,null);e.exports=r.exports},function(e,t,n){n(74);var r=n(2)(n(40),n(64),null,null);e.exports=r.exports},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-frame"},[n("top-menu",{attrs:{links:e.links,showNewList:"false",title:e.title}}),e._v("\n\n         "),n("br")],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;e._self._c||t;return e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box"},[n("p",[n("strong",[e._v("Post Title")])]),e._v(" "),n("br"),e._v(" "),n("article",{staticClass:"media"},[n("div",{staticClass:"media-left"},[n("figure",{staticClass:"image is-64x64"},[n("img",{attrs:{src:"http://bulma.io/images/placeholders/128x128.png",alt:"Image"}})])]),e._v(" "),n("div",{staticClass:"media-content"},[n("div",{staticClass:"content"},[n("p",[e._v("\n                    Post Preamble Content, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa\n                    fringilla egestas. Nullam condimentum luctus turpis.\n                ")])])])])])}]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"nav has-shadow top-menu"},[n("div",{staticClass:"nav-left"},[n("a",{staticClass:"nav-item"},[n("i",{staticClass:"fa fa-list-ul"}),e._v(" "+e._s(e.title)+"\n        ")])]),e._v(" "),n("div",{staticClass:"nav-center"},["true"==e.showNewList?n("div",{staticClass:"nav-item"},[n("a",{staticClass:"button is-primary",on:{click:e.newList}},[e._m(0),e._v("\n                 "+e._s(e.lang.newListLabel)+"\n            ")])]):e._e()]),e._v(" "),e._m(1),e._v(" "),n("div",{staticClass:"nav-right nav-menu"},e._l(e.links,function(t){return n("a",{staticClass:"nav-item",attrs:{href:t.url}},[e._v("\n            "+e._s(t.title)+"\n        ")])}))])},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon is-small new-icon"},[n("i",{staticClass:"fa fa-plus"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"nav-toggle"},[n("span"),e._v(" "),n("span"),e._v(" "),n("span")])}]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("nav",{staticClass:"panel"},[n("p",{staticClass:"panel-heading"},[e._v("\n        "+e._s(e.lang.postSearchLabel)+"\n    ")]),e._v(" "),n("div",{staticClass:"panel-block"},[n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-4"},[n("div",{staticClass:"control has-icon"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.form.search,expression:"form.search"}],staticClass:"input is-small",attrs:{type:"text",placeholder:e.lang.searchPlaceholder},domProps:{value:e._s(e.form.search)},on:{keyup:e.searchBounce,input:function(t){t.target.composing||(e.form.search=t.target.value)}}}),e._v(" "),e._m(0)])]),e._v(" "),n("div",{staticClass:"column is-4"},[n("div",{staticClass:"control"},[n("p",{staticClass:"control"},[n("span",{staticClass:"select is-small"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.form.author,expression:"form.author"}],on:{change:[function(t){e.form.author=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t})[0]},e.search]}},[n("option",{attrs:{value:"0"}},[e._v("-- "+e._s(e.lang.noAuthorLabel)+" --")]),e._v(" "),e._l(e.authors,function(t){return n("option",{domProps:{value:t.data.ID}},[e._v(e._s(t.data.display_name))])})],2)])])])]),e._v(" "),n("div",{staticClass:"column is-4"},[n("div",{staticClass:"control"},[n("p",{staticClass:"control"},[n("span",{staticClass:"select is-small"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.form.posttype,expression:"form.posttype"}],on:{change:[function(t){e.form.posttype=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t})[0]},e.search]}},[n("option",{attrs:{value:"0"}},[e._v("-- "+e._s(e.lang.noPosttypeLabel)+" --")]),e._v(" "),e._l(e.posttypes,function(t){return n("option",{domProps:{value:t.name}},[e._v(e._s(t.label))])})],2)])])])])])]),e._v(" "),n("draggable",{staticClass:"draggable-container",attrs:{list:e.posts,options:{group:"posts",animation:350,pull:"clone",put:!1}}},e._l(e.posts,function(t){return n("div",{key:t.id,staticClass:"panel-block draggable-post",class:{"is-active":t.id==e.currentPostId},on:{click:function(n){e.currentPostId=t.id}}},[n("span",{staticClass:"{ 'selected-post' : post.id==currentPost}"},[e._v("\n                "+e._s(t.headline)+"\n            ")])])})),e._v(" "),n("div",{staticClass:"panel-block"},[e.form.page>1?n("a",{staticClass:"button button-page-previous is-outlined is-small",on:{click:e.previous}},[e._m(1),e._v("\n            "+e._s(e.lang.previousLabel)+"\n        ")]):e._e(),e._v(" \n\n        "),n("span",{staticClass:"tag is-primary"},[e._v(e._s(e.form.page)+" / "+e._s(e.maxPages))]),e._v(" \n\n        "),e.form.page<e.maxPages?n("a",{staticClass:"button button-page-next is-outlined is-small",on:{click:e.next}},[e._v("\n            "+e._s(e.lang.nextLabel)+"\n            "),e._m(2)]):e._e(),e._v(" \n\n        "),n("p",{staticClass:"control"},[n("span",{staticClass:"select is-small pull-right"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.form.postsPerPage,expression:"form.postsPerPage"}],on:{change:[function(t){e.form.postsPerPage=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t})[0]},e.changePostsPerPage]}},[n("option",{attrs:{value:"5"}},[e._v("5")]),e._v(" "),n("option",{attrs:{value:"10"}},[e._v("10")]),e._v(" "),n("option",{attrs:{value:"20"}},[e._v("20")]),e._v(" "),n("option",{attrs:{value:"100"}},[e._v("100")])])])])])],1)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon is-small"},[n("i",{staticClass:"fa fa-search"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon is-small"},[n("i",{staticClass:"fa fa-angle-left"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"icon is-small"},[n("i",{staticClass:"fa fa-angle-right"})])}]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.id>0?n("nav",{staticClass:"panel"},[n("p",{staticClass:"panel-heading"},[e._v("\n        "+e._s(e.name)+" \n        "),n("a",{staticClass:"icon is-pulled-right gear-icon",on:{click:e.listEdit}},[n("i",{staticClass:"fa fa-gear"})]),e._v(" "),n("a",{staticClass:"icon is-pulled-right file-icon",on:{click:e.addEmpty}},[n("i",{staticClass:"fa fa-file-o"})])]),e._v(" "),n("draggable",{class:{"panel-block initial-area":0==e.posts.length},attrs:{list:e.posts,options:{group:"posts",animation:350}},on:{add:e.dragAdded,end:e.dragEnded}},e._l(e.posts,function(t,r){return n("div",{staticClass:"panel-block draggable-post",class:{"is-active":e.selectedIndex==e.posts.indexOf(t)},on:{click:function(n){e.postEdit(t)}}},[n("a",{staticClass:"delete is-small",on:{click:function(n){e.postRemove(t)}}}),e._v("  \n            "),n("span",{class:{"active-post":e.selectedIndex==e.posts.indexOf(t)}},[e._v(e._s(t.headline))])])})),e._v(" "),e.dirty?n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("button",{staticClass:"button is-primary",on:{click:e.save}},[e._v("Save")])])]):e._e()],1):e._e()},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.post?n("div",[n("div",{staticClass:"box"},[n("h2",{staticClass:"title is-2"},[e._v(e._s(e.post.headline))]),e._v(" "),n("article",{staticClass:"media"},[e.post.imageUrl?n("div",{staticClass:"media-left"},[n("figure",{staticClass:"image is-64x64"},[n("img",{attrs:{src:e.post.imageUrl,alt:"Image"}})])]):e._e(),e._v(" "),n("div",{staticClass:"media-content"},[n("div",{staticClass:"content",domProps:{innerHTML:e._s(e.post.excerpt)}})])])]),e._v(" "),n("div",{staticClass:"panel"},[n("p",{staticClass:"panel-heading"},[e._v("\n            "+e._s(e.lang.postEditLabel)+"\n        ")]),e._v(" "),n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.post.headline,expression:"post.headline"}],staticClass:"input",attrs:{type:"text",placeholder:e.lang.headlineLabel},domProps:{value:e._s(e.post.headline)},on:{keyup:function(t){e.changed(e.post)},input:function(t){t.target.composing||(e.post.headline=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.post.excerpt,expression:"post.excerpt"}],staticClass:"textarea",attrs:{placeholder:e.lang.excerptLabel},domProps:{value:e._s(e.post.excerpt)},on:{keyup:function(t){e.changed(e.post)},input:function(t){t.target.composing||(e.post.excerpt=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.post.url,expression:"post.url"}],staticClass:"input",attrs:{type:"text",placeholder:e.lang.urlLabel},domProps:{value:e._s(e.post.url)},on:{keyup:function(t){e.changed(e.post)},input:function(t){t.target.composing||(e.post.url=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("button",{staticClass:"button",on:{click:e.changeImage}},[e.post.imageUrl?n("span",[e._v("\n                        "+e._s(e.lang.changeImageLabel)+"\n                    ")]):e._e(),e._v(" "),e.post.imageUrl?e._e():n("span",[e._v("\n                        "+e._s(e.lang.addImageLabel)+"\n                    ")])]),e._v(" "),e.post.imageUrl?n("button",{staticClass:"button",on:{click:e.removeImage}},[e._v("\n                    "+e._s(e.lang.removeImageLabel)+"\n                ")]):e._e()])]),e._v(" "),e.dirty?n("div",{staticClass:"panel-block"},[n("div",{staticClass:"control"},[n("button",{staticClass:"button is-primary"},[e._v(e._s(e.lang.saveLabel))])])]):e._e()])]):e._e()},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.moduleClass},[n("div",{staticClass:"modal-background",on:{click:e.close}}),e._v(" "),n("div",{staticClass:"modal-card"},[n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.lang.editLabel)+" "+e._s(e.form.id))]),e._v(" "),n("button",{staticClass:"delete",on:{click:e.close}})]),e._v(" "),n("section",{staticClass:"modal-card-body"},[n("label",{staticClass:"label"},[e._v("ID: "+e._s(e.form.id))]),e._v(" "),n("label",{staticClass:"label"},[e._v(e._s(e.lang.nameLabel))]),e._v(" "),n("p",{staticClass:"control"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.form.name,expression:"form.name"}],ref:"editName",staticClass:"input",attrs:{type:"text",placeholder:e.lang.namePlaceholder},domProps:{value:e._s(e.form.name)},on:{input:function(t){t.target.composing||(e.form.name=t.target.value)}}})]),e._v(" "),n("label",{staticClass:"label"},[e._v(e._s(e.lang.descriptionLabel))]),e._v(" "),n("p",{staticClass:"control"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.form.description,expression:"form.description"}],staticClass:"textarea",attrs:{placeholder:e.lang.descriptionPlaceholder},domProps:{value:e._s(e.form.description)},on:{input:function(t){t.target.composing||(e.form.description=t.target.value)}}})]),e._v(" "),n("p",{staticClass:"control"},[n("label",{staticClass:"checkbox"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.form.private,expression:"form.private"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.form.private)?e._i(e.form.private,null)>-1:e.form.private},on:{click:function(t){var n=e.form.private,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);i?a<0&&(e.form.private=n.concat(o)):a>-1&&(e.form.private=n.slice(0,a).concat(n.slice(a+1)))}else e.form.private=i}}}),e._v("\n                    "+e._s(e.lang.privateLabel)+"\n                ")])])]),e._v(" "),n("footer",{staticClass:"modal-card-foot"},[n("a",{staticClass:"button is-success",on:{click:e.save}},[e._v(e._s(e.lang.saveLabel))]),e._v(" "),n("a",{staticClass:"button",on:{click:e.close}},[e._v(e._s(e.lang.cancelLabel))]),e._v(" "),n("a",{staticClass:"button is-warning",on:{click:e.hide}},[e._v(e._s(e.lang.hideListLabel))]),e._v(" "),n("a",{staticClass:"button is-danger",on:{click:e.destroy}},[e._v(e._s(e.lang.destroyLabel))])])])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-frame"},[n("top-menu",{attrs:{links:e.links,showNewList:"false",title:e.title}}),e._v("\n\n         "),n("br")],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",e._l(e.lists,function(e){return n("list-item",{key:e,attrs:{id:e}})}))},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"page-frame"},[n("top-menu",{attrs:{links:e.links,showNewList:"true",title:e.title}}),e._v("\n\n     "),n("br"),e._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-3"},[n("post-search")],1),e._v(" "),n("div",{staticClass:"column is-3"},[n("listings")],1),e._v(" "),n("div",{staticClass:"column is-6"},[n("post-edit")],1)]),e._v(" "),n("list-edit",{ref:"listEdit"})],1)},staticRenderFns:[]}},function(e,t,n){var r=n(42);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("6ae5e8ac",r,!0)},function(e,t,n){var r=n(43);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("9658fb96",r,!0)},function(e,t,n){var r=n(44);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("bc0d913c",r,!0)},function(e,t,n){var r=n(45);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("876730e2",r,!0)},function(e,t,n){var r=n(46);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("48e47d61",r,!0)},function(e,t,n){var r=n(47);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("5da995f3",r,!0)},function(e,t,n){var r=n(48);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("6aebc22f",r,!0)},function(e,t,n){var r=n(49);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("1bdd9fb0",r,!0)},function(e,t,n){var r=n(50);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("41cae2ae",r,!0)},function(e,t,n){var r=n(51);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);n(3)("f0e85eca",r,!0)},function(e,t){e.exports=function(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],l=o[2],u=o[3],c={id:e+":"+i,css:s,media:l,sourceMap:u};r[a]?r[a].parts.push(c):n.push(r[a]={id:a,parts:[c]})}return n}},function(e,t,n){"use strict";(function(t){/*! 
    3232 * Vue.js v2.1.10 
    3333 * (c) 2014-2017 Evan You 
  • listig/trunk/languages/listig-sv_SE.po

    r1594408 r1596721  
    22msgstr "" 
    33"Project-Id-Version: Listig\n" 
    4 "POT-Creation-Date: 2017-02-12 20:29+0100\n" 
    5 "PO-Revision-Date: 2017-02-12 20:30+0100\n" 
     4"POT-Creation-Date: 2017-02-15 18:14+0100\n" 
     5"PO-Revision-Date: 2017-02-15 18:15+0100\n" 
    66"Last-Translator: \n" 
    77"Language-Team: \n" 
     
    2020"X-Poedit-SearchPath-0: .\n" 
    2121"X-Poedit-SearchPathExcluded-0: *.js\n" 
     22 
     23#: listig.php:24 
     24msgid "" 
     25"Plugin \"listig\" requires at least PHP7. Please upgrade PHP or inactivate " 
     26"the plugin!" 
     27msgstr "" 
    2228 
    2329#: src/Language/Script.php:9 
     
    122128msgstr "Ändra bild" 
    123129 
     130#: src/Language/Script.php:34 
     131msgid "Hide list" 
     132msgstr "Göm lista" 
     133 
     134#: src/Language/Script.php:35 
     135msgid "Url" 
     136msgstr "Webbadress" 
     137 
    124138#. Plugin Name of the plugin/theme 
    125139msgid "Listig" 
  • listig/trunk/listig.php

    r1596578 r1596721  
    44Plugin URI:  https://github.com/ekandreas/listig/ 
    55Description: List Manager 
    6 Version:     0.2.4 
     6Version:     0.2.5 
    77Author:      Andreas Ek 
    88Author URI:  https://www.elseif.se/ 
  • listig/trunk/readme.txt

    r1596578 r1596721  
    44Requires at least: 4.7 
    55Tested up to: 4.7.2 
    6 Stable tag: 0.2.4 
     6Stable tag: 0.2.5 
    77License: MIT 
    88License URI: https://opensource.org/licenses/MIT 
  • listig/trunk/resources/vue/components/list-edit.vue

    r1596578 r1596721  
    7272                let self = this; 
    7373 
     74                self.clearForm(); 
     75 
    7476                axios.defaults.headers.common['X-WP-Nonce'] = listig.nonce; 
    7577                axios.get(`${listig.restUrl}/listing/${listId}`) 
    7678                    .then(function (response) { 
    77                         self.form.id = response.data.id; 
    78                         self.form.name = response.data.name; 
    79                         self.form.description = response.data.description; 
    80                         self.form.private = response.data.private; 
    81                         self.form.posts = response.data.posts; 
     79 
     80                        if(response.data) { 
     81                            self.form.id = response.data.id; 
     82                            self.form.name = response.data.name; 
     83                            self.form.description = response.data.description; 
     84                            self.form.private = response.data.private; 
     85                            self.form.posts = response.data.posts; 
     86                        } 
    8287 
    8388                        self.moduleClass = 'modal is-active'; 
     
    101106                axios.post(listig.restUrl + '/listing/' + self.form.id, self.form) 
    102107                    .then(function (response) { 
    103                         self.form.name = ''; 
    104                         self.form.description = ''; 
    105                         self.form.private = false; 
    106                         self.form.posts = []; 
     108                        self.close(); 
     109                        self.clearForm(); 
    107110                        window.eventBus.$emit('list-rebound', response.data.id); 
    108                         self.close(); 
    109111                    }); 
    110112            }, 
     
    115117                axios.delete(listig.restUrl + '/listing/' + self.form.id) 
    116118                    .then(function (response) { 
     119                        self.close(); 
     120                        window.eventBus.$emit('list-hide', self.form.id); 
    117121                        window.eventBus.$emit('list-rebound', self.form.id); 
    118                         self.close(); 
    119122                    }); 
     123            }, 
     124            clearForm() { 
     125                let self = this; 
     126 
     127                self.form.id = 0; 
     128                self.form.name = ''; 
     129                self.form.description = ''; 
     130                self.form.private = false; 
     131                self.form.posts = []; 
    120132            } 
    121133        } 
  • listig/trunk/resources/vue/components/list-item.vue

    r1596578 r1596721  
    11<template> 
    2     <nav class="panel"> 
     2    <nav class="panel" v-if="id>0"> 
    33        <p class="panel-heading"> 
    44            {{ name }}&nbsp; 
     
    6868        methods: { 
    6969            focusOnPost(post) { 
     70                let self = this; 
    7071                window.eventBus.$emit('post-selected', post); 
    7172                window.eventBus.$emit('post-edit', {listId: self.id, post: post}); 
  • listig/trunk/resources/vue/components/listings.vue

    r1596578 r1596721  
    11<template> 
    22    <div> 
    3         <list-item v-for="list in listings" :id="list.id"></list-item> 
     3        <list-item v-for="list in lists" :id="list" :key="list"></list-item> 
    44    </div> 
    55</template> 
     
    77<script> 
    88 
    9     module.exports = { 
     9    export default { 
    1010        data() { 
    1111            return { 
    12                 listings: [] 
     12                lists: [] 
    1313            } 
    1414        }, 
     
    3434                axios.get(listig.restUrl + '/listing') 
    3535                    .then(function (response) { 
    36                         if(self.listings.length) { 
    37                             response.data.forEach(function (currentList, index) { 
    38                                 if (self.listIndex(currentList.id)<0) { 
    39                                     self.listings.unshift(currentList); 
    40                                 } 
    41                             }); 
    42                         } 
    43                         else { 
    44                             self.listings = response.data; 
    45                         } 
     36                        response.data.forEach(function(list) { 
     37                            self.lists.push(list.id); 
     38                        }); 
    4639                    }); 
    4740            }, 
     
    5144                axios.get(`${listig.restUrl}/listing/${listId}`) 
    5245                    .then(function (response) { 
    53                         let position = self.listIndex(listId); 
    54                         if(response.data==null) { 
    55                             self.listings.splice(position,1); 
     46 
     47                        let index = self.lists.indexOf(listId); 
     48 
     49                        if(index<0) { 
     50                            self.lists.unshift(response.data.id); 
     51                            return; 
    5652                        } 
    57                         else if(position<0) { 
    58                             self.listings.unshift(response.data); 
     53 
     54                        if(!response.data) { 
     55                            self.lists.splice(index,1); 
     56                            return; 
    5957                        } 
    60                         else { 
    61                             self.listings[position] = response.data; 
    62                         } 
     58 
     59                        self.lists[index] = response.data; 
    6360                    }); 
    64             }, 
    65             listIndex(listId) { 
    66                 let self = this; 
    67                 for(let i=0;i<self.listings.length;i++) { 
    68                     if (self.listings[i].id == listId) { 
    69                         return i; 
    70                     } 
    71                 } 
    72                 return -1; 
    73             }, 
    74             edit(list) { 
    75                 window.eventBus.$emit('list-edit', list); 
    7661            } 
    7762        } 
  • listig/trunk/resources/vue/components/post-edit.vue

    r1596578 r1596721  
    6969 
    7070<script> 
    71     module.exports = { 
     71    export default { 
     72 
    7273        data() { 
    7374            return { 
  • listig/trunk/resources/vue/components/post-search.vue

    r1594408 r1596721  
    8888 
    8989<script> 
    90     module.exports = { 
    91         mounted: function () { 
     90    export default { 
     91 
     92        mounted() { 
    9293            let self = this; 
    9394            axios.defaults.headers.common['X-WP-Nonce'] = listig.nonce; 
     
    102103            self.search(); 
    103104        }, 
    104         data: function () { 
     105        data() { 
    105106            return { 
    106107                currentPostId: 0, 
     
    121122        }, 
    122123        methods: { 
    123             search: function (noReset) { 
     124            search(noReset) { 
    124125                let self = this; 
    125126                self.form.page = 1; 
     
    127128                self.queryForm(); 
    128129            }, 
    129             queryForm: function () { 
     130            queryForm() { 
    130131                let self = this; 
    131132                axios.defaults.headers.common['X-WP-Nonce'] = listig.nonce; 
     
    137138                    }); 
    138139            }, 
    139             searchBounce: function () { 
     140            searchBounce() { 
    140141                let self = this; 
    141142 
     
    145146                }.bind(this), 300); 
    146147            }, 
    147             changePostsPerPage: function () { 
     148            changePostsPerPage() { 
    148149                let self = this; 
    149150 
     
    159160                    }); 
    160161            }, 
    161             next: function () { 
     162            next() { 
    162163                let self = this; 
    163164                self.form.page++; 
    164165                self.queryForm(); 
    165166            }, 
    166             previous: function () { 
     167            previous() { 
    167168                let self = this; 
    168169                self.form.page--; 
  • listig/trunk/resources/vue/components/top-menu.vue

    r1594408 r1596721  
    5252                let self = this; 
    5353 
    54                 window.eventBus.$emit('list-edit'); 
    55                 //self.$refs.editList.edit(); 
     54                window.eventBus.$emit('list-edit', 0); 
    5655            } 
    5756        } 
  • listig/trunk/resources/vue/pages/main-page.vue

    r1594408 r1596721  
    1010        <div class="columns"> 
    1111 
    12             <div class="column"> 
     12            <div class="column is-3"> 
    1313                <post-search></post-search> 
    1414            </div> 
    1515 
    16             <div class="column"> 
     16            <div class="column is-3"> 
    1717                <listings></listings> 
    1818            </div> 
    1919 
    20             <div class="column"> 
     20            <div class="column is-6"> 
    2121                <post-edit></post-edit> 
    2222            </div> 
Note: See TracChangeset for help on using the changeset viewer.