(function(){/*
 MIT License (c) copyright 2010-2013 B Cavalier & J Hann */
(function(h){function r(){}function p(a,b){return 0==X.call(a).indexOf("[object "+b)}function m(a){return a&&"/"==a.charAt(a.length-1)?a.substr(0,a.length-1):a}function D(a,b){var d,c,e,f;d=1;c=a;"."==c.charAt(0)&&(e=!0,c=c.replace(Y,function(a,b,c,e){c&&d++;return e||""}));if(e){e=b.split("/");f=e.length-d;if(0>f)return a;e.splice(f,d);return e.concat(c||[]).join("/")}return c}function A(a){var b=a.indexOf("!");return{f:a.substr(b+1),d:0<=b&&a.substr(0,b)}}function H(){}function u(a,b){H.prototype=
a||P;var d=new H;H.prototype=P;for(var c in b)d[c]=b[c];return d}function G(){function a(a,b,d){c.push([a,b,d])}function b(a,b){for(var d,e=0;d=c[e++];)(d=d[a])&&d(b)}var d,c,e;d=this;c=[];e=function(d,g){a=d?function(a){a&&a(g)}:function(a,b){b&&b(g)};e=r;b(d?0:1,g);b=r;c=n};this.then=function(b,c,e){a(b,c,e);return d};this.i=function(a){d.oa=a;e(!0,a)};this.g=function(a){d.na=a;e(!1,a)};this.v=function(a){b(2,a)}}function x(a){return a instanceof G||a instanceof y}function v(a,b,d,c){x(a)?a.then(b,
d,c):b(a)}function w(a,b,d){var c;return function(){0<=--a&&b&&(c=b.apply(n,arguments));0==a&&d&&d(c);return c}}function z(){var a,b;l="";a=[].slice.call(arguments);p(a[0],"Object")&&(b=a.shift(),b=E(b));return new y(a[0],a[1],a[2],b)}function E(a,b,d){var c;l="";if(a&&(k.O(a),s=k.a(a),"preloads"in a&&(c=new y(a.preloads,n,d,I,!0),k.l(function(){I=c})),a=a.main))return new y(a,b,d)}function y(a,b,d,c,e){var f;f=k.h(s,n,[].concat(a),e);this.then=this.then=a=function(a,b){v(f,function(b){a&&a.apply(n,
b)},function(a){if(b)b(a);else throw a;});return this};this.next=function(a,b,c){return new y(a,b,c,f)};this.config=E;(b||d)&&a(b,d);k.l(function(){v(e||I,function(){v(c,function(){k.r(f)},d)})})}function M(a){var b,d;b=a.id;b==n&&(J!==n?J={F:"Multiple anonymous defines encountered"}:(b=k.aa())||(J=a));if(b!=n){d=q[b];b in q||(d=k.j(b,s),d=k.B(d.a,b),q[b]=d);if(!x(d))throw Error("duplicate define: "+b);d.ca=!1;k.C(d,a)}}function B(){var a=k.Y(arguments);M(a)}var l,s,C,K,F=h.document,Q=F&&(F.head||
F.getElementsByTagName("head")[0]),Z=Q&&Q.getElementsByTagName("base")[0]||null,T={},U={},N={},$="addEventListener"in h?{}:{loaded:1,complete:1},P={},X=P.toString,n,q={},O={},I=!1,J,V=/^\/|^[^:]+:\/\//,Y=/(\.)(\.?)(?:$|\/([^\.\/]+.*)?)/g,aa=/\/\*[\s\S]*?\*\/|\/\/.*?[\n\r]/g,ba=/require\s*\(\s*(["'])(.*?[^\\])\1\s*\)|[^\\]?(["'])/g,ca=/\s*,\s*/,R,k;k={n:function(a,b,d){var c;a=D(a,b);if("."==a.charAt(0))return a;c=A(a);a=(b=c.d)||c.f;a in d.c&&(a=d.c[a].K||a);b&&(0>b.indexOf("/")&&!(b in d.c)&&(a=
m(d.M)+"/"+b),a=a+"!"+c.f);return a},h:function(a,b,d,c){function e(b,c){var d,f;d=k.n(b,g.id,a);if(!c)return d;f=A(d);if(!f.d)return d;d=q[f.d];f.f="normalize"in d?d.normalize(f.f,e,g.a)||"":e(f.f);return f.d+"!"+f.f}function f(b,d,f){var S;S=d&&function(a){d.apply(n,a)};if(p(b,"String")){if(S)throw Error("require(id, callback) not allowed");f=e(b,!0);b=q[f];if(!(f in q))throw Error("Module not resolved: "+f);return(f=x(b)&&b.b)||b}v(k.r(k.h(a,g.id,b,c)),S,f)}var g;g=new G;g.id=b||"";g.ba=c;g.D=
d;g.a=a;g.m=f;f.toUrl=function(b){return k.j(e(b,!0),a).url};g.n=e;return g},B:function(a,b,d){var c,e,f;c=k.h(a,b,n,d);e=c.i;f=w(1,function(a){c.q=a;try{return k.S(c)}catch(b){c.g(b)}});c.i=function(a){v(d||I,function(){e(q[c.id]=O[c.url]=f(a))})};c.G=function(a){v(d||I,function(){c.b&&(f(a),c.v(U))})};return c},R:function(a,b,d,c){return k.h(a,d,n,c)},$:function(a){return a.m},H:function(a){return a.b||(a.b={})},Z:function(a){var b=a.s;b||(b=a.s={id:a.id,uri:k.I(a),exports:k.H(a),config:function(){return a.a}},
b.b=b.exports);return b},I:function(a){return a.url||(a.url=k.A(a.m.toUrl(a.id),a.a))},O:function(a){var b,d,c,e,f;b="curl";d="define";c=e=h;if(a&&(f=a.overwriteApi||a.la,b=a.apiName||a.ea||b,c=a.apiContext||a.da||c,d=a.defineName||a.ga||d,e=a.defineContext||a.fa||e,C&&p(C,"Function")&&(h.curl=C),C=null,K&&p(K,"Function")&&(h.define=K),K=null,!f)){if(c[b]&&c[b]!=z)throw Error(b+" already exists");if(e[d]&&e[d]!=B)throw Error(d+" already exists");}c[b]=z;e[d]=B},a:function(a){function b(a,b){var d,
c,g,t,l;for(l in a){g=a[l];p(g,"String")&&(g={path:a[l]});g.name=g.name||l;t=e;c=A(m(g.name));d=c.f;if(c=c.d)t=f[c],t||(t=f[c]=u(e),t.c=u(e.c),t.e=[]),delete a[l];c=g;var s=b,L=void 0;c.path=m(c.path||c.location||"");s&&(L=c.main||"./main","."==L.charAt(0)||(L="./"+L),c.K=D(L,c.name+"/"));c.a=c.config;c.a&&(c.a=u(e,c.a));c.P=d.split("/").length;d?(t.c[d]=c,t.e.push(d)):t.o=k.N(g.path,e)}}function d(a){var b=a.c;a.L=RegExp("^("+a.e.sort(function(a,c){return b[c].P-b[a].P}).join("|").replace(/\/|\./g,
"\\$&")+")(?=\\/|$)");delete a.e}var c,e,f,g;"baseUrl"in a&&(a.o=a.baseUrl);"main"in a&&(a.K=a.main);"preloads"in a&&(a.ma=a.preloads);"pluginPath"in a&&(a.M=a.pluginPath);if("dontAddFileExt"in a||a.k)a.k=RegExp(a.dontAddFileExt||a.k);c=s;e=u(c,a);e.c=u(c.c);f=a.plugins||{};e.plugins=u(c.plugins);e.u=u(c.u,a.u);e.t=u(c.t,a.t);e.e=[];b(a.packages,!0);b(a.paths,!1);for(g in f)a=k.n(g+"!","",e),e.plugins[a.substr(0,a.length-1)]=f[g];f=e.plugins;for(g in f)if(f[g]=u(e,f[g]),a=f[g].e)f[g].e=a.concat(e.e),
d(f[g]);for(g in c.c)e.c.hasOwnProperty(g)||e.e.push(g);d(e);return e},j:function(a,b){var d,c,e,f;d=b.c;e=V.test(a)?a:a.replace(b.L,function(a){c=d[a]||{};f=c.a;return c.path||""});return{a:f||s,url:k.N(e,b)}},N:function(a,b){var d=b.o;return d&&!V.test(a)?m(d)+"/"+a:a},A:function(a,b){return a+((b||s).k.test(a)?"":".js")},J:function(a,b,d){var c=F.createElement("script");c.onload=c.onreadystatechange=function(d){d=d||h.event;if("load"==d.type||$[c.readyState])delete N[a.id],c.onload=c.onreadystatechange=
c.onerror="",b()};c.onerror=function(){d(Error("Syntax or http error: "+a.url))};c.type=a.ia||"text/javascript";c.charset="utf-8";c.async=!a.ka;c.src=a.url;N[a.id]=c;Q.insertBefore(c,Z);return c},T:function(a){var b=[],d;("string"==typeof a?a:a.toSource?a.toSource():a.toString()).replace(aa,"").replace(ba,function(a,e,f,g){g?d=d==g?n:d:d||b.push(f);return""});return b},Y:function(a){var b,d,c,e,f,g;f=a.length;c=a[f-1];e=p(c,"Function")?c.length:-1;2==f?p(a[0],"Array")?d=a[0]:b=a[0]:3==f&&(b=a[0],
d=a[1]);!d&&0<e&&(g=!0,d=["require","exports","module"].slice(0,e).concat(k.T(c)));return{id:b,q:d||[],w:0<=e?c:function(){return c},p:g}},S:function(a){var b;b=a.w.apply(a.p?a.b:n,a.q);b===n&&a.b&&(b=a.s?a.b=a.s.exports:a.b);return b},C:function(a,b){a.w=b.w;a.p=b.p;a.D=b.q;k.r(a)},r:function(a){function b(a,b,c){g[b]=a;c&&h(a,b)}function d(b,c){var d,e,f,g;d=w(1,function(a){e(a);q(a,c)});e=w(1,function(a){h(a,c)});f=k.V(b,a);(g=x(f)&&f.b)&&e(g);v(f,d,a.g,a.b&&function(a){f.b&&(a==T?e(f.b):a==U&&
d(f.b))})}function c(){a.i(g)}var e,f,g,l,s,h,q;g=[];f=a.D;l=f.length;0==f.length&&c();h=w(l,b,function(){a.G&&a.G(g)});q=w(l,b,c);for(e=0;e<l;e++)s=f[e],s in R?(q(R[s](a),e,!0),a.b&&a.v(T)):s?d(s,e):q(n,e,!0);return a},W:function(a){k.I(a);k.J(a,function(){var b=J;J=n;!1!==a.ca&&(!b||b.F?a.g(Error(b&&b.F||"define() missing or duplicated: "+a.url)):k.C(a,b))},a.g);return a},V:function(a,b){var d,c,e,f,g,l,h,n,r,m,t,p;d=b.n;c=b.ba;e=b.a||s;g=d(a);g in q?l=g:(f=A(g),n=f.f,l=f.d||n,r=k.j(l,e));if(!(g in
q))if(p=k.j(n,e).a,f.d)h=l;else if(h=p.moduleLoader||p.ja||p.loader||p.ha)n=l,l=h,r=k.j(h,e);l in q?m=q[l]:r.url in O?m=q[l]=O[r.url]:(m=k.B(p,l,c),m.url=k.A(r.url,r.a),q[l]=O[r.url]=m,k.W(m));l==h&&(f.d&&e.plugins[f.d]&&(p=e.plugins[f.d]),t=new G,v(m,function(a){var b,e,f;f=a.dynamic;n="normalize"in a?a.normalize(n,d,m.a)||"":d(n);e=h+"!"+n;b=q[e];if(!(e in q)){b=k.R(p,e,n,c);f||(q[e]=b);var g=function(a){f||(q[e]=a);b.i(a)};g.resolve=g;g.reject=g.error=b.g;a.load(n,b.m,g,p)}t!=b&&v(b,t.i,t.g,t.v)},
t.g));return t||m},aa:function(){var a;if(!p(h.opera,"Opera"))for(var b in N)if("interactive"==N[b].readyState){a=b;break}return a},X:function(a){var b=0,d,c;for(d=F&&(F.scripts||F.getElementsByTagName("script"));d&&(c=d[b++]);)if(a(c))return c},U:function(){var a,b="";(a=k.X(function(a){(a=a.getAttribute("data-curl-run"))&&(b=a);return a}))&&a.setAttribute("data-curl-run","");return b},Q:function(){function a(){k.J({url:c.shift()},b,b)}function b(){l&&(c.length?(k.l(d),a()):d("run.js script did not run."))}
function d(a){throw Error(a||"Primary run.js failed. Trying fallback.");}var c=l.split(ca);c.length&&a()},l:function(a){setTimeout(a,0)}};R={require:k.$,exports:k.H,module:k.Z};z.version="0.8.10";z.config=E;B.amd={plugins:!0,jQuery:!0,curl:"0.8.10"};s={o:"",M:"curl/plugin",k:/\?|\.js\b/,u:{},t:{},plugins:{},c:{},L:/$^/};C=h.curl;K=h.define;C&&p(C,"Object")?(h.curl=n,E(C)):k.O();(l=k.U())&&k.l(k.Q);q.curl=z;q["curl/_privileged"]={core:k,cache:q,config:function(){return s},_define:M,_curl:z,Promise:G}})(this.window||
"undefined"!=typeof global&&global||this);
(function(h,r){function p(){if(!r.body)return!1;B||(B=r.createTextNode(""));try{return r.body.removeChild(r.body.appendChild(B)),B=M,!0}catch(l){return!1}}function m(){var l;l=H[r[A]]&&p();if(!x&&l){x=!0;for(clearTimeout(y);z=E.pop();)z();G&&(r[A]="complete");for(var h;h=u.shift();)h()}return l}function D(){m();x||(y=setTimeout(D,v))}var A="readyState",H={loaded:1,interactive:1,complete:1},u=[],G=r&&"string"!=typeof r[A],x=!1,v=10,w,z,E=[],y,M,B;w="addEventListener"in h?function(l,h){l.addEventListener(h,
m,!1);return function(){l.removeEventListener(h,m,!1)}}:function(l,h){l.attachEvent("on"+h,m);return function(){l.detachEvent(h,m)}};r&&!m()&&(E=[w(h,"load"),w(r,"readystatechange"),w(h,"DOMContentLoaded")],y=setTimeout(D,v));define("curl/domReady",function(){function l(l){x?l():u.push(l)}l.then=l;l.amd=!0;return l})})(this,this.document);var W;
define("curl/shim/dojo16",["curl/_privileged","curl/domReady"],function(h,r){function p(h){h.ready||(h.ready=function(h){r(h)});h.nameToUrl||(h.nameToUrl=function(m,p){return h.toUrl(m+(p||""))});h.cache||(h.cache={})}var m=h._curl,D=h.core.h;p(m);"undefined"==typeof W&&(W=m);h.core.h=function(){var h=D.apply(this,arguments);p(h.m);return h};return!0});define("curl/plugin/domReady",["../domReady"],function(h){return{load:function(r,p,m){h(m)}}});
}).call(this);
