go-paste/public/app.js
2017-04-14 16:15:07 -06:00

1872 lines
275 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var TEXT="";function CreateCtrl(e,t,n,r){"use strict"
e.reload=r.reload
e.o = {text: TEXT}
var i=n.absUrl()
i=i.slice(0,i.indexOf("#")),e.$base_url=i,console.info("Adding extra entropy from server and user input."),e.entropy=0
var o=function(t){e.entropy+=t.length,fn.seed(t,{entropy:!0})}
t("/paste/rng").get().success(o),function(t,n){function r(t){i.push([t.pageX,t.pageY,t.keyCode,+new Date]),i.length<n||(o(i),e.$apply(),i=[])}var i=[]
for(var a in t)t.hasOwnProperty(a)&&document.addEventListener(t[a],r)}(["mousemove","keydown","keypress","click","scroll"],16),e.HighliteLang=fn.obj(HighliteLang),e.ExpireTimes=fn.obj(ExpireTimes),e.Encrypt=function(n){n.text.length>512&&(n.zip=!0,e.o.zip=!0)
var r=encrypt(n)
console.log("Sending:\n"+r.txt),t("/paste").post({},r.txt).success(function(t){console.log("Received:\n"+t),t=t.split(" "),e.result={status:t[0],id:t[1],key:r.key,text:r.txt}})}}function ViewCtrl(e,t,n,r){"use strict"
e.copy=function(s){TEXT=s;r.path('/');}
e.new=function(s){TEXT="";r.path('/');}
function i(t){e.store=t}var o=r.absUrl()
o=o.slice(0,o.indexOf("#")),e.$base_url=o
var a=t.id,s=t.key
e.id=a,e.key=s,n("/paste/:id").get({id:a}).success(decrypt(s,i)).error(function(t,n){var r=""
switch(n){case 403:r="Authentication Required."
break
case 404:r="Message Not Found."
break
case 410:r="Message Expired."}e.store={err:r,code:n}})}!function(){var e=document.querySelector("#debug")
"undefined"!=typeof console&&(void 0!==console.log?console.olog=console.log:console.olog=function(){})
var t=function(t,n){return function(r){console.olog(t+":\t"+r)
var i=document.createElement("span")
i.classList.add(n),i.textContent=t+":\t"+r+"\n",e.appendChild(i),e.scrollTop=e.scrollHeight}}
console.error=t("error","text-danger"),console.debug=t("debug","text-success"),console.info=t("info","text-info"),console.log=t("log","text-muted"),console.info("Initialized Logger.\n ___\n _ _ .-' '-.\n (.)(.)/ \\ Sour.is Paste\n /@@ ;\n o_\\\\-mm-......-mm`~~~~~~~~~~~~~~~~`")}(),function(e){"use strict"
function t(e){return function(){var t,n=arguments[0]
for(t="["+(e?e+":":"")+n+"] http://errors.angularjs.org/1.5.8/"+(e?e+"/":"")+n,n=1;n<arguments.length;n++){t=t+(1==n?"?":"&")+"p"+(n-1)+"="
var r,i=encodeURIComponent
r=arguments[n],r="function"==typeof r?(""+r).replace(/ \{[\s\S]*$/,""):void 0===r?"undefined":"string"!=typeof r?JSON.stringify(r):r,t+=i(r)}return Error(t)}}function n(e){if(null==e||C(e))return!1
if(ar(e)||y(e)||qn&&e instanceof qn)return!0
var t="length"in Object(e)&&e.length
return w(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function r(e,t,i){var o,a
if(e)if(x(e))for(o in e)"prototype"==o||"length"==o||"name"==o||e.hasOwnProperty&&!e.hasOwnProperty(o)||t.call(i,e[o],o,e)
else if(ar(e)||n(e)){var s="object"!=typeof e
for(o=0,a=e.length;a>o;o++)(s||o in e)&&t.call(i,e[o],o,e)}else if(e.forEach&&e.forEach!==r)e.forEach(t,i,e)
else if(b(e))for(o in e)t.call(i,e[o],o,e)
else if("function"==typeof e.hasOwnProperty)for(o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o,e)
else for(o in e)Kn.call(e,o)&&t.call(i,e[o],o,e)
return e}function i(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i])
return r}function o(e){return function(t,n){e(n,t)}}function a(){return++or}function s(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;o>i;++i){var a=t[i]
if($(a)||x(a))for(var c=Object.keys(a),u=0,l=c.length;l>u;u++){var f=c[u],h=a[f]
n&&$(h)?_(h)?e[f]=new Date(h.valueOf()):k(h)?e[f]=RegExp(h):h.nodeName?e[f]=h.cloneNode(!0):N(h)?e[f]=h.clone():($(e[f])||(e[f]=ar(h)?[]:{}),s(e[f],[h],!0)):e[f]=h}}return r?e.$$hashKey=r:delete e.$$hashKey,e}function c(e){return s(e,Qn.call(arguments,1),!1)}function u(e){return s(e,Qn.call(arguments,1),!0)}function l(e){return parseInt(e,10)}function f(e,t){return c(Object.create(e),t)}function h(){}function d(e){return e}function p(e){return function(){return e}}function g(e){return x(e.toString)&&e.toString!==tr}function m(e){return void 0===e}function v(e){return void 0!==e}function $(e){return null!==e&&"object"==typeof e}function b(e){return null!==e&&"object"==typeof e&&!nr(e)}function y(e){return"string"==typeof e}function w(e){return"number"==typeof e}function _(e){return"[object Date]"===tr.call(e)}function x(e){return"function"==typeof e}function k(e){return"[object RegExp]"===tr.call(e)}function C(e){return e&&e.window===e}function S(e){return e&&e.$evalAsync&&e.$watch}function E(e){return"boolean"==typeof e}function A(e){return e&&w(e.length)&&sr.test(tr.call(e))}function N(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function M(e){var t={}
e=e.split(",")
var n
for(n=0;n<e.length;n++)t[e[n]]=!0
return t}function z(e){return Gn(e.nodeName||e[0]&&e[0].nodeName)}function j(e,t){var n=e.indexOf(t)
return n>=0&&e.splice(n,1),n}function B(e,t){function n(e,t){var n,r=t.$$hashKey
if(ar(e)){n=0
for(var o=e.length;o>n;n++)t.push(i(e[n]))}else if(b(e))for(n in e)t[n]=i(e[n])
else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=i(e[n]))
else for(n in e)Kn.call(e,n)&&(t[n]=i(e[n]))
return r?t.$$hashKey=r:delete t.$$hashKey,t}function i(e){if(!$(e))return e
var t=a.indexOf(e)
if(-1!==t)return s[t]
if(C(e)||S(e))throw rr("cpws")
var t=!1,r=o(e)
return void 0===r&&(r=ar(e)?[]:Object.create(nr(e)),t=!0),a.push(e),s.push(r),t?n(e,r):r}function o(e){switch(tr.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(i(e.buffer),e.byteOffset,e.length)
case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength)
return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0)
case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf())
case"[object RegExp]":return t=RegExp(e.source,(""+e).match(/[^\/]*$/)[0]),t.lastIndex=e.lastIndex,t
case"[object Blob]":return new e.constructor([e],{type:e.type})}return x(e.cloneNode)?e.cloneNode(!0):void 0}var a=[],s=[]
if(t){if(A(t)||"[object ArrayBuffer]"===tr.call(t))throw rr("cpta")
if(e===t)throw rr("cpi")
return ar(t)?t.length=0:r(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),a.push(e),s.push(t),n(e,t)}return i(e)}function O(e,t){if(e===t)return!0
if(null===e||null===t)return!1
if(e!==e&&t!==t)return!0
var n,r=typeof e
if(r==typeof t&&"object"==r){if(!ar(e)){if(_(e))return _(t)?O(e.getTime(),t.getTime()):!1
if(k(e))return k(t)?""+e==""+t:!1
if(S(e)||S(t)||C(e)||C(t)||ar(t)||_(t)||k(t))return!1
r=ae()
for(n in e)if("$"!==n.charAt(0)&&!x(e[n])){if(!O(e[n],t[n]))return!1
r[n]=!0}for(n in t)if(!(n in r)&&"$"!==n.charAt(0)&&v(t[n])&&!x(t[n]))return!1
return!0}if(!ar(t))return!1
if((r=e.length)==t.length){for(n=0;r>n;n++)if(!O(e[n],t[n]))return!1
return!0}}return!1}function T(e,t,n){return e.concat(Qn.call(t,n))}function I(e,t){var n=2<arguments.length?Qn.call(arguments,2):[]
return!x(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,T(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function D(t,n){var r=n
return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:C(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":S(n)&&(r="$SCOPE"),r}function R(e,t){return m(e)?void 0:(w(t)||(t=t?2:null),JSON.stringify(e,D,t))}function P(e){return y(e)?JSON.parse(e):e}function L(e,t){e=e.replace(hr,"")
var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4
return isNaN(n)?t:n}function U(e,t,n){n=n?-1:1
var r=e.getTimezoneOffset()
return t=L(t,r),n*=t-r,e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+n),e}function H(e){e=qn(e).clone()
try{e.empty()}catch(t){}var n=qn("<div>").append(e).html()
try{return e[0].nodeType===mr?Gn(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(e,t){return"<"+Gn(t)})}catch(r){return Gn(n)}}function V(e){try{return decodeURIComponent(e)}catch(t){}}function F(e){var t={}
return r((e||"").split("&"),function(e){var n,r,i
e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),i=e.substring(n+1)),r=V(r),v(r)&&(i=v(i)?V(i):!0,Kn.call(t,r)?ar(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function q(e){var t=[]
return r(e,function(e,n){ar(e)?r(e,function(e){t.push(W(n,!0)+(!0===e?"":"="+W(e,!0)))}):t.push(W(n,!0)+(!0===e?"":"="+W(e,!0)))}),t.length?t.join("&"):""}function J(e){return W(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function W(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function Z(e,t){var n,r,i=dr.length
for(r=0;i>r;++r)if(n=dr[r]+t,y(n=e.getAttribute(n)))return n
return null}function K(e,t){var n,i,o={}
r(dr,function(t){t+="app",!n&&e.hasAttribute&&e.hasAttribute(t)&&(n=e,i=e.getAttribute(t))}),r(dr,function(t){t+="app"
var r
!n&&(r=e.querySelector("["+t.replace(":","\\:")+"]"))&&(n=r,i=r.getAttribute(t))}),n&&(o.strictDi=null!==Z(n,"strict-di"),t(n,i?[i]:[],o))}function G(t,n,i){$(i)||(i={}),i=c({strictDi:!1},i)
var o=function(){if(t=qn(t),t.injector()){var r=t[0]===e.document?"document":H(t)
throw rr("btstrpd",r.replace(/</,"&lt;").replace(/>/,"&gt;"))}return n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng"),r=Pe(n,i.strictDi),r.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),r},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/
return e&&a.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name)?o():(e.name=e.name.replace(s,""),ir.resumeBootstrap=function(e){return r(e,function(e){n.push(e)}),o()},void(x(ir.resumeDeferredBootstrap)&&ir.resumeDeferredBootstrap()))}function Y(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function Q(e){if(e=ir.element(e).injector(),!e)throw rr("test")
return e.get("$$testability")}function X(e,t){return t=t||"_",e.replace(pr,function(e,n){return(n?t:"")+e.toLowerCase()})}function ee(){var t
if(!gr){var n=fr();(Jn=m(n)?e.jQuery:n?e[n]:void 0)&&Jn.fn.on?(qn=Jn,c(Jn.fn,{scope:Mr.scope,isolateScope:Mr.isolateScope,controller:Mr.controller,injector:Mr.injector,inheritedData:Mr.inheritedData}),t=Jn.cleanData,Jn.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=Jn._data(r,"events"))&&n.$destroy&&Jn(r).triggerHandler("$destroy")
t(e)}):qn=pe,ir.element=qn,gr=!0}}function te(e,t,n){if(!e)throw rr("areq",t||"?",n||"required")
return e}function ne(e,t,n){return n&&ar(e)&&(e=e[e.length-1]),te(x(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function re(e,t){if("hasOwnProperty"===e)throw rr("badname",t)}function ie(e,t,n){if(!t)return e
t=t.split(".")
for(var r,i=e,o=t.length,a=0;o>a;a++)r=t[a],e&&(e=(i=e)[r])
return!n&&x(e)?I(i,e):e}function oe(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=qn(Qn.call(e,0,i))),t.push(n))
return t||e}function ae(){return Object.create(null)}function se(e){function n(e,t,n){return e[t]||(e[t]=n())}var r=t("$injector"),i=t("ng")
return e=n(e,"angular",Object),e.$$minErr=e.$$minErr||t,n(e,"module",function(){var e={}
return function(t,o,a){if("hasOwnProperty"===t)throw i("badname","module")
return o&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,r){return r||(r=i),function(){return r[n||"push"]([e,t,arguments]),l}}function n(e,n){return function(r,o){return o&&x(o)&&(o.$$moduleName=t),i.push([e,n,arguments]),l}}if(!o)throw r("nomod",t)
var i=[],s=[],c=[],u=e("$injector","invoke","push",s),l={_invokeQueue:i,_configBlocks:s,_runBlocks:c,requires:o,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:u,run:function(e){return c.push(e),this}}
return a&&u(a),l})}})}function ce(e,t){if(ar(e)){t=t||[]
for(var n=0,r=e.length;r>n;n++)t[n]=e[n]}else if($(e))for(n in t=t||{},e)("$"!==n.charAt(0)||"$"!==n.charAt(1))&&(t[n]=e[n])
return t||e}function ue(n){c(n,{bootstrap:G,copy:B,extend:c,merge:u,equals:O,element:qn,forEach:r,injector:Pe,noop:h,bind:I,toJson:R,fromJson:P,identity:d,isUndefined:m,isDefined:v,isString:y,isFunction:x,isObject:$,isNumber:w,isElement:N,isArray:ar,version:vr,isDate:_,lowercase:Gn,uppercase:Yn,callbacks:{$$counter:0},getTestability:Q,$$minErr:t,$$csp:lr,reloadWithDebugInfo:Y}),(Wn=se(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Yt}),e.provider("$compile",Ze).directive({a:Ii,input:Xi,textarea:Xi,form:Li,script:Vo,select:Jo,style:Zo,option:Wo,ngBind:no,ngBindHtml:io,ngBindTemplate:ro,ngClass:ao,ngClassEven:co,ngClassOdd:so,ngCloak:uo,ngController:lo,ngForm:Ui,ngHide:Io,ngIf:po,ngInclude:go,ngInit:vo,ngNonBindable:No,ngPluralize:Bo,ngRepeat:Oo,ngShow:To,ngStyle:Do,ngSwitch:Ro,ngSwitchWhen:Po,ngSwitchDefault:Lo,ngOptions:jo,ngTransclude:Ho,ngModel:So,ngList:$o,ngChange:oo,pattern:Go,ngPattern:Go,required:Ko,ngRequired:Ko,minlength:Qo,ngMinlength:Qo,maxlength:Yo,ngMaxlength:Yo,ngValue:to,ngModelOptions:Ao}).directive({ngInclude:mo}).directive(Di).directive(fo),e.provider({$anchorScroll:Le,$animate:Fr,$animateCss:Wr,$$animateJs:Hr,$$animateQueue:Vr,$$AnimateRunner:Jr,$$animateAsyncRun:qr,$browser:qe,$cacheFactory:Je,$controller:et,$document:tt,$exceptionHandler:nt,$filter:hn,$$forceReflow:Xr,$interpolate:pt,$interval:gt,$http:lt,$httpParamSerializer:it,$httpParamSerializerJQLike:ot,$httpBackend:ht,$xhrFactory:ft,$jsonpCallbacks:ci,$location:Et,$log:At,$parse:qt,$rootScope:Gt,$q:Jt,$$q:Wt,$sce:tn,$sceDelegate:en,$sniffer:nn,$templateCache:We,$templateRequest:rn,$$testability:on,$timeout:an,$window:un,$$rAF:Kt,$$jqLite:Oe,$$HashMap:Or,$$cookieReader:fn})}])}function le(e){return e.replace(yr,function(e,t,n,r){return r?n.toUpperCase():n}).replace(wr,"Moz$1")}function fe(e){return e=e.nodeType,1===e||!e||9===e}function he(e,t){var n,i,o=t.createDocumentFragment(),a=[]
if(Cr.test(e)){for(n=o.appendChild(t.createElement("div")),i=(Sr.exec(e)||["",""])[1].toLowerCase(),i=Ar[i]||Ar._default,n.innerHTML=i[1]+e.replace(Er,"<$1></$2>")+i[2],i=i[0];i--;)n=n.lastChild
a=T(a,n.childNodes),n=o.firstChild,n.textContent=""}else a.push(t.createTextNode(e))
return o.textContent="",o.innerHTML="",r(a,function(e){o.appendChild(e)}),o}function de(e,t){var n=e.parentNode
n&&n.replaceChild(t,e),t.appendChild(e)}function pe(t){if(t instanceof pe)return t
var n
if(y(t)&&(t=cr(t),n=!0),!(this instanceof pe)){if(n&&"<"!=t.charAt(0))throw xr("nosel")
return new pe(t)}if(n){n=e.document
var r
t=(r=kr.exec(t))?[n.createElement(r[1])]:(r=he(t,n))?r.childNodes:[]}ke(this,t)}function ge(e){return e.cloneNode(!0)}function me(e,t){if(t||$e(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;i>r;r++)$e(n[r])}function ve(e,t,n,i){if(v(i))throw xr("offargs")
var o=(i=be(e))&&i.events,a=i&&i.handle
if(a)if(t){var s=function(t){var r=o[t]
v(n)&&j(r||[],n),v(n)&&r&&0<r.length||(e.removeEventListener(t,a,!1),delete o[t])}
r(t.split(" "),function(e){s(e),_r[e]&&s(_r[e])})}else for(t in o)"$destroy"!==t&&e.removeEventListener(t,a,!1),delete o[t]}function $e(e,t){var n=e.ng339,r=n&&$r[n]
r&&(t?delete r.data[t]:(r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),ve(e)),delete $r[n],e.ng339=void 0))}function be(e,t){var n=e.ng339,n=n&&$r[n]
return t&&!n&&(e.ng339=n=++br,n=$r[n]={events:{},data:{},handle:void 0}),n}function ye(e,t,n){if(fe(e)){var r=v(n),i=!r&&t&&!$(t),o=!t
if(e=(e=be(e,!i))&&e.data,r)e[t]=n
else{if(o)return e
if(i)return e&&e[t]
c(e,t)}}}function we(e,t){return e.getAttribute?-1<(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" "):!1}function _e(e,t){t&&e.setAttribute&&r(t.split(" "),function(t){e.setAttribute("class",cr((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+cr(t)+" "," ")))})}function xe(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ")
r(t.split(" "),function(e){e=cr(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",cr(n))}}function ke(e,t){if(t)if(t.nodeType)e[e.length++]=t
else{var n=t.length
if("number"==typeof n&&t.window!==t){if(n)for(var r=0;n>r;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function Ce(e,t){return Se(e,"$"+(t||"ngController")+"Controller")}function Se(e,t,n){for(9==e.nodeType&&(e=e.documentElement),t=ar(t)?t:[t];e;){for(var r=0,i=t.length;i>r;r++)if(v(n=qn.data(e,t[r])))return n
e=e.parentNode||11===e.nodeType&&e.host}}function Ee(e){for(me(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ae(e,t){t||me(e)
var n=e.parentNode
n&&n.removeChild(e)}function Ne(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):qn(n).on("load",t)}function Me(e,t){var n=zr[t.toLowerCase()]
return n&&jr[z(e)]&&n}function ze(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented}
var i=t[r||n.type],o=i?i.length:0
if(o){if(m(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation
n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped}
var s=i.specialHandlerWrapper||je
o>1&&(i=ce(i))
for(var c=0;o>c;c++)n.isImmediatePropagationStopped()||s(e,n,i[c])}}
return n.elem=e,n}function je(e,t,n){n.call(e,t)}function Be(e,t,n){var r=t.relatedTarget
r&&(r===e||Nr.call(e,r))||n.call(e,t)}function Oe(){this.$get=function(){return c(pe,{hasClass:function(e,t){return e.attr&&(e=e[0]),we(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),xe(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),_e(e,t)}})}}function Te(e,t){var n=e&&e.$$hashKey
return n?("function"==typeof n&&(n=e.$$hashKey()),n):(n=typeof e,n="function"==n||"object"==n&&null!==e?e.$$hashKey=n+":"+(t||a)():n+":"+e)}function Ie(e,t){if(t){var n=0
this.nextUid=function(){return++n}}r(e,this.put,this)}function De(e){return e=(Function.prototype.toString.call(e)+" ").replace(Pr,""),e.match(Tr)||e.match(Ir)}function Re(e){return(e=De(e))?"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function Pe(e,t){function n(e){return function(t,n){return $(t)?void r(t,o(e)):e(t,n)}}function i(e,t){if(re(e,"service"),(x(t)||ar(t))&&(t=g.instantiate(t)),!t.$get)throw Lr("pget",e)
return d[e+"Provider"]=t}function a(e,t){return function(){var n=w.invoke(t,this)
if(m(n))throw Lr("undef",e)
return n}}function s(e,t,n){return i(e,{$get:!1!==n?a(e,t):t})}function c(e){te(m(e)||ar(e),"modulesToLoad","not an array")
var t,n=[]
return r(e,function(e){function r(e){var t,n
for(t=0,n=e.length;n>t;t++){var r=e[t],i=g.get(r[0])
i[r[1]].apply(i,r[2])}}if(!h.get(e)){h.put(e,!0)
try{y(e)?(t=Wn(e),n=n.concat(c(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):x(e)?n.push(g.invoke(e)):ar(e)?n.push(g.invoke(e)):ne(e,"module")}catch(i){throw ar(e)&&(e=e[e.length-1]),i.message&&i.stack&&-1==i.stack.indexOf(i.message)&&(i=i.message+"\n"+i.stack),Lr("modulerr",e,i.stack||i.message||i)}}}),n}function u(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===l)throw Lr("cdep",t+" <- "+f.join(" <- "))
return e[t]}try{return f.unshift(t),e[t]=l,e[t]=n(t,r)}catch(i){throw e[t]===l&&delete e[t],i}finally{f.shift()}}function i(e,n,i){var o=[]
e=Pe.$$annotate(e,t,i)
for(var a=0,s=e.length;s>a;a++){var c=e[a]
if("string"!=typeof c)throw Lr("itkn",c)
o.push(n&&n.hasOwnProperty(c)?n[c]:r(c,i))}return o}return{invoke:function(e,t,n,r){return"string"==typeof n&&(r=n,n=null),n=i(e,n,r),ar(e)&&(e=e[e.length-1]),r=11>=Fn?!1:"function"==typeof e&&/^(?:class\b|constructor\()/.test(Function.prototype.toString.call(e)+" "),r?(n.unshift(null),new(Function.prototype.bind.apply(e,n))):e.apply(t,n)},instantiate:function(e,t,n){var r=ar(e)?e[e.length-1]:e
return e=i(e,t,n),e.unshift(null),new(Function.prototype.bind.apply(r,e))},get:r,annotate:Pe.$$annotate,has:function(t){return d.hasOwnProperty(t+"Provider")||e.hasOwnProperty(t)}}}t=!0===t
var l={},f=[],h=new Ie([],!0),d={$provide:{provider:n(i),factory:n(s),service:n(function(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}),value:n(function(e,t){return s(e,p(t),!1)}),constant:n(function(e,t){re(e,"constant"),d[e]=t,v[e]=t}),decorator:function(e,t){var n=g.get(e+"Provider"),r=n.$get
n.$get=function(){var e=w.invoke(r,n)
return w.invoke(t,null,{$delegate:e})}}}},g=d.$injector=u(d,function(e,t){throw ir.isString(t)&&f.push(t),Lr("unpr",f.join(" <- "))}),v={},b=u(v,function(e,t){var n=g.get(e+"Provider",t)
return w.invoke(n.$get,n,void 0,e)}),w=b
d.$injectorProvider={$get:p(b)}
var _=c(e),w=b.get("$injector")
return w.strictDi=t,r(_,function(e){e&&w.invoke(e)}),w}function Le(){var e=!0
this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null
return Array.prototype.some.call(e,function(e){return"a"===z(e)?(t=e,!0):void 0}),t}function o(e){if(e){e.scrollIntoView()
var n
n=a.yOffset,x(n)?n=n():N(n)?(n=n[0],n="fixed"!==t.getComputedStyle(n).position?0:n.getBoundingClientRect().bottom):w(n)||(n=0),n&&(e=e.getBoundingClientRect().top,t.scrollBy(0,e-n))}else t.scrollTo(0,0)}function a(e){e=y(e)?e:n.hash()
var t
e?(t=s.getElementById(e))?o(t):(t=i(s.getElementsByName(e)))?o(t):"top"===e&&o(null):o(null)}var s=t.document
return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Ne(function(){r.$evalAsync(a)})}),a}]}function Ue(e,t){return e||t?e?t?(ar(e)&&(e=e.join(" ")),ar(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function He(e){y(e)&&(e=e.split(" "))
var t=ae()
return r(e,function(e){e.length&&(t[e]=!0)}),t}function Ve(e){return $(e)?e:{}}function Fe(e,t,n,i){function o(e){try{e.apply(null,Qn.call(arguments,1))}finally{if(v--,0===v)for(;$.length;)try{$.pop()()}catch(t){n.error(t)}}}function a(){x=null,s(),c()}function s(){b=k(),b=m(b)?null:b,O(b,E)&&(b=E),E=b}function c(){(w!==u.url()||y!==b)&&(w=u.url(),y=b,r(C,function(e){e(u.url(),b)}))}var u=this,l=e.location,f=e.history,d=e.setTimeout,p=e.clearTimeout,g={}
u.isMock=!1
var v=0,$=[]
u.$$completeOutstandingRequest=o,u.$$incOutstandingRequestCount=function(){v++},u.notifyWhenNoOutstandingRequests=function(e){0===v?e():$.push(e)}
var b,y,w=l.href,_=t.find("base"),x=null,k=i.history?function(){try{return f.state}catch(e){}}:h
s(),y=b,u.url=function(t,n,r){if(m(r)&&(r=null),l!==e.location&&(l=e.location),f!==e.history&&(f=e.history),t){var o=y===r
if(w===t&&(!i.history||o))return u
var a=w&&yt(w)===yt(t)
return w=t,y=r,!i.history||a&&o?(a||(x=t),n?l.replace(t):a?(n=l,r=t.indexOf("#"),r=-1===r?"":t.substr(r),n.hash=r):l.href=t,l.href!==t&&(x=t)):(f[n?"replaceState":"pushState"](r,"",t),s(),y=b),x&&(x=t),u}return x||l.href.replace(/%27/g,"'")},u.state=function(){return b}
var C=[],S=!1,E=null
u.onUrlChange=function(t){return S||(i.history&&qn(e).on("popstate",a),qn(e).on("hashchange",a),S=!0),C.push(t),t},u.$$applicationDestroyed=function(){qn(e).off("hashchange popstate",a)},u.$$checkUrlChange=c,u.baseHref=function(){var e=_.attr("href")
return e?e.replace(/^(https?\:)?\/\/[^\/]*/,""):""},u.defer=function(e,t){var n
return v++,n=d(function(){delete g[n],o(e)},t||0),g[n]=!0,n},u.defer.cancel=function(e){return g[e]?(delete g[e],p(e),o(h),!0):!1}}function qe(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new Fe(e,r,t,n)}]}function Je(){this.$get=function(){function e(e,r){function i(e){e!=h&&(d?d==e&&(d=e.n):d=e,o(e.n,e.p),o(e,h),h=e,h.n=null)}function o(e,t){e!=t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid",e)
var a=0,s=c({},r,{id:e}),u=ae(),l=r&&r.capacity||Number.MAX_VALUE,f=ae(),h=null,d=null
return n[e]={put:function(e,t){if(!m(t)){if(l<Number.MAX_VALUE){var n=f[e]||(f[e]={key:e})
i(n)}return e in u||a++,u[e]=t,a>l&&this.remove(d.key),t}},get:function(e){if(l<Number.MAX_VALUE){var t=f[e]
if(!t)return
i(t)}return u[e]},remove:function(e){if(l<Number.MAX_VALUE){var t=f[e]
if(!t)return
t==h&&(h=t.p),t==d&&(d=t.n),o(t.n,t.p),delete f[e]}e in u&&(delete u[e],a--)},removeAll:function(){u=ae(),a=0,f=ae(),h=d=null},destroy:function(){f=s=u=null,delete n[e]},info:function(){return c({},s,{size:a})}}}var n={}
return e.info=function(){var e={}
return r(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function We(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function Ze(t,n){function i(e,t,n){var i=/^\s*([@&<]|=(\*?))(\??)\s*(\w*)\s*$/,o=ae()
return r(e,function(e,r){if(e in k)o[r]=k[e]
else{var a=e.match(i)
if(!a)throw Zr("iscp",t,r,e,n?"controller bindings definition":"isolate scope definition")
o[r]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||r},a[4]&&(k[e]=o[r])}}),o}function a(e){var t=e.charAt(0)
if(!t||t!==Gn(t))throw Zr("baddir",e)
if(e!==e.trim())throw Zr("baddir",e)}function s(e){var t=e.require||e.controller&&e.name
return!ar(t)&&$(t)&&r(t,function(e,n){var r=e.match(w)
e.substring(r[0].length)||(t[n]=r[0]+n)}),t}var u={},l=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,g=/(([\w\-]+)(?:\:([^;]+))?;?)/,b=M("ngSrc,ngSrcset,src,srcset"),w=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,_=/^(on[a-z]+|formaction)$/,k=ae()
this.directive=function N(e,n){return re(e,"directive"),y(e)?(a(e),te(n,"directiveFactory"),u.hasOwnProperty(e)||(u[e]=[],t.factory(e+"Directive",["$injector","$exceptionHandler",function(t,n){var i=[]
return r(u[e],function(r,o){try{var a=t.invoke(r)
x(a)?a={compile:p(a)}:!a.compile&&a.link&&(a.compile=p(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||e,a.require=s(a),a.restrict=a.restrict||"EA",a.$$moduleName=r.$$moduleName,i.push(a)}catch(c){n(c)}}),i}])),u[e].push(n)):r(e,o(N)),this},this.component=function(e,t){function n(e){function n(t){return x(t)||ar(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var o=t.template||t.templateUrl?t.template:"",a={controller:i,controllerAs:Xe(t.controller)||t.controllerAs||"$ctrl",template:n(o),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require}
return r(t,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}var i=t.controller||function(){}
return r(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,x(i)&&(i[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return v(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return v(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()}
var C=!0
this.debugInfoEnabled=function(e){return v(e)?(C=e,this):C}
var A=10
this.onChangesTtl=function(e){return arguments.length?(A=e,this):A},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,o,a,s,p,k,N,M,B){function T(){try{if(!--we)throw $e=void 0,Zr("infchng",A)
k.$apply(function(){for(var e=[],t=0,n=$e.length;n>t;++t)try{$e[t]()}catch(r){e.push(r)}if($e=void 0,e.length)throw e})}finally{we++}}function D(e,t){if(t){var n,r,i,o=Object.keys(t)
for(n=0,r=o.length;r>n;n++)i=o[n],this[i]=t[i]}else this.$attr={}
this.$$element=e}function R(e,t,n){ye.innerHTML="<span "+t+">",t=ye.firstChild.attributes
var r=t[0]
t.removeNamedItem(r.name),r.value=n,e.attributes.setNamedItem(r)}function P(e,t){try{e.addClass(t)}catch(n){}}function L(t,n,r,i,o){t instanceof qn||(t=qn(t))
for(var a=/\S+/,s=0,c=t.length;c>s;s++){var u=t[s]
u.nodeType===mr&&u.nodeValue.match(a)&&de(u,t[s]=e.document.createElement("span"))}var l=U(t,n,t,r,i,o)
L.$$addScopeClass(t)
var f=null
return function(e,n,r){te(e,"scope"),o&&o.needsNewScope&&(e=e.$parent.$new()),r=r||{}
var i=r.parentBoundTranscludeFn,a=r.transcludeControllers
if(r=r.futureParentElement,i&&i.$$boundTransclude&&(i=i.$$boundTransclude),f||(f=(r=r&&r[0])&&"foreignobject"!==z(r)&&tr.call(r).match(/SVG/)?"svg":"html"),r="html"!==f?qn(ue(f,qn("<div>").append(t).html())):n?Mr.clone.call(t):t,a)for(var s in a)r.data("$"+s+"Controller",a[s].instance)
return L.$$addScopeInfo(r,e),n&&n(r,e),l&&l(e,r,r,i),r}}function U(e,t,n,r,i,o){function a(e,n,r,i){var o,a,s,c,u,l,d
if(f)for(d=Array(n.length),c=0;c<h.length;c+=3)o=h[c],d[o]=n[o]
else d=n
for(c=0,u=h.length;u>c;)a=d[h[c++]],n=h[c++],o=h[c++],n?(n.scope?(s=e.$new(),L.$$addScopeInfo(qn(a),s)):s=e,l=n.transcludeOnThisElement?V(e,n.transclude,i):!n.templateOnThisElement&&i?i:!i&&t?V(e,t):null,n(o,s,a,r,l)):o&&o(e,a.childNodes,void 0,i)}for(var s,c,u,l,f,h=[],d=0;d<e.length;d++)s=new D,c=F(e[d],[],s,0===d?r:void 0,i),(o=c.length?K(c,e[d],s,t,n,null,[],[],o):null)&&o.scope&&L.$$addScopeClass(s.$$element),s=o&&o.terminal||!(u=e[d].childNodes)||!u.length?null:U(u,o?(o.transcludeOnThisElement||!o.templateOnThisElement)&&o.transclude:t),(o||s)&&(h.push(d,o,s),l=!0,f=f||o),o=null
return l?a:null}function V(e,t,n){function r(r,i,o,a,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i,o=r.$$slots=ae()
for(i in t.$$slots)o[i]=t.$$slots[i]?V(e,t.$$slots[i],n):null
return r}function F(e,t,n,r,i){var o=n.$attr
switch(e.nodeType){case 1:ee(t,Ge(z(e)),"E",r,i)
for(var a,s,c,u,l=e.attributes,f=0,h=l&&l.length;h>f;f++){var d=!1,p=!1
a=l[f],s=a.name,c=cr(a.value),a=Ge(s),(u=Ce.test(a))&&(s=s.replace(Gr,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()})),(a=a.match(Se))&&ne(a[1])&&(d=s,p=s.substr(0,s.length-5)+"end",s=s.substr(0,s.length-6)),a=Ge(s.toLowerCase()),o[a]=s,(u||!n.hasOwnProperty(a))&&(n[a]=c,Me(e,a)&&(n[a]=!0)),fe(e,t,c,a,u),ee(t,a,"A",r,i,d,p)}if(o=e.className,$(o)&&(o=o.animVal),y(o)&&""!==o)for(;e=g.exec(o);)a=Ge(e[2]),ee(t,a,"C",r,i)&&(n[a]=cr(e[3])),o=o.substr(e.index+e[0].length)
break
case mr:if(11===Fn)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===mr;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling)
ce(t,e.nodeValue)
break
case 8:q(e,t,n,r,i)}return t.sort(oe),t}function q(e,t,n,r,i){try{var o=l.exec(e.nodeValue)
if(o){var a=Ge(o[1])
ee(t,a,"M",r,i)&&(n[a]=cr(o[2]))}}catch(s){}}function J(e,t,n){var r=[],i=0
if(t&&e.hasAttribute&&e.hasAttribute(t)){do{if(!e)throw Zr("uterdir",t,n)
1==e.nodeType&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0)}else r.push(e)
return qn(r)}function W(e,t,n){return function(r,i,o,a,s){return i=J(i[0],t,n),e(r,i,o,a,s)}}function Z(e,t,n,r,i,o){var a
return e?L(t,n,r,i,o):function(){return a||(a=L(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function K(e,t,n,i,a,s,u,l,f){function h(e,t,n,r){e&&(n&&(e=W(e,n,r)),e.require=p.require,e.directiveName=g,(C===p||p.$$isolateScope)&&(e=pe(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=W(t,n,r)),t.require=p.require,t.directiveName=g,(C===p||p.$$isolateScope)&&(t=pe(t,{isolateScope:!0})),l.push(t))}function d(e,i,a,s,f){function h(e,t,n,r){var i
if(S(e)||(r=n,n=t,t=e,e=void 0),j&&(i=y),n||(n=j?A.parent():A),!r)return f(e,t,i,n,z)
var o=f.$$slots[r]
if(o)return o(e,t,i,n,z)
if(m(o))throw Zr("noslot",r,H(A))}var d,p,g,v,b,y,w,A
t===a?(s=n,A=n.$$element):(A=qn(a),s=new D(A,n)),b=i,C?v=i.$new(!0):_&&(b=i.$parent),f&&(w=h,w.$$boundTransclude=f,w.isSlotFilled=function(e){return!!f.$$slots[e]}),k&&(y=Y(A,s,w,k,v,i,C)),C&&(L.$$addScopeInfo(A,v,!0,!(E&&(E===C||E===C.$$originalDirective))),L.$$addScopeClass(A,!0),v.$$isolateBindings=C.$$isolateBindings,p=ve(i,s,v,v.$$isolateBindings,C),p.removeWatches&&v.$on("$destroy",p.removeWatches))
for(d in y){p=k[d],g=y[d]
var N=p.$$bindings.bindToController
g.bindingInfo=g.identifier&&N?ve(b,s,g.instance,N,p):{}
var M=g()
M!==g.instance&&(g.instance=M,A.data("$"+p.name+"Controller",M),g.bindingInfo.removeWatches&&g.bindingInfo.removeWatches(),g.bindingInfo=ve(b,s,g.instance,N,p))}for(r(k,function(e,t){var n=e.require
e.bindToController&&!ar(n)&&$(n)&&c(y[t].instance,G(t,n,A,y))}),r(y,function(e){var t=e.instance
if(x(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(n){o(n)}if(x(t.$onInit))try{t.$onInit()}catch(r){o(r)}x(t.$doCheck)&&(b.$watch(function(){t.$doCheck()}),t.$doCheck()),x(t.$onDestroy)&&b.$on("$destroy",function(){t.$onDestroy()})}),d=0,p=u.length;p>d;d++)g=u[d],me(g,g.isolateScope?v:i,A,s,g.require&&G(g.directiveName,g.require,A,y),w)
var z=i
for(C&&(C.template||null===C.templateUrl)&&(z=v),e&&e(z,a.childNodes,void 0,f),d=l.length-1;d>=0;d--)g=l[d],me(g,g.isolateScope?v:i,A,s,g.require&&G(g.directiveName,g.require,A,y),w)
r(y,function(e){e=e.instance,x(e.$postLink)&&e.$postLink()})}f=f||{}
for(var p,g,v,b,y,w=-Number.MAX_VALUE,_=f.newScopeDirective,k=f.controllerDirectives,C=f.newIsolateScopeDirective,E=f.templateDirective,A=f.nonTlbTranscludeDirective,N=!1,M=!1,j=f.hasElementTranscludeDirective,B=n.$$element=qn(t),O=i,T=!1,R=!1,P=0,U=e.length;U>P;P++){p=e[P]
var V=p.$$start,q=p.$$end
if(V&&(B=J(t,V,q)),v=void 0,w>p.priority)break
if((y=p.scope)&&(p.templateUrl||($(y)?(se("new/isolated scope",C||_,p,B),C=p):se("new/isolated scope",C,p,B)),_=_||p),g=p.name,!T&&(p.replace&&(p.templateUrl||p.template)||p.transclude&&!p.$$tlb)){for(y=P+1;T=e[y++];)if(T.transclude&&!T.$$tlb||T.replace&&(T.templateUrl||T.template)){R=!0
break}T=!0}if(!p.templateUrl&&p.controller&&(y=p.controller,k=k||ae(),se("'"+g+"' controller",k[g],p,B),k[g]=p),y=p.transclude)if(N=!0,p.$$tlb||(se("transclusion",A,p,B),A=p),"element"==y)j=!0,w=p.priority,v=B,B=n.$$element=qn(L.$$createComment(g,n[g])),t=B[0],he(a,Qn.call(v,0),t),v[0].$$parentNode=v[0].parentNode,O=Z(R,v,i,w,s&&s.name,{nonTlbTranscludeDirective:A})
else{var K=ae()
if(v=qn(ge(t)).contents(),$(y)){v=[]
var X=ae(),ee=ae()
r(y,function(e,t){var n="?"===e.charAt(0)
e=n?e.substring(1):e,X[e]=t,K[t]=null,ee[t]=n}),r(B.contents(),function(e){var t=X[Ge(z(e))]
t?(ee[t]=!0,K[t]=K[t]||[],K[t].push(e)):v.push(e)}),r(ee,function(e,t){if(!e)throw Zr("reqslot",t)})
for(var te in K)K[te]&&(K[te]=Z(R,K[te],i))}B.empty(),O=Z(R,v,i,void 0,void 0,{needsNewScope:p.$$isolateScope||p.$$newScope}),O.$$slots=K}if(p.template)if(M=!0,se("template",E,p,B),E=p,y=x(p.template)?p.template(B,n):p.template,y=ke(y),p.replace){if(s=p,v=Cr.test(y)?Qe(ue(p.templateNamespace,cr(y))):[],t=v[0],1!=v.length||1!==t.nodeType)throw Zr("tplrt",g,"")
he(a,B,t),U={$attr:{}},y=F(t,[],U)
var ne=e.splice(P+1,e.length-(P+1));(C||_)&&Q(y,C,_),e=e.concat(y).concat(ne),re(n,U),U=e.length}else B.html(y)
if(p.templateUrl)M=!0,se("template",E,p,B),E=p,p.replace&&(s=p),d=ie(e.splice(P,e.length-P),B,n,a,N&&O,u,l,{controllerDirectives:k,newScopeDirective:_!==p&&_,newIsolateScopeDirective:C,templateDirective:E,nonTlbTranscludeDirective:A}),U=e.length
else if(p.compile)try{b=p.compile(B,n,O)
var oe=p.$$originalDirective||p
x(b)?h(null,I(oe,b),V,q):b&&h(I(oe,b.pre),I(oe,b.post),V,q)}catch(ce){o(ce,H(B))}p.terminal&&(d.terminal=!0,w=Math.max(w,p.priority))}return d.scope=_&&!0===_.scope,d.transcludeOnThisElement=N,d.templateOnThisElement=M,d.transclude=O,f.hasElementTranscludeDirective=j,d}function G(e,t,n,i){var o
if(y(t)){var a=t.match(w)
t=t.substring(a[0].length)
var s=a[1]||a[3],a="?"===a[2]
if("^^"===s?n=n.parent():o=(o=i&&i[t])&&o.instance,!o){var c="$"+t+"Controller"
o=s?n.inheritedData(c):n.data(c)}if(!o&&!a)throw Zr("ctreq",t,e)}else if(ar(t))for(o=[],s=0,a=t.length;a>s;s++)o[s]=G(e,t[s],n,i)
else $(t)&&(o={},r(t,function(t,r){o[r]=G(e,t,n,i)}))
return o||null}function Y(e,t,n,r,i,o,a){var s,c=ae()
for(s in r){var u=r[s],l={$scope:u===a||u.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},f=u.controller
"@"==f&&(f=t[u.name]),l=p(f,l,!0,u.controllerAs),c[u.name]=l,e.data("$"+u.name+"Controller",l.instance)}return c}function Q(e,t,n){for(var r=0,i=e.length;i>r;r++)e[r]=f(e[r],{$$isolateScope:t,$$newScope:n})}function ee(e,n,r,a,s,c,l){if(n===s)return null
if(s=null,u.hasOwnProperty(n)){var h
n=t.get(n+"Directive")
for(var d=0,p=n.length;p>d;d++)try{if(h=n[d],(m(a)||a>h.priority)&&-1!=h.restrict.indexOf(r)){if(c&&(h=f(h,{$$start:c,$$end:l})),!h.$$bindings){var g=h,v=h,b=h.name,y={isolateScope:null,bindToController:null}
if($(v.scope)&&(!0===v.bindToController?(y.bindToController=i(v.scope,b,!0),y.isolateScope={}):y.isolateScope=i(v.scope,b,!1)),$(v.bindToController)&&(y.bindToController=i(v.bindToController,b,!0)),$(y.bindToController)){var w=v.controller,_=v.controllerAs
if(!w)throw Zr("noctrl",b)
if(!Xe(w,_))throw Zr("noident",b)}var x=g.$$bindings=y
$(x.isolateScope)&&(h.$$isolateBindings=x.isolateScope)}e.push(h),s=h}}catch(k){o(k)}}return s}function ne(e){if(u.hasOwnProperty(e))for(var n=t.get(e+"Directive"),r=0,i=n.length;i>r;r++)if(e=n[r],e.multiElement)return!0
return!1}function re(e,t){var n=t.$attr,i=e.$attr
r(e,function(r,i){"$"!=i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),r(t,function(t,r){e.hasOwnProperty(r)||"$"===r.charAt(0)||(e[r]=t,"class"!==r&&"style"!==r&&(i[r]=n[r]))})}function ie(e,t,n,i,o,s,c,u){var l,h,d=[],p=t[0],g=e.shift(),m=f(g,{templateUrl:null,transclude:null,replace:null,$$originalDirective:g}),v=x(g.templateUrl)?g.templateUrl(t,n):g.templateUrl,b=g.templateNamespace
return t.empty(),a(v).then(function(a){var f,y
if(a=ke(a),g.replace){if(a=Cr.test(a)?Qe(ue(b,cr(a))):[],f=a[0],1!=a.length||1!==f.nodeType)throw Zr("tplrt",g.name,v)
a={$attr:{}},he(i,t,f)
var w=F(f,[],a)
$(g.scope)&&Q(w,!0),e=w.concat(e),re(n,a)}else f=p,t.html(a)
for(e.unshift(m),l=K(e,f,n,o,t,g,s,c,u),r(i,function(e,n){e==f&&(i[n]=t[0])}),h=U(t[0].childNodes,o);d.length;){a=d.shift(),y=d.shift()
var _=d.shift(),x=d.shift(),w=t[0]
if(!a.$$destroyed){if(y!==p){var k=y.className
u.hasElementTranscludeDirective&&g.replace||(w=ge(f)),he(_,qn(y),w),P(qn(w),k)}y=l.transcludeOnThisElement?V(a,l.transclude,x):x,l(h,a,w,i,y)}}d=null}),function(e,t,n,r,i){e=i,t.$$destroyed||(d?d.push(t,n,r,e):(l.transcludeOnThisElement&&(e=V(t,l.transclude,i)),l(h,t,n,r,e)))}}function oe(e,t){var n=t.priority-e.priority
return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function se(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw Zr("multidir",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,H(r))}function ce(e,t){var r=n(t,!0)
r&&e.push({priority:0,compile:function(e){e=e.parent()
var t=!!e.length
return t&&L.$$addBindingClass(e),function(e,n){var i=n.parent()
t||L.$$addBindingClass(i),L.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){n[0].nodeValue=e})}}})}function ue(t,n){switch(t=Gn(t||"html")){case"svg":case"math":var r=e.document.createElement("div")
return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes
default:return n}}function le(e,t){if("srcdoc"==t)return N.HTML
var n=z(e)
return"xlinkHref"==t||"form"==n&&"action"==t||"img"!=n&&("src"==t||"ngSrc"==t)?N.RESOURCE_URL:void 0}function fe(e,t,r,i,o){var a=le(e,i)
o=b[i]||o
var s=n(r,!0,a,o)
if(s){if("multiple"===i&&"select"===z(e))throw Zr("selmulti",H(e))
t.push({priority:100,compile:function(){return{pre:function(e,t,c){if(t=c.$$observers||(c.$$observers=ae()),_.test(i))throw Zr("nodomevents")
var u=c[i]
u!==r&&(s=u&&n(u,!0,a,o),r=u),s&&(c[i]=s(e),(t[i]||(t[i]=[])).$$inter=!0,(c.$$observers&&c.$$observers[i].$$scope||e).$watch(s,function(e,t){"class"===i&&e!=t?c.$updateClass(e,t):c.$set(i,e)}))}}}})}}function he(t,n,r){var i,o,a=n[0],s=n.length,c=a.parentNode
if(t)for(i=0,o=t.length;o>i;i++)if(t[i]==a){t[i++]=r,o=i+s-1
for(var u=t.length;u>i;i++,o++)u>o?t[i]=t[o]:delete t[i]
t.length-=s-1,t.context===a&&(t.context=r)
break}for(c&&c.replaceChild(r,a),t=e.document.createDocumentFragment(),i=0;s>i;i++)t.appendChild(n[i])
for(qn.hasData(a)&&(qn.data(r,qn.data(a)),qn(a).off("$destroy")),qn.cleanData(t.querySelectorAll("*")),i=1;s>i;i++)delete n[i]
n[0]=r,n.length=1}function pe(e,t){return c(function(){return e.apply(null,arguments)},e,t)}function me(e,t,n,r,i,a){try{e(t,n,r,i,a)}catch(s){o(s,H(n))}}function ve(e,t,i,o,a){function c(t,n,r){x(i.$onChanges)&&n!==r&&($e||(e.$$postDigest(T),$e=[]),l||(l={},$e.push(u)),l[t]&&(r=l[t].previousValue),l[t]=new Ke(r,n))}function u(){i.$onChanges(l),l=void 0}var l,f=[],d={}
return r(o,function(r,o){var u,l,p,g,m=r.attrName,v=r.optional
switch(r.mode){case"@":v||Kn.call(t,m)||(i[o]=t[m]=void 0),t.$observe(m,function(e){(y(e)||E(e))&&(c(o,e,i[o]),i[o]=e)}),t.$$observers[m].$$scope=e,u=t[m],y(u)?i[o]=n(u)(e):E(u)&&(i[o]=u),d[o]=new Ke(Kr,i[o])
break
case"=":if(!Kn.call(t,m)){if(v)break
t[m]=void 0}if(v&&!t[m])break
l=s(t[m]),g=l.literal?O:function(e,t){return e===t||e!==e&&t!==t},p=l.assign||function(){throw u=i[o]=l(e),Zr("nonassign",t[m],m,a.name)},u=i[o]=l(e),v=function(t){return g(t,i[o])||(g(t,u)?p(e,t=i[o]):i[o]=t),u=t},v.$stateful=!0,v=r.collection?e.$watchCollection(t[m],v):e.$watch(s(t[m],v),null,l.literal),f.push(v)
break
case"<":if(!Kn.call(t,m)){if(v)break
t[m]=void 0}if(v&&!t[m])break
l=s(t[m])
var $=i[o]=l(e)
d[o]=new Ke(Kr,i[o]),v=e.$watch(l,function(e,t){if(t===e){if(t===$)return
t=$}c(o,e,t),i[o]=e},l.literal),f.push(v)
break
case"&":if(l=t.hasOwnProperty(m)?s(t[m]):h,l===h&&v)break
i[o]=function(t){return l(e,t)}}}),{initialChanges:d,removeWatches:f.length&&function(){for(var e=0,t=f.length;t>e;++e)f[e]()}}}var $e,be=/^\w/,ye=e.document.createElement("div"),we=A
D.prototype={$normalize:Ge,$addClass:function(e){e&&0<e.length&&M.addClass(this.$$element,e)},$removeClass:function(e){e&&0<e.length&&M.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=Ye(e,t)
n&&n.length&&M.addClass(this.$$element,n),(n=Ye(t,e))&&n.length&&M.removeClass(this.$$element,n)},$set:function(e,t,n,i){var a=Me(this.$$element[0],e),s=Br[e],c=e
if(a?(this.$$element.prop(e,t),i=a):s&&(this[s]=t,c=s),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=X(e,"-")),a=z(this.$$element),"a"===a&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=B(t,"src"===e)
else if("img"===a&&"srcset"===e&&v(t)){for(var a="",s=cr(t),u=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,u=/\s/.test(s)?u:/(,)/,s=s.split(u),u=Math.floor(s.length/2),l=0;u>l;l++)var f=2*l,a=a+B(cr(s[f]),!0),a=a+(" "+cr(s[f+1]))
s=cr(s[2*l]).split(/\s/),a+=B(cr(s[0]),!0),2===s.length&&(a+=" "+cr(s[1])),this[e]=t=a}!1!==n&&(null===t||m(t)?this.$$element.removeAttr(i):be.test(i)?this.$$element.attr(i,t):R(this.$$element[0],i,t)),(e=this.$$observers)&&r(e[c],function(e){try{e(t)}catch(n){o(n)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=ae()),i=r[e]||(r[e]=[])
return i.push(t),k.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||m(n[e])||t(n[e])}),function(){j(i,t)}}}
var _e=n.startSymbol(),xe=n.endSymbol(),ke="{{"==_e&&"}}"==xe?d:function(e){return e.replace(/\{\{/g,_e).replace(/}}/g,xe)},Ce=/^ngAttr[A-Z]/,Se=/^(.+)Start$/
return L.$$addBindingInfo=C?function(e,t){var n=e.data("$binding")||[]
ar(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:h,L.$$addBindingClass=C?function(e){P(e,"ng-binding")}:h,L.$$addScopeInfo=C?function(e,t,n,r){e.data(n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope",t)}:h,L.$$addScopeClass=C?function(e,t){P(e,t?"ng-isolate-scope":"ng-scope")}:h,L.$$createComment=function(t,n){var r=""
return C&&(r=" "+(t||"")+":\t",n&&(r+=n+" ")),e.document.createComment(r)},L}]}function Ke(e,t){this.previousValue=e,this.currentValue=t}function Ge(e){return le(e.replace(Gr,""))}function Ye(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/),o=0
e:for(;o<r.length;o++){for(var a=r[o],s=0;s<i.length;s++)if(a==i[s])continue e
n+=(0<n.length?" ":"")+a}return n}function Qe(e){e=qn(e)
var t=e.length
if(1>=t)return e
for(;t--;)8===e[t].nodeType&&Xn.call(e,t,1)
return e}function Xe(e,t){if(t&&y(t))return t
if(y(e)){var n=Qr.exec(e)
if(n)return n[3]}}function et(){var e={},n=!1
this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){re(t,"controller"),$(t)?c(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(e,n,r,i){if(!e||!$(e.$scope))throw t("$controller")("noscp",i,n)
e.$scope[n]=r}return function(t,a,s,u){var l,f,h
if(s=!0===s,u&&y(u)&&(h=u),y(t)){if(u=t.match(Qr),!u)throw Yr("ctrlfmt",t)
f=u[1],h=h||u[3],t=e.hasOwnProperty(f)?e[f]:ie(a.$scope,f,!0)||(n?ie(i,f,!0):void 0),ne(t,f,!0)}return s?(s=(ar(t)?t[t.length-1]:t).prototype,l=Object.create(s||null),h&&o(a,h,l,f||t.name),c(function(){var e=r.invoke(t,l,a,f)
return e!==l&&($(e)||x(e))&&(l=e,h&&o(a,h,l,f||t.name)),l},{instance:l,identifier:h})):(l=r.instantiate(t,a,f),h&&o(a,h,l,f||t.name),l)}}]}function tt(){this.$get=["$window",function(e){return qn(e.document)}]}function nt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function rt(e){return $(e)?_(e)?e.toISOString():R(e):e}function it(){this.$get=function(){return function(e){if(!e)return""
var t=[]
return i(e,function(e,n){null===e||m(e)||(ar(e)?r(e,function(e){t.push(W(n)+"="+W(rt(e)))}):t.push(W(n)+"="+W(rt(e))))}),t.join("&")}}}function ot(){this.$get=function(){return function(e){function t(e,o,a){null===e||m(e)||(ar(e)?r(e,function(e,n){t(e,o+"["+($(e)?n:"")+"]")}):$(e)&&!_(e)?i(e,function(e,n){t(e,o+(a?"":"[")+n+(a?"":"]"))}):n.push(W(o)+"="+W(rt(e))))}if(!e)return""
var n=[]
return t(e,"",!0),n.join("&")}}}function at(e,t){if(y(e)){var n=e.replace(ii,"").trim()
if(n){var r=t("Content-Type");(r=r&&0===r.indexOf(ei))||(r=(r=n.match(ni))&&ri[r[0]].test(n)),r&&(e=P(n))}}return e}function st(e){var t,n=ae()
return y(e)?r(e.split("\n"),function(e){t=e.indexOf(":")
var r=Gn(cr(e.substr(0,t)))
e=cr(e.substr(t+1)),r&&(n[r]=n[r]?n[r]+", "+e:e)}):$(e)&&r(e,function(e,t){var r=Gn(t),i=cr(e)
r&&(n[r]=n[r]?n[r]+", "+i:i)}),n}function ct(e){var t
return function(n){return t||(t=st(e)),n?(n=t[Gn(n)],void 0===n&&(n=null),n):t}}function ut(e,t,n,i){return x(i)?i(e,t,n):(r(i,function(r){e=r(e,t,n)}),e)}function lt(){var e=this.defaults={transformResponse:[at],transformRequest:[function(e){return $(e)&&"[object File]"!==tr.call(e)&&"[object Blob]"!==tr.call(e)&&"[object FormData]"!==tr.call(e)?R(e):e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ce(ti),put:ce(ti),patch:ce(ti)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1
this.useApplyAsync=function(e){return v(e)?(n=!!e,this):n}
var i=!0
this.useLegacyPromiseExtensions=function(e){return v(e)?(i=!!e,this):i}
var o=this.interceptors=[]
this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(a,s,u,l,f,h){function d(n){function o(e,t){for(var n=0,r=t.length;r>n;){var i=t[n++],o=t[n++]
e=e.then(i,o)}return t.length=0,e}function a(e,t){var n,i={}
return r(e,function(e,r){x(e)?(n=e(t),null!=n&&(i[r]=n)):i[r]=e}),i}function s(e){var t=c({},e)
return t.data=ut(e.data,e.headers,e.status,u.transformResponse),e=e.status,e>=200&&300>e?t:f.reject(t)}if(!$(n))throw t("$http")("badreq",n)
if(!y(n.url))throw t("$http")("badreq",n.url)
var u=c({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},n)
u.headers=function(t){var n,r,i,o=e.headers,s=c({},t.headers),o=c({},o.common,o[Gn(t.method)])
e:for(n in o){r=Gn(n)
for(i in s)if(Gn(i)===r)continue e
s[n]=o[n]}return a(s,ce(t))}(n),u.method=Yn(u.method),u.paramSerializer=y(u.paramSerializer)?h.get(u.paramSerializer):u.paramSerializer
var l=[],d=[],g=f.when(u)
return r(w,function(e){(e.request||e.requestError)&&l.unshift(e.request,e.requestError),(e.response||e.responseError)&&d.push(e.response,e.responseError)}),g=o(g,l),g=g.then(function(t){var n=t.headers,i=ut(t.data,ct(n),void 0,t.transformRequest)
return m(i)&&r(n,function(e,t){"content-type"===Gn(t)&&delete n[t]}),m(t.withCredentials)&&!m(e.withCredentials)&&(t.withCredentials=e.withCredentials),p(t,i).then(s,s)}),g=o(g,d),i?(g.success=function(e){return ne(e,"fn"),g.then(function(t){e(t.data,t.status,t.headers,u)}),g},g.error=function(e){return ne(e,"fn"),g.then(null,function(t){e(t.data,t.status,t.headers,u)}),g}):(g.success=ai("success"),g.error=ai("error")),g}function p(t,i){function o(e){if(e){var t={}
return r(e,function(e,r){t[r]=function(t){function r(){e(t)}n?l.$applyAsync(r):l.$$phase?r():l.$apply(r)}}),t}}function c(e,t,r,i){function o(){u(t,e,r,i)}y&&(e>=200&&300>e?y.put(S,[e,t,st(r),i]):y.remove(S)),n?l.$applyAsync(o):(o(),l.$$phase||l.$apply())}function u(e,n,r,i){n=n>=-1?n:0,(n>=200&&300>n?_.resolve:_.reject)({data:e,status:n,headers:ct(r),config:t,statusText:i})}function h(e){u(e.data,e.status,ce(e.headers()),e.statusText)}function p(){var e=d.pendingRequests.indexOf(t);-1!==e&&d.pendingRequests.splice(e,1)}var y,w,_=f.defer(),k=_.promise,C=t.headers,S=g(t.url,t.paramSerializer(t.params))
return d.pendingRequests.push(t),k.then(p,p),!t.cache&&!e.cache||!1===t.cache||"GET"!==t.method&&"JSONP"!==t.method||(y=$(t.cache)?t.cache:$(e.cache)?e.cache:b),y&&(w=y.get(S),v(w)?w&&x(w.then)?w.then(h,h):ar(w)?u(w[1],w[0],ce(w[2]),w[3]):u(w,200,{},"OK"):y.put(S,k)),m(w)&&((w=cn(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0)&&(C[t.xsrfHeaderName||e.xsrfHeaderName]=w),a(t.method,S,i,c,C,t.timeout,t.withCredentials,t.responseType,o(t.eventHandlers),o(t.uploadEventHandlers))),k}function g(e,t){return 0<t.length&&(e+=(-1==e.indexOf("?")?"?":"&")+t),e}var b=u("$http")
e.paramSerializer=y(e.paramSerializer)?h.get(e.paramSerializer):e.paramSerializer
var w=[]
return r(o,function(e){w.unshift(y(e)?h.get(e):h.invoke(e))}),d.pendingRequests=[],function(e){r(arguments,function(e){d[e]=function(t,n){return d(c({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){r(arguments,function(e){d[e]=function(t,n,r){return d(c({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),d.defaults=e,d}]}function ft(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function ht(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return dt(e,r,e.defer,t,n[0])}]}function dt(e,t,n,i,o){function a(e,t,n){e=e.replace("JSON_CALLBACK",t)
var r=o.createElement("script"),a=null
return r.type="text/javascript",r.src=e,r.async=!0,a=function(e){r.removeEventListener("load",a,!1),r.removeEventListener("error",a,!1),o.body.removeChild(r),r=null
var s=-1,c="unknown"
e&&("load"!==e.type||i.wasCalled(t)||(e={type:"error"}),c=e.type,s="error"===e.type?404:200),n&&n(s,c)},r.addEventListener("load",a,!1),r.addEventListener("error",a,!1),o.body.appendChild(r),a}return function(o,s,c,u,l,f,d,p,g,$){function b(){_&&_(),k&&k.abort()}function y(t,r,i,o,a){v(S)&&n.cancel(S),_=k=null,t(r,i,o,a),e.$$completeOutstandingRequest(h)}if(e.$$incOutstandingRequestCount(),s=s||e.url(),"jsonp"===Gn(o))var w=i.createCallback(s),_=a(s,w,function(e,t){var n=200===e&&i.getResponse(w)
y(u,e,n,"",t),i.removeCallback(w)})
else{var k=t(o,s)
if(k.open(o,s,!0),r(l,function(e,t){v(e)&&k.setRequestHeader(t,e)}),k.onload=function(){var e=k.statusText||"",t="response"in k?k.response:k.responseText,n=1223===k.status?204:k.status
0===n&&(n=t?200:"file"==sn(s).protocol?404:0),y(u,n,t,k.getAllResponseHeaders(),e)},o=function(){y(u,-1,null,null,"")},k.onerror=o,k.onabort=o,r(g,function(e,t){k.addEventListener(t,e)}),r($,function(e,t){k.upload.addEventListener(t,e)}),d&&(k.withCredentials=!0),p)try{k.responseType=p}catch(C){if("json"!==p)throw C}k.send(m(c)?null:c)}if(f>0)var S=n(b,f)
else f&&x(f.then)&&f.then(b)}}function pt(){var e="{{",t="}}"
this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(h,e).replace(d,t)}function s(e,t,n,r){var i
return i=e.$watch(function(e){return i(),r(e)},t,n)}function u(o,u,h,d){function g(e){try{var t=e
e=h?i.getTrusted(h,t):i.valueOf(t)
var n
if(d&&!v(e))n=e
else if(null==e)n=""
else{switch(typeof e){case"string":break
case"number":e=""+e
break
default:e=R(e)}n=e}return n}catch(a){r(si.interr(o,a))}}if(!o.length||-1===o.indexOf(e)){var $
return u||(u=a(o),$=p(u),$.exp=o,$.expressions=[],$.$$watchDelegate=s),$}d=!!d
var b,y,w=0,_=[],k=[]
$=o.length
for(var C=[],S=[];$>w;){if(-1==(b=o.indexOf(e,w))||-1==(y=o.indexOf(t,b+l))){w!==$&&C.push(a(o.substring(w)))
break}w!==b&&C.push(a(o.substring(w,b))),w=o.substring(b+l,y),_.push(w),k.push(n(w,g)),w=y+f,S.push(C.length),C.push("")}if(h&&1<C.length&&si.throwNoconcat(o),!u||_.length){var E=function(e){for(var t=0,n=_.length;n>t;t++){if(d&&m(e[t]))return
C[S[t]]=e[t]}return C.join("")}
return c(function(e){var t=0,n=_.length,i=Array(n)
try{for(;n>t;t++)i[t]=k[t](e)
return E(i)}catch(a){r(si.interr(o,a))}},{exp:o,expressions:_,$$watchDelegate:function(e,t){var n
return e.$watchGroup(k,function(r,i){var o=E(r)
x(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var l=e.length,f=t.length,h=RegExp(e.replace(/./g,o),"g"),d=RegExp(t.replace(/./g,o),"g")
return u.startSymbol=function(){return e},u.endSymbol=function(){return t},u}]}function gt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,s,c,u){function l(){f?o.apply(null,h):o(g)}var f=4<arguments.length,h=f?Qn.call(arguments,4):[],d=t.setInterval,p=t.clearInterval,g=0,m=v(u)&&!u,$=(m?r:n).defer(),b=$.promise
return c=v(c)?c:0,b.$$intervalId=d(function(){m?i.defer(l):e.$evalAsync(l),$.notify(g++),c>0&&g>=c&&($.resolve(g),p(b.$$intervalId),delete a[b.$$intervalId]),m||e.$apply()},s),a[b.$$intervalId]=$,b}var a={}
return o.cancel=function(e){return e&&e.$$intervalId in a?(a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0):!1},o}]}function mt(e){e=e.split("/")
for(var t=e.length;t--;)e[t]=J(e[t])
return e.join("/")}function vt(e,t){var n=sn(e)
t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=l(n.port)||li[n.protocol]||null}function $t(e,t){var n="/"!==e.charAt(0)
n&&(e="/"+e)
var r=sn(e)
t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=F(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!=t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function bt(e,t){return 0===t.lastIndexOf(e,0)?t.substr(e.length):void 0}function yt(e){var t=e.indexOf("#")
return-1==t?e:e.substr(0,t)}function wt(e){return e.replace(/(#.+)|#$/,"$1")}function _t(e,t,n){this.$$html5=!0,n=n||"",vt(e,this),this.$$parse=function(e){var n=bt(t,e)
if(!y(n))throw fi("ipthprfx",e,t)
$t(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=q(this.$$search),n=this.$$hash?"#"+J(this.$$hash):""
this.$$url=mt(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0
var o,a
return v(o=bt(e,r))?(a=o,a=v(o=bt(n,o))?t+(bt("/",o)||o):e+a):v(o=bt(t,r))?a=t+o:t==r+"/"&&(a=t),a&&this.$$parse(a),!!a}}function xt(e,t,n){vt(e,this),this.$$parse=function(r){var i,o=bt(e,r)||bt(t,r)
m(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",m(o)&&(e=r,this.replace())):(i=bt(n,o),m(i)&&(i=o)),$t(i,this),r=this.$$path
var o=e,a=/^\/[A-Z]:(\/.*)/
0===i.lastIndexOf(o,0)&&(i=i.replace(o,"")),a.exec(i)||(r=(i=a.exec(r))?i[1]:r),this.$$path=r,this.$$compose()},this.$$compose=function(){var t=q(this.$$search),r=this.$$hash?"#"+J(this.$$hash):""
this.$$url=mt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return yt(e)==yt(t)?(this.$$parse(t),!0):!1}}function kt(e,t,n){this.$$html5=!0,xt.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0
var o,a
return e==yt(r)?o=r:(a=bt(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=q(this.$$search),r=this.$$hash?"#"+J(this.$$hash):""
this.$$url=mt(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}function Ct(e){return function(){return this[e]}}function St(e,t){return function(n){return m(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Et(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0}
this.hashPrefix=function(t){return v(t)?(e=t,this):e},this.html5Mode=function(e){return E(e)?(t.enabled=e,this):$(e)?(E(e.enabled)&&(t.enabled=e.enabled),E(e.requireBase)&&(t.requireBase=e.requireBase),E(e.rewriteLinks)&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=u.url(),o=u.$$state
try{r.url(e,t,n),u.$$state=r.state()}catch(a){throw u.url(i),u.$$state=o,a}}function c(e,t){n.$broadcast("$locationChangeSuccess",u.absUrl(),e,u.$$state,t)}var u,l
l=r.baseHref()
var f,h=r.url()
if(t.enabled){if(!l&&t.requireBase)throw fi("nobase")
f=h.substring(0,h.indexOf("/",h.indexOf("//")+2))+(l||"/"),l=i.history?_t:kt}else f=yt(h),l=xt
var d=f.substr(0,yt(f).lastIndexOf("/")+1)
u=new l(f,d,"#"+e),u.$$parseLinkUrl(h,h),u.$$state=r.state()
var p=/^\s*(javascript|mailto):/i
o.on("click",function(e){if(t.rewriteLinks&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!=e.which&&2!=e.button){for(var i=qn(e.target);"a"!==z(i[0]);)if(i[0]===o[0]||!(i=i.parent())[0])return
var s=i.prop("href"),c=i.attr("href")||i.attr("xlink:href")
$(s)&&"[object SVGAnimatedString]"==""+s&&(s=sn(s.animVal).href),p.test(s)||!s||i.attr("target")||e.isDefaultPrevented()||!u.$$parseLinkUrl(s,c)||(e.preventDefault(),u.absUrl()!=r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}),wt(u.absUrl())!=wt(h)&&r.url(u.absUrl(),!0)
var g=!0
return r.onUrlChange(function(e,t){m(bt(d,e))?a.location.href=e:(n.$evalAsync(function(){var r,i=u.absUrl(),o=u.$$state
e=wt(e),u.$$parse(e),u.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,u.absUrl()===e&&(r?(u.$$parse(i),u.$$state=o,s(i,!1,o)):(g=!1,c(i,o)))}),n.$$phase||n.$digest())}),n.$watch(function(){var e=wt(r.url()),t=wt(u.absUrl()),o=r.state(),a=u.$$replace,l=e!==t||u.$$html5&&i.history&&o!==u.$$state;(g||l)&&(g=!1,n.$evalAsync(function(){var t=u.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,u.$$state,o).defaultPrevented
u.absUrl()===t&&(r?(u.$$parse(e),u.$$state=o):(l&&s(t,a,o===u.$$state?null:u.$$state),c(e,o)))})),u.$$replace=!1}),u}]}function At(){var e=!0,t=this
this.debugEnabled=function(t){return v(t)?(e=t,this):e},this.$get=["$window",function(n){function i(e){return e instanceof Error&&(e.stack?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function o(e){var t=n.console||{},o=t[e]||t.log||h
e=!1
try{e=!!o.apply}catch(a){}return e?function(){var e=[]
return r(arguments,function(t){e.push(i(t))}),o.apply(t,e)}:function(e,t){o(e,null==t?"":t)}}return{log:o("log"),info:o("info"),warn:o("warn"),error:o("error"),debug:function(){var n=o("debug")
return function(){e&&n.apply(t,arguments)}}()}}]}function Nt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw di("isecfld",t)
return e}function Mt(e){return e+""}function zt(e,t){if(e){if(e.constructor===e)throw di("isecfn",t)
if(e.window===e)throw di("isecwindow",t)
if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw di("isecdom",t)
if(e===Object)throw di("isecobj",t)}return e}function jt(e,t){if(e){if(e.constructor===e)throw di("isecfn",t)
if(e===pi||e===gi||e===mi)throw di("isecff",t)}}function Bt(e,t){if(e&&(e===0..constructor||e===(!1).constructor||e==="".constructor||e==={}.constructor||e===[].constructor||e===Function.constructor))throw di("isecaf",t)}function Ot(e,t){return void 0!==e?e:t}function Tt(e,t){return void 0===e?t:void 0===t?e:e+t}function It(e,t){var n,i
switch(e.type){case yi.Program:n=!0,r(e.body,function(e){It(e.expression,t),n=n&&e.expression.constant}),e.constant=n
break
case yi.Literal:e.constant=!0,e.toWatch=[]
break
case yi.UnaryExpression:It(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch
break
case yi.BinaryExpression:It(e.left,t),It(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch)
break
case yi.LogicalExpression:It(e.left,t),It(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e]
break
case yi.ConditionalExpression:It(e.test,t),It(e.alternate,t),It(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e]
break
case yi.Identifier:e.constant=!1,e.toWatch=[e]
break
case yi.MemberExpression:It(e.object,t),e.computed&&It(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e]
break
case yi.CallExpression:n=e.filter?!t(e.callee.name).$stateful:!1,i=[],r(e.arguments,function(e){It(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=e.filter&&!t(e.callee.name).$stateful?i:[e]
break
case yi.AssignmentExpression:It(e.left,t),It(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e]
break
case yi.ArrayExpression:n=!0,i=[],r(e.elements,function(e){It(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=i
break
case yi.ObjectExpression:n=!0,i=[],r(e.properties,function(e){It(e.value,t),n=n&&e.value.constant&&!e.computed,e.value.constant||i.push.apply(i,e.value.toWatch)}),e.constant=n,e.toWatch=i
break
case yi.ThisExpression:e.constant=!1,e.toWatch=[]
break
case yi.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Dt(e){if(1==e.length){e=e[0].expression
var t=e.toWatch
return 1!==t.length?t:t[0]!==e?t:void 0}}function Rt(e){return e.type===yi.Identifier||e.type===yi.MemberExpression}function Pt(e){return 1===e.body.length&&Rt(e.body[0].expression)?{type:yi.AssignmentExpression,left:e.body[0].expression,right:{type:yi.NGValueParameter},operator:"="}:void 0}function Lt(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===yi.Literal||e.body[0].expression.type===yi.ArrayExpression||e.body[0].expression.type===yi.ObjectExpression)}function Ut(e,t){this.astBuilder=e,this.$filter=t}function Ht(e,t){this.astBuilder=e,this.$filter=t}function Vt(e){return"constructor"==e}function Ft(e){return x(e.valueOf)?e.valueOf():_i.call(e)}function qt(){var e,t,n=ae(),i=ae(),o={"true":!0,"false":!1,"null":null,undefined:void 0}
this.addLiteral=function(e,t){o[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(a){function s(e,t,r){var o,s,u
switch(r=r||y,typeof e){case"string":u=e=e.trim()
var m=r?i:n
if(o=m[u],!o){":"===e.charAt(0)&&":"===e.charAt(1)&&(s=!0,e=e.substring(2)),o=r?b:$
var v=new bi(o)
o=new wi(v,a,o).parse(e),o.constant?o.$$watchDelegate=p:s?o.$$watchDelegate=o.literal?d:f:o.inputs&&(o.$$watchDelegate=l),r&&(o=c(o)),m[u]=o}return g(o,t)
case"function":return g(e,t)
default:return g(h,t)}}function c(e){function t(t,n,r,i){var o=y
y=!0
try{return e(t,n,r,i)}finally{y=o}}if(!e)return e
t.$$watchDelegate=e.$$watchDelegate,t.assign=c(e.assign),t.constant=e.constant,t.literal=e.literal
for(var n=0;e.inputs&&n<e.inputs.length;++n)e.inputs[n]=c(e.inputs[n])
return t.inputs=e.inputs,t}function u(e,t){return null==e||null==t?e===t:"object"==typeof e&&(e=Ft(e),"object"==typeof e)?!1:e===t||e!==e&&t!==t}function l(e,t,n,r,i){var o,a=r.inputs
if(1===a.length){var s=u,a=a[0]
return e.$watch(function(e){var t=a(e)
return u(t,s)||(o=r(e,void 0,void 0,[t]),s=t&&Ft(t)),o},t,n,i)}for(var c=[],l=[],f=0,h=a.length;h>f;f++)c[f]=u,l[f]=null
return e.$watch(function(e){for(var t=!1,n=0,i=a.length;i>n;n++){var s=a[n](e);(t||(t=!u(s,c[n])))&&(l[n]=s,c[n]=s&&Ft(s))}return t&&(o=r(e,void 0,void 0,l)),o},t,n,i)}function f(e,t,n,r){var i,o
return i=e.$watch(function(e){return r(e)},function(e,n,r){o=e,x(t)&&t.apply(this,arguments),v(e)&&r.$$postDigest(function(){v(o)&&i()})},n)}function d(e,t,n,i){function o(e){var t=!0
return r(e,function(e){v(e)||(t=!1)}),t}var a,s
return a=e.$watch(function(e){return i(e)},function(e,n,r){s=e,x(t)&&t.call(this,e,n,r),o(e)&&r.$$postDigest(function(){o(s)&&a()})},n)}function p(e,t,n,r){var i
return i=e.$watch(function(e){return i(),r(e)},t,n)}function g(e,t){if(!t)return e
var n=e.$$watchDelegate,r=!1,n=n!==d&&n!==f?function(n,i,o,a){return o=r&&a?a[0]:e(n,i,o,a),t(o,n,i)}:function(n,r,i,o){return i=e(n,r,i,o),n=t(i,n,r),v(i)?n:i}
return e.$$watchDelegate&&e.$$watchDelegate!==l?n.$$watchDelegate=e.$$watchDelegate:t.$stateful||(n.$$watchDelegate=l,r=!e.inputs,n.inputs=e.inputs?e.inputs:[e]),n}var m=lr().noUnsafeEval,$={csp:m,expensiveChecks:!1,literals:B(o),isIdentifierStart:x(e)&&e,isIdentifierContinue:x(t)&&t},b={csp:m,expensiveChecks:!0,literals:B(o),isIdentifierStart:x(e)&&e,isIdentifierContinue:x(t)&&t},y=!1
return s.$$runningExpensiveChecks=function(){return y},s}]}function Jt(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return Zt(function(t){e.$evalAsync(t)},t)}]}function Wt(){this.$get=["$browser","$exceptionHandler",function(e,t){return Zt(function(t){e.defer(t)},t)}]}function Zt(e,n){function i(){this.$$state={status:0}}function o(e,t){return function(n){t.call(e,n)}}function a(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){var e,r,i
i=t.pending,t.processScheduled=!1,t.pending=void 0
for(var o=0,a=i.length;a>o;++o){r=i[o][0],e=i[o][t.status]
try{x(e)?r.resolve(e(t.value)):1===t.status?r.resolve(t.value):r.reject(t.value)}catch(s){r.reject(s),n(s)}}}))}function s(){this.promise=new i}var u=t("$q",TypeError),l=function(){var e=new s
return e.resolve=o(e,e.resolve),e.reject=o(e,e.reject),e.notify=o(e,e.notify),e}
c(i.prototype,{then:function(e,t,n){if(m(e)&&m(t)&&m(n))return this
var r=new s
return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),0<this.$$state.status&&a(this.$$state),r.promise},"catch":function(e){return this.then(null,e)},"finally":function(e,t){return this.then(function(t){return h(t,!0,e)},function(t){return h(t,!1,e)},t)}}),c(s.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(u("qcycle",e)):this.$$resolve(e))},$$resolve:function(e){function t(e){c||(c=!0,s.$$resolve(e))}function r(e){c||(c=!0,s.$$reject(e))}var i,s=this,c=!1
try{($(e)||x(e))&&(i=e&&e.then),x(i)?(this.promise.$$state.status=-1,i.call(e,t,r,o(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,a(this.promise.$$state))}catch(u){r(u),n(u)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,a(this.promise.$$state)},notify:function(t){var r=this.promise.$$state.pending
0>=this.promise.$$state.status&&r&&r.length&&e(function(){for(var e,i,o=0,a=r.length;a>o;o++){i=r[o][0],e=r[o][3]
try{i.notify(x(e)?e(t):t)}catch(s){n(s)}}})}})
var f=function(e,t){var n=new s
return t?n.resolve(e):n.reject(e),n.promise},h=function(e,t,n){var r=null
try{x(n)&&(r=n())}catch(i){return f(i,!1)}return r&&x(r.then)?r.then(function(){return f(e,t)},function(e){return f(e,!1)}):f(e,t)},d=function(e,t,n,r){var i=new s
return i.resolve(e),i.promise.then(t,n,r)},p=function(e){if(!x(e))throw u("norslvr",e)
var t=new s
return e(function(e){t.resolve(e)},function(e){t.reject(e)}),t.promise}
return p.prototype=i.prototype,p.defer=l,p.reject=function(e){var t=new s
return t.reject(e),t.promise},p.when=d,p.resolve=d,p.all=function(e){var t=new s,n=0,i=ar(e)?[]:{}
return r(e,function(e,r){n++,d(e).then(function(e){i.hasOwnProperty(r)||(i[r]=e,--n||t.resolve(i))},function(e){i.hasOwnProperty(r)||t.reject(e)})}),0===n&&t.resolve(i),t.promise},p.race=function(e){var t=l()
return r(e,function(e){d(e).then(t.resolve,t.reject)}),t.promise},p}function Kt(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e)
return function(){r(t)}}:function(e){var n=t(e,16.66,!1)
return function(){t.cancel(n)}}
return o.supported=i,o}]}function Gt(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=++or,this.$$ChildScope=null}return t.prototype=e,t}var i=10,o=t("$rootScope"),a=null,s=null
this.digestTtl=function(e){return arguments.length&&(i=e),i},this.$get=["$exceptionHandler","$parse","$browser",function(t,c,u){function l(e){e.currentScope.$$destroyed=!0}function f(e){9===Fn&&(e.$$childHead&&f(e.$$childHead),e.$$nextSibling&&f(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function d(){this.$id=++or,this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function p(e){if(_.$$phase)throw o("inprog",_.$$phase)
_.$$phase=e}function g(e,t){do e.$$watchersCount+=t
while(e=e.$parent)}function v(e,t,n){do e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]
while(e=e.$parent)}function b(){}function y(){for(;S.length;)try{S.shift()()}catch(e){t(e)}s=null}function w(){null===s&&(s=u.defer(function(){_.$apply(y)}))}d.prototype={constructor:d,$new:function(t,n){var r
return n=n||this,t?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!=this)&&r.$on("$destroy",l),r},$watch:function(e,t,n,r){var i=c(e)
if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e)
var o=this,s=o.$$watchers,u={fn:t,last:b,get:i,exp:r||e,eq:!!n}
return a=null,x(t)||(u.fn=h),s||(s=o.$$watchers=[]),s.unshift(u),g(this,1),function(){0<=j(s,u)&&g(o,-1),a=null}},$watchGroup:function(e,t){function n(){c=!1,u?(u=!1,t(o,o,s)):t(o,i,s)}var i=Array(e.length),o=Array(e.length),a=[],s=this,c=!1,u=!0
if(!e.length){var l=!0
return s.$evalAsync(function(){l&&t(o,o,s)}),function(){l=!1}}return 1===e.length?this.$watch(e[0],function(e,n,r){o[0]=e,i[0]=n,t(o,e===n?o:i,r)}):(r(e,function(e,t){var r=s.$watch(e,function(e,r){o[t]=e,i[t]=r,c||(c=!0,s.$evalAsync(n))})
a.push(r)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function r(e){i=e
var t,r,a,s
if(!m(i)){if($(i))if(n(i))for(o!==h&&(o=h,g=o.length=0,l++),e=i.length,g!==e&&(l++,o.length=g=e),t=0;e>t;t++)s=o[t],a=i[t],r=s!==s&&a!==a,r||s===a||(l++,o[t]=a)
else{o!==d&&(o=d={},g=0,l++),e=0
for(t in i)Kn.call(i,t)&&(e++,a=i[t],s=o[t],t in o?(r=s!==s&&a!==a,r||s===a||(l++,o[t]=a)):(g++,o[t]=a,l++))
if(g>e)for(t in l++,o)Kn.call(i,t)||(g--,delete o[t])}else o!==i&&(o=i,l++)
return l}}r.$stateful=!0
var i,o,a,s=this,u=1<t.length,l=0,f=c(e,r),h=[],d={},p=!0,g=0
return this.$watch(f,function(){if(p?(p=!1,t(i,i,s)):t(i,a,s),u)if($(i))if(n(i)){a=Array(i.length)
for(var e=0;e<i.length;e++)a[e]=i[e]}else for(e in a={},i)Kn.call(i,e)&&(a[e]=i[e])
else a=i})},$digest:function(){var e,n,r,c,l,f,h,d,g,m,v,$=i,w=[]
p("$digest"),u.$$checkUrlChange(),this===_&&null!==s&&(u.defer.cancel(s),y()),a=null
do{for(d=!1,g=this,f=0;f<k.length;f++){try{v=k[f],v.scope.$eval(v.expression,v.locals)}catch(S){t(S)}a=null}k.length=0
e:do{if(f=g.$$watchers)for(h=f.length;h--;)try{if(e=f[h])if(l=e.get,(n=l(g))===(r=e.last)||(e.eq?O(n,r):"number"==typeof n&&"number"==typeof r&&isNaN(n)&&isNaN(r))){if(e===a){d=!1
break e}}else d=!0,a=e,e.last=e.eq?B(n,null):n,c=e.fn,c(n,r===b?n:r,g),5>$&&(m=4-$,w[m]||(w[m]=[]),w[m].push({msg:x(e.exp)?"fn: "+(e.exp.name||""+e.exp):e.exp,newVal:n,oldVal:r}))}catch(A){t(A)}if(!(f=g.$$watchersCount&&g.$$childHead||g!==this&&g.$$nextSibling))for(;g!==this&&!(f=g.$$nextSibling);)g=g.$parent}while(g=f)
if((d||k.length)&&!$--)throw _.$$phase=null,o("infdig",i,w)}while(d||k.length)
for(_.$$phase=null;E<C.length;)try{C[E++]()}catch(N){t(N)}C.length=E=0},$destroy:function(){if(!this.$$destroyed){var e=this.$parent
this.$broadcast("$destroy"),this.$$destroyed=!0,this===_&&u.$$applicationDestroyed(),g(this,-this.$$watchersCount)
for(var t in this.$$listenerCount)v(this,this.$$listenerCount[t],t)
e&&e.$$childHead==this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail==this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=h,this.$on=this.$watch=this.$watchGroup=function(){return h},this.$$listeners={},this.$$nextSibling=null,f(this)}},$eval:function(e,t){return c(e)(this,t)},$evalAsync:function(e,t){_.$$phase||k.length||u.defer(function(){k.length&&_.$digest()}),k.push({scope:this,expression:c(e),locals:t})},$$postDigest:function(e){C.push(e)},$apply:function(e){try{p("$apply")
try{return this.$eval(e)}finally{_.$$phase=null}}catch(n){t(n)}finally{try{_.$digest()}catch(r){throw t(r),r}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this
e&&S.push(t),e=c(e),w()},$on:function(e,t){var n=this.$$listeners[e]
n||(this.$$listeners[e]=n=[]),n.push(t)
var r=this
do r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++
while(r=r.$parent)
var i=this
return function(){var r=n.indexOf(t);-1!==r&&(n[r]=null,v(i,1,e))}},$emit:function(e,n){var r,i,o,a=[],s=this,c=!1,u={name:e,targetScope:s,stopPropagation:function(){c=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},l=T([u],arguments,1)
do{for(r=s.$$listeners[e]||a,u.currentScope=s,i=0,o=r.length;o>i;i++)if(r[i])try{r[i].apply(null,l)}catch(f){t(f)}else r.splice(i,1),i--,o--
if(c)return u.currentScope=null,u
s=s.$parent}while(s)
return u.currentScope=null,u},$broadcast:function(e,n){var r=this,i=this,o={name:e,targetScope:this,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1}
if(!this.$$listenerCount[e])return o
for(var a,s,c=T([o],arguments,1);r=i;){for(o.currentScope=r,i=r.$$listeners[e]||[],a=0,s=i.length;s>a;a++)if(i[a])try{i[a].apply(null,c)}catch(u){t(u)}else i.splice(a,1),a--,s--
if(!(i=r.$$listenerCount[e]&&r.$$childHead||r!==this&&r.$$nextSibling))for(;r!==this&&!(i=r.$$nextSibling);)r=r.$parent}return o.currentScope=null,o}}
var _=new d,k=_.$$asyncQueue=[],C=_.$$postDigestQueue=[],S=_.$$applyAsyncQueue=[],E=0
return _}]}function Yt(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/
this.aHrefSanitizationWhitelist=function(t){return v(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return v(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e
return i=sn(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function Qt(e){if("self"===e)return e
if(y(e)){if(-1<e.indexOf("***"))throw xi("iwcard",e)
return e=ur(e).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*"),RegExp("^"+e+"$")}if(k(e))return RegExp("^"+e.source+"$")
throw xi("imatcher")}function Xt(e){var t=[]
return v(e)&&r(e,function(e){t.push(Qt(e))}),t}function en(){this.SCE_CONTEXTS=ki
var e=["self"],t=[]
this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Xt(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Xt(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?cn(t):!!e.exec(t.href)}function i(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}}
return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return""+this.$$unwrapTrustedValue()},t}var o=function(e){throw xi("unsafe")}
n.has("$sanitize")&&(o=n.get("$sanitize"))
var a=i(),s={}
return s[ki.HTML]=i(a),s[ki.CSS]=i(a),s[ki.URL]=i(a),s[ki.JS]=i(a),s[ki.RESOURCE_URL]=i(s[ki.URL]),{trustAs:function(e,t){var n=s.hasOwnProperty(e)?s[e]:null
if(!n)throw xi("icontext",e,t)
if(null===t||m(t)||""===t)return t
if("string"!=typeof t)throw xi("itype",e)
return new n(t)},getTrusted:function(n,i){if(null===i||m(i)||""===i)return i
var a=s.hasOwnProperty(n)?s[n]:null
if(a&&i instanceof a)return i.$$unwrapTrustedValue()
if(n===ki.RESOURCE_URL){var c,u,a=sn(""+i),l=!1
for(c=0,u=e.length;u>c;c++)if(r(e[c],a)){l=!0
break}if(l)for(c=0,u=t.length;u>c;c++)if(r(t[c],a)){l=!1
break}if(l)return i
throw xi("insecurl",""+i)}if(n===ki.HTML)return o(i)
throw xi("unsafe")},valueOf:function(e){return e instanceof a?e.$$unwrapTrustedValue():e}}}]}function tn(){var e=!0
this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&8>Fn)throw xi("iequirks")
var i=ce(ki)
i.isEnabled=function(){return e},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=d),i.parseAs=function(e,n){var r=t(n)
return r.literal&&r.constant?r:t(n,function(t){return i.getTrusted(e,t)})}
var o=i.parseAs,a=i.getTrusted,s=i.trustAs
return r(ki,function(e,t){var n=Gn(t)
i[le("parse_as_"+n)]=function(t){return o(e,t)},i[le("get_trusted_"+n)]=function(t){return a(e,t)},i[le("trust_as_"+n)]=function(t){return s(e,t)}}),i}]}function nn(){this.$get=["$window","$document",function(e,t){var n,r={},i=!(e.chrome&&e.chrome.app&&e.chrome.app.runtime)&&e.history&&e.history.pushState,o=l((/android (\d+)/.exec(Gn((e.navigator||{}).userAgent))||[])[1]),a=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},c=/^(Moz|webkit|ms)(?=[A-Z])/,u=s.body&&s.body.style,f=!1,h=!1
if(u){for(var d in u)if(f=c.exec(d)){n=f[0],n=n[0].toUpperCase()+n.substr(1)
break}n||(n="WebkitOpacity"in u&&"webkit"),f=!!("transition"in u||n+"Transition"in u),h=!!("animation"in u||n+"Animation"in u),!o||f&&h||(f=y(u.webkitTransition),h=y(u.webkitAnimation))}return{history:!(!i||4>o||a),hasEvent:function(e){if("input"===e&&11>=Fn)return!1
if(m(r[e])){var t=s.createElement("div")
r[e]="on"+e in t}return r[e]},csp:lr(),vendorPrefix:n,transitions:f,animations:h,android:o}}]}function rn(){var e
this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,r,i){function o(a,s){o.totalPendingRequests++,(!y(a)||m(t.get(a)))&&(a=i.getTrustedResourceUrl(a))
var u=n.defaults&&n.defaults.transformResponse
return ar(u)?u=u.filter(function(e){return e!==at}):u===at&&(u=null),n.get(a,c({cache:t,transformResponse:u},e))["finally"](function(){o.totalPendingRequests--}).then(function(e){return t.put(a,e.data),e.data},function(e){if(!s)throw Ci("tpload",a,e.status,e.statusText)
return r.reject(e)})}return o.totalPendingRequests=0,o}]}function on(){this.$get=["$rootScope","$browser","$location",function(e,t,n){return{findBindings:function(e,t,n){e=e.getElementsByClassName("ng-binding")
var i=[]
return r(e,function(e){var o=ir.element(e).data("$binding")
o&&r(o,function(r){n?RegExp("(^|\\s)"+ur(t)+"(\\s|\\||$)").test(r)&&i.push(e):-1!=r.indexOf(t)&&i.push(e)})}),i},findModels:function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=e.querySelectorAll("["+r[i]+"model"+(n?"=":"*=")+'"'+t+'"]')
if(o.length)return o}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}}}]}function an(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,c){x(o)||(c=s,s=o,o=h)
var u,l=Qn.call(arguments,3),f=v(c)&&!c,d=(f?r:n).defer(),p=d.promise
return u=t.defer(function(){try{d.resolve(o.apply(null,l))}catch(t){d.reject(t),i(t)}finally{delete a[p.$$timeoutId]}f||e.$apply()},s),p.$$timeoutId=u,a[u]=d,p}var a={}
return o.cancel=function(e){return e&&e.$$timeoutId in a?(a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId)):!1},o}]}function sn(e){return Fn&&(Si.setAttribute("href",e),e=Si.href),Si.setAttribute("href",e),{href:Si.href,protocol:Si.protocol?Si.protocol.replace(/:$/,""):"",host:Si.host,search:Si.search?Si.search.replace(/^\?/,""):"",hash:Si.hash?Si.hash.replace(/^#/,""):"",hostname:Si.hostname,port:Si.port,pathname:"/"===Si.pathname.charAt(0)?Si.pathname:"/"+Si.pathname}}function cn(e){return e=y(e)?sn(e):e,e.protocol===Ei.protocol&&e.host===Ei.host}function un(){this.$get=p(e)}function ln(e){function t(e){try{return decodeURIComponent(e)}catch(t){return e}}var n=e[0]||{},r={},i=""
return function(){var e,o,a,s,c
if(e=n.cookie||"",e!==i)for(i=e,e=i.split("; "),r={},a=0;a<e.length;a++)o=e[a],s=o.indexOf("="),s>0&&(c=t(o.substring(0,s)),m(r[c])&&(r[c]=t(o.substring(s+1))))
return r}}function fn(){this.$get=ln}function hn(e){function t(n,i){if($(n)){var o={}
return r(n,function(e,n){o[n]=t(n,e)}),o}return e.factory(n+"Filter",i)}this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],t("currency",vn),t("date",An),t("filter",dn),t("json",Nn),t("limitTo",Mn),t("lowercase",Oi),t("number",$n),t("orderBy",jn),t("uppercase",Ti)}function dn(){return function(e,r,i,o){if(!n(e)){if(null==e)return e
throw t("filter")("notarray",e)}o=o||"$"
var a
switch(mn(r)){case"function":break
case"boolean":case"null":case"number":case"string":a=!0
case"object":r=pn(r,i,o,a)
break
default:return e}return Array.prototype.filter.call(e,r)}}function pn(e,t,n,r){var i=$(e)&&n in e
return!0===t?t=O:x(t)||(t=function(e,t){return m(e)?!1:null===e||null===t?e===t:$(t)||$(e)&&!g(e)?!1:(e=Gn(""+e),t=Gn(""+t),-1!==e.indexOf(t))}),function(o){return i&&!$(o)?gn(o,e[n],t,n,!1):gn(o,e,t,n,r)}}function gn(e,t,n,r,i,o){var a=mn(e),s=mn(t)
if("string"===s&&"!"===t.charAt(0))return!gn(e,t.substring(1),n,r,i)
if(ar(e))return e.some(function(e){return gn(e,t,n,r,i)})
switch(a){case"object":var c
if(i){for(c in e)if("$"!==c.charAt(0)&&gn(e[c],t,n,r,!0))return!0
return o?!1:gn(e,t,n,r,!1)}if("object"===s){for(c in t)if(o=t[c],!x(o)&&!m(o)&&(a=c===r,!gn(a?e:e[c],o,n,r,a,a)))return!1
return!0}return n(e,t)
case"function":return!1
default:return n(e,t)}}function mn(e){return null===e?"null":typeof e}function vn(e){var t=e.NUMBER_FORMATS
return function(e,n,r){return m(n)&&(n=t.CURRENCY_SYM),m(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:wn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function $n(e){var t=e.NUMBER_FORMATS
return function(e,n){return null==e?e:wn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function bn(e){var t,n,r,i,o,a=0
for(-1<(n=e.indexOf(Ni))&&(e=e.replace(Ni,"")),0<(r=e.search(/e/i))?(0>n&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):0>n&&(n=e.length),r=0;e.charAt(r)==Mi;r++);if(r==(o=e.length))t=[0],n=1
else{for(o--;e.charAt(o)==Mi;)o--
for(n-=r,t=[],i=0;o>=r;r++,i++)t[i]=+e.charAt(r)}return n>Ai&&(t=t.splice(0,Ai-1),a=n-1,n=1),{d:t,e:a,i:n}}function yn(e,t,n,r){var i=e.d,o=i.length-e.i
if(t=m(t)?Math.min(Math.max(n,o),r):+t,n=t+e.i,r=i[n],n>0){i.splice(Math.max(e.i,n))
for(var a=n;a<i.length;a++)i[a]=0}else for(o=Math.max(0,o),e.i=1,i.length=Math.max(1,n=t+1),i[0]=0,a=1;n>a;a++)i[a]=0
if(r>=5)if(0>n-1){for(r=0;r>n;r--)i.unshift(0),e.i++
i.unshift(1),e.i++}else i[n-1]++
for(;o<Math.max(0,t);o++)i.push(0);(t=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0))&&(i.unshift(t),e.i++)}function wn(e,t,n,r,i){if(!y(e)&&!w(e)||isNaN(e))return""
var o=!isFinite(e),a=!1,s=Math.abs(e)+"",c=""
if(o)c="∞"
else{for(a=bn(s),yn(a,i,t.minFrac,t.maxFrac),c=a.d,s=a.i,i=a.e,o=[],a=c.reduce(function(e,t){return e&&!t},!0);0>s;)c.unshift(0),s++
for(s>0?o=c.splice(s,c.length):(o=c,c=[0]),s=[],c.length>=t.lgSize&&s.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)s.unshift(c.splice(-t.gSize,c.length).join(""))
c.length&&s.unshift(c.join("")),c=s.join(n),o.length&&(c+=r+o.join("")),i&&(c+="e+"+i)}return 0>e&&!a?t.negPre+c+t.negSuf:t.posPre+c+t.posSuf}function _n(e,t,n,r){var i=""
for((0>e||r&&0>=e)&&(r?e=-e+1:(e=-e,i="-")),e=""+e;e.length<t;)e=Mi+e
return n&&(e=e.substr(e.length-t)),i+e}function xn(e,t,n,r,i){return n=n||0,function(o){return o=o["get"+e](),(n>0||o>-n)&&(o+=n),0===o&&-12==n&&(o=12),_n(o,t,r,i)}}function kn(e,t,n){return function(r,i){var o=r["get"+e](),a=Yn((n?"STANDALONE":"")+(t?"SHORT":"")+e)
return i[a][o]}}function Cn(e){var t=new Date(e,0,1).getDay()
return new Date(e,0,(4>=t?5:12)-t)}function Sn(e){return function(t){var n=Cn(t.getFullYear())
return t=+new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))-+n,t=1+Math.round(t/6048e5),_n(t,e)}}function En(e,t){return 0>=e.getFullYear()?t.ERAS[0]:t.ERAS[1]}function An(e){function t(e){var t
if(t=e.match(n)){e=new Date(0)
var r=0,i=0,o=t[8]?e.setUTCFullYear:e.setFullYear,a=t[8]?e.setUTCHours:e.setHours
t[9]&&(r=l(t[9]+t[10]),i=l(t[9]+t[11])),o.call(e,l(t[1]),l(t[2])-1,l(t[3])),r=l(t[4]||0)-r,i=l(t[5]||0)-i,o=l(t[6]||0),t=Math.round(1e3*parseFloat("0."+(t[7]||0))),a.call(e,r,i,o,t)}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/
return function(n,i,o){var a,s,c="",u=[]
if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,y(n)&&(n=Bi.test(n)?l(n):t(n)),w(n)&&(n=new Date(n)),!_(n)||!isFinite(n.getTime()))return n
for(;i;)(s=ji.exec(i))?(u=T(u,s,1),i=u.pop()):(u.push(i),i=null)
var f=n.getTimezoneOffset()
return o&&(f=L(o,f),n=U(n,o,!0)),r(u,function(t){a=zi[t],c+=a?a(n,e.DATETIME_FORMATS,f):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function Nn(){return function(e,t){return m(t)&&(t=2),R(e,t)}}function Mn(){return function(e,t,r){return t=1/0===Math.abs(+t)?+t:l(t),isNaN(t)?e:(w(e)&&(e=""+e),n(e)?(r=!r||isNaN(r)?0:l(r),r=0>r?Math.max(0,e.length+r):r,t>=0?zn(e,r,r+t):0===r?zn(e,t,e.length):zn(e,Math.max(0,r+t),r)):e)}}function zn(e,t,n){return y(e)?e.slice(t,n):Qn.call(e,t,n)}function jn(e){function r(t){return t.map(function(t){var n=1,r=d
if(x(t))r=t
else if(y(t)&&(("+"==t.charAt(0)||"-"==t.charAt(0))&&(n="-"==t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t),r.constant)))var i=r(),r=function(e){return e[i]}
return{get:r,descending:n}})}function i(e){switch(typeof e){case"number":case"boolean":case"string":return!0
default:return!1}}function o(e,t){var n=0,r=e.type,i=t.type
if(r===i){var i=e.value,o=t.value
"string"===r?(i=i.toLowerCase(),o=o.toLowerCase()):"object"===r&&($(i)&&(i=e.index),$(o)&&(o=t.index)),i!==o&&(n=o>i?-1:1)}else n=i>r?-1:1
return n}return function(e,a,s,c){if(null==e)return e
if(!n(e))throw t("orderBy")("notarray",e)
ar(a)||(a=[a]),0===a.length&&(a=["+"])
var u=r(a),l=s?-1:1,f=x(c)?c:o
return e=Array.prototype.map.call(e,function(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:u.map(function(n){var r=n.get(e)
return n=typeof r,null===r?(n="string",r="null"):"object"===n&&(x(r.valueOf)&&(r=r.valueOf(),i(r))||g(r)&&(r=""+r,i(r))),{value:r,type:n,index:t}})}}),e.sort(function(e,t){for(var n=0,r=u.length;r>n;n++){var i=f(e.predicateValues[n],t.predicateValues[n])
if(i)return i*u[n].descending*l}return f(e.tieBreaker,t.tieBreaker)*l}),e=e.map(function(e){return e.value})}}function Bn(e){return x(e)&&(e={link:e}),e.restrict=e.restrict||"AC",p(e)}function On(e,t,n,i,o){var a=this,s=[]
a.$error={},a.$$success={},a.$pending=void 0,a.$name=o(t.name||t.ngForm||"")(n),a.$dirty=!1,a.$pristine=!0,a.$valid=!0,a.$invalid=!1,a.$submitted=!1,a.$$parentForm=Ri,a.$rollbackViewValue=function(){r(s,function(e){e.$rollbackViewValue()})},a.$commitViewValue=function(){r(s,function(e){e.$commitViewValue()})},a.$addControl=function(e){re(e.$name,"input"),s.push(e),e.$name&&(a[e.$name]=e),e.$$parentForm=a},a.$$renameControl=function(e,t){var n=e.$name
a[n]===e&&delete a[n],a[t]=e,e.$name=t},a.$removeControl=function(e){e.$name&&a[e.$name]===e&&delete a[e.$name],r(a.$pending,function(t,n){a.$setValidity(n,null,e)}),r(a.$error,function(t,n){a.$setValidity(n,null,e)}),r(a.$$success,function(t,n){a.$setValidity(n,null,e)}),j(s,e),e.$$parentForm=Ri},Hn({ctrl:this,$element:e,set:function(e,t,n){var r=e[t]
r?-1===r.indexOf(n)&&r.push(n):e[t]=[n]},unset:function(e,t,n){var r=e[t]
r&&(j(r,n),0===r.length&&delete e[t])},$animate:i}),a.$setDirty=function(){i.removeClass(e,wo),i.addClass(e,_o),a.$dirty=!0,a.$pristine=!1,a.$$parentForm.$setDirty()},a.$setPristine=function(){i.setClass(e,wo,_o+" ng-submitted"),a.$dirty=!1,a.$pristine=!0,a.$submitted=!1,r(s,function(e){e.$setPristine()})},a.$setUntouched=function(){r(s,function(e){e.$setUntouched()})},a.$setSubmitted=function(){i.addClass(e,"ng-submitted"),a.$submitted=!0,a.$$parentForm.$setSubmitted()}}function Tn(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:""+t})}function In(e,t,n,r,i,o){var a=Gn(t[0].type)
if(!i.android){var s=!1
t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,u()})}var c,u=function(e){if(c&&(o.defer.cancel(c),c=null),!s){var i=t.val()
e=e&&e.type,"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=cr(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,e)}}
if(i.hasEvent("input"))t.on("input",u)
else{var l=function(e,t,n){c||(c=o.defer(function(){c=null,t&&t.value===n||u(e)}))}
t.on("keydown",function(e){var t=e.keyCode
91===t||t>15&&19>t||t>=37&&40>=t||l(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",l)}t.on("change",u),Yi[a]&&r.$$hasNativeValidators&&a===n.type&&t.on("keydown wheel mousedown",function(e){if(!c){var t=this.validity,n=t.badInput,r=t.typeMismatch
c=o.defer(function(){c=null,t.badInput===n&&t.typeMismatch===r||u(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue
t.val()!==e&&t.val(e)}}function Dn(e,t){return function(n,i){var o,a
if(_(n))return n
if(y(n)){if('"'==n.charAt(0)&&'"'==n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Hi.test(n))return new Date(n)
if(e.lastIndex=0,o=e.exec(n))return o.shift(),a=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(o,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function Rn(e,t,n,r){return function(i,o,a,s,c,u,l){function f(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function h(e){return v(e)&&!_(e)?n(e)||void 0:e}Pn(i,o,a,s),In(i,o,a,s,c,u)
var d,p=s&&s.$options&&s.$options.timezone
if(s.$$parserName=e,s.$parsers.push(function(e){return s.$isEmpty(e)?null:t.test(e)?(e=n(e,d),p&&(e=U(e,p)),e):void 0}),s.$formatters.push(function(e){if(e&&!_(e))throw ko("datefmt",e)
return f(e)?((d=e)&&p&&(d=U(d,p,!0)),l("date")(e,r,p)):(d=null,"")}),v(a.min)||a.ngMin){var g
s.$validators.min=function(e){return!f(e)||m(g)||n(e)>=g},a.$observe("min",function(e){g=h(e),s.$validate()})}if(v(a.max)||a.ngMax){var $
s.$validators.max=function(e){return!f(e)||m($)||n(e)<=$},a.$observe("max",function(e){$=h(e),s.$validate()})}}}function Pn(e,t,n,r){(r.$$hasNativeValidators=$(t[0].validity))&&r.$parsers.push(function(e){var n=t.prop("validity")||{}
return n.badInput||n.typeMismatch?void 0:e})}function Ln(e,t,n,r,i){if(v(r)){if(e=e(r),!e.constant)throw ko("constexpr",n,r)
return e(t)}return i}function Un(e,t){return e="ngClass"+e,["$animate",function(n){function i(e,t){var n=[],r=0
e:for(;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i==t[o])continue e
n.push(i)}return n}function o(e){var t=[]
return ar(e)?(r(e,function(e){t=t.concat(o(e))}),t):y(e)?e.split(" "):$(e)?(r(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(a,s,c){function u(e){e=l(e,1),c.$addClass(e)}function l(e,t){var n=s.data("$classCounts")||ae(),i=[]
return r(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&i.push(e))}),s.data("$classCounts",n),i.join(" ")}function f(e,t){var r=i(t,e),o=i(e,t),r=l(r,1),o=l(o,-1)
r&&r.length&&n.addClass(s,r),o&&o.length&&n.removeClass(s,o)}function h(e){if(!0===t||(1&a.$index)===t){var n=o(e||[])
if(d){if(!O(e,d)){var r=o(d)
f(r,n)}}else u(n)}d=ar(e)?e.map(function(e){return ce(e)}):ce(e)}var d
a.$watch(c[e],h,!0),c.$observe("class",function(t){h(a.$eval(c[e]))}),"ngClass"!==e&&a.$watch("$index",function(n,r){var i=1&n
if(i!==(1&r)){var s=o(a.$eval(c[e]))
i===t?u(s):(i=l(s,-1),c.$removeClass(i))}})}}}]}function Hn(e){function t(e,t){t&&!o[e]?(c.addClass(i,e),o[e]=!0):!t&&o[e]&&(c.removeClass(i,e),o[e]=!1)}function n(e,n){e=e?"-"+X(e,"-"):"",t(bo+e,!0===n),t(yo+e,!1===n)}var r=e.ctrl,i=e.$element,o={},a=e.set,s=e.unset,c=e.$animate
o[yo]=!(o[bo]=i.hasClass(bo)),r.$setValidity=function(e,i,o){m(i)?(r.$pending||(r.$pending={}),a(r.$pending,e,o)):(r.$pending&&s(r.$pending,e,o),Vn(r.$pending)&&(r.$pending=void 0)),E(i)?i?(s(r.$error,e,o),a(r.$$success,e,o)):(a(r.$error,e,o),s(r.$$success,e,o)):(s(r.$error,e,o),s(r.$$success,e,o)),r.$pending?(t(xo,!0),r.$valid=r.$invalid=void 0,n("",null)):(t(xo,!1),r.$valid=Vn(r.$error),r.$invalid=!r.$valid,n("",r.$valid)),i=r.$pending&&r.$pending[e]?void 0:r.$error[e]?!1:r.$$success[e]?!0:null,n(e,i),r.$$parentForm.$setValidity(e,i,r)}}function Vn(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1
return!0}var Fn,qn,Jn,Wn,Zn=/^\/(.+)\/([a-z]*)$/,Kn=Object.prototype.hasOwnProperty,Gn=function(e){return y(e)?e.toLowerCase():e},Yn=function(e){return y(e)?e.toUpperCase():e},Qn=[].slice,Xn=[].splice,er=[].push,tr=Object.prototype.toString,nr=Object.getPrototypeOf,rr=t("ng"),ir=e.angular||(e.angular={}),or=0
Fn=e.document.documentMode,h.$inject=[],d.$inject=[]
var ar=Array.isArray,sr=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array\]$/,cr=function(e){return y(e)?e.trim():e},ur=function(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},lr=function(){if(!v(lr.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]")
if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp")
lr.rules={noUnsafeEval:!n||-1!==n.indexOf("no-unsafe-eval"),noInlineStyle:!n||-1!==n.indexOf("no-inline-style")}}else{t=lr
try{Function(""),n=!1}catch(r){n=!0}t.rules={noUnsafeEval:n,noInlineStyle:!1}}}return lr.rules},fr=function(){if(v(fr.name_))return fr.name_
var t,n,r,i,o=dr.length
for(n=0;o>n;++n)if(r=dr[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq")
break}return fr.name_=i},hr=/:/g,dr=["ng-","data-ng-","ng:","x-ng-"],pr=/[A-Z]/g,gr=!1,mr=3,vr={full:"1.5.8",major:1,minor:5,dot:8,codeName:"arbitrary-fallbacks"}
pe.expando="ng339"
var $r=pe.cache={},br=1
pe._data=function(e){return this.cache[e[this.expando]]||{}}
var yr=/([\:\-\_]+(.))/g,wr=/^moz([A-Z])/,_r={mouseleave:"mouseout",mouseenter:"mouseover"},xr=t("jqLite"),kr=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Cr=/<|&#?\w+;/,Sr=/<([\w:-]+)/,Er=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ar={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,"",""]}
Ar.optgroup=Ar.option,Ar.tbody=Ar.tfoot=Ar.colgroup=Ar.caption=Ar.thead,Ar.th=Ar.td
var Nr=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Mr=pe.prototype={ready:function(t){function n(){r||(r=!0,t())}var r=!1
"complete"===e.document.readyState?e.setTimeout(n):(this.on("DOMContentLoaded",n),pe(e).on("load",n))},toString:function(){var e=[]
return r(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return qn(e>=0?this[e]:this[this.length+e])},length:0,push:er,sort:[].sort,splice:[].splice},zr={}
r("multiple selected checked disabled readOnly required open".split(" "),function(e){zr[Gn(e)]=e})
var jr={}
r("input select option textarea button form details".split(" "),function(e){jr[e]=!0})
var Br={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"}
r({data:ye,removeData:$e,hasData:function(e){for(var t in $r[e.ng339])return!0
return!1},cleanData:function(e){for(var t=0,n=e.length;n>t;t++)$e(e[t])}},function(e,t){pe[t]=e}),r({data:ye,inheritedData:Se,scope:function(e){return qn.data(e,"$scope")||Se(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return qn.data(e,"$isolateScope")||qn.data(e,"$isolateScopeNoTemplate")},controller:Ce,injector:function(e){return Se(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:we,css:function(e,t,n){return t=le(t),v(n)?void(e.style[t]=n):e.style[t]},attr:function(e,t,n){var r=e.nodeType
if(r!==mr&&2!==r&&8!==r)if(r=Gn(t),zr[r]){if(!v(n))return e[t]||(e.attributes.getNamedItem(t)||h).specified?r:void 0
n?(e[t]=!0,e.setAttribute(t,r)):(e[t]=!1,e.removeAttribute(r))}else if(v(n))e.setAttribute(t,n)
else if(e.getAttribute)return e=e.getAttribute(t,2),null===e?void 0:e},prop:function(e,t,n){return v(n)?void(e[t]=n):e[t]},text:function(){function e(e,t){if(m(t)){var n=e.nodeType
return 1===n||n===mr?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(m(t)){if(e.multiple&&"select"===z(e)){var n=[]
return r(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){return m(t)?e.innerHTML:(me(e,!0),void(e.innerHTML=t))},empty:Ee},function(e,t){pe.prototype[t]=function(t,n){var r,i,o=this.length
if(e!==Ee&&m(2==e.length&&e!==we&&e!==Ce?t:n)){if($(t)){for(r=0;o>r;r++)if(e===ye)e(this[r],t)
else for(i in t)e(this[r],i,t[i])
return this}for(r=e.$dv,o=m(r)?Math.min(o,1):o,i=0;o>i;i++){var a=e(this[i],t,n)
r=r?r+a:a}return r}for(r=0;o>r;r++)e(this[r],t,n)
return this}}),r({removeData:$e,on:function(e,t,n,r){if(v(r))throw xr("onargs")
if(fe(e)){r=be(e,!0)
var i=r.events,o=r.handle
o||(o=r.handle=ze(e,i)),r=0<=t.indexOf(" ")?t.split(" "):[t]
for(var a=r.length,s=function(t,r,a){var s=i[t]
s||(s=i[t]=[],s.specialHandlerWrapper=r,"$destroy"===t||a||e.addEventListener(t,o,!1)),s.push(n)};a--;)t=r[a],_r[t]?(s(_r[t],Be),s(t,void 0,!0)):s(t)}},off:ve,one:function(e,t,n){e=qn(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,i=e.parentNode
me(e),r(new pe(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(e){var t=[]
return r(e.childNodes,function(e){1===e.nodeType&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType
if(1===n||11===n){t=new pe(t)
for(var n=0,r=t.length;r>n;n++)e.appendChild(t[n])}},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild
r(new pe(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){de(e,qn(t).eq(0).clone()[0])},remove:Ae,detach:function(e){Ae(e,!0)},after:function(e,t){var n=e,r=e.parentNode
t=new pe(t)
for(var i=0,o=t.length;o>i;i++){var a=t[i]
r.insertBefore(a,n.nextSibling),n=a}},addClass:xe,removeClass:_e,toggleClass:function(e,t,n){t&&r(t.split(" "),function(t){var r=n
m(r)&&(r=!we(e,t)),(r?xe:_e)(e,t)})},parent:function(e){return(e=e.parentNode)&&11!==e.nodeType?e:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:ge,triggerHandler:function(e,t,n){var i,o,a=t.type||t,s=be(e);(s=(s=s&&s.events)&&s[a])&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:h,type:a,target:e},t.type&&(i=c(i,t)),t=ce(s),o=n?[i].concat(n):[i],r(t,function(t){i.isImmediatePropagationStopped()||t.apply(e,o)}))}},function(e,t){pe.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;a>o;o++)m(i)?(i=e(this[o],t,n,r),v(i)&&(i=qn(i))):ke(i,e(this[o],t,n,r))
return v(i)?i:this},pe.prototype.bind=pe.prototype.on,pe.prototype.unbind=pe.prototype.off}),Ie.prototype={put:function(e,t){this[Te(e,this.nextUid)]=t},get:function(e){return this[Te(e,this.nextUid)]},remove:function(e){var t=this[e=Te(e,this.nextUid)]
return delete this[e],t}}
var Or=[function(){this.$get=[function(){return Ie}]}],Tr=/^([^\(]+?)=>/,Ir=/^[^\(]*\(\s*([^\)]*)\)/m,Dr=/,/,Rr=/^\s*(_?)(\S+?)\1\s*$/,Pr=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Lr=t("$injector")
Pe.$$annotate=function(e,t,n){var i
if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw y(n)&&n||(n=e.name||Re(e)),Lr("strictdi",n)
t=De(e),r(t[1].split(Dr),function(e){e.replace(Rr,function(e,t,n){i.push(n)})})}e.$inject=i}}else ar(e)?(t=e.length-1,ne(e[t],"fn"),i=e.slice(0,t)):ne(e,"fn",!0)
return i}
var Ur=t("$animate"),Hr=function(){this.$get=h},Vr=function(){var e=new Ie,t=[]
this.$get=["$$AnimateRunner","$rootScope",function(n,i){function o(e,t,n){var i=!1
return t&&(t=y(t)?t.split(" "):ar(t)?t:[],r(t,function(t){t&&(i=!0,e[t]=n)})),i}function a(){r(t,function(t){var n=e.get(t)
if(n){var i=He(t.attr("class")),o="",a=""
r(n,function(e,t){e!==!!i[t]&&(e?o+=(o.length?" ":"")+t:a+=(a.length?" ":"")+t)}),r(t,function(e){o&&xe(e,o),a&&_e(e,a)}),e.remove(t)}}),t.length=0}return{enabled:h,on:h,off:h,pin:h,push:function(r,s,c,u){return u&&u(),c=c||{},c.from&&r.css(c.from),c.to&&r.css(c.to),(c.addClass||c.removeClass)&&(s=c.addClass,u=c.removeClass,c=e.get(r)||{},s=o(c,s,!0),u=o(c,u,!1),(s||u)&&(e.put(r,c),t.push(r),1===t.length&&i.$$postDigest(a))),r=new n,r.complete(),r}}}]},Fr=["$provide",function(e){var t=this
this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Ur("notcsel",n)
var i=n+"-animation"
t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null)&&/(\s+|\/)ng-animate(\s+|\/)/.test(""+this.$$classNameFilter))throw Ur("nongcls","ng-animate")
return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r
e:{for(r=0;r<n.length;r++){var i=n[r]
if(1===i.nodeType){r=i
break e}}r=void 0}!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&qn(r),i=i&&qn(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",Ve(o))},move:function(n,r,i,o){return r=r&&qn(r),i=i&&qn(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",Ve(o))},leave:function(t,n){return e.push(t,"leave",Ve(n),function(){t.remove()})},addClass:function(t,n,r){return r=Ve(r),r.addClass=Ue(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=Ve(r),r.removeClass=Ue(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=Ve(i),i.addClass=Ue(i.addClass,n),i.removeClass=Ue(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=Ve(o),o.from=o.from?c(o.from,n):n,o.to=o.to?c(o.to,r):r,o.tempClasses=Ue(o.tempClasses,i||"ng-inline-animate"),e.push(t,"animate",o)}}}]}],qr=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),1<n.length||e(function(){for(var e=0;e<n.length;e++)n[e]()
n=[]})}var n=[]
return function(){var e=!1
return t(function(){e=!0}),function(n){e?n():t(n)}}}]},Jr=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,i,o){function a(e){this.setHost(e)
var t=n()
this._doneCallbacks=[],this._tick=function(e){var n=i[0]
n&&n.hidden?o(e,0,!1):t(e)},this._state=0}return a.chain=function(e,t){function n(){r===e.length?t(!0):e[r](function(e){!1===e?t(!1):(r++,n())})}var r=0
n()},a.all=function(e,t){function n(n){o=o&&n,++i===e.length&&t(o)}var i=0,o=!0
r(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:h,getPromise:function(){if(!this.promise){var t=this
this.promise=e(function(e,n){t.done(function(t){!1===t?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},"catch":function(e){return this.getPromise()["catch"](e)},"finally":function(e){return this.getPromise()["finally"](e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this
0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(r(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},a}]},Wr=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o.addClass&&(t.addClass(o.addClass),o.addClass=null),o.removeClass&&(t.removeClass(o.removeClass),o.removeClass=null),o.to&&(t.css(o.to),o.to=null),a||s.complete(),a=!0}),s}var o=r||{}
o.$$prepared||(o=B(o)),o.cleanupStyles&&(o.from=o.to=null),o.from&&(t.css(o.from),o.from=null)
var a,s=new n
return{start:i,end:i}}}]},Zr=t("$compile"),Kr=new function(){}
Ze.$inject=["$provide","$$sanitizeUriProvider"],Ke.prototype.isFirstChange=function(){return this.previousValue===Kr}
var Gr=/^((?:x|data)[\:\-_])/i,Yr=t("$controller"),Qr=/^(\S+)(\s+as\s+([\w$]+))?$/,Xr=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof qn&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},ei="application/json",ti={"Content-Type":ei+";charset=utf-8"},ni=/^\[|^\{(?!\{)/,ri={"[":/]$/,"{":/}$/},ii=/^\)\]\}',?\n/,oi=t("$http"),ai=function(e){return function(){throw oi("legacy",e)}},si=ir.$interpolateMinErr=t("$interpolate")
si.throwNoconcat=function(e){throw si("noconcat",e)},si.interr=function(e,t){return si("interr",e,""+t)}
var ci=function(){this.$get=["$window",function(e){function t(e){var t=function(e){t.data=e,t.called=!0}
return t.id=e,t}var n=e.angular.callbacks,r={}
return{createCallback:function(e){e="_"+(n.$$counter++).toString(36)
var i="angular.callbacks."+e,o=t(e)
return r[i]=n[e]=o,i},wasCalled:function(e){return r[e].called},getResponse:function(e){return r[e].data},removeCallback:function(e){delete n[r[e].id],delete r[e]}}}]},ui=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,li={http:80,https:443,ftp:21},fi=t("$location"),hi={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Ct("$$absUrl"),url:function(e){if(m(e))return this.$$url
var t=ui.exec(e)
return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:Ct("$$protocol"),host:Ct("$$host"),port:Ct("$$port"),path:St("$$path",function(e){return e=null!==e?""+e:"","/"==e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search
case 1:if(y(e)||w(e))e=""+e,this.$$search=F(e)
else{if(!$(e))throw fi("isrcharg")
e=B(e,{}),r(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break
default:m(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:St("$$hash",function(e){return null!==e?""+e:""}),replace:function(){return this.$$replace=!0,this}}
r([kt,xt,_t],function(e){e.prototype=Object.create(hi),e.prototype.state=function(t){if(!arguments.length)return this.$$state
if(e!==_t||!this.$$html5)throw fi("nostate")
return this.$$state=m(t)?null:t,this}})
var di=t("$parse"),pi=Function.prototype.call,gi=Function.prototype.apply,mi=Function.prototype.bind,vi=ae()
r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){vi[e]=!0})
var $i={n:"\n",f:"\f",r:"\r",t:" ",v:"\x0B","'":"'",'"':'"'},bi=function(e){this.options=e}
bi.prototype={constructor:bi,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;)if(e=this.text.charAt(this.index),'"'===e||"'"===e)this.readString(e)
else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber()
else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent()
else if(this.is(e,"(){}[].,;:?"))this.tokens.push({index:this.index,text:e}),this.index++
else if(this.isWhitespace(e))this.index++
else{var t=e+this.peek(),n=t+this.peek(2),r=vi[t],i=vi[n]
vi[e]||r||i?(e=i?n:r?t:e,this.tokens.push({index:this.index,text:e,operator:!0}),this.index+=e.length):this.throwError("Unexpected next character ",this.index,this.index+1)}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){return e=e||1,this.index+e<this.text.length?this.text.charAt(this.index+e):!1},isNumber:function(e){return e>="0"&&"9">=e&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||" "===e||"\n"===e||"\x0B"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return e>="a"&&"z">=e||e>="A"&&"Z">=e||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek()
if(!t)return e
var n=e.charCodeAt(0),r=t.charCodeAt(0)
return n>=55296&&56319>=n&&r>=56320&&57343>=r?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){throw n=n||this.index,t=v(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n,di("lexerr",e,t,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Gn(this.text.charAt(this.index))
if("."==n||this.isNumber(n))e+=n
else{var r=this.peek()
if("e"==n&&this.isExpOperator(r))e+=n
else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"==e.charAt(e.length-1))e+=n
else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!=e.charAt(e.length-1))break
this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:+e})},readIdent:function(){var e=this.index
for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar()
if(!this.isIdentifierContinue(t))break
this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index
this.index++
for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index),r=r+o
if(i)"u"===o?(i=this.text.substring(this.index+1,this.index+5),i.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+i+"]"),this.index+=4,n+=String.fromCharCode(parseInt(i,16))):n+=$i[o]||o,i=!1
else if("\\"===o)i=!0
else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n})
n+=o}this.index++}this.throwError("Unterminated quote",t)}}
var yi=function(e,t){this.lexer=e,this.options=t}
yi.Program="Program",yi.ExpressionStatement="ExpressionStatement",yi.AssignmentExpression="AssignmentExpression",yi.ConditionalExpression="ConditionalExpression",yi.LogicalExpression="LogicalExpression",yi.BinaryExpression="BinaryExpression",yi.UnaryExpression="UnaryExpression",yi.CallExpression="CallExpression",yi.MemberExpression="MemberExpression",yi.Identifier="Identifier",yi.Literal="Literal",yi.ArrayExpression="ArrayExpression",yi.Property="Property",yi.ObjectExpression="ObjectExpression",yi.ThisExpression="ThisExpression",yi.LocalsExpression="LocalsExpression",yi.NGValueParameter="NGValueParameter",yi.prototype={ast:function(e){return this.text=e,this.tokens=this.lexer.lex(e),e=this.program(),0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e},program:function(){for(var e=[];;)if(0<this.tokens.length&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:yi.Program,body:e}},expressionStatement:function(){return{type:yi.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e)
return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary()
return this.expect("=")&&(e={type:yi.AssignmentExpression,left:e,right:this.assignment(),operator:"="}),e},ternary:function(){var e,t,n=this.logicalOR()
return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:yi.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:yi.LogicalExpression,operator:"||",left:e,right:this.logicalAND()}
return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:yi.LogicalExpression,operator:"&&",left:e,right:this.equality()}
return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:yi.BinaryExpression,operator:e.text,left:t,right:this.relational()}
return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:yi.BinaryExpression,operator:e.text,left:t,right:this.additive()}
return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:yi.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()}
return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:yi.BinaryExpression,operator:e.text,left:t,right:this.unary()}
return t},unary:function(){var e
return(e=this.expect("+","-","!"))?{type:yi.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e
this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=B(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:yi.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek())
for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:yi.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:yi.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:yi.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE")
return e},filter:function(e){e=[e]
for(var t={type:yi.CallExpression,callee:this.identifier(),arguments:e,filter:!0};this.expect(":");)e.push(this.expression())
return t},parseArguments:function(){var e=[]
if(")"!==this.peekToken().text)do e.push(this.filterChain())
while(this.expect(","))
return e},identifier:function(){var e=this.consume()
return e.identifier||this.throwError("is not a valid identifier",e),{type:yi.Identifier,name:e.text}},constant:function(){return{type:yi.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[]
if("]"!==this.peekToken().text)do{if(this.peek("]"))break
e.push(this.expression())}while(this.expect(","))
return this.consume("]"),{type:yi.ArrayExpression,elements:e}},object:function(){var e,t=[]
if("}"!==this.peekToken().text)do{if(this.peek("}"))break
e={type:yi.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","))
return this.consume("}"),{type:yi.ObjectExpression,properties:t}},throwError:function(e,t){throw di("syntax",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw di("ueoe",this.text)
var t=this.expect(e)
return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw di("ueoe",this.text)
return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){e=this.tokens[e]
var o=e.text
if(o===t||o===n||o===r||o===i||!(t||n||r||i))return e}return!1},expect:function(e,t,n,r){return(e=this.peek(e,t,n,r))?(this.tokens.shift(),e):!1},selfReferential:{"this":{type:yi.ThisExpression},$locals:{type:yi.LocalsExpression}}},Ut.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e)
this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},It(i,n.$filter)
var o,a=""
return this.stage="assign",(o=Pt(i))&&(this.state.computing="assign",a=this.nextId(),this.recurse(o,a),this.return_(a),a="fn.assign="+this.generateFunction("assign","s,v,l")),o=Dt(i.body),n.stage="inputs",r(o,function(e,t){var r="fn"+t
n.state[r]={vars:[],body:[],own:{}},n.state.computing=r
var i=n.nextId()
n.recurse(e,i),n.return_(i),n.state.inputs.push(r),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i),a='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+a+this.watchFns()+"return fn;",a=Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",a)(this.$filter,Nt,zt,jt,Mt,Bt,Ot,Tt,e),this.state=this.stage=void 0,a.literal=Lt(i),a.constant=i.constant,a},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this
return r(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this
return r(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,i,o,a){var s,c,u,l,f,d=this
if(i=i||h,!a&&v(e.watchId))t=t||this.nextId(),this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,i,o,!0))
else switch(e.type){case yi.Program:r(e.body,function(t,n){d.recurse(t.expression,void 0,void 0,function(e){c=e}),n!==e.body.length-1?d.current().body.push(c,";"):d.return_(c)})
break
case yi.Literal:l=this.escape(e.value),this.assign(t,l),i(l)
break
case yi.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){c=e}),l=e.operator+"("+this.ifDefined(c,0)+")",this.assign(t,l),i(l)
break
case yi.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){c=e}),l="+"===e.operator?this.plus(s,c):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(c,0):"("+s+")"+e.operator+"("+c+")",this.assign(t,l),i(l)
break
case yi.LogicalExpression:t=t||this.nextId(),d.recurse(e.left,t),d.if_("&&"===e.operator?t:d.not(t),d.lazyRecurse(e.right,t)),i(t)
break
case yi.ConditionalExpression:t=t||this.nextId(),d.recurse(e.test,t),d.if_(t,d.lazyRecurse(e.alternate,t),d.lazyRecurse(e.consequent,t)),i(t)
break
case yi.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===d.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),Nt(e.name),d.if_("inputs"===d.stage||d.not(d.getHasOwnProperty("l",e.name)),function(){d.if_("inputs"===d.stage||"s",function(){o&&1!==o&&d.if_(d.not(d.nonComputedMember("s",e.name)),d.lazyAssign(d.nonComputedMember("s",e.name),"{}")),d.assign(t,d.nonComputedMember("s",e.name))})},t&&d.lazyAssign(t,d.nonComputedMember("l",e.name))),(d.state.expensiveChecks||Vt(e.name))&&d.addEnsureSafeObject(t),i(t)
break
case yi.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),d.recurse(e.object,s,void 0,function(){d.if_(d.notNull(s),function(){o&&1!==o&&d.addEnsureSafeAssignContext(s),e.computed?(c=d.nextId(),d.recurse(e.property,c),d.getStringValue(c),d.addEnsureSafeMemberName(c),o&&1!==o&&d.if_(d.not(d.computedMember(s,c)),d.lazyAssign(d.computedMember(s,c),"{}")),l=d.ensureSafeObject(d.computedMember(s,c)),d.assign(t,l),n&&(n.computed=!0,n.name=c)):(Nt(e.property.name),o&&1!==o&&d.if_(d.not(d.nonComputedMember(s,e.property.name)),d.lazyAssign(d.nonComputedMember(s,e.property.name),"{}")),l=d.nonComputedMember(s,e.property.name),(d.state.expensiveChecks||Vt(e.property.name))&&(l=d.ensureSafeObject(l)),d.assign(t,l),n&&(n.computed=!1,n.name=e.property.name))},function(){d.assign(t,"undefined")}),i(t)},!!o)
break
case yi.CallExpression:t=t||this.nextId(),e.filter?(c=d.filter(e.callee.name),u=[],r(e.arguments,function(e){var t=d.nextId()
d.recurse(e,t),u.push(t)}),l=c+"("+u.join(",")+")",d.assign(t,l),i(t)):(c=d.nextId(),s={},u=[],d.recurse(e.callee,c,s,function(){d.if_(d.notNull(c),function(){d.addEnsureSafeFunction(c),r(e.arguments,function(e){d.recurse(e,d.nextId(),void 0,function(e){u.push(d.ensureSafeObject(e))})}),s.name?(d.state.expensiveChecks||d.addEnsureSafeObject(s.context),l=d.member(s.context,s.name,s.computed)+"("+u.join(",")+")"):l=c+"("+u.join(",")+")",l=d.ensureSafeObject(l),d.assign(t,l)},function(){d.assign(t,"undefined")}),i(t)}))
break
case yi.AssignmentExpression:if(c=this.nextId(),s={},!Rt(e.left))throw di("lval")
this.recurse(e.left,void 0,s,function(){d.if_(d.notNull(s.context),function(){d.recurse(e.right,c),d.addEnsureSafeObject(d.member(s.context,s.name,s.computed)),d.addEnsureSafeAssignContext(s.context),l=d.member(s.context,s.name,s.computed)+e.operator+c,d.assign(t,l),i(t||l)})},1)
break
case yi.ArrayExpression:u=[],r(e.elements,function(e){d.recurse(e,d.nextId(),void 0,function(e){u.push(e)})}),l="["+u.join(",")+"]",this.assign(t,l),i(l)
break
case yi.ObjectExpression:u=[],f=!1,r(e.properties,function(e){e.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),r(e.properties,function(e){e.computed?(s=d.nextId(),d.recurse(e.key,s)):s=e.key.type===yi.Identifier?e.key.name:""+e.key.value,c=d.nextId(),d.recurse(e.value,c),d.assign(d.member(t,s,e.computed),c)})):(r(e.properties,function(t){d.recurse(t.value,e.constant?void 0:d.nextId(),void 0,function(e){u.push(d.escape(t.key.type===yi.Identifier?t.key.name:""+t.key.value)+":"+e)})}),l="{"+u.join(",")+"}",this.assign(t,l)),i(t||l)
break
case yi.ThisExpression:this.assign(t,"s"),i("s")
break
case yi.LocalsExpression:this.assign(t,"l"),i("l")
break
case yi.NGValueParameter:this.assign(t,"v"),i("v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own
return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){return e?(this.current().body.push(e,"=",t,";"),e):void 0},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t()
else{var r=this.current().body
r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/[^$_a-zA-Z0-9]/g
return/[$_a-zA-Z][$_a-zA-Z0-9]*/.test(t)?e+"."+t:e+'["'+t.replace(n,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,r,i,o){var a=this
return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this
return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(y(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'"
if(w(e))return""+e
if(!0===e)return"true"
if(!1===e)return"false"
if(null===e)return"null"
if(void 0===e)return"undefined"
throw di("esc")},nextId:function(e,t){var n="v"+this.state.nextId++
return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Ht.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e)
this.expression=e,this.expensiveChecks=t,It(i,n.$filter)
var o,a;(o=Pt(i))&&(a=this.recurse(o)),o=Dt(i.body)
var s
o&&(s=[],r(o,function(e,t){var r=n.recurse(e)
e.input=r,s.push(r),e.watchId=t}))
var c=[]
return r(i.body,function(e){c.push(n.recurse(e.expression))}),o=0===i.body.length?h:1===i.body.length?c[0]:function(e,t){var n
return r(c,function(r){n=r(e,t)}),n},a&&(o.assign=function(e,t,n){return a(e,n,t)}),s&&(o.inputs=s),o.literal=Lt(i),o.constant=i.constant,o},recurse:function(e,t,n){var i,o,a,s=this
if(e.input)return this.inputs(e.input,e.watchId)
switch(e.type){case yi.Literal:return this.value(e.value,t)
case yi.UnaryExpression:return o=this.recurse(e.argument),this["unary"+e.operator](o,t)
case yi.BinaryExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t)
case yi.LogicalExpression:return i=this.recurse(e.left),o=this.recurse(e.right),this["binary"+e.operator](i,o,t)
case yi.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t)
case yi.Identifier:return Nt(e.name,s.expression),s.identifier(e.name,s.expensiveChecks||Vt(e.name),t,n,s.expression)
case yi.MemberExpression:return i=this.recurse(e.object,!1,!!n),e.computed||(Nt(e.property.name,s.expression),o=e.property.name),e.computed&&(o=this.recurse(e.property)),e.computed?this.computedMember(i,o,t,n,s.expression):this.nonComputedMember(i,o,s.expensiveChecks,t,n,s.expression)
case yi.CallExpression:return a=[],r(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(o=this.$filter(e.callee.name)),e.filter||(o=this.recurse(e.callee,!0)),e.filter?function(e,n,r,i){for(var s=[],c=0;c<a.length;++c)s.push(a[c](e,n,r,i))
return e=o.apply(void 0,s,i),t?{context:void 0,name:void 0,value:e}:e}:function(e,n,r,i){var c,u=o(e,n,r,i)
if(null!=u.value){zt(u.context,s.expression),jt(u.value,s.expression),c=[]
for(var l=0;l<a.length;++l)c.push(zt(a[l](e,n,r,i),s.expression))
c=zt(u.value.apply(u.context,c),s.expression)}return t?{value:c}:c}
case yi.AssignmentExpression:return i=this.recurse(e.left,!0,1),o=this.recurse(e.right),function(e,n,r,a){var c=i(e,n,r,a)
return e=o(e,n,r,a),zt(c.value,s.expression),Bt(c.context),c.context[c.name]=e,t?{value:e}:e}
case yi.ArrayExpression:return a=[],r(e.elements,function(e){a.push(s.recurse(e))}),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i))
return t?{value:o}:o}
case yi.ObjectExpression:return a=[],r(e.properties,function(e){e.computed?a.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):a.push({key:e.key.type===yi.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,r,i)]=a[s].value(e,n,r,i):o[a[s].key]=a[s].value(e,n,r,i)
return t?{value:o}:o}
case yi.ThisExpression:return function(e){return t?{value:e}:e}
case yi.LocalsExpression:return function(e,n){return t?{value:n}:n}
case yi.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){return n=e(n,r,i,o),n=v(n)?+n:0,t?{value:n}:n}},"unary-":function(e,t){return function(n,r,i,o){return n=e(n,r,i,o),n=v(n)?-n:0,t?{value:n}:n}},"unary!":function(e,t){return function(n,r,i,o){return n=!e(n,r,i,o),t?{value:n}:n}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)
return r=t(r,i,o,a),s=Tt(s,r),n?{value:s}:s}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)
return r=t(r,i,o,a),s=(v(s)?s:0)-(v(r)?r:0),n?{value:s}:s}},"binary*":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)*t(r,i,o,a),n?{value:r}:r}},"binary/":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)/t(r,i,o,a),n?{value:r}:r}},"binary%":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)%t(r,i,o,a),n?{value:r}:r}},"binary===":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)===t(r,i,o,a),n?{value:r}:r}},"binary!==":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)!==t(r,i,o,a),n?{value:r}:r}},"binary==":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)==t(r,i,o,a),n?{value:r}:r}},"binary!=":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)!=t(r,i,o,a),n?{value:r}:r}},"binary<":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)<t(r,i,o,a),n?{value:r}:r}},"binary>":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)>t(r,i,o,a),n?{value:r}:r}},"binary<=":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)<=t(r,i,o,a),n?{value:r}:r}},"binary>=":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)>=t(r,i,o,a),n?{value:r}:r}},"binary&&":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)&&t(r,i,o,a),n?{value:r}:r}},"binary||":function(e,t,n){return function(r,i,o,a){return r=e(r,i,o,a)||t(r,i,o,a),n?{value:r}:r}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){return i=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s),r?{value:i}:i}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n,r,i){return function(o,a,s,c){return o=a&&e in a?a:o,r&&1!==r&&o&&!o[e]&&(o[e]={}),a=o?o[e]:void 0,t&&zt(a,i),n?{context:o,name:e,value:a}:a}},computedMember:function(e,t,n,r,i){return function(o,a,s,c){var u,l,f=e(o,a,s,c)
return null!=f&&(u=t(o,a,s,c),u+="",Nt(u,i),r&&1!==r&&(Bt(f),f&&!f[u]&&(f[u]={})),l=f[u],zt(l,i)),n?{context:f,name:u,value:l}:l}},nonComputedMember:function(e,t,n,r,i,o){return function(a,s,c,u){return a=e(a,s,c,u),i&&1!==i&&(Bt(a),a&&!a[t]&&(a[t]={})),s=null!=a?a[t]:void 0,(n||Vt(t))&&zt(s,o),r?{context:a,name:t,value:s}:s}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}}
var wi=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new yi(e,n),this.astCompiler=n.csp?new Ht(this.ast,t):new Ut(this.ast,t)}
wi.prototype={constructor:wi,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}}
var _i=Object.prototype.valueOf,xi=t("$sce"),ki={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Ci=t("$compile"),Si=e.document.createElement("a"),Ei=sn(e.location.href)
ln.$inject=["$document"],hn.$inject=["$provide"]
var Ai=22,Ni=".",Mi="0"
vn.$inject=["$locale"],$n.$inject=["$locale"]
var zi={yyyy:xn("FullYear",4,0,!1,!0),yy:xn("FullYear",2,0,!0,!0),y:xn("FullYear",1,0,!1,!0),MMMM:kn("Month"),MMM:kn("Month",!0),MM:xn("Month",2,1),M:xn("Month",1,1),LLLL:kn("Month",!1,!0),dd:xn("Date",2),d:xn("Date",1),HH:xn("Hours",2),H:xn("Hours",1),hh:xn("Hours",2,-12),h:xn("Hours",1,-12),mm:xn("Minutes",2),m:xn("Minutes",1),ss:xn("Seconds",2),s:xn("Seconds",1),sss:xn("Milliseconds",3),EEEE:kn("Day"),EEE:kn("Day",!0),a:function(e,t){return 12>e.getHours()?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){return e=-1*n,e=(e>=0?"+":"")+(_n(Math[e>0?"floor":"ceil"](e/60),2)+_n(Math.abs(e%60),2))},ww:Sn(2),w:Sn(1),G:En,GG:En,GGG:En,GGGG:function(e,t){return 0>=e.getFullYear()?t.ERANAMES[0]:t.ERANAMES[1]}},ji=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Bi=/^\-?\d+$/
An.$inject=["$locale"]
var Oi=p(Gn),Ti=p(Yn)
jn.$inject=["$parse"]
var Ii=p({restrict:"E",compile:function(e,t){return t.href||t.xlinkHref?void 0:function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===tr.call(t.prop("href"))?"xlink:href":"href"
t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Di={}
r(zr,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!=e){var r=Ge("ng-"+t),i=n
"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Di[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(Br,function(e,t){Di[t]=function(){return{priority:100,link:function(e,n,r){return"ngPattern"===t&&"/"==r.ngPattern.charAt(0)&&(n=r.ngPattern.match(Zn))?void r.$set("ngPattern",RegExp(n[1],n[2])):void e.$watch(r[t],function(e){r.$set(t,e)})}}}}),r(["src","srcset","href"],function(e){var t=Ge("ng-"+e)
Di[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e
"href"===e&&"[object SVGAnimatedString]"===tr.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){t?(i.$set(a,t),Fn&&o&&r.prop(o,i[a])):"href"===e&&i.$set(a,null)})}}}})
var Ri={$addControl:h,$$renameControl:function(e,t){e.$name=t},$removeControl:h,$setValidity:h,$setDirty:h,$setPristine:h,$setSubmitted:h}
On.$inject=["$element","$attrs","$scope","$animate","$interpolate"]
var Pi=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||h}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:On,compile:function(n,i){n.addClass(wo).addClass(bo)
var o=i.name?"name":e&&i.ngForm?"ngForm":!1
return{pre:function(e,n,i,a){var s=a[0]
if(!("action"in i)){var u=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()}
n[0].addEventListener("submit",u,!1),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",u,!1)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s)
var l=o?r(s.$name):h
o&&(l(e,s),i.$observe(o,function(t){s.$name!==t&&(l(e,void 0),s.$$parentForm.$$renameControl(s,t),(l=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),l(e,void 0),c(s,Ri)})}}}}}]},Li=Pi(),Ui=Pi(!0),Hi=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Vi=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+\])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Fi=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,qi=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ji=/^(\d{4,})-(\d{2})-(\d{2})$/,Wi=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Zi=/^(\d{4,})-W(\d\d)$/,Ki=/^(\d{4,})-(\d\d)$/,Gi=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Yi=ae()
r(["date","datetime-local","month","time","week"],function(e){Yi[e]=!0})
var Qi={text:function(e,t,n,r,i,o){In(e,t,n,r,i,o),Tn(r)},date:Rn("date",Ji,Dn(Ji,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Rn("datetimelocal",Wi,Dn(Wi,"yyyy MM dd HH mm ss sss".split(" ")),"yyyy-MM-ddTHH:mm:ss.sss"),time:Rn("time",Gi,Dn(Gi,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Rn("week",Zi,function(e,t){if(_(e))return e
if(y(e)){Zi.lastIndex=0
var n=Zi.exec(e)
if(n){var r=+n[1],i=+n[2],o=n=0,a=0,s=0,c=Cn(r),i=7*(i-1)
return t&&(n=t.getHours(),o=t.getMinutes(),a=t.getSeconds(),s=t.getMilliseconds()),new Date(r,0,c.getDate()+i,n,o,a,s)}}return NaN},"yyyy-Www"),month:Rn("month",Ki,Dn(Ki,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,r,i,o){if(Pn(e,t,n,r),In(e,t,n,r,i,o),r.$$parserName="number",r.$parsers.push(function(e){return r.$isEmpty(e)?null:qi.test(e)?parseFloat(e):void 0}),r.$formatters.push(function(e){if(!r.$isEmpty(e)){if(!w(e))throw ko("numfmt",e)
e=""+e}return e}),v(n.min)||n.ngMin){var a
r.$validators.min=function(e){return r.$isEmpty(e)||m(a)||e>=a},n.$observe("min",function(e){v(e)&&!w(e)&&(e=parseFloat(e)),a=w(e)&&!isNaN(e)?e:void 0,r.$validate()})}if(v(n.max)||n.ngMax){var s
r.$validators.max=function(e){return r.$isEmpty(e)||m(s)||s>=e},n.$observe("max",function(e){v(e)&&!w(e)&&(e=parseFloat(e)),s=w(e)&&!isNaN(e)?e:void 0,r.$validate()})}},url:function(e,t,n,r,i,o){In(e,t,n,r,i,o),Tn(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t
return r.$isEmpty(n)||Vi.test(n)}},email:function(e,t,n,r,i,o){In(e,t,n,r,i,o),Tn(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t
return r.$isEmpty(n)||Fi.test(n)}},radio:function(e,t,n,r){m(n.name)&&t.attr("name",++or),t.on("click",function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)}),r.$render=function(){t[0].checked=n.value==r.$viewValue},n.$observe("value",r.$render)},checkbox:function(e,t,n,r,i,o,a,s){var c=Ln(s,e,"ngTrueValue",n.ngTrueValue,!0),u=Ln(s,e,"ngFalseValue",n.ngFalseValue,!1)
t.on("click",function(e){r.$setViewValue(t[0].checked,e&&e.type)}),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return O(e,c)}),r.$parsers.push(function(e){return e?c:u})},hidden:h,button:h,submit:h,reset:h,file:h},Xi=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(Qi[Gn(a.type)]||Qi.text)(i,o,a,s[0],t,e,n,r)}}}}],eo=/^(true|false|\d+)$/,to=function(){return{restrict:"A",priority:100,compile:function(e,t){return eo.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},no=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=m(e)?"":e})}}}}],ro=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){n=e(r.attr(i.$attr.ngBindTemplate)),t.$$addBindingInfo(r,n.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=m(e)?"":e})}}}}],io=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)})
return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t)
r.html(e.getTrustedHtml(n)||"")})}}}}],oo=p({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),ao=Un("",!0),so=Un("Odd",0),co=Un("Even",1),uo=Bn({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),lo=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],fo={},ho={blur:!0,focus:!0}
r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=Ge("ng-"+e)
fo[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t],null,!0)
return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})}
ho[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]})
var po=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,c,u
n.$watch(i.ngIf,function(n){n?c||a(function(n,o){c=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(u&&(u.remove(),u=null),c&&(c.$destroy(),c=null),s&&(u=oe(s.clone),e.leave(u).then(function(){u=null}),s=null))})}}}],go=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ir.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll
return function(r,i,c,u,l){var f,h,d,p=0,g=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),d&&(n.leave(d).then(function(){h=null}),h=d,d=null)}
r.$watch(o,function(o){var c=function(){!v(s)||s&&!r.$eval(s)||t()},h=++p
o?(e(o,!0).then(function(e){if(!r.$$destroyed&&h===p){var t=r.$new()
u.template=e,e=l(t,function(e){g(),n.enter(e,null,i).then(c)}),f=t,d=e,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||h!==p||(g(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):(g(),u.template=null)})}}}}],mo=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){tr.call(r[0]).match(/SVG/)?(r.empty(),t(he(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r})):(r.html(o.template),t(r.contents())(n))}}}],vo=Bn({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),$o=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var o=t.attr(n.$attr.ngList)||", ",a="false"!==n.ngTrim,s=a?cr(o):o
i.$parsers.push(function(e){if(!m(e)){var t=[]
return e&&r(e.split(s),function(e){e&&t.push(a?cr(e):e)}),t}}),i.$formatters.push(function(e){return ar(e)?e.join(o):void 0}),i.$isEmpty=function(e){return!e||!e.length}}}},bo="ng-valid",yo="ng-invalid",wo="ng-pristine",_o="ng-dirty",xo="ng-pending",ko=t("ngModel"),Co=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,n,i,o,a,s,c,u,l){this.$modelValue=this.$viewValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=l(n.name||"",!1)(e),this.$$parentForm=Ri
var f,d=o(n.ngModel),p=d.assign,g=d,$=p,b=null,y=this
this.$$setOptions=function(e){if((y.$options=e)&&e.getterSetter){var t=o(n.ngModel+"()"),r=o(n.ngModel+"($$$p)")
g=function(e){var n=d(e)
return x(n)&&(n=t(e)),n},$=function(e,t){x(d(e))?r(e,{$$$p:t}):p(e,t)}}else if(!d.assign)throw ko("nonassign",n.ngModel,H(i))},this.$render=h,this.$isEmpty=function(e){return m(e)||""===e||null===e||e!==e},this.$$updateEmptyClasses=function(e){y.$isEmpty(e)?(a.removeClass(i,"ng-not-empty"),a.addClass(i,"ng-empty")):(a.removeClass(i,"ng-empty"),a.addClass(i,"ng-not-empty"))}
var _=0
Hn({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:a}),this.$setPristine=function(){y.$dirty=!1,y.$pristine=!0,a.removeClass(i,_o),a.addClass(i,wo)},this.$setDirty=function(){y.$dirty=!0,y.$pristine=!1,a.removeClass(i,wo),a.addClass(i,_o),y.$$parentForm.$setDirty()},this.$setUntouched=function(){y.$touched=!1,y.$untouched=!0,a.setClass(i,"ng-untouched","ng-touched")},this.$setTouched=function(){y.$touched=!0,y.$untouched=!1,a.setClass(i,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){s.cancel(b),y.$viewValue=y.$$lastCommittedViewValue,y.$render()},this.$validate=function(){if(!w(y.$modelValue)||!isNaN(y.$modelValue)){var e=y.$$rawModelValue,t=y.$valid,n=y.$modelValue,r=y.$options&&y.$options.allowInvalid
y.$$runValidators(e,y.$$lastCommittedViewValue,function(i){r||t===i||(y.$modelValue=i?e:void 0,y.$modelValue!==n&&y.$$writeModelToScope())})}},this.$$runValidators=function(e,t,n){function i(){var n=!0
return r(y.$validators,function(r,i){var o=r(e,t)
n=n&&o,a(i,o)}),n?!0:(r(y.$asyncValidators,function(e,t){a(t,null)}),!1)}function o(){var n=[],i=!0
r(y.$asyncValidators,function(r,o){var s=r(e,t)
if(!s||!x(s.then))throw ko("nopromise",s)
a(o,void 0),n.push(s.then(function(){a(o,!0)},function(){i=!1,a(o,!1)}))}),n.length?u.all(n).then(function(){s(i)},h):s(!0)}function a(e,t){c===_&&y.$setValidity(e,t)}function s(e){c===_&&n(e)}_++
var c=_;(function(){var e=y.$$parserName||"parse"
return m(f)?(a(e,null),!0):(f||(r(y.$validators,function(e,t){a(t,null)}),r(y.$asyncValidators,function(e,t){a(t,null)})),a(e,f),f)})()&&i()?o():s(!1)},this.$commitViewValue=function(){var e=y.$viewValue
s.cancel(b),(y.$$lastCommittedViewValue!==e||""===e&&y.$$hasNativeValidators)&&(y.$$updateEmptyClasses(e),y.$$lastCommittedViewValue=e,y.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){var t=y.$$lastCommittedViewValue
if(f=m(t)?void 0:!0)for(var n=0;n<y.$parsers.length;n++)if(t=y.$parsers[n](t),m(t)){f=!1
break}w(y.$modelValue)&&isNaN(y.$modelValue)&&(y.$modelValue=g(e))
var r=y.$modelValue,i=y.$options&&y.$options.allowInvalid
y.$$rawModelValue=t,i&&(y.$modelValue=t,y.$modelValue!==r&&y.$$writeModelToScope()),y.$$runValidators(t,y.$$lastCommittedViewValue,function(e){i||(y.$modelValue=e?t:void 0,y.$modelValue!==r&&y.$$writeModelToScope())})},this.$$writeModelToScope=function(){$(e,y.$modelValue),r(y.$viewChangeListeners,function(e){try{e()}catch(n){t(n)}})},this.$setViewValue=function(e,t){y.$viewValue=e,y.$options&&!y.$options.updateOnDefault||y.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n=0,r=y.$options
r&&v(r.debounce)&&(r=r.debounce,w(r)?n=r:w(r[t])?n=r[t]:w(r["default"])&&(n=r["default"])),s.cancel(b),n?b=s(function(){y.$commitViewValue()},n):c.$$phase?y.$commitViewValue():e.$apply(function(){y.$commitViewValue()})},e.$watch(function(){var t=g(e)
if(t!==y.$modelValue&&(y.$modelValue===y.$modelValue||t===t)){y.$modelValue=y.$$rawModelValue=t,f=void 0
for(var n=y.$formatters,r=n.length,i=t;r--;)i=n[r](i)
y.$viewValue!==i&&(y.$$updateEmptyClasses(i),y.$viewValue=y.$$lastCommittedViewValue=i,y.$render(),y.$$runValidators(t,i,h))}return t})}],So=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Co,priority:1,compile:function(t){return t.addClass(wo).addClass("ng-untouched").addClass(bo),{pre:function(e,t,n,r){var i=r[0]
t=r[1]||i.$$parentForm,i.$$setOptions(r[2]&&r[2].$options),t.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){var o=i[0]
o.$options&&o.$options.updateOn&&n.on(o.$options.updateOn,function(e){o.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){o.$touched||(e.$$phase?t.$evalAsync(o.$setTouched):t.$apply(o.$setTouched))})}}}}}],Eo=/(\s+|^)default(\s+|$)/,Ao=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this
this.$options=B(e.$eval(t.ngModelOptions)),v(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=cr(this.$options.updateOn.replace(Eo,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},No=Bn({terminal:!0,priority:1e3}),Mo=t("ngOptions"),zo=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,jo=["$compile","$document","$parse",function(t,i,o){function a(e,t,r){function i(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t
if(!u&&n(e))t=e
else{t=[]
for(var r in e)e.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t.push(r)}return t}var s=e.match(zo)
if(!s)throw Mo("iexp",e,H(t))
var c=s[5]||s[7],u=s[6]
e=/ as /.test(s[0])&&s[1]
var l=s[9]
t=o(s[2]?s[1]:c)
var f=e&&o(e)||t,h=l&&o(l),d=l?function(e,t){return h(r,t)}:function(e){return Te(e)},p=function(e,t){return d(e,y(e,t))},g=o(s[2]||s[1]),m=o(s[3]||""),v=o(s[4]||""),$=o(s[8]),b={},y=u?function(e,t){return b[u]=t,b[c]=e,b}:function(e){return b[c]=e,b}
return{trackBy:l,getTrackByValue:p,getWatchables:o($,function(e){var t=[]
e=e||[]
for(var n=a(e),i=n.length,o=0;i>o;o++){var c=e===n?o:n[o],u=e[c],c=y(u,c),u=d(u,c)
t.push(u),(s[2]||s[1])&&(u=g(r,c),t.push(u)),s[4]&&(c=v(r,c),t.push(c))}return t}),getOptions:function(){for(var e=[],t={},n=$(r)||[],o=a(n),s=o.length,c=0;s>c;c++){var u=n===o?c:o[c],h=y(n[u],u),b=f(r,h),u=d(b,h),w=g(r,h),_=m(r,h),h=v(r,h),b=new i(u,b,w,_,h)
e.push(b),t[u]=b}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[p(e)]},getViewValueFromOption:function(e){return l?ir.copy(e.viewValue):e.viewValue}}}}}var s=e.document.createElement("option"),c=e.document.createElement("optgroup")
return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=h},post:function(e,n,o,u){function l(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),e.value!==t.value&&(t.value=e.selectValue)}function f(){var e=w&&d.readValue()
if(w)for(var t=w.items.length-1;t>=0;t--){var r=w.items[t]
Ae(v(r.group)?r.element.parentNode:r.element)}w=_.getOptions()
var i={}
b&&n.prepend(h),w.items.forEach(function(e){var t
if(v(e.group)){t=i[e.group],t||(t=c.cloneNode(!1),x.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t)
var n=s.cloneNode(!1)}else t=x,n=s.cloneNode(!1)
t.appendChild(n),l(e,n)}),n[0].appendChild(x),p.$render(),p.$isEmpty(e)||(t=d.readValue(),(_.trackBy||g?O(e,t):e===t)||(p.$setViewValue(t),p.$render()))}var h,d=u[0],p=u[1],g=o.multiple
u=0
for(var m=n.children(),$=m.length;$>u;u++)if(""===m[u].value){h=m.eq(u)
break}var b=!!h,y=qn(s.cloneNode(!1))
y.val("?")
var w,_=a(o.ngOptions,n,e),x=i[0].createDocumentFragment()
g?(p.$isEmpty=function(e){return!e||0===e.length},d.writeValue=function(e){w.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){(e=w.getOptionFromViewValue(e))&&(e.element.selected=!0)})},d.readValue=function(){var e=n.val()||[],t=[]
return r(e,function(e){(e=w.selectValueMap[e])&&!e.disabled&&t.push(w.getViewValueFromOption(e))}),t},_.trackBy&&e.$watchCollection(function(){return ar(p.$viewValue)?p.$viewValue.map(function(e){return _.getTrackByValue(e)}):void 0},function(){p.$render()})):(d.writeValue=function(e){var t=w.getOptionFromViewValue(e)
t?(n[0].value!==t.selectValue&&(y.remove(),b||h.remove(),n[0].value=t.selectValue,t.element.selected=!0),t.element.setAttribute("selected","selected")):null===e||b?(y.remove(),b||n.prepend(h),n.val(""),h.prop("selected",!0),h.attr("selected",!0)):(b||h.remove(),n.prepend(y),n.val("?"),y.prop("selected",!0),y.attr("selected",!0))},d.readValue=function(){var e=w.selectValueMap[n.val()]
return e&&!e.disabled?(b||h.remove(),y.remove(),w.getViewValueFromOption(e)):null},_.trackBy&&e.$watch(function(){return _.getTrackByValue(p.$viewValue)},function(){p.$render()})),b?(h.remove(),t(h)(e),h.removeClass("ng-scope")):h=qn(s.cloneNode(!1)),n.empty(),f(),e.$watchCollection(_.getWatchables,f)}}}}],Bo=["$locale","$interpolate","$log",function(e,t,n){var i=/{}/g,o=/^when(Minus)?(.+)$/
return{link:function(a,s,c){function u(e){s.text(e||"")}var l,f=c.count,d=c.$attr.when&&s.attr(c.$attr.when),p=c.offset||0,g=a.$eval(d)||{},v={},$=t.startSymbol(),b=t.endSymbol(),y=$+f+"-"+p+b,_=ir.noop
r(c,function(e,t){var n=o.exec(t)
n&&(n=(n[1]?"-":"")+Gn(n[2]),g[n]=s.attr(c.$attr[t]))}),r(g,function(e,n){v[n]=t(e.replace(i,y))}),a.$watch(f,function(t){var r=parseFloat(t),i=isNaN(r)
i||r in g||(r=e.pluralCat(r-p)),r===l||i&&w(l)&&isNaN(l)||(_(),i=v[r],m(i)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+d),_=h,u()):_=a.$watch(i,u),l=r)})}}}],Oo=["$parse","$animate","$compile",function(e,i,o){var a=t("ngRepeat"),s=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0===(1&t))}
return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,c){var u=c.ngRepeat,l=o.$$createComment("end ngRepeat",u),f=u.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)
if(!f)throw a("iexp",u)
var h=f[1],d=f[2],p=f[3],g=f[4],f=h.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/)
if(!f)throw a("iidexp",h)
var m=f[3]||f[1],v=f[2]
if(p&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(p)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(p)))throw a("badident",p)
var $,b,y,w,_={$id:Te}
return g?$=e(g):(y=function(e,t){return Te(t)},w=function(e){return e}),function(e,t,o,c,f){$&&(b=function(t,n,r){return v&&(_[v]=t),_[m]=n,_.$index=r,$(e,_)})
var h=ae()
e.$watchCollection(d,function(o){var c,d,g,$,_,x,k,C,S,E,A=t[0],N=ae()
if(p&&(e[p]=o),n(o))C=o,d=b||y
else for(E in d=b||w,C=[],o)Kn.call(o,E)&&"$"!==E.charAt(0)&&C.push(E)
for($=C.length,E=Array($),c=0;$>c;c++)if(_=o===C?c:C[c],x=o[_],k=d(_,x,c),h[k])S=h[k],delete h[k],N[k]=S,E[c]=S
else{if(N[k])throw r(E,function(e){e&&e.scope&&(h[e.id]=e)}),a("dupes",u,k,x)
E[c]={id:k,scope:void 0,clone:void 0},N[k]=!0}for(g in h){if(S=h[g],k=oe(S.clone),i.leave(k),k[0].parentNode)for(c=0,d=k.length;d>c;c++)k[c].$$NG_REMOVED=!0
S.scope.$destroy()}for(c=0;$>c;c++)if(_=o===C?c:C[c],x=o[_],S=E[c],S.scope){g=A
do g=g.nextSibling
while(g&&g.$$NG_REMOVED)
S.clone[0]!=g&&i.move(oe(S.clone),null,A),A=S.clone[S.clone.length-1],s(S.scope,c,m,x,v,_,$)}else f(function(e,t){S.scope=t
var n=l.cloneNode(!1)
e[e.length++]=n,i.enter(e,null,A),A=n,S.clone=e,N[S.id]=S,s(S.scope,c,m,x,v,_,$)})
h=N})}}}}],To=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Io=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Do=Bn(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&r(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Ro=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,o,a){var s=[],c=[],u=[],l=[],f=function(e,t){return function(){e.splice(t,1)}}
n.$watch(o.ngSwitch||o.on,function(n){var i,o
for(i=0,o=u.length;o>i;++i)e.cancel(u[i])
for(i=u.length=0,o=l.length;o>i;++i){var h=oe(c[i].clone)
l[i].$destroy(),(u[i]=e.leave(h)).then(f(u,i))}c.length=0,l.length=0,(s=a.cases["!"+n]||a.cases["?"])&&r(s,function(n){n.transclude(function(r,i){l.push(i)
var o=n.element
r[r.length++]=t.$$createComment("end ngSwitchWhen"),c.push({clone:r}),e.enter(r,o.parent(),o)})})})}}}],Po=Bn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["!"+n.ngSwitchWhen]=r.cases["!"+n.ngSwitchWhen]||[],r.cases["!"+n.ngSwitchWhen].push({transclude:i,element:t})}}),Lo=Bn({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Uo=t("ngTransclude"),Ho=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var n=e(t.contents())
return t.empty(),function(e,t,r,i,o){function a(){n(e,function(e){t.append(e)})}if(!o)throw Uo("orphan",H(t))
r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude=""),r=r.ngTransclude||r.ngTranscludeSlot,o(function(e,n){e.length?t.append(e):(a(),n.$destroy())},null,r),r&&!o.isSlotFilled(r)&&a()}}}}],Vo=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){"text/ng-template"==n.type&&e.put(n.id,t[0].text)}}}],Fo={$setViewValue:h,$render:h},qo=["$element","$scope",function(t,n){var r=this,i=new Ie
r.ngModelCtrl=Fo,r.unknownOption=qn(e.document.createElement("option")),r.renderUnknownOption=function(e){e="? "+Te(e)+" ?",r.unknownOption.val(e),t.prepend(r.unknownOption),t.val(e)},n.$on("$destroy",function(){r.renderUnknownOption=h}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),t.val()},r.writeValue=function(e){r.hasOption(e)?(r.removeUnknownOption(),t.val(e),""===e&&r.emptyOption.prop("selected",!0)):null==e&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(e)},r.addOption=function(e,t){if(8!==t[0].nodeType){re(e,'"option value"'),""===e&&(r.emptyOption=t)
var n=i.get(e)||0
i.put(e,n+1),r.ngModelCtrl.$render(),t[0].hasAttribute("selected")&&(t[0].selected=!0)}},r.removeOption=function(e){var t=i.get(e)
t&&(1===t?(i.remove(e),""===e&&(r.emptyOption=void 0)):i.put(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.registerOption=function(e,t,n,i,o){if(i){var a
n.$observe("value",function(e){v(a)&&r.removeOption(a),a=e,r.addOption(e,t)})}else o?e.$watch(o,function(e,i){n.$set("value",e),i!==e&&r.removeOption(i),r.addOption(e,t)}):r.addOption(n.value,t)
t.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],Jo=function(){return{restrict:"E",require:["select","?ngModel"],controller:qo,priority:1,link:{pre:function(e,t,n,i){var o=i[1]
if(o){var a=i[0]
if(a.ngModelCtrl=o,t.on("change",function(){e.$apply(function(){o.$setViewValue(a.readValue())})}),n.multiple){a.readValue=function(){var e=[]
return r(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},a.writeValue=function(e){var n=new Ie(e)
r(t.find("option"),function(e){e.selected=v(n.get(e.value))})}
var s,c=NaN
e.$watch(function(){c!==o.$viewValue||O(s,o.$viewValue)||(s=ce(o.$viewValue),o.$render()),c=o.$viewValue}),o.$isEmpty=function(e){return!e||0===e.length}}}},post:function(e,t,n,r){var i=r[1]
if(i){var o=r[0]
i.$render=function(){o.writeValue(i.$viewValue)}}}}}},Wo=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){if(v(n.value))var r=e(n.value,!0)
else{var i=e(t.text(),!0)
i||n.$set("value",t.text())}return function(e,t,n){var o=t.parent();(o=o.data("$selectController")||o.parent().data("$selectController"))&&o.registerOption(e,t,n,r,i)}}}}],Zo=p({restrict:"E",terminal:!1}),Ko=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},Go=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o,a=r.ngPattern||r.pattern
r.$observe("pattern",function(e){if(y(e)&&0<e.length&&(e=RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp",a,e,H(n))
o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||m(o)||o.test(t)}}}}},Yo=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1
n.$observe("maxlength",function(e){e=l(e),i=isNaN(e)?-1:e,r.$validate()}),r.$validators.maxlength=function(e,t){return 0>i||r.$isEmpty(t)||t.length<=i}}}}},Qo=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0
n.$observe("minlength",function(e){i=l(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}}
e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load angular more than once."):(ee(),ue(ir),ir.module("ngLocale",[],["$provide",function(e){function t(e){e+=""
var t=e.indexOf(".")
return-1==t?0:e.length-t-1}e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:"January February March April May June July August September October November December".split(" "),SHORTDAY:"Sun Mon Tue Wed Thu Fri Sat".split(" "),SHORTMONTH:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),STANDALONEMONTH:"January February March April May June July August September October November December".split(" "),WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a","short":"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,n){var r=0|e,i=n
return void 0===i&&(i=Math.min(t(e),3)),Math.pow(10,i),1==r&&0==i?"one":"other"}})}]),qn(e.document).ready(function(){K(e.document,G)}))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>'),function(e,t){"use strict"
function n(e,n,r){return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",link:function(i,o,a,s,c){function u(){d&&(r.cancel(d),d=null),f&&(f.$destroy(),f=null),h&&(d=r.leave(h),d.then(function(){d=null}),h=null)}function l(){var a=e.current&&e.current.locals
if(t.isDefined(a&&a.$template)){var a=i.$new(),s=e.current
h=c(a,function(e){r.enter(e,null,h||o).then(function(){!t.isDefined(p)||p&&!i.$eval(p)||n()}),u()}),f=s.scope=a,f.$emit("$viewContentLoaded"),f.$eval(g)}else u()}var f,h,d,p=a.autoscroll,g=a.onload||""
i.$on("$routeChangeSuccess",l),l()}}}function r(e,t,n){return{restrict:"ECA",priority:-400,link:function(r,i){var o=n.current,a=o.locals
i.html(a.$template)
var s=e(i.contents())
if(o.controller){a.$scope=r
var c=t(o.controller,a)
o.controllerAs&&(r[o.controllerAs]=c),i.data("$ngControllerController",c),i.children().data("$ngControllerController",c)}r[o.resolveAs||"$resolve"]=a,s(r)}}}var i,o,a=t.module("ngRoute",["ng"]).provider("$route",function(){function e(e,n){return t.extend(Object.create(e),n)}function n(e,t){var n=t.caseInsensitiveMatch,r={originalPath:e,regexp:e},i=r.keys=[]
return e=e.replace(/([().])/g,"\\$1").replace(/(\/)?:(\w+)(\*\?|[\?\*])?/g,function(e,t,n,r){return e="?"===r||"*?"===r?"?":null,r="*"===r||"*?"===r?"*":null,i.push({name:n,optional:!!e}),t=t||"",""+(e?"":t)+"(?:"+(e?t:"")+(r&&"(.+?)"||"([^/]+)")+(e||"")+")"+(e||"")}).replace(/([\/$\*])/g,"\\$1"),r.regexp=RegExp("^"+e+"$",n?"i":""),r}i=t.isArray,o=t.isObject
var r={}
this.when=function(e,a){var s
if(s=void 0,i(a)){s=s||[]
for(var c=0,u=a.length;u>c;c++)s[c]=a[c]}else if(o(a))for(c in s=s||{},a)("$"!==c.charAt(0)||"$"!==c.charAt(1))&&(s[c]=a[c])
return s=s||a,t.isUndefined(s.reloadOnSearch)&&(s.reloadOnSearch=!0),t.isUndefined(s.caseInsensitiveMatch)&&(s.caseInsensitiveMatch=this.caseInsensitiveMatch),r[e]=t.extend(s,e&&n(e,s)),e&&(c="/"==e[e.length-1]?e.substr(0,e.length-1):e+"/",r[c]=t.extend({redirectTo:e},n(c,s))),this},this.caseInsensitiveMatch=!1,this.otherwise=function(e){return"string"==typeof e&&(e={redirectTo:e}),this.when(null,e),this},this.$get=["$rootScope","$location","$routeParams","$q","$injector","$templateRequest","$sce",function(n,i,o,a,c,u,l){function f(e){var r=y.current;($=(v=g())&&r&&v.$$route===r.$$route&&t.equals(v.pathParams,r.pathParams)&&!v.reloadOnSearch&&!b)||!r&&!v||n.$broadcast("$routeChangeStart",v,r).defaultPrevented&&e&&e.preventDefault()}function h(){var e=y.current,r=v
$?(e.params=r.params,t.copy(e.params,o),n.$broadcast("$routeUpdate",e)):(r||e)&&(b=!1,(y.current=r)&&r.redirectTo&&(t.isString(r.redirectTo)?i.path(m(r.redirectTo,r.params)).search(r.params).replace():i.url(r.redirectTo(r.pathParams,i.path(),i.search())).replace()),a.when(r).then(d).then(function(i){r==y.current&&(r&&(r.locals=i,t.copy(r.params,o)),n.$broadcast("$routeChangeSuccess",r,e))},function(t){r==y.current&&n.$broadcast("$routeChangeError",r,e,t)}))}function d(e){if(e){var n=t.extend({},e.resolve)
return t.forEach(n,function(e,r){n[r]=t.isString(e)?c.get(e):c.invoke(e,null,null,r)}),e=p(e),t.isDefined(e)&&(n.$template=e),a.all(n)}}function p(e){var n,r
return t.isDefined(n=e.template)?t.isFunction(n)&&(n=n(e.params)):t.isDefined(r=e.templateUrl)&&(t.isFunction(r)&&(r=r(e.params)),t.isDefined(r)&&(e.loadedTemplateUrl=l.valueOf(r),n=u(r))),n}function g(){var n,o
return t.forEach(r,function(r,a){var s
if(s=!o){var c=i.path()
s=r.keys
var u={}
if(r.regexp)if(c=r.regexp.exec(c)){for(var l=1,f=c.length;f>l;++l){var h=s[l-1],d=c[l]
h&&d&&(u[h.name]=d)}s=u}else s=null
else s=null
s=n=s}s&&(o=e(r,{params:t.extend({},i.search(),n),pathParams:n}),o.$$route=r)}),o||r[null]&&e(r[null],{params:{},pathParams:{}})}function m(e,n){var r=[]
return t.forEach((e||"").split(":"),function(e,t){if(0===t)r.push(e)
else{var i=e.match(/(\w+)(?:[?*])?(.*)/),o=i[1]
r.push(n[o]),r.push(i[2]||""),delete n[o]}}),r.join("")}var v,$,b=!1,y={routes:r,reload:function(){b=!0
var e={defaultPrevented:!1,preventDefault:function(){this.defaultPrevented=!0,b=!1}}
n.$evalAsync(function(){f(e),e.defaultPrevented||h()})},updateParams:function(e){if(!this.current||!this.current.$$route)throw s("norout")
e=t.extend({},this.current.params,e),i.path(m(this.current.$$route.originalPath,e)),i.search(e)}}
return n.$on("$locationChangeStart",f),n.$on("$locationChangeSuccess",h),y}]}),s=t.$$minErr("ngRoute")
a.provider("$routeParams",function(){this.$get=function(){return{}}}),a.directive("ngView",n),a.directive("ngView",r),n.$inject=["$route","$anchorScroll","$animate"],r.$inject=["$compile","$controller","$route"]}(window,window.angular),function(e,t){"use strict"
function n(e,n,r){var i=r.baseHref(),o=e[0]
return function(e,r,a){var s,c
a=a||{},c=a.expires,s=t.isDefined(a.path)?a.path:i,t.isUndefined(r)&&(c="Thu, 01 Jan 1970 00:00:00 GMT",r=""),t.isString(c)&&(c=new Date(c)),r=encodeURIComponent(e)+"="+encodeURIComponent(r),r=r+(s?";path="+s:"")+(a.domain?";domain="+a.domain:""),r+=c?";expires="+c.toUTCString():"",r+=a.secure?";secure":"",a=r.length+1,a>4096&&n.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+a+" > 4096 bytes)!"),o.cookie=r}}t.module("ngCookies",["ng"]).provider("$cookies",[function(){var e=this.defaults={}
this.$get=["$$cookieReader","$$cookieWriter",function(n,r){return{get:function(e){return n()[e]},getObject:function(e){return(e=this.get(e))?t.fromJson(e):e},getAll:function(){return n()},put:function(n,i,o){r(n,i,o?t.extend({},e,o):e)},putObject:function(e,n,r){this.put(e,t.toJson(n),r)},remove:function(n,i){r(n,void 0,i?t.extend({},e,i):e)}}}]}]),t.module("ngCookies").factory("$cookieStore",["$cookies",function(e){return{get:function(t){return e.getObject(t)},put:function(t,n){e.putObject(t,n)},remove:function(t){e.remove(t)}}}]),n.$inject=["$document","$log","$browser"],t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=n})}(window,window.angular),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e()
else if("function"==typeof define&&define.amd)define([],e)
else{var t
"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.pako=e()}}(function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require
if(!s&&c)return c(a,!0)
if(o)return o(a,!0)
throw Error("Cannot find module '"+a+"'")}var u=n[a]={exports:{}}
t[a][0].call(u.exports,function(e){var n=t[a][1][e]
return i(n?n:e)},u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a])
return i}({1:[function(e,t){"use strict"
var n=e("./lib/utils/common").assign,r=e("./lib/deflate"),i=e("./lib/inflate"),o=e("./lib/zlib/constants"),a={}
n(a,r,i,o),t.exports=a},{"./lib/deflate":2,"./lib/inflate":3,"./lib/utils/common":4,"./lib/zlib/constants":7}],2:[function(e,t,n){"use strict"
function r(e,t){var n=new $(t)
if(n.push(e,!0),n.err)throw n.msg
return n.result}function i(e,t){return t=t||{},t.raw=!0,r(e,t)}function o(e,t){return t=t||{},t.gzip=!0,r(e,t)}var a=e("./zlib/deflate.js"),s=e("./utils/common"),c=e("./utils/strings"),u=e("./zlib/messages"),l=e("./zlib/zstream"),f=0,h=4,d=0,p=1,g=-1,m=0,v=8,$=function(e){this.options=s.assign({level:g,method:v,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},e||{})
var t=this.options
t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0
var n=a.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy)
if(n!==d)throw Error(u[n])
t.header&&a.deflateSetHeader(this.strm,t.header)}
$.prototype.push=function(e,t){var n,r,i=this.strm,o=this.options.chunkSize
if(this.ended)return!1
r=t===~~t?t:t===!0?h:f,i.input="string"==typeof e?c.string2buf(e):e,i.next_in=0,i.avail_in=i.input.length
do{if(0===i.avail_out&&(i.output=new s.Buf8(o),i.next_out=0,i.avail_out=o),n=a.deflate(i,r),n!==p&&n!==d)return this.onEnd(n),this.ended=!0,!1;(0===i.avail_out||0===i.avail_in&&r===h)&&this.onData("string"===this.options.to?c.buf2binstring(s.shrinkBuf(i.output,i.next_out)):s.shrinkBuf(i.output,i.next_out))}while((i.avail_in>0||0===i.avail_out)&&n!==p)
return r===h?(n=a.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===d):!0},$.prototype.onData=function(e){this.chunks.push(e)},$.prototype.onEnd=function(e){e===d&&(this.result="string"===this.options.to?this.chunks.join(""):s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=$,n.deflate=r,n.deflateRaw=i,n.gzip=o},{"./utils/common":4,"./utils/strings":5,"./zlib/deflate.js":9,"./zlib/messages":14,"./zlib/zstream":16}],3:[function(e,t,n){"use strict"
function r(e,t){var n=new h(t)
if(n.push(e,!0),n.err)throw n.msg
return n.result}function i(e,t){return t=t||{},t.raw=!0,r(e,t)}var o=e("./zlib/inflate.js"),a=e("./utils/common"),s=e("./utils/strings"),c=e("./zlib/constants"),u=e("./zlib/messages"),l=e("./zlib/zstream"),f=e("./zlib/gzheader"),h=function(e){this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{})
var t=this.options
t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0
var n=o.inflateInit2(this.strm,t.windowBits)
if(n!==c.Z_OK)throw Error(u[n])
this.header=new f,o.inflateGetHeader(this.strm,this.header)}
h.prototype.push=function(e,t){var n,r,i,u,l,f=this.strm,h=this.options.chunkSize
if(this.ended)return!1
r=t===~~t?t:t===!0?c.Z_FINISH:c.Z_NO_FLUSH,f.input="string"==typeof e?s.binstring2buf(e):e,f.next_in=0,f.avail_in=f.input.length
do{if(0===f.avail_out&&(f.output=new a.Buf8(h),f.next_out=0,f.avail_out=h),n=o.inflate(f,c.Z_NO_FLUSH),n!==c.Z_STREAM_END&&n!==c.Z_OK)return this.onEnd(n),this.ended=!0,!1
f.next_out&&(0===f.avail_out||n===c.Z_STREAM_END||0===f.avail_in&&r===c.Z_FINISH)&&("string"===this.options.to?(i=s.utf8border(f.output,f.next_out),u=f.next_out-i,l=s.buf2string(f.output,i),f.next_out=u,f.avail_out=h-u,u&&a.arraySet(f.output,f.output,i,u,0),this.onData(l)):this.onData(a.shrinkBuf(f.output,f.next_out)))}while(f.avail_in>0&&n!==c.Z_STREAM_END)
return n===c.Z_STREAM_END&&(r=c.Z_FINISH),r===c.Z_FINISH?(n=o.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c.Z_OK):!0},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===c.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=h,n.inflate=r,n.inflateRaw=i,n.ungzip=r},{"./utils/common":4,"./utils/strings":5,"./zlib/constants":7,"./zlib/gzheader":10,"./zlib/inflate.js":12,"./zlib/messages":14,"./zlib/zstream":16}],4:[function(e,t,n){"use strict"
var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array
n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift()
if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object")
for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)}
var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)return void e.set(t.subarray(n,n+r),i)
for(var o=0;r>o;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a
for(r=0,t=0,n=e.length;n>t;t++)r+=e[t].length
for(a=new Uint8Array(r),i=0,t=0,n=e.length;n>t;t++)o=e[t],a.set(o,i),i+=o.length
return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;r>o;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}}
n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],5:[function(e,t,n){"use strict"
function r(e,t){if(65537>t&&(e.subarray&&a||!e.subarray&&o))return String.fromCharCode.apply(null,i.shrinkBuf(e,t))
for(var n="",r=0;t>r;r++)n+=String.fromCharCode(e[r])
return n}var i=e("./common"),o=!0,a=!0
try{String.fromCharCode.apply(null,[0])}catch(s){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(s){a=!1}for(var c=new i.Buf8(256),u=0;256>u;u++)c[u]=u>=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1
c[254]=c[254]=1,n.string2buf=function(e){var t,n,r,o,a,s=e.length,c=0
for(o=0;s>o;o++)n=e.charCodeAt(o),55296===(64512&n)&&s>o+1&&(r=e.charCodeAt(o+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),o++)),c+=128>n?1:2048>n?2:65536>n?3:4
for(t=new i.Buf8(c),a=0,o=0;c>a;o++)n=e.charCodeAt(o),55296===(64512&n)&&s>o+1&&(r=e.charCodeAt(o+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),o++)),128>n?t[a++]=n:2048>n?(t[a++]=192|n>>>6,t[a++]=128|63&n):65536>n?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n)
return t},n.buf2binstring=function(e){return r(e,e.length)},n.binstring2buf=function(e){for(var t=new i.Buf8(e.length),n=0,r=t.length;r>n;n++)t[n]=e.charCodeAt(n)
return t},n.buf2string=function(e,t){var n,i,o,a,s=t||e.length,u=Array(2*s)
for(i=0,n=0;s>n;)if(o=e[n++],128>o)u[i++]=o
else if(a=c[o],a>4)u[i++]=65533,n+=a-1
else{for(o&=2===a?31:3===a?15:7;a>1&&s>n;)o=o<<6|63&e[n++],a--
a>1?u[i++]=65533:65536>o?u[i++]=o:(o-=65536,u[i++]=55296|o>>10&1023,u[i++]=56320|1023&o)}return r(u,i)},n.utf8border=function(e,t){var n
for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&128===(192&e[n]);)n--
return 0>n?t:0===n?t:n+c[e[n]]>t?n:t}},{"./common":4}],6:[function(e,t){"use strict"
function n(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){a=n>2e3?2e3:n,n-=a
do i=i+t[r++]|0,o=o+i|0
while(--a)
i%=65521,o%=65521}return i|o<<16|0}t.exports=n},{}],7:[function(e,t){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],8:[function(e,t){"use strict"
function n(){for(var e,t=[],n=0;256>n;n++){e=n
for(var r=0;8>r;r++)e=1&e?3988292384^e>>>1:e>>>1
t[n]=e}return t}function r(e,t,n,r){var o=i,a=r+n
e=-1^e
for(var s=r;a>s;s++)e=e>>>8^o[255&(e^t[s])]
return-1^e}var i=n()
t.exports=r},{}],9:[function(e,t,n){"use strict"
function r(e,t){return e.msg=j[t],t}function i(e){return(e<<1)-(e>4?9:0)}function o(e){for(var t=e.length;--t>=0;)e[t]=0}function a(e){var t=e.state,n=t.pending
n>e.avail_out&&(n=e.avail_out),0!==n&&(A.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function s(e,t){N._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,a(e.strm)}function c(e,t){e.pending_buf[e.pending++]=t}function u(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function l(e,t,n,r){var i=e.avail_in
return i>r&&(i=r),0===i?0:(e.avail_in-=i,A.arraySet(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=M(e.adler,t,i,n):2===e.state.wrap&&(e.adler=z(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function f(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-ue?e.strstart-(e.w_size-ue):0,u=e.window,l=e.w_mask,f=e.prev,h=e.strstart+ce,d=u[o+a-1],p=u[o+a]
e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead)
do if(n=t,u[n+a]===p&&u[n+a-1]===d&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++
do;while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&h>o)
if(r=ce-(h-o),o=h-ce,r>a){if(e.match_start=t,a=r,r>=s)break
d=u[o+a-1],p=u[o+a]}}while((t=f[t&l])>c&&0!==--i)
return a<=e.lookahead?a:e.lookahead}function h(e){var t,n,r,i,o,a=e.w_size
do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-ue)){A.arraySet(e.window,e.window,a,a,0),e.match_start-=a,e.strstart-=a,e.block_start-=a,n=e.hash_size,t=n
do r=e.head[--t],e.head[t]=r>=a?r-a:0
while(--n)
n=a,t=n
do r=e.prev[--t],e.prev[t]=r>=a?r-a:0
while(--n)
i+=a}if(0===e.strm.avail_in)break
if(n=l(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=se)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+se-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<se)););}while(e.lookahead<ue&&0!==e.strm.avail_in)}function d(e,t){var n=65535
for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(h(e),0===e.lookahead&&t===B)return $e
if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0
var r=e.block_start+n
if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,s(e,!1),0===e.strm.avail_out))return $e
if(e.strstart-e.block_start>=e.w_size-ue&&(s(e,!1),0===e.strm.avail_out))return $e}return e.insert=0,t===I?(s(e,!0),0===e.strm.avail_out?ye:we):e.strstart>e.block_start&&(s(e,!1),0===e.strm.avail_out)?$e:$e}function p(e,t){for(var n,r;;){if(e.lookahead<ue){if(h(e),e.lookahead<ue&&t===B)return $e
if(0===e.lookahead)break}if(n=0,e.lookahead>=se&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+se-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-ue&&(e.match_length=f(e,n)),e.match_length>=se)if(r=N._tr_tally(e,e.strstart-e.match_start,e.match_length-se),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=se){e.match_length--
do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+se-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart
while(0!==--e.match_length)
e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask
else r=N._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++
if(r&&(s(e,!1),0===e.strm.avail_out))return $e}return e.insert=e.strstart<se-1?e.strstart:se-1,t===I?(s(e,!0),0===e.strm.avail_out?ye:we):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?$e:be}function g(e,t){for(var n,r,i;;){if(e.lookahead<ue){if(h(e),e.lookahead<ue&&t===B)return $e
if(0===e.lookahead)break}if(n=0,e.lookahead>=se&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+se-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=se-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-ue&&(e.match_length=f(e,n),e.match_length<=5&&(e.strategy===F||e.match_length===se&&e.strstart-e.match_start>4096)&&(e.match_length=se-1)),e.prev_length>=se&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-se,r=N._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-se),e.lookahead-=e.prev_length-1,e.prev_length-=2
do++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+se-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)
while(0!==--e.prev_length)
if(e.match_available=0,e.match_length=se-1,e.strstart++,r&&(s(e,!1),0===e.strm.avail_out))return $e}else if(e.match_available){if(r=N._tr_tally(e,0,e.window[e.strstart-1]),r&&s(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return $e}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=N._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<se-1?e.strstart:se-1,t===I?(s(e,!0),0===e.strm.avail_out?ye:we):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?$e:be}function m(e,t){for(var n,r,i,o,a=e.window;;){if(e.lookahead<=ce){if(h(e),e.lookahead<=ce&&t===B)return $e
if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=se&&e.strstart>0&&(i=e.strstart-1,r=a[i],r===a[++i]&&r===a[++i]&&r===a[++i])){o=e.strstart+ce
do;while(r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&o>i)
e.match_length=ce-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=se?(n=N._tr_tally(e,1,e.match_length-se),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=N._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(s(e,!1),0===e.strm.avail_out))return $e}return e.insert=0,t===I?(s(e,!0),0===e.strm.avail_out?ye:we):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?$e:be}function v(e,t){for(var n;;){if(0===e.lookahead&&(h(e),0===e.lookahead)){if(t===B)return $e
break}if(e.match_length=0,n=N._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(s(e,!1),0===e.strm.avail_out))return $e}return e.insert=0,t===I?(s(e,!0),0===e.strm.avail_out?ye:we):e.last_lit&&(s(e,!1),0===e.strm.avail_out)?$e:be}function $(e){e.window_size=2*e.w_size,o(e.head),e.max_lazy_match=E[e.level].max_lazy,e.good_match=E[e.level].good_length,e.nice_match=E[e.level].nice_length,e.max_chain_length=E[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=se-1,e.match_available=0,e.ins_h=0}function b(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=G,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new A.Buf16(2*oe),this.dyn_dtree=new A.Buf16(2*(2*re+1)),this.bl_tree=new A.Buf16(2*(2*ie+1)),o(this.dyn_ltree),o(this.dyn_dtree),o(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new A.Buf16(ae+1),this.heap=new A.Buf16(2*ne+1),o(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new A.Buf16(2*ne+1),o(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function y(e){var t
return e&&e.state?(e.total_in=e.total_out=0,e.data_type=K,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?fe:me,e.adler=2===t.wrap?0:1,t.last_flush=B,N._tr_init(t),R):r(e,L)}function w(e){var t=y(e)
return t===R&&$(e.state),t}function _(e,t){return e&&e.state?2!==e.state.wrap?L:(e.state.gzhead=t,R):L}function x(e,t,n,i,o,a){if(!e)return L
var s=1
if(t===V&&(t=6),0>i?(s=0,i=-i):i>15&&(s=2,i-=16),1>o||o>Y||n!==G||8>i||i>15||0>t||t>9||0>a||a>W)return r(e,L)
8===i&&(i=9)
var c=new b
return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=i,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+se-1)/se),c.window=new A.Buf8(2*c.w_size),c.head=new A.Buf16(c.hash_size),c.prev=new A.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new A.Buf8(c.pending_buf_size),c.d_buf=c.lit_bufsize>>1,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,w(e)}function k(e,t){return x(e,t,G,Q,X,Z)}function C(e,t){var n,s,l,f
if(!e||!e.state||t>D||0>t)return e?r(e,L):L
if(s=e.state,!e.output||!e.input&&0!==e.avail_in||s.status===ve&&t!==I)return r(e,0===e.avail_out?H:L)
if(s.strm=e,n=s.last_flush,s.last_flush=t,s.status===fe)if(2===s.wrap)e.adler=0,c(s,31),c(s,139),c(s,8),s.gzhead?(c(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),c(s,255&s.gzhead.time),c(s,s.gzhead.time>>8&255),c(s,s.gzhead.time>>16&255),c(s,s.gzhead.time>>24&255),c(s,9===s.level?2:s.strategy>=q||s.level<2?4:0),c(s,255&s.gzhead.os),s.gzhead.extra&&s.gzhead.extra.length&&(c(s,255&s.gzhead.extra.length),c(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(e.adler=z(e.adler,s.pending_buf,s.pending,0)),s.gzindex=0,s.status=he):(c(s,0),c(s,0),c(s,0),c(s,0),c(s,0),c(s,9===s.level?2:s.strategy>=q||s.level<2?4:0),c(s,_e),s.status=me)
else{var h=G+(s.w_bits-8<<4)<<8,d=-1
d=s.strategy>=q||s.level<2?0:s.level<6?1:6===s.level?2:3,h|=d<<6,0!==s.strstart&&(h|=le),h+=31-h%31,s.status=me,u(s,h),0!==s.strstart&&(u(s,e.adler>>>16),u(s,65535&e.adler)),e.adler=1}if(s.status===he)if(s.gzhead.extra){for(l=s.pending;s.gzindex<(65535&s.gzhead.extra.length)&&(s.pending!==s.pending_buf_size||(s.gzhead.hcrc&&s.pending>l&&(e.adler=z(e.adler,s.pending_buf,s.pending-l,l)),a(e),l=s.pending,s.pending!==s.pending_buf_size));)c(s,255&s.gzhead.extra[s.gzindex]),s.gzindex++
s.gzhead.hcrc&&s.pending>l&&(e.adler=z(e.adler,s.pending_buf,s.pending-l,l)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=de)}else s.status=de
if(s.status===de)if(s.gzhead.name){l=s.pending
do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>l&&(e.adler=z(e.adler,s.pending_buf,s.pending-l,l)),a(e),l=s.pending,s.pending===s.pending_buf_size)){f=1
break}f=s.gzindex<s.gzhead.name.length?255&s.gzhead.name.charCodeAt(s.gzindex++):0,c(s,f)}while(0!==f)
s.gzhead.hcrc&&s.pending>l&&(e.adler=z(e.adler,s.pending_buf,s.pending-l,l)),0===f&&(s.gzindex=0,s.status=pe)}else s.status=pe
if(s.status===pe)if(s.gzhead.comment){l=s.pending
do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>l&&(e.adler=z(e.adler,s.pending_buf,s.pending-l,l)),a(e),l=s.pending,s.pending===s.pending_buf_size)){f=1
break}f=s.gzindex<s.gzhead.comment.length?255&s.gzhead.comment.charCodeAt(s.gzindex++):0,c(s,f)}while(0!==f)
s.gzhead.hcrc&&s.pending>l&&(e.adler=z(e.adler,s.pending_buf,s.pending-l,l)),0===f&&(s.status=ge)}else s.status=ge
if(s.status===ge&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&a(e),s.pending+2<=s.pending_buf_size&&(c(s,255&e.adler),c(s,e.adler>>8&255),e.adler=0,s.status=me)):s.status=me),0!==s.pending){if(a(e),0===e.avail_out)return s.last_flush=-1,R}else if(0===e.avail_in&&i(t)<=i(n)&&t!==I)return r(e,H)
if(s.status===ve&&0!==e.avail_in)return r(e,H)
if(0!==e.avail_in||0!==s.lookahead||t!==B&&s.status!==ve){var p=s.strategy===q?v(s,t):s.strategy===J?m(s,t):E[s.level].func(s,t)
if((p===ye||p===we)&&(s.status=ve),p===$e||p===ye)return 0===e.avail_out&&(s.last_flush=-1),R
if(p===be&&(t===O?N._tr_align(s):t!==D&&(N._tr_stored_block(s,0,0,!1),t===T&&(o(s.head),0===s.lookahead&&(s.strstart=0,s.block_start=0,s.insert=0))),a(e),0===e.avail_out))return s.last_flush=-1,R}return t!==I?R:s.wrap<=0?P:(2===s.wrap?(c(s,255&e.adler),c(s,e.adler>>8&255),c(s,e.adler>>16&255),c(s,e.adler>>24&255),c(s,255&e.total_in),c(s,e.total_in>>8&255),c(s,e.total_in>>16&255),c(s,e.total_in>>24&255)):(u(s,e.adler>>>16),u(s,65535&e.adler)),a(e),s.wrap>0&&(s.wrap=-s.wrap),0!==s.pending?R:P)}function S(e){var t
return e&&e.state?(t=e.state.status,t!==fe&&t!==he&&t!==de&&t!==pe&&t!==ge&&t!==me&&t!==ve?r(e,L):(e.state=null,t===me?r(e,U):R)):L}var E,A=e("../utils/common"),N=e("./trees"),M=e("./adler32"),z=e("./crc32"),j=e("./messages"),B=0,O=1,T=3,I=4,D=5,R=0,P=1,L=-2,U=-3,H=-5,V=-1,F=1,q=2,J=3,W=4,Z=0,K=2,G=8,Y=9,Q=15,X=8,ee=29,te=256,ne=te+1+ee,re=30,ie=19,oe=2*ne+1,ae=15,se=3,ce=258,ue=ce+se+1,le=32,fe=42,he=69,de=73,pe=91,ge=103,me=113,ve=666,$e=1,be=2,ye=3,we=4,_e=3,xe=function(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}
E=[new xe(0,0,0,0,d),new xe(4,4,8,4,p),new xe(4,5,16,8,p),new xe(4,6,32,32,p),new xe(4,4,16,16,g),new xe(8,16,32,32,g),new xe(8,16,128,128,g),new xe(8,32,128,256,g),new xe(32,128,258,1024,g),new xe(32,258,258,4096,g)],n.deflateInit=k,n.deflateInit2=x,n.deflateReset=w,n.deflateResetKeep=y,n.deflateSetHeader=_,n.deflate=C,n.deflateEnd=S,n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":4,"./adler32":6,"./crc32":8,"./messages":14,"./trees":15}],10:[function(e,t){"use strict"
function n(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}t.exports=n},{}],11:[function(e,t){"use strict"
var n=30,r=12
t.exports=function(e,t){var i,o,a,s,c,u,l,f,h,d,p,g,m,v,$,b,y,w,_,x,k,C,S,E,A
i=e.state,o=e.next_in,E=e.input,a=o+(e.avail_in-5),s=e.next_out,A=e.output,c=s-(t-e.avail_out),u=s+(e.avail_out-257),l=i.dmax,f=i.wsize,h=i.whave,d=i.wnext,p=i.window,g=i.hold,m=i.bits,v=i.lencode,$=i.distcode,b=(1<<i.lenbits)-1,y=(1<<i.distbits)-1
e:do{15>m&&(g+=E[o++]<<m,m+=8,g+=E[o++]<<m,m+=8),w=v[g&b]
t:for(;;){if(_=w>>>24,g>>>=_,m-=_,_=w>>>16&255,0===_)A[s++]=65535&w
else{if(!(16&_)){if(0===(64&_)){w=v[(65535&w)+(g&(1<<_)-1)]
continue t}if(32&_){i.mode=r
break e}e.msg="invalid literal/length code",i.mode=n
break e}x=65535&w,_&=15,_&&(_>m&&(g+=E[o++]<<m,m+=8),x+=g&(1<<_)-1,g>>>=_,m-=_),15>m&&(g+=E[o++]<<m,m+=8,g+=E[o++]<<m,m+=8),w=$[g&y]
n:for(;;){if(_=w>>>24,g>>>=_,m-=_,_=w>>>16&255,!(16&_)){if(0===(64&_)){w=$[(65535&w)+(g&(1<<_)-1)]
continue n}e.msg="invalid distance code",i.mode=n
break e}if(k=65535&w,_&=15,_>m&&(g+=E[o++]<<m,m+=8,_>m&&(g+=E[o++]<<m,m+=8)),k+=g&(1<<_)-1,k>l){e.msg="invalid distance too far back",i.mode=n
break e}if(g>>>=_,m-=_,_=s-c,k>_){if(_=k-_,_>h&&i.sane){e.msg="invalid distance too far back",i.mode=n
break e}if(C=0,S=p,0===d){if(C+=f-_,x>_){x-=_
do A[s++]=p[C++]
while(--_)
C=s-k,S=A}}else if(_>d){if(C+=f+d-_,_-=d,x>_){x-=_
do A[s++]=p[C++]
while(--_)
if(C=0,x>d){_=d,x-=_
do A[s++]=p[C++]
while(--_)
C=s-k,S=A}}}else if(C+=d-_,x>_){x-=_
do A[s++]=p[C++]
while(--_)
C=s-k,S=A}for(;x>2;)A[s++]=S[C++],A[s++]=S[C++],A[s++]=S[C++],x-=3
x&&(A[s++]=S[C++],x>1&&(A[s++]=S[C++]))}else{C=s-k
do A[s++]=A[C++],A[s++]=A[C++],A[s++]=A[C++],x-=3
while(x>2)
x&&(A[s++]=A[C++],x>1&&(A[s++]=A[C++]))}break}}break}}while(a>o&&u>s)
x=m>>3,o-=x,m-=x<<3,g&=(1<<m)-1,e.next_in=o,e.next_out=s,e.avail_in=a>o?5+(a-o):5-(o-a),e.avail_out=u>s?257+(u-s):257-(s-u),i.hold=g,i.bits=m}},{}],12:[function(e,t,n){"use strict"
function r(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new v.Buf16(320),this.work=new v.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(e){var t
return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=I,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new v.Buf32(pe),t.distcode=t.distdyn=new v.Buf32(ge),t.sane=1,t.back=-1,A):z}function a(e){var t
return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,o(e)):z}function s(e,t){var n,r
return e&&e.state?(r=e.state,0>t?(n=0,t=-t):(n=(t>>4)+1,48>t&&(t&=15)),t&&(8>t||t>15)?z:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,a(e))):z}function c(e,t){var n,r
return e?(r=new i,e.state=r,r.window=null,n=s(e,t),n!==A&&(e.state=null),n):z}function u(e){return c(e,ve)}function l(e){if($e){var t
for(g=new v.Buf32(512),m=new v.Buf32(32),t=0;144>t;)e.lens[t++]=8
for(;256>t;)e.lens[t++]=9
for(;280>t;)e.lens[t++]=7
for(;288>t;)e.lens[t++]=8
for(w(x,e.lens,0,288,g,0,e.work,{bits:9}),t=0;32>t;)e.lens[t++]=5
w(k,e.lens,0,32,m,0,e.work,{bits:5}),$e=!1}e.lencode=g,e.lenbits=9,e.distcode=m,e.distbits=5}function f(e,t,n,r){var i,o=e.state
return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new v.Buf8(o.wsize)),r>=o.wsize?(v.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),v.arraySet(o.window,t,n-r,i,o.wnext),r-=i,r?(v.arraySet(o.window,t,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}function h(e,t){var n,i,o,a,s,c,u,h,d,p,g,m,pe,ge,me,ve,$e,be,ye,we,_e,xe,ke,Ce,Se=0,Ee=new v.Buf8(4),Ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]
if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return z
n=e.state,n.mode===W&&(n.mode=Z),s=e.next_out,o=e.output,u=e.avail_out,a=e.next_in,i=e.input,c=e.avail_in,h=n.hold,d=n.bits,p=c,g=u,xe=A
e:for(;;)switch(n.mode){case I:if(0===n.wrap){n.mode=Z
break}for(;16>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}if(2&n.wrap&&35615===h){n.check=0,Ee[0]=255&h,Ee[1]=h>>>8&255,n.check=b(n.check,Ee,2,0),h=0,d=0,n.mode=D
break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&h)<<8)+(h>>8))%31){e.msg="incorrect header check",n.mode=fe
break}if((15&h)!==T){e.msg="unknown compression method",n.mode=fe
break}if(h>>>=4,d-=4,_e=(15&h)+8,0===n.wbits)n.wbits=_e
else if(_e>n.wbits){e.msg="invalid window size",n.mode=fe
break}n.dmax=1<<_e,e.adler=n.check=1,n.mode=512&h?q:W,h=0,d=0
break
case D:for(;16>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}if(n.flags=h,(255&n.flags)!==T){e.msg="unknown compression method",n.mode=fe
break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=fe
break}n.head&&(n.head.text=h>>8&1),512&n.flags&&(Ee[0]=255&h,Ee[1]=h>>>8&255,n.check=b(n.check,Ee,2,0)),h=0,d=0,n.mode=R
case R:for(;32>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}n.head&&(n.head.time=h),512&n.flags&&(Ee[0]=255&h,Ee[1]=h>>>8&255,Ee[2]=h>>>16&255,Ee[3]=h>>>24&255,n.check=b(n.check,Ee,4,0)),h=0,d=0,n.mode=P
case P:for(;16>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}n.head&&(n.head.xflags=255&h,n.head.os=h>>8),512&n.flags&&(Ee[0]=255&h,Ee[1]=h>>>8&255,n.check=b(n.check,Ee,2,0)),h=0,d=0,n.mode=L
case L:if(1024&n.flags){for(;16>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}n.length=h,n.head&&(n.head.extra_len=h),512&n.flags&&(Ee[0]=255&h,Ee[1]=h>>>8&255,n.check=b(n.check,Ee,2,0)),h=0,d=0}else n.head&&(n.head.extra=null)
n.mode=U
case U:if(1024&n.flags&&(m=n.length,m>c&&(m=c),m&&(n.head&&(_e=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),v.arraySet(n.head.extra,i,a,m,_e)),512&n.flags&&(n.check=b(n.check,i,m,a)),c-=m,a+=m,n.length-=m),n.length))break e
n.length=0,n.mode=H
case H:if(2048&n.flags){if(0===c)break e
m=0
do _e=i[a+m++],n.head&&_e&&n.length<65536&&(n.head.name+=String.fromCharCode(_e))
while(_e&&c>m)
if(512&n.flags&&(n.check=b(n.check,i,m,a)),c-=m,a+=m,_e)break e}else n.head&&(n.head.name=null)
n.length=0,n.mode=V
case V:if(4096&n.flags){if(0===c)break e
m=0
do _e=i[a+m++],n.head&&_e&&n.length<65536&&(n.head.comment+=String.fromCharCode(_e))
while(_e&&c>m)
if(512&n.flags&&(n.check=b(n.check,i,m,a)),c-=m,a+=m,_e)break e}else n.head&&(n.head.comment=null)
n.mode=F
case F:if(512&n.flags){for(;16>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}if(h!==(65535&n.check)){e.msg="header crc mismatch",n.mode=fe
break}h=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=W
break
case q:for(;32>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}e.adler=n.check=r(h),h=0,d=0,n.mode=J
case J:if(0===n.havedict)return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=c,n.hold=h,n.bits=d,M
e.adler=n.check=1,n.mode=W
case W:if(t===S||t===E)break e
case Z:if(n.last){h>>>=7&d,d-=7&d,n.mode=ce
break}for(;3>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}switch(n.last=1&h,h>>>=1,d-=1,3&h){case 0:n.mode=K
break
case 1:if(l(n),n.mode=te,t===E){h>>>=2,d-=2
break e}break
case 2:n.mode=Q
break
case 3:e.msg="invalid block type",n.mode=fe}h>>>=2,d-=2
break
case K:for(h>>>=7&d,d-=7&d;32>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}if((65535&h)!==(h>>>16^65535)){e.msg="invalid stored block lengths",n.mode=fe
break}if(n.length=65535&h,h=0,d=0,n.mode=G,t===E)break e
case G:n.mode=Y
case Y:if(m=n.length){if(m>c&&(m=c),m>u&&(m=u),0===m)break e
v.arraySet(o,i,a,m,s),c-=m,a+=m,u-=m,s+=m,n.length-=m
break}n.mode=W
break
case Q:for(;14>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}if(n.nlen=(31&h)+257,h>>>=5,d-=5,n.ndist=(31&h)+1,h>>>=5,d-=5,n.ncode=(15&h)+4,h>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=fe
break}n.have=0,n.mode=X
case X:for(;n.have<n.ncode;){for(;3>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}n.lens[Ae[n.have++]]=7&h,h>>>=3,d-=3}for(;n.have<19;)n.lens[Ae[n.have++]]=0
if(n.lencode=n.lendyn,n.lenbits=7,ke={bits:n.lenbits},xe=w(_,n.lens,0,19,n.lencode,0,n.work,ke),n.lenbits=ke.bits,xe){e.msg="invalid code lengths set",n.mode=fe
break}n.have=0,n.mode=ee
case ee:for(;n.have<n.nlen+n.ndist;){for(;Se=n.lencode[h&(1<<n.lenbits)-1],me=Se>>>24,ve=Se>>>16&255,$e=65535&Se,!(d>=me);){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}if(16>$e)h>>>=me,d-=me,n.lens[n.have++]=$e
else{if(16===$e){for(Ce=me+2;Ce>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}if(h>>>=me,d-=me,0===n.have){e.msg="invalid bit length repeat",n.mode=fe
break}_e=n.lens[n.have-1],m=3+(3&h),h>>>=2,d-=2}else if(17===$e){for(Ce=me+3;Ce>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}h>>>=me,d-=me,_e=0,m=3+(7&h),h>>>=3,d-=3}else{for(Ce=me+7;Ce>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}h>>>=me,d-=me,_e=0,m=11+(127&h),h>>>=7,d-=7}if(n.have+m>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=fe
break}for(;m--;)n.lens[n.have++]=_e}}if(n.mode===fe)break
if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=fe
break}if(n.lenbits=9,ke={bits:n.lenbits},xe=w(x,n.lens,0,n.nlen,n.lencode,0,n.work,ke),n.lenbits=ke.bits,xe){e.msg="invalid literal/lengths set",n.mode=fe
break}if(n.distbits=6,n.distcode=n.distdyn,ke={bits:n.distbits},xe=w(k,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,ke),n.distbits=ke.bits,xe){e.msg="invalid distances set",n.mode=fe
break}if(n.mode=te,t===E)break e
case te:n.mode=ne
case ne:if(c>=6&&u>=258){e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=c,n.hold=h,n.bits=d,y(e,g),s=e.next_out,o=e.output,u=e.avail_out,a=e.next_in,i=e.input,c=e.avail_in,h=n.hold,d=n.bits,n.mode===W&&(n.back=-1)
break}for(n.back=0;Se=n.lencode[h&(1<<n.lenbits)-1],me=Se>>>24,ve=Se>>>16&255,$e=65535&Se,!(d>=me);){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}if(ve&&0===(240&ve)){for(be=me,ye=ve,we=$e;Se=n.lencode[we+((h&(1<<be+ye)-1)>>be)],me=Se>>>24,ve=Se>>>16&255,$e=65535&Se,!(d>=be+me);){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}h>>>=be,d-=be,n.back+=be}if(h>>>=me,d-=me,n.back+=me,n.length=$e,0===ve){n.mode=se
break}if(32&ve){n.back=-1,n.mode=W
break}if(64&ve){e.msg="invalid literal/length code",n.mode=fe
break}n.extra=15&ve,n.mode=re
case re:if(n.extra){for(Ce=n.extra;Ce>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}n.length+=h&(1<<n.extra)-1,h>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ie
case ie:for(;Se=n.distcode[h&(1<<n.distbits)-1],me=Se>>>24,ve=Se>>>16&255,$e=65535&Se,!(d>=me);){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}if(0===(240&ve)){for(be=me,ye=ve,we=$e;Se=n.distcode[we+((h&(1<<be+ye)-1)>>be)],me=Se>>>24,ve=Se>>>16&255,$e=65535&Se,!(d>=be+me);){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}h>>>=be,d-=be,n.back+=be}if(h>>>=me,d-=me,n.back+=me,64&ve){e.msg="invalid distance code",n.mode=fe
break}n.offset=$e,n.extra=15&ve,n.mode=oe
case oe:if(n.extra){for(Ce=n.extra;Ce>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}n.offset+=h&(1<<n.extra)-1,h>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=fe
break}n.mode=ae
case ae:if(0===u)break e
if(m=g-u,n.offset>m){if(m=n.offset-m,m>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=fe
break}m>n.wnext?(m-=n.wnext,pe=n.wsize-m):pe=n.wnext-m,m>n.length&&(m=n.length),ge=n.window}else ge=o,pe=s-n.offset,m=n.length
m>u&&(m=u),u-=m,n.length-=m
do o[s++]=ge[pe++]
while(--m)
0===n.length&&(n.mode=ne)
break
case se:if(0===u)break e
o[s++]=n.length,u--,n.mode=ne
break
case ce:if(n.wrap){for(;32>d;){if(0===c)break e
c--,h|=i[a++]<<d,d+=8}if(g-=u,e.total_out+=g,n.total+=g,g&&(e.adler=n.check=n.flags?b(n.check,o,g,s-g):$(n.check,o,g,s-g)),g=u,(n.flags?h:r(h))!==n.check){e.msg="incorrect data check",n.mode=fe
break}h=0,d=0}n.mode=ue
case ue:if(n.wrap&&n.flags){for(;32>d;){if(0===c)break e
c--,h+=i[a++]<<d,d+=8}if(h!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=fe
break}h=0,d=0}n.mode=le
case le:xe=N
break e
case fe:xe=j
break e
case he:return B
case de:default:return z}return e.next_out=s,e.avail_out=u,e.next_in=a,e.avail_in=c,n.hold=h,n.bits=d,(n.wsize||g!==e.avail_out&&n.mode<fe&&(n.mode<ce||t!==C))&&f(e,e.output,e.next_out,g-e.avail_out)?(n.mode=he,B):(p-=e.avail_in,g-=e.avail_out,e.total_in+=p,e.total_out+=g,n.total+=g,n.wrap&&g&&(e.adler=n.check=n.flags?b(n.check,o,g,e.next_out-g):$(n.check,o,g,e.next_out-g)),e.data_type=n.bits+(n.last?64:0)+(n.mode===W?128:0)+(n.mode===te||n.mode===G?256:0),(0===p&&0===g||t===C)&&xe===A&&(xe=O),xe)}function d(e){if(!e||!e.state)return z
var t=e.state
return t.window&&(t.window=null),e.state=null,A}function p(e,t){var n
return e&&e.state?(n=e.state,0===(2&n.wrap)?z:(n.head=t,t.done=!1,A)):z}var g,m,v=e("../utils/common"),$=e("./adler32"),b=e("./crc32"),y=e("./inffast"),w=e("./inftrees"),_=0,x=1,k=2,C=4,S=5,E=6,A=0,N=1,M=2,z=-2,j=-3,B=-4,O=-5,T=8,I=1,D=2,R=3,P=4,L=5,U=6,H=7,V=8,F=9,q=10,J=11,W=12,Z=13,K=14,G=15,Y=16,Q=17,X=18,ee=19,te=20,ne=21,re=22,ie=23,oe=24,ae=25,se=26,ce=27,ue=28,le=29,fe=30,he=31,de=32,pe=852,ge=592,me=15,ve=me,$e=!0
n.inflateReset=a,n.inflateReset2=s,n.inflateResetKeep=o,n.inflateInit=u,n.inflateInit2=c,n.inflate=h,n.inflateEnd=d,n.inflateGetHeader=p,n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":4,"./adler32":6,"./crc32":8,"./inffast":11,"./inftrees":13}],13:[function(e,t){"use strict"
var n=e("../utils/common"),r=15,i=852,o=592,a=0,s=1,c=2,u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],f=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],h=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]
t.exports=function(e,t,d,p,g,m,v,$){var b,y,w,_,x,k,C,S,E,A=$.bits,N=0,M=0,z=0,j=0,B=0,O=0,T=0,I=0,D=0,R=0,P=null,L=0,U=new n.Buf16(r+1),H=new n.Buf16(r+1),V=null,F=0
for(N=0;r>=N;N++)U[N]=0
for(M=0;p>M;M++)U[t[d+M]]++
for(B=A,j=r;j>=1&&0===U[j];j--);if(B>j&&(B=j),0===j)return g[m++]=20971520,g[m++]=20971520,$.bits=1,0
for(z=1;j>z&&0===U[z];z++);for(z>B&&(B=z),I=1,N=1;r>=N;N++)if(I<<=1,I-=U[N],0>I)return-1
if(I>0&&(e===a||1!==j))return-1
for(H[1]=0,N=1;r>N;N++)H[N+1]=H[N]+U[N]
for(M=0;p>M;M++)0!==t[d+M]&&(v[H[t[d+M]]++]=M)
if(e===a?(P=V=v,k=19):e===s?(P=u,L-=257,V=l,F-=257,k=256):(P=f,V=h,k=-1),R=0,M=0,N=z,x=m,O=B,T=0,w=-1,D=1<<B,_=D-1,e===s&&D>i||e===c&&D>o)return 1
for(var q=0;;){q++,C=N-T,v[M]<k?(S=0,E=v[M]):v[M]>k?(S=V[F+v[M]],E=P[L+v[M]]):(S=96,E=0),b=1<<N-T,y=1<<O,z=y
do y-=b,g[x+(R>>T)+y]=C<<24|S<<16|E|0
while(0!==y)
for(b=1<<N-1;R&b;)b>>=1
if(0!==b?(R&=b-1,R+=b):R=0,M++,0===--U[N]){if(N===j)break
N=t[d+v[M]]}if(N>B&&(R&_)!==w){for(0===T&&(T=B),x+=z,O=N-T,I=1<<O;j>O+T&&(I-=U[O+T],!(0>=I));)O++,I<<=1
if(D+=1<<O,e===s&&D>i||e===c&&D>o)return 1
w=R&_,g[w]=B<<24|O<<16|x-m|0}}return 0!==R&&(g[x+R]=N-T<<24|64<<16|0),$.bits=B,0}},{"../utils/common":4}],14:[function(e,t){"use strict"
t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],15:[function(e,t,n){"use strict"
function r(e){for(var t=e.length;--t>=0;)e[t]=0}function i(e){return 256>e?ae[e]:ae[256+(e>>>7)]}function o(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function a(e,t,n){e.bi_valid>W-n?(e.bi_buf|=t<<e.bi_valid&65535,o(e,e.bi_buf),e.bi_buf=t>>W-e.bi_valid,e.bi_valid+=n-W):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function s(e,t,n){a(e,n[2*t],n[2*t+1])}function c(e,t){var n=0
do n|=1&e,e>>>=1,n<<=1
while(--t>0)
return n>>>1}function u(e){16===e.bi_valid?(o(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function l(e,t){var n,r,i,o,a,s,c=t.dyn_tree,u=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0
for(o=0;J>=o;o++)e.bl_count[o]=0
for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;q>n;n++)r=e.heap[n],o=c[2*c[2*r+1]+1]+1,o>p&&(o=p,g++),c[2*r+1]=o,r>u||(e.bl_count[o]++,a=0,r>=d&&(a=h[r-d]),s=c[2*r],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(l[2*r+1]+a)))
if(0!==g){do{for(o=p-1;0===e.bl_count[o];)o--
e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[p]--,g-=2}while(g>0)
for(o=p;0!==o;o--)for(r=e.bl_count[o];0!==r;)i=e.heap[--n],i>u||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}function f(e,t,n){var r,i,o=Array(J+1),a=0
for(r=1;J>=r;r++)o[r]=a=a+n[r-1]<<1
for(i=0;t>=i;i++){var s=e[2*i+1]
0!==s&&(e[2*i]=c(o[s]++,s))}}function h(){var e,t,n,r,i,o=Array(J+1)
for(n=0,r=0;L-1>r;r++)for(ce[r]=n,e=0;e<1<<X[r];e++)se[n++]=r
for(se[n-1]=r,i=0,r=0;16>r;r++)for(ue[r]=i,e=0;e<1<<ee[r];e++)ae[i++]=r
for(i>>=7;V>r;r++)for(ue[r]=i<<7,e=0;e<1<<ee[r]-7;e++)ae[256+i++]=r
for(t=0;J>=t;t++)o[t]=0
for(e=0;143>=e;)ie[2*e+1]=8,e++,o[8]++
for(;255>=e;)ie[2*e+1]=9,e++,o[9]++
for(;279>=e;)ie[2*e+1]=7,e++,o[7]++
for(;287>=e;)ie[2*e+1]=8,e++,o[8]++
for(f(ie,H+1,o),e=0;V>e;e++)oe[2*e+1]=5,oe[2*e]=c(e,5)
le=new de(ie,X,U+1,H,J),fe=new de(oe,ee,0,V,J),he=new de(Array(0),te,0,F,Z)}function d(e){var t
for(t=0;H>t;t++)e.dyn_ltree[2*t]=0
for(t=0;V>t;t++)e.dyn_dtree[2*t]=0
for(t=0;F>t;t++)e.bl_tree[2*t]=0
e.dyn_ltree[2*K]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function p(e){e.bi_valid>8?o(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function g(e,t,n,r){p(e),r&&(o(e,n),o(e,~n)),M.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function m(e,t,n,r){var i=2*t,o=2*n
return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function v(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&m(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!m(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1
e.heap[n]=r}function $(e,t,n){var r,o,c,u,l=0
if(0!==e.last_lit)do r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],o=e.pending_buf[e.l_buf+l],l++,0===r?s(e,o,t):(c=se[o],s(e,c+U+1,t),u=X[c],0!==u&&(o-=ce[c],a(e,o,u)),r--,c=i(r),s(e,c,n),u=ee[c],0!==u&&(r-=ue[c],a(e,r,u)))
while(l<e.last_lit)
s(e,K,t)}function b(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1
for(e.heap_len=0,e.heap_max=q,n=0;c>n;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0
for(;e.heap_len<2;)i=e.heap[++e.heap_len]=2>u?++u:0,o[2*i]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1])
for(t.max_code=u,n=e.heap_len>>1;n>=1;n--)v(e,o,n)
i=c
do n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],v(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,v(e,o,1)
while(e.heap_len>=2)
e.heap[--e.heap_max]=e.heap[1],l(e,t),f(o,u,e.bl_count)}function y(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,u=4
for(0===a&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;n>=r;r++)i=a,a=t[2*(r+1)+1],++s<c&&i===a||(u>s?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*G]++):10>=s?e.bl_tree[2*Y]++:e.bl_tree[2*Q]++,s=0,o=i,0===a?(c=138,u=3):i===a?(c=6,u=3):(c=7,u=4))}function w(e,t,n){var r,i,o=-1,c=t[1],u=0,l=7,f=4
for(0===c&&(l=138,f=3),r=0;n>=r;r++)if(i=c,c=t[2*(r+1)+1],!(++u<l&&i===c)){if(f>u){do s(e,i,e.bl_tree)
while(0!==--u)}else 0!==i?(i!==o&&(s(e,i,e.bl_tree),u--),s(e,G,e.bl_tree),a(e,u-3,2)):10>=u?(s(e,Y,e.bl_tree),a(e,u-3,3)):(s(e,Q,e.bl_tree),a(e,u-11,7))
u=0,o=i,0===c?(l=138,f=3):i===c?(l=6,f=3):(l=7,f=4)}}function _(e){var t
for(y(e,e.dyn_ltree,e.l_desc.max_code),y(e,e.dyn_dtree,e.d_desc.max_code),b(e,e.bl_desc),t=F-1;t>=3&&0===e.bl_tree[2*ne[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}function x(e,t,n,r){var i
for(a(e,t-257,5),a(e,n-1,5),a(e,r-4,4),i=0;r>i;i++)a(e,e.bl_tree[2*ne[i]+1],3)
w(e,e.dyn_ltree,t-1),w(e,e.dyn_dtree,n-1)}function k(e){var t,n=4093624447
for(t=0;31>=t;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return j
if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return B
for(t=32;U>t;t++)if(0!==e.dyn_ltree[2*t])return B
return j}function C(e){ge||(h(),ge=!0),e.l_desc=new pe(e.dyn_ltree,le),e.d_desc=new pe(e.dyn_dtree,fe),e.bl_desc=new pe(e.bl_tree,he),e.bi_buf=0,e.bi_valid=0,d(e)}function S(e,t,n,r){a(e,(T<<1)+(r?1:0),3),g(e,t,n,!0)}function E(e){a(e,I<<1,3),s(e,K,ie),u(e)}function A(e,t,n,r){var i,o,s=0
e.level>0?(e.strm.data_type===O&&(e.strm.data_type=k(e)),b(e,e.l_desc),b(e,e.d_desc),s=_(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,i>=o&&(i=o)):i=o=n+5,i>=n+4&&-1!==t?S(e,t,n,r):e.strategy===z||o===i?(a(e,(I<<1)+(r?1:0),3),$(e,ie,oe)):(a(e,(D<<1)+(r?1:0),3),x(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),$(e,e.dyn_ltree,e.dyn_dtree)),d(e),r&&p(e)}function N(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(se[n]+U+1)]++,e.dyn_dtree[2*i(t)]++),e.last_lit===e.lit_bufsize-1}var M=e("../utils/common"),z=4,j=0,B=1,O=2,T=0,I=1,D=2,R=3,P=258,L=29,U=256,H=U+1+L,V=30,F=19,q=2*H+1,J=15,W=16,Z=7,K=256,G=16,Y=17,Q=18,X=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ee=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],te=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ne=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],re=512,ie=Array(2*(H+2))
r(ie)
var oe=Array(2*V)
r(oe)
var ae=Array(re)
r(ae)
var se=Array(P-R+1)
r(se)
var ce=Array(L)
r(ce)
var ue=Array(V)
r(ue)
var le,fe,he,de=function(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length},pe=function(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t},ge=!1
n._tr_init=C,n._tr_stored_block=S,n._tr_flush_block=A,n._tr_tally=N,n._tr_align=E},{"../utils/common":4}],16:[function(e,t){"use strict"
function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=n},{}]},{},[1])(1)}),!function(e,t,n,r,i,o,a,s,c){function u(e){var t,n=e.length,i=this,o=0,a=i.i=i.j=0,s=i.S=[]
for(n||(e=[n++]);r>o;)s[o]=o++
for(o=0;r>o;o++)s[o]=s[a=b&a+e[o%n]+(t=s[o])],s[a]=t;(i.g=function(e){for(var t,n=0,o=i.i,a=i.j,s=i.S;e--;)t=s[o=b&o+1],n=n*r+s[b&(s[o]=s[a=b&a+t])+(s[a]=t)]
return i.i=o,i.j=a,n})(r)}function l(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function f(e,t){var n,r=[],i=typeof e
if(t&&"object"==i)for(n in e)try{r.push(f(e[n],t-1))}catch(o){}return r.length?r:"string"==i?e:e+"\x00"}function h(e,t){for(var n,r=e+"",i=0;i<r.length;)t[b&i]=b&(n^=19*t[b&i])+r.charCodeAt(i++)
return p(t)}function d(n){try{return g?p(g.randomBytes(r)):(e.crypto.getRandomValues(n=new Uint8Array(r)),p(n))}catch(i){return[+new Date,e,(n=e.navigator)&&n.plugins,e.screen,p(t)]}}function p(e){return String.fromCharCode.apply(0,e)}var g,m=n.pow(r,i),v=n.pow(2,o),$=2*v,b=r-1,y=n["seed"+c]=function(e,o,a){var s=[]
o=1==o?{entropy:!0}:o||{}
var g=h(f(o.entropy?[e,p(t)]:null==e?d():e,3),s),b=new u(s)
return h(p(b.S),t),(o.pass||a||function(e,t,r,i){return i&&(i.S&&l(i,b),e.state=function(){return l(b,{})}),r?(n[c]=e,t):e})(function(){for(var e=b.g(i),t=m,n=0;v>e;)e=(e+n)*r,t*=r,n=b.g(1)
for(;e>=$;)e/=2,t/=2,n>>>=1
return(e+n)/t},g,"global"in o?o.global:this==n,o.state)}
if(h(n[c](),t),a&&a.exports){a.exports=y
try{g=require("crypto")}catch(w){}}else s&&s.amd&&s(function(){return y})}(this,[],Math,256,6,52,"object"==typeof module&&module,"function"==typeof define&&define,"random")
var CryptoJS=CryptoJS||function(e,t){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(e){i.prototype=this
var t=new i
return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend()
return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])
e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes
if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;e>i;i++)t[r+i>>>2]|=(n[i>>>2]>>>24-8*(i%4)&255)<<24-8*((r+i)%4)
else if(65535<n.length)for(i=0;e>i;i+=4)t[r+i>>>2]=n[i>>>2]
else t.push.apply(t,n)
return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes
t[n>>>2]&=4294967295<<32-8*(n%4),t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this)
return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;t>r;r+=4)n.push(4294967296*e.random()|0)
return new a.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){var t=e.words
e=e.sigBytes
for(var n=[],r=0;e>r;r++){var i=t[r>>>2]>>>24-8*(r%4)&255
n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-4*(r%8)
return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words
e=e.sigBytes
for(var n=[],r=0;e>r;r++)n.push(String.fromCharCode(t[r>>>2]>>>24-8*(r%4)&255))
return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-8*(r%4)
return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0)
if(t=s*o,i=e.min(4*t,i),t){for(var c=0;t>c;c+=o)this._doProcessBlock(r,c)
c=r.splice(0,t),n.sigBytes-=i}return new a.init(c,i)},clone:function(){var e=o.clone.call(this)
return e._data=this._data.clone(),e},_minBufferSize:0})
r.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}})
var h=n.algo={}
return n}(Math)
!function(){var e=CryptoJS,t=e.lib.WordArray
e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map
e.clamp(),e=[]
for(var i=0;n>i;i+=3)for(var o=(t[i>>>2]>>>24-8*(i%4)&255)<<16|(t[i+1>>>2]>>>24-8*((i+1)%4)&255)<<8|t[i+2>>>2]>>>24-8*((i+2)%4)&255,a=0;4>a&&n>i+.75*a;a++)e.push(r.charAt(o>>>6*(3-a)&63))
if(t=r.charAt(64))for(;e.length%4;)e.push(t)
return e.join("")},parse:function(e){var n=e.length,r=this._map,i=r.charAt(64)
i&&(i=e.indexOf(i),-1!=i&&(n=i))
for(var i=[],o=0,a=0;n>a;a++)if(a%4){var s=r.indexOf(e.charAt(a-1))<<2*(a%4),c=r.indexOf(e.charAt(a))>>>6-2*(a%4)
i[o>>>2]|=(s|c)<<24-8*(o%4),o++}return t.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){function t(e,t,n,r,i,o,a){return e=e+(t&n|~t&r)+i+a,(e<<o|e>>>32-o)+t}function n(e,t,n,r,i,o,a){return e=e+(t&r|n&~r)+i+a,(e<<o|e>>>32-o)+t}function r(e,t,n,r,i,o,a){return e=e+(t^n^r)+i+a,(e<<o|e>>>32-o)+t}function i(e,t,n,r,i,o,a){return e=e+(n^(t|~r))+i+a,(e<<o|e>>>32-o)+t}for(var o=CryptoJS,a=o.lib,s=a.WordArray,c=a.Hasher,a=o.algo,u=[],l=0;64>l;l++)u[l]=4294967296*e.abs(e.sin(l+1))|0
a=a.MD5=c.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,o){for(var a=0;16>a;a++){var s=o+a,c=e[s]
e[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var a=this._hash.words,s=e[o+0],c=e[o+1],l=e[o+2],f=e[o+3],h=e[o+4],d=e[o+5],p=e[o+6],g=e[o+7],m=e[o+8],v=e[o+9],$=e[o+10],b=e[o+11],y=e[o+12],w=e[o+13],_=e[o+14],x=e[o+15],k=a[0],C=a[1],S=a[2],E=a[3],k=t(k,C,S,E,s,7,u[0]),E=t(E,k,C,S,c,12,u[1]),S=t(S,E,k,C,l,17,u[2]),C=t(C,S,E,k,f,22,u[3]),k=t(k,C,S,E,h,7,u[4]),E=t(E,k,C,S,d,12,u[5]),S=t(S,E,k,C,p,17,u[6]),C=t(C,S,E,k,g,22,u[7]),k=t(k,C,S,E,m,7,u[8]),E=t(E,k,C,S,v,12,u[9]),S=t(S,E,k,C,$,17,u[10]),C=t(C,S,E,k,b,22,u[11]),k=t(k,C,S,E,y,7,u[12]),E=t(E,k,C,S,w,12,u[13]),S=t(S,E,k,C,_,17,u[14]),C=t(C,S,E,k,x,22,u[15]),k=n(k,C,S,E,c,5,u[16]),E=n(E,k,C,S,p,9,u[17]),S=n(S,E,k,C,b,14,u[18]),C=n(C,S,E,k,s,20,u[19]),k=n(k,C,S,E,d,5,u[20]),E=n(E,k,C,S,$,9,u[21]),S=n(S,E,k,C,x,14,u[22]),C=n(C,S,E,k,h,20,u[23]),k=n(k,C,S,E,v,5,u[24]),E=n(E,k,C,S,_,9,u[25]),S=n(S,E,k,C,f,14,u[26]),C=n(C,S,E,k,m,20,u[27]),k=n(k,C,S,E,w,5,u[28]),E=n(E,k,C,S,l,9,u[29]),S=n(S,E,k,C,g,14,u[30]),C=n(C,S,E,k,y,20,u[31]),k=r(k,C,S,E,d,4,u[32]),E=r(E,k,C,S,m,11,u[33]),S=r(S,E,k,C,b,16,u[34]),C=r(C,S,E,k,_,23,u[35]),k=r(k,C,S,E,c,4,u[36]),E=r(E,k,C,S,h,11,u[37]),S=r(S,E,k,C,g,16,u[38]),C=r(C,S,E,k,$,23,u[39]),k=r(k,C,S,E,w,4,u[40]),E=r(E,k,C,S,s,11,u[41]),S=r(S,E,k,C,f,16,u[42]),C=r(C,S,E,k,p,23,u[43]),k=r(k,C,S,E,v,4,u[44]),E=r(E,k,C,S,y,11,u[45]),S=r(S,E,k,C,x,16,u[46]),C=r(C,S,E,k,l,23,u[47]),k=i(k,C,S,E,s,6,u[48]),E=i(E,k,C,S,g,10,u[49]),S=i(S,E,k,C,_,15,u[50]),C=i(C,S,E,k,d,21,u[51]),k=i(k,C,S,E,y,6,u[52]),E=i(E,k,C,S,f,10,u[53]),S=i(S,E,k,C,$,15,u[54]),C=i(C,S,E,k,c,21,u[55]),k=i(k,C,S,E,m,6,u[56]),E=i(E,k,C,S,x,10,u[57]),S=i(S,E,k,C,p,15,u[58]),C=i(C,S,E,k,w,21,u[59]),k=i(k,C,S,E,h,6,u[60]),E=i(E,k,C,S,b,10,u[61]),S=i(S,E,k,C,l,15,u[62]),C=i(C,S,E,k,v,21,u[63])
a[0]=a[0]+k|0,a[1]=a[1]+C|0,a[2]=a[2]+S|0,a[3]=a[3]+E|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes
n[i>>>5]|=128<<24-i%32
var o=e.floor(r/4294967296)
for(n[(i+64>>>9<<4)+15]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[(i+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process(),t=this._hash,n=t.words,r=0;4>r;r++)i=n[r],n[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)
return t},clone:function(){var e=c.clone.call(this)
return e._hash=this._hash.clone(),e}}),o.MD5=c._createHelper(a),o.HmacMD5=c._createHmacHelper(a)}(Math),function(){var e=CryptoJS,t=e.lib,n=t.Base,r=t.WordArray,t=e.algo,i=t.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=n.hasher.create(),o=r.create(),a=o.words,s=n.keySize,n=n.iterations;a.length<s;){c&&i.update(c)
var c=i.update(e).finalize(t)
i.reset()
for(var u=1;n>u;u++)c=i.finalize(c),i.reset()
o.concat(c)}return o.sigBytes=4*s,o}})
e.EvpKDF=function(e,t,n){return i.create(n).compute(e,t)}}(),CryptoJS.lib.Cipher||function(e){var t=CryptoJS,n=t.lib,r=n.Base,i=n.WordArray,o=n.BufferedBlockAlgorithm,a=t.enc.Base64,s=t.algo.EvpKDF,c=n.Cipher=o.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,r){return("string"==typeof n?p:d).encrypt(e,t,n,r)},decrypt:function(t,n,r){return("string"==typeof n?p:d).decrypt(e,t,n,r)}}}})
n.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1})
var u=t.mode={},l=function(t,n,r){var i=this._iv
i?this._iv=e:i=this._prevBlock
for(var o=0;r>o;o++)t[n+o]^=i[o]},f=(n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend()
f.Encryptor=f.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize
l.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),f.Decryptor=f.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=e.slice(t,t+r)
n.decryptBlock(e,t),l.call(this,e,t,r),this._prevBlock=i}}),u=u.CBC=f,f=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,n=n-e.sigBytes%n,r=n<<24|n<<16|n<<8|n,o=[],a=0;n>a;a+=4)o.push(r)
n=i.create(o,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},n.BlockCipher=c.extend({cfg:c.cfg.extend({mode:u,padding:f}),reset:function(){c.reset.call(this)
var e=this.cfg,t=e.iv,e=e.mode
if(this._xformMode==this._ENC_XFORM_MODE)var n=e.createEncryptor
else n=e.createDecryptor,this._minBufferSize=1
this._mode=n.call(e,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding
if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize)
var t=this._process(!0)}else t=this._process(!0),e.unpad(t)
return t},blockSize:4})
var h=n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),u=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext
return e=e.salt,(e?i.create([1398893684,1701076831]).concat(e).concat(t):t).toString(a)},parse:function(e){e=a.parse(e)
var t=e.words
if(1398893684==t[0]&&1701076831==t[1]){var n=i.create(t.slice(2,4))
t.splice(0,4),e.sigBytes-=16}return h.create({ciphertext:e,salt:n})}},d=n.SerializableCipher=r.extend({cfg:r.extend({format:u}),encrypt:function(e,t,n,r){r=this.cfg.extend(r)
var i=e.createEncryptor(n,r)
return t=i.finalize(t),i=i.cfg,h.create({ciphertext:t,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),t=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){return r||(r=i.random(8)),e=s.create({keySize:t+n}).compute(e,r),n=i.create(e.words.slice(t),4*n),e.sigBytes=4*t,h.create({key:e,iv:n,salt:r})}},p=n.PasswordBasedCipher=d.extend({cfg:d.cfg.extend({kdf:t}),encrypt:function(e,t,n,r){return r=this.cfg.extend(r),n=r.kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,e=d.encrypt.call(this,e,t,n.key,r),e.mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,d.decrypt.call(this,e,t,n.key,r)}})}(),function(){for(var e=CryptoJS,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],o=[],a=[],s=[],c=[],u=[],l=[],f=[],h=[],d=[],p=0;256>p;p++)d[p]=128>p?p<<1:p<<1^283
for(var g=0,m=0,p=0;256>p;p++){var v=m^m<<1^m<<2^m<<3^m<<4,v=v>>>8^255&v^99
r[g]=v,i[v]=g
var $=d[g],b=d[$],y=d[b],w=257*d[v]^16843008*v
o[g]=w<<24|w>>>8,a[g]=w<<16|w>>>16,s[g]=w<<8|w>>>24,c[g]=w,w=16843009*y^65537*b^257*$^16843008*g,u[v]=w<<24|w>>>8,l[v]=w<<16|w>>>16,f[v]=w<<8|w>>>24,h[v]=w,g?(g=$^d[d[d[y^$]]],m^=d[d[m]]):g=m=1}var _=[0,1,2,4,8,16,32,64,128,27,54],n=n.AES=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes/4,e=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],o=0;e>o;o++)if(n>o)i[o]=t[o]
else{var a=i[o-1]
o%n?n>6&&4==o%n&&(a=r[a>>>24]<<24|r[a>>>16&255]<<16|r[a>>>8&255]<<8|r[255&a]):(a=a<<8|a>>>24,a=r[a>>>24]<<24|r[a>>>16&255]<<16|r[a>>>8&255]<<8|r[255&a],a^=_[o/n|0]<<24),i[o]=i[o-n]^a}for(t=this._invKeySchedule=[],n=0;e>n;n++)o=e-n,a=n%4?i[o]:i[o-4],t[n]=4>n||4>=o?a:u[r[a>>>24]]^l[r[a>>>16&255]]^f[r[a>>>8&255]]^h[r[255&a]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,o,a,s,c,r)},decryptBlock:function(e,t){var n=e[t+1]
e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,l,f,h,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var c=this._nRounds,u=e[t]^n[0],l=e[t+1]^n[1],f=e[t+2]^n[2],h=e[t+3]^n[3],d=4,p=1;c>p;p++)var g=r[u>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&h]^n[d++],m=r[l>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&u]^n[d++],v=r[f>>>24]^i[h>>>16&255]^o[u>>>8&255]^a[255&l]^n[d++],h=r[h>>>24]^i[u>>>16&255]^o[l>>>8&255]^a[255&f]^n[d++],u=g,l=m,f=v
g=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^n[d++],m=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^n[d++],v=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^n[d++],h=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^n[d++],e[t]=g,e[t+1]=m,e[t+2]=v,e[t+3]=h},keySize:8})
e.AES=t._createHelper(n)}()
var CryptoJS=CryptoJS||function(e,t){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(e){i.prototype=this
var t=new i
return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend()
return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])
e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes
if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;e>i;i++)t[r+i>>>2]|=(n[i>>>2]>>>24-8*(i%4)&255)<<24-8*((r+i)%4)
else if(65535<n.length)for(i=0;e>i;i+=4)t[r+i>>>2]=n[i>>>2]
else t.push.apply(t,n)
return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes
t[n>>>2]&=4294967295<<32-8*(n%4),t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this)
return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;t>r;r+=4)n.push(4294967296*e.random()|0)
return new a.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){var t=e.words
e=e.sigBytes
for(var n=[],r=0;e>r;r++){var i=t[r>>>2]>>>24-8*(r%4)&255
n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-4*(r%8)
return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words
e=e.sigBytes
for(var n=[],r=0;e>r;r++)n.push(String.fromCharCode(t[r>>>2]>>>24-8*(r%4)&255))
return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-8*(r%4)
return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0)
if(t=s*o,i=e.min(4*t,i),t){for(var c=0;t>c;c+=o)this._doProcessBlock(r,c)
c=r.splice(0,t),n.sigBytes-=i}return new a.init(c,i)},clone:function(){var e=o.clone.call(this)
return e._data=this._data.clone(),e},_minBufferSize:0})
r.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}})
var h=n.algo={}
return n}(Math)
!function(e){for(var t=CryptoJS,n=t.lib,r=n.WordArray,i=n.Hasher,n=t.algo,o=[],a=[],s=function(e){return 4294967296*(e-(0|e))|0},c=2,u=0;64>u;){var l
e:{l=c
for(var f=e.sqrt(l),h=2;f>=h;h++)if(!(l%h)){l=!1
break e}l=!0}l&&(8>u&&(o[u]=s(e.pow(c,.5))),a[u]=s(e.pow(c,1/3)),u++),c++}var d=[],n=n.SHA256=i.extend({_doReset:function(){this._hash=new r.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],c=n[4],u=n[5],l=n[6],f=n[7],h=0;64>h;h++){if(16>h)d[h]=0|e[t+h]
else{var p=d[h-15],g=d[h-2]
d[h]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+d[h-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+d[h-16]}p=f+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+a[h]+d[h],g=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&o^i&o),f=l,l=u,u=c,c=s+p|0,s=o,o=i,i=r,r=p+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0,n[5]=n[5]+u|0,n[6]=n[6]+l|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes
return n[i>>>5]|=128<<24-i%32,n[(i+64>>>9<<4)+14]=e.floor(r/4294967296),n[(i+64>>>9<<4)+15]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this)
return e._hash=this._hash.clone(),e}})
t.SHA256=i._createHelper(n),t.HmacSHA256=i._createHmacHelper(n)}(Math)
var CryptoJS=CryptoJS||function(e,t){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(e){i.prototype=this
var t=new i
return e&&t.mixIn(e),t.hasOwnProperty("init")||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend()
return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])
e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes
if(e=e.sigBytes,this.clamp(),r%4)for(var i=0;e>i;i++)t[r+i>>>2]|=(n[i>>>2]>>>24-8*(i%4)&255)<<24-8*((r+i)%4)
else if(65535<n.length)for(i=0;e>i;i+=4)t[r+i>>>2]=n[i>>>2]
else t.push.apply(t,n)
return this.sigBytes+=e,this},clamp:function(){var t=this.words,n=this.sigBytes
t[n>>>2]&=4294967295<<32-8*(n%4),t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this)
return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;t>r;r+=4)n.push(4294967296*e.random()|0)
return new a.init(n,t)}}),s=n.enc={},c=s.Hex={stringify:function(e){var t=e.words
e=e.sigBytes
for(var n=[],r=0;e>r;r++){var i=t[r>>>2]>>>24-8*(r%4)&255
n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-4*(r%8)
return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){var t=e.words
e=e.sigBytes
for(var n=[],r=0;e>r;r++)n.push(String.fromCharCode(t[r>>>2]>>>24-8*(r%4)&255))
return n.join("")},parse:function(e){for(var t=e.length,n=[],r=0;t>r;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-8*(r%4)
return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0)
if(t=s*o,i=e.min(4*t,i),t){for(var c=0;t>c;c+=o)this._doProcessBlock(r,c)
c=r.splice(0,t),n.sigBytes-=i}return new a.init(c,i)},clone:function(){var e=o.clone.call(this)
return e._data=this._data.clone(),e},_minBufferSize:0})
r.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}})
var h=n.algo={}
return n}(Math)
!function(){var e=CryptoJS,t=e.lib,n=t.WordArray,r=t.Hasher,t=e.algo,i=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),a=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),s=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]),t=t.RIPEMD160=r.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;16>n;n++){var r=t+n,l=e[r]
e[r]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}var f,h,d,p,g,m,v,$,b,y,r=this._hash.words,l=c.words,w=u.words,_=i.words,x=o.words,k=a.words,C=s.words
m=f=r[0],v=h=r[1],$=d=r[2],b=p=r[3],y=g=r[4]
for(var S,n=0;80>n;n+=1)S=f+e[t+_[n]]|0,S=16>n?S+((h^d^p)+l[0]):32>n?S+((h&d|~h&p)+l[1]):48>n?S+(((h|~d)^p)+l[2]):64>n?S+((h&p|d&~p)+l[3]):S+((h^(d|~p))+l[4]),S|=0,S=S<<k[n]|S>>>32-k[n],S=S+g|0,f=g,g=p,p=d<<10|d>>>22,d=h,h=S,S=m+e[t+x[n]]|0,S=16>n?S+((v^($|~b))+w[0]):32>n?S+((v&b|$&~b)+w[1]):48>n?S+(((v|~$)^b)+w[2]):64>n?S+((v&$|~v&b)+w[3]):S+((v^$^b)+w[4]),S|=0,S=S<<C[n]|S>>>32-C[n],S=S+y|0,m=y,y=b,b=$<<10|$>>>22,$=v,v=S
S=r[1]+d+b|0,r[1]=r[2]+p+y|0,r[2]=r[3]+g+m|0,r[3]=r[4]+f+v|0,r[4]=r[0]+h+$|0,r[0]=S},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes
for(t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process(),e=this._hash,t=e.words,n=0;5>n;n++)r=t[n],t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)
return e},clone:function(){var e=r.clone.call(this)
return e._hash=this._hash.clone(),e}})
e.RIPEMD160=r._createHelper(t),e.HmacRIPEMD160=r._createHmacHelper(t)}(Math),!function(e){"undefined"!=typeof exports?e(exports):(window.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return window.hljs}))}(function(e){function t(e){return e.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function n(e){return e.nodeName.toLowerCase()}function r(e,t){var n=e&&e.exec(t)
return n&&0==n.index}function i(e){var t=(e.className+" "+(e.parentNode?e.parentNode.className:"")).split(/\s+/)
return t=t.map(function(e){return e.replace(/^lang(uage)?-/,"")}),t.filter(function(e){return b(e)||/no(-?)highlight/.test(e)})[0]}function o(e,t){var n={}
for(var r in e)n[r]=e[r]
if(t)for(var r in t)n[r]=t[r]
return n}function a(e){var t=[]
return function r(e,i){for(var o=e.firstChild;o;o=o.nextSibling)3==o.nodeType?i+=o.nodeValue.length:1==o.nodeType&&(t.push({event:"start",offset:i,node:o}),i=r(o,i),n(o).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:o}))
return i}(e,0),t}function s(e,r,i){function o(){return e.length&&r.length?e[0].offset!=r[0].offset?e[0].offset<r[0].offset?e:r:"start"==r[0].event?e:r:e.length?e:r}function a(e){function r(e){return" "+e.nodeName+'="'+t(e.value)+'"'}l+="<"+n(e)+Array.prototype.map.call(e.attributes,r).join("")+">"}function s(e){l+="</"+n(e)+">"}function c(e){("start"==e.event?a:s)(e.node)}for(var u=0,l="",f=[];e.length||r.length;){var h=o()
if(l+=t(i.substr(u,h[0].offset-u)),u=h[0].offset,h==e){f.reverse().forEach(s)
do c(h.splice(0,1)[0]),h=o()
while(h==e&&h.length&&h[0].offset==u)
f.reverse().forEach(a)}else"start"==h[0].event?f.push(h[0].node):f.pop(),c(h.splice(0,1)[0])}return l+t(i.substr(u))}function c(e){function t(e){return e&&e.source||e}function n(n,r){return RegExp(t(n),"m"+(e.cI?"i":"")+(r?"g":""))}function r(i,a){if(!i.compiled){if(i.compiled=!0,i.k=i.k||i.bK,i.k){var s={},c=function(t,n){e.cI&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|")
s[n[0]]=[t,n[1]?+n[1]:1]})}
"string"==typeof i.k?c("keyword",i.k):Object.keys(i.k).forEach(function(e){c(e,i.k[e])}),i.k=s}i.lR=n(i.l||/\b[A-Za-z0-9_]+\b/,!0),a&&(i.bK&&(i.b="\\b("+i.bK.split(" ").join("|")+")\\b"),i.b||(i.b=/\B|\b/),i.bR=n(i.b),i.e||i.eW||(i.e=/\B|\b/),i.e&&(i.eR=n(i.e)),i.tE=t(i.e)||"",i.eW&&a.tE&&(i.tE+=(i.e?"|":"")+a.tE)),i.i&&(i.iR=n(i.i)),void 0===i.r&&(i.r=1),i.c||(i.c=[])
var u=[]
i.c.forEach(function(e){e.v?e.v.forEach(function(t){u.push(o(e,t))}):u.push("self"==e?i:e)}),i.c=u,i.c.forEach(function(e){r(e,i)}),i.starts&&r(i.starts,a)
var l=i.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([i.tE,i.i]).map(t).filter(Boolean)
i.t=l.length?n(l.join("|"),!0):{exec:function(){return null}}}}r(e)}function u(e,n,i,o){function a(e,t){for(var n=0;n<t.c.length;n++)if(r(t.c[n].bR,e))return t.c[n]}function s(e,t){return r(e.eR,t)?e:e.eW?s(e.parent,t):void 0}function f(e,t){return!i&&r(t.iR,e)}function h(e,t){var n=_.cI?t[0].toLowerCase():t[0]
return e.k.hasOwnProperty(n)&&e.k[n]}function d(e,t,n,r){var i=r?"":y.classPrefix,o='<span class="'+i,a=n?"":"</span>"
return o+=e+'">',o+t+a}function p(){if(!x.k)return t(E)
var e="",n=0
x.lR.lastIndex=0
for(var r=x.lR.exec(E);r;){e+=t(E.substr(n,r.index-n))
var i=h(x,r)
i?(A+=i[1],e+=d(i[0],t(r[0]))):e+=t(r[0]),n=x.lR.lastIndex,r=x.lR.exec(E)}return e+t(E.substr(n))}function g(){if(x.sL&&!w[x.sL])return t(E)
var e=x.sL?u(x.sL,E,!0,k[x.sL]):l(E)
return x.r>0&&(A+=e.r),"continuous"==x.subLanguageMode&&(k[x.sL]=e.top),d(e.language,e.value,!1,!0)}function m(){return void 0!==x.sL?g():p()}function v(e,n){var r=e.cN?d(e.cN,"",!0):""
e.rB?(C+=r,E=""):e.eB?(C+=t(n)+r,E=""):(C+=r,E=n),x=Object.create(e,{parent:{value:x}})}function $(e,n){if(E+=e,void 0===n)return C+=m(),0
var r=a(n,x)
if(r)return C+=m(),v(r,n),r.rB?0:n.length
var i=s(x,n)
if(i){var o=x
o.rE||o.eE||(E+=n),C+=m()
do x.cN&&(C+="</span>"),A+=x.r,x=x.parent
while(x!=i.parent)
return o.eE&&(C+=t(n)),E="",i.starts&&v(i.starts,""),o.rE?0:n.length}if(f(n,x))throw Error('Illegal lexeme "'+n+'" for mode "'+(x.cN||"<unnamed>")+'"')
return E+=n,n.length||1}var _=b(e)
if(!_)throw Error('Unknown language: "'+e+'"')
c(_)
for(var x=o||_,k={},C="",S=x;S!=_;S=S.parent)S.cN&&(C=d(S.cN,"",!0)+C)
var E="",A=0
try{for(var N,M,z=0;x.t.lastIndex=z,N=x.t.exec(n),N;)M=$(n.substr(z,N.index-z),N[0]),z=N.index+M
$(n.substr(z))
for(var S=x;S.parent;S=S.parent)S.cN&&(C+="</span>")
return{r:A,value:C,language:e,top:x}}catch(j){if(-1!=j.message.indexOf("Illegal"))return{r:0,value:t(n)}
throw j}}function l(e,n){n=n||y.languages||Object.keys(w)
var r={r:0,value:t(e)},i=r
return n.forEach(function(t){if(b(t)){var n=u(t,e,!1)
n.language=t,n.r>i.r&&(i=n),n.r>r.r&&(i=r,r=n)}}),i.language&&(r.second_best=i),r}function f(e){return y.tabReplace&&(e=e.replace(/^((<[^>]+>|\t)+)/gm,function(e,t){return t.replace(/\t/g,y.tabReplace)})),y.useBR&&(e=e.replace(/\n/g,"<br>")),e}function h(e,t,n){var r=t?_[t]:n,i=[e.trim()]
return e.match(/(\s|^)hljs(\s|$)/)||i.push("hljs"),r&&i.push(r),i.join(" ").trim()}function d(e){var t=i(e)
if(!/no(-?)highlight/.test(t)){var n
y.useBR?(n=document.createElementNS("http://www.w3.org/1999/xhtml","div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):n=e
var r=n.textContent,o=t?u(t,r,!0):l(r),c=a(n)
if(c.length){var d=document.createElementNS("http://www.w3.org/1999/xhtml","div")
d.innerHTML=o.value,o.value=s(c,a(d),r)}o.value=f(o.value),e.innerHTML=o.value,e.className=h(e.className,t,o.language),e.result={language:o.language,re:o.r},o.second_best&&(e.second_best={language:o.second_best.language,re:o.second_best.r})}}function p(e){y=o(y,e)}function g(){if(!g.called){g.called=!0
var e=document.querySelectorAll("pre code")
Array.prototype.forEach.call(e,d)}}function m(){addEventListener("DOMContentLoaded",g,!1),addEventListener("load",g,!1)}function v(t,n){var r=w[t]=n(e)
r.aliases&&r.aliases.forEach(function(e){_[e]=t})}function $(){return Object.keys(w)}function b(e){return w[e]||w[_[e]]}var y={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},w={},_={}
return e.highlight=u,e.highlightAuto=l,e.fixMarkup=f,e.highlightBlock=d,e.configure=p,e.initHighlighting=g,e.initHighlightingOnLoad=m,e.registerLanguage=v,e.listLanguages=$,e.getLanguage=b,e.inherit=o,e.IR="[a-zA-Z][a-zA-Z0-9_]*",e.UIR="[a-zA-Z_][a-zA-Z0-9_]*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such)\b/},e.CLCM={cN:"comment",b:"//",e:"$",c:[e.PWM]},e.CBCM={cN:"comment",b:"/\\*",e:"\\*/",c:[e.PWM]},e.HCM={cN:"comment",b:"#",e:"$",c:[e.PWM]},e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e}),hljs.registerLanguage("apache",function(e){var t={cN:"number",b:"[\\$%]\\d+"}
return{aliases:["apacheconf"],cI:!0,c:[e.HCM,{cN:"tag",b:"</?",e:">"},{cN:"keyword",b:/\w+/,r:0,k:{common:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{e:/$/,r:0,k:{literal:"on off all"},c:[{cN:"sqbracket",b:"\\s\\[",e:"\\]$"},{cN:"cbracket",b:"[\\$%]\\{",e:"\\}",c:["self",t]},t,e.QSM]}}],i:/\S/}}),hljs.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)\}/}]},n={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]},r={cN:"string",b:/'/,e:/'/}
return{aliases:["sh","zsh"],l:/-?[a-z\.]+/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",operator:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"shebang",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,e.NM,n,r,t]}}),hljs.registerLanguage("coffeescript",function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",reserved:"case default function var void with const let enum export import native __hasProp __extends __slice __bind __indexOf",built_in:"npm require console print module global window document"},n="[A-Za-z$_][0-9A-Za-z$_]*",r={cN:"subst",b:/#\{/,e:/}/,k:t},i=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\s*/)?",r:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,r]},{b:/"/,e:/"/,c:[e.BE,r]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[r,e.HCM]},{b:"//[gim]*",r:0},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{cN:"property",b:"@"+n},{b:"`",e:"`",eB:!0,eE:!0,sL:"javascript"}]
r.c=i
var o=e.inherit(e.TM,{b:n}),a="(\\(.*\\))?\\s*\\B[-=]>",s={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:t,c:["self"].concat(i)}]}
return{aliases:["coffee","cson","iced"],k:t,i:/\/\*/,c:i.concat([{cN:"comment",b:"###",e:"###",c:[e.PWM]},e.HCM,{cN:"function",b:"^\\s*"+n+"\\s*=\\s*"+a,e:"[-=]>",rB:!0,c:[o,s]},{b:/[:\(,=]\s*/,r:0,c:[{cN:"function",b:a,e:"[-=]>",rB:!0,c:[s]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[o]},o]},{cN:"attribute",b:n+":",e:":",rB:!0,rE:!0,r:0}])}}),hljs.registerLanguage("cpp",function(e){var t={keyword:"false int float while private char catch export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using true class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue wchar_t inline delete alignof char16_t char32_t constexpr decltype noexcept nullptr static_assert thread_local restrict _Bool complex _Complex _Imaginaryintmax_t uintmax_t int8_t uint8_t int16_t uint16_t int32_t uint32_t int64_t uint64_tint_least8_t uint_least8_t int_least16_t uint_least16_t int_least32_t uint_least32_tint_least64_t uint_least64_t int_fast8_t uint_fast8_t int_fast16_t uint_fast16_t int_fast32_tuint_fast32_t int_fast64_t uint_fast64_t intptr_t uintptr_t atomic_bool atomic_char atomic_scharatomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llongatomic_ullong atomic_wchar_t atomic_char16_t atomic_char32_t atomic_intmax_t atomic_uintmax_tatomic_intptr_t atomic_uintptr_t atomic_size_t atomic_ptrdiff_t atomic_int_least8_t atomic_int_least16_tatomic_int_least32_t atomic_int_least64_t atomic_uint_least8_t atomic_uint_least16_t atomic_uint_least32_tatomic_uint_least64_t atomic_int_fast8_t atomic_int_fast16_t atomic_int_fast32_t atomic_int_fast64_tatomic_uint_fast8_t atomic_uint_fast16_t atomic_uint_fast32_t atomic_uint_fast64_t",built_in:"std string cin cout cerr clog stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf"}
return{aliases:["c","h","c++","h++"],k:t,i:"</",c:[e.CLCM,e.CBCM,e.QSM,{cN:"string",b:"'\\\\?.",e:"'",i:"."},{cN:"number",b:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},e.CNM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line pragma",c:[{b:'include\\s*[<"]',e:'[>"]',k:"include",i:"\\n"},e.CLCM]},{cN:"stl_container",b:"\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",e:">",k:t,c:["self"]},{b:e.IR+"::"},{bK:"new throw return",r:0},{cN:"function",b:"("+e.IR+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:t,r:0,c:[e.CBCM]},e.CLCM,e.CBCM]}]}}),hljs.registerLanguage("cs",function(e){var t="abstract as base bool break byte case catch char checked const continue decimal default delegate do double else enum event explicit extern false finally fixed float for foreach goto if implicit in int interface internal is lock long null object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this true try typeof uint ulong unchecked unsafe ushort using virtual volatile void while async protected public private internal ascending descending from get group into join let orderby partial select set value var where yield",n=e.IR+"(<"+e.IR+">)?"
return{aliases:["csharp"],k:t,i:/::/,c:[{cN:"comment",b:"///",e:"$",rB:!0,c:[{cN:"xmlDocTag",v:[{b:"///",r:0},{b:"<!--|-->"},{b:"</?",e:">"}]}]},e.CLCM,e.CBCM,{cN:"preprocessor",b:"#",e:"$",k:"if else elif endif define undef warning error line region endregion pragma checksum"},{cN:"string",b:'@"',e:'"',c:[{b:'""'}]},e.ASM,e.QSM,e.CNM,{bK:"class namespace interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"new return throw await",r:0},{cN:"function",b:"("+n+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:t,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}}),hljs.registerLanguage("css",function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",n={cN:"function",b:t+"\\(",rB:!0,eE:!0,e:"\\("}
return{cI:!0,i:"[=/|']",c:[e.CBCM,{cN:"id",b:"\\#[A-Za-z0-9_-]+"},{cN:"class",b:"\\.[A-Za-z0-9_-]+",r:0},{cN:"attr_selector",b:"\\[",e:"\\]",i:"$"},{cN:"pseudo",b:":(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\\\"\\']+"},{cN:"at_rule",b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{cN:"at_rule",b:"@",e:"[{;]",c:[{cN:"keyword",b:/\S+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[n,e.ASM,e.QSM,e.CSSNM]}]},{cN:"tag",b:t,r:0},{cN:"rules",b:"{",e:"}",i:"[^\\s]",r:0,c:[e.CBCM,{cN:"rule",b:"[^\\s]",rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:"[A-Z\\_\\.\\-]+",e:":",eE:!0,i:"[^\\s]",starts:{cN:"value",eW:!0,eE:!0,c:[n,e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"hexcolor",b:"#[0-9A-Fa-f]+"},{cN:"important",b:"!important"}]}}]}]}]}}),hljs.registerLanguage("diff",function(){return{aliases:["patch"],c:[{cN:"chunk",r:10,v:[{b:/^\@\@ +\-\d+,\d+ +\+\d+,\d+ +\@\@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"header",v:[{b:/Index: /,e:/$/},{b:/=====/,e:/=====$/},{b:/^\-\-\-/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+\+\+/,e:/$/},{b:/\*{5}/,e:/\*{5}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"change",b:"^\\!",e:"$"}]}}),hljs.registerLanguage("http",function(){return{i:"\\S",c:[{cN:"status",b:"^HTTP/[0-9\\.]+",e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{cN:"request",b:"^[A-Z]+ (.*?) HTTP/[0-9\\.]+$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0}]},{cN:"attribute",b:"^\\w",e:":\t",eE:!0,i:"\\n|\\s|=",starts:{cN:"string",e:"$"}},{b:"\\n\\n",starts:{sL:"",eW:!0}}]}}),hljs.registerLanguage("ini",function(e){return{cI:!0,i:/\S/,c:[{cN:"comment",b:";",e:"$"},{cN:"title",b:"^\\[",e:"\\]"},{cN:"setting",b:"^[a-z0-9\\[\\]_-]+[ \\t]*=[ \\t]*",e:"$",c:[{cN:"value",eW:!0,k:"on off true false yes no",c:[e.QSM,e.NM],r:0}]}]}}),hljs.registerLanguage("java",function(e){var t=e.UIR+"(<"+e.UIR+">)?",n="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",r="(\\b(0b[01_]+)|\\b0[xX][a-fA-F0-9_]+|(\\b[\\d_]+(\\.[\\d_]*)?|\\.[\\d_]+)([eE][-+]?\\d+)?)[lLfF]?",i={cN:"number",b:r,r:0}
return{aliases:["jsp"],k:n,i:/<\//,c:[{cN:"javadoc",b:"/\\*\\*",e:"\\*/",r:0,c:[{cN:"javadoctag",b:"(^|\\s)@[A-Za-z]+"}]},e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw return",r:0},{cN:"function",b:"("+t+"\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:n,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:n,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},i,{cN:"annotation",b:"@[A-Za-z]+"}]}}),hljs.registerLanguage("javascript",function(e){return{aliases:["js"],k:{keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document"},c:[{cN:"pi",r:10,v:[{b:/^\s*('|")use strict('|")/},{b:/^\s*('|")use asm('|")/}]},e.ASM,e.QSM,e.CLCM,e.CBCM,e.CNM,{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{b:/</,e:/>;/,r:0,sL:"xml"}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/\[|%/},{b:/\$[(.]/},{b:"\\."+e.IR,r:0}]}}),hljs.registerLanguage("json",function(e){var t={literal:"true false null"},n=[e.QSM,e.CNM],r={cN:"value",e:",",eW:!0,eE:!0,c:n,k:t},i={b:"{",e:"}",c:[{cN:"attribute",b:'\\s*"',e:'"\\s*:\\s*',eB:!0,eE:!0,c:[e.BE],i:"\\n",starts:r}],i:"\\S"},o={b:"\\[",e:"\\]",c:[e.inherit(r,{cN:null})],i:"\\S"}
return n.splice(n.length,0,i,o),{c:n,k:t,i:"\\S"}}),hljs.registerLanguage("makefile",function(e){var t={cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}
return{aliases:["mk","mak"],c:[e.HCM,{b:/^\w+\s*\W*=/,rB:!0,r:0,starts:{cN:"constant",e:/\s*\W*=/,eE:!0,starts:{e:/$/,r:0,c:[t]}}},{cN:"title",b:/^[\w]+:\s*$/},{cN:"phony",b:/^\.PHONY:/,e:/$/,k:".PHONY",l:/[\.\w]+/},{b:/^\t+/,e:/$/,r:0,c:[e.QSM,t]}]}}),hljs.registerLanguage("xml",function(){var e="[A-Za-z0-9\\._:-]+",t={b:/<\?(php)?(?!\w)/,e:/\?>/,sL:"php",subLanguageMode:"continuous"},n={eW:!0,i:/</,r:0,c:[t,{cN:"attribute",b:e,r:0},{b:"=",r:0,c:[{cN:"value",c:[t],v:[{b:/"/,e:/"/},{b:/'/,e:/'/},{b:/[^\s\/>]+/}]}]}]}
return{aliases:["html","xhtml","rss","atom","xsl","plist"],cI:!0,c:[{cN:"doctype",b:"<!DOCTYPE",e:">",r:10,c:[{b:"\\[",e:"\\]"}]},{cN:"comment",b:"<!--",e:"-->",r:10},{cN:"cdata",b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{cN:"tag",b:"<style(?=\\s|>|$)",e:">",k:{title:"style"},c:[n],starts:{e:"</style>",rE:!0,sL:"css"}},{cN:"tag",b:"<script(?=\\s|>|$)",e:">",k:{title:"script"},c:[n],starts:{e:"</script>",rE:!0,sL:"javascript"}},t,{cN:"pi",b:/<\?\w+/,e:/\?>/,r:10},{cN:"tag",b:"</?",e:"/?>",c:[{cN:"title",b:/[^ \/><\n\t]+/,r:0},n]}]}}),hljs.registerLanguage("markdown",function(){return{aliases:["md","mkdown","mkd"],c:[{cN:"header",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"blockquote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"`.+?`"},{b:"^( {4}| )",e:"$",r:0}]},{cN:"horizontal_rule",b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"link_label",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link_url",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"link_reference",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:"^\\[.+\\]:",rB:!0,c:[{cN:"link_reference",b:"\\[",e:"\\]:",eB:!0,eE:!0,starts:{cN:"link_url",e:"$"}}]}]}}),hljs.registerLanguage("nginx",function(e){var t={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},n={eW:!0,l:"[a-z/_]+",k:{built_in:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,t],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{cN:"url",b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0,c:[t]},{cN:"regexp",c:[e.BE,t],v:[{b:"\\s\\^",e:"\\s|{|;",rE:!0},{b:"~\\*?\\s+",e:"\\s|{|;",rE:!0},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0},t]}
return{aliases:["nginxconf"],c:[e.HCM,{b:e.UIR+"\\s",e:";|{",rB:!0,c:[{cN:"title",b:e.UIR,starts:n}],r:0}],i:"[^\\s\\}]"}}),hljs.registerLanguage("objectivec",function(e){var t={keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"NSString NSData NSDictionary CGRect CGPoint UIButton UILabel UITextView UIWebView MKMapView NSView NSViewController NSWindow NSWindowController NSSet NSUUID NSIndexSet UISegmentedControl NSObject UITableViewDelegate UITableViewDataSource NSThread UIActivityIndicator UITabbar UIToolBar UIBarButtonItem UIImageView NSAutoreleasePool UITableView BOOL NSInteger CGFloat NSException NSLog NSMutableString NSMutableArray NSMutableDictionary NSURL NSIndexPath CGSize UITableViewCell UIView UIViewController UINavigationBar UINavigationController UITabBarController UIPopoverController UIPopoverControllerDelegate UIImage NSNumber UISearchBar NSFetchedResultsController NSFetchedResultsChangeType UIScrollView UIScrollViewDelegate UIEdgeInsets UIColor UIFont UIApplication NSNotFound NSNotificationCenter NSNotification UILocalNotification NSBundle NSFileManager NSTimeInterval NSDate NSCalendar NSUserDefaults UIWindow NSRange NSArray NSError NSURLRequest NSURLConnection NSURLSession NSURLSessionDataTask NSURLSessionDownloadTask NSURLSessionUploadTask NSURLResponseUIInterfaceOrientation MPMoviePlayerController dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r="@interface @class @protocol @implementation"
return{aliases:["m","mm","objc","obj-c"],k:t,l:n,i:"</",c:[e.CLCM,e.CBCM,e.CNM,e.QSM,{cN:"string",v:[{b:'@"',e:'"',i:"\\n",c:[e.BE]},{b:"'",e:"[^\\\\]'",i:"[^\\\\][^']"}]},{cN:"preprocessor",b:"#",e:"$",c:[{cN:"title",v:[{b:'"',e:'"'},{b:"<",e:">"}]}]},{cN:"class",b:"("+r.split(" ").join("|")+")\\b",e:"({|$)",eE:!0,k:r,l:n,c:[e.UTM]},{cN:"variable",b:"\\."+e.UIR,r:0}]}}),hljs.registerLanguage("perl",function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",n={cN:"subst",b:"[$@]\\{",e:"\\}",k:t},r={b:"->{",e:"}"},i={cN:"variable",v:[{b:/\$\d/},{b:/[\$\%\@](\^\w\b|#\w+(\:\:\w+)*|{\w+}|\w+(\:\:\w*)*)/},{b:/[\$\%\@][^\s\w{]/,r:0}]},o={cN:"comment",b:"^(__END__|__DATA__)",e:"\\n$",r:5},a=[e.BE,n,i],s=[i,e.HCM,o,{cN:"comment",b:"^\\=\\w",e:"\\=cut",eW:!0},r,{cN:"string",c:a,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",r:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",r:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",r:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",r:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",r:5},{b:"qw\\s+q",e:"q",r:5},{b:"'",e:"'",c:[e.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[e.BE]},{b:"{\\w+}",c:[],r:0},{b:"-?\\w+\\s*\\=\\>",c:[],r:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\/\\/|"+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,o,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"sub",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",r:5},{cN:"operator",b:"-\\w\\b",r:0}]
return n.c=s,r.c=s,{aliases:["pl"],k:t,c:s}}),hljs.registerLanguage("php",function(e){var t={cN:"variable",b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},n={cN:"preprocessor",b:/<\?(php)?|\?>/},r={cN:"string",c:[e.BE,n],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},i={v:[e.BNM,e.CNM]}
return{aliases:["php3","php4","php5","php6"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.CLCM,e.HCM,{cN:"comment",b:"/\\*",e:"\\*/",c:[{cN:"phpdoc",b:"\\s@[A-Za-z]+"},n]},{cN:"comment",b:"__halt_compiler.+?;",eW:!0,k:"__halt_compiler",l:e.UIR},{cN:"string",b:"<<<['\"]?\\w+['\"]?$",e:"^\\w+;",c:[e.BE]},n,t,{b:/->+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",t,e.CBCM,r,i]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},r,i]}}),hljs.registerLanguage("python",function(e){var t={cN:"prompt",b:/^(>>>|\.\.\.) /},n={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[t],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[t],r:10},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},e.ASM,e.QSM]},r={cN:"number",r:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},i={cN:"params",b:/\(/,e:/\)/,c:["self",t,r,n]}
return{aliases:["py","gyp"],k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i:/(<\/|->|\?)/,c:[t,r,n,e.HCM,{v:[{cN:"function",bK:"def",r:10},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n]/,c:[e.UTM,i]},{cN:"decorator",b:/@/,e:/$/},{b:/\b(print|exec)\(/}]}}),hljs.registerLanguage("ruby",function(e){var t="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",n="and false then defined module in return redo if BEGIN retry end for true self when next until do begin unless END rescue nil else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",r={cN:"yardoctag",b:"@[A-Za-z]+"},i={cN:"value",b:"#<",e:">"},o={cN:"comment",v:[{b:"#",e:"$",c:[r]},{b:"^\\=begin",e:"^\\=end",c:[r],r:10},{b:"^__END__",e:"\\n$"}]},a={cN:"subst",b:"#\\{",e:"}",k:n},s={cN:"string",c:[e.BE,a],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/}]},c={cN:"params",b:"\\(",e:"\\)",k:n},u=[s,i,o,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{cN:"inheritance",b:"<\\s*",c:[{cN:"parent",b:"("+e.IR+"::)?"+e.IR}]},o]},{cN:"function",bK:"def",e:" |$|;",r:0,c:[e.inherit(e.TM,{b:t}),c,o]},{cN:"constant",b:"(::)?(\\b[A-Z]\\w*(::)?)+",r:0},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":",c:[s,{b:t}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"("+e.RSR+")\\s*",c:[i,o,{cN:"regexp",c:[e.BE,a],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}],r:0}]
a.c=u,c.c=u
var l="[>?]>",f="[\\w#]+\\(\\w+\\):\\d+:\\d+>",h="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",d=[{b:/^\s*=>/,cN:"status",starts:{e:"$",c:u}},{cN:"prompt",b:"^("+l+"|"+f+"|"+h+")",starts:{e:"$",c:u}}]
return{aliases:["rb","gemspec","podspec","thor","irb"],k:n,c:[o].concat(d).concat(u)}}),hljs.registerLanguage("sql",function(e){var t={cN:"comment",b:"--",e:"$"}
return{cI:!0,i:/[<>]/,c:[{cN:"operator",bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate savepoint release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup",e:/;/,eW:!0,k:{keyword:"abs absolute acos action add adddate addtime aes_decrypt aes_encrypt after aggregate all allocate alter analyze and any are as asc ascii asin assertion at atan atan2 atn2 authorization authors avg backup before begin benchmark between bin binlog bit_and bit_count bit_length bit_or bit_xor both by cache call cascade cascaded case cast catalog ceil ceiling chain change changed char_length character_length charindex charset check checksum checksum_agg choose close coalesce coercibility collate collation collationproperty column columns columns_updated commit compress concat concat_ws concurrent connect connection connection_id consistent constraint constraints continue contributors conv convert convert_tz corresponding cos cot count count_big crc32 create cross cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime data database databases datalength date_add date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts datetimeoffsetfromparts day dayname dayofmonth dayofweek dayofyear deallocate declare decode default deferrable deferred degrees delayed delete des_decrypt des_encrypt des_key_file desc describe descriptor diagnostics difference disconnect distinct distinctrow div do domain double drop dumpfile each else elt enclosed encode encrypt end end-exec engine engines eomonth errors escape escaped event eventdata events except exception exec execute exists exp explain export_set extended external extract fast fetch field fields find_in_set first first_value floor flush for force foreign format found found_rows from from_base64 from_days from_unixtime full function get get_format get_lock getdate getutcdate global go goto grant grants greatest group group_concat grouping grouping_id gtid_subset gtid_subtract handler having help hex high_priority hosts hour ident_current ident_incr ident_seed identified identity if ifnull ignore iif ilike immediate in index indicator inet6_aton inet6_ntoa inet_aton inet_ntoa infile initially inner innodb input insert install instr intersect into is is_free_lock is_ipv4 is_ipv4_compat is_ipv4_mapped is_not is_not_null is_used_lock isdate isnull isolation join key kill language last last_day last_insert_id last_value lcase lead leading least leaves left len lenght level like limit lines ln load load_file local localtime localtimestamp locate lock log log10 log2 logfile logs low_priority lower lpad ltrim make_set makedate maketime master master_pos_wait match matched max md5 medium merge microsecond mid min minute mod mode module month monthname mutex name_const names national natural nchar next no no_write_to_binlog not now nullif nvarchar oct octet_length of old_password on only open optimize option optionally or ord order outer outfile output pad parse partial partition password patindex percent_rank percentile_cont percentile_disc period_add period_diff pi plugin position pow power pragma precision prepare preserve primary prior privileges procedure procedure_analyze processlist profile profiles public publishingservername purge quarter query quick quote quotename radians rand read references regexp relative relaylog release release_lock rename repair repeat replace replicate reset restore restrict return returns reverse revoke right rlike rollback rollup round row row_count rows rpad rtrim savepoint schema scroll sec_to_time second section select serializable server session session_user set sha sha1 sha2 share show sign sin size slave sleep smalldatetimefromparts snapshot some soname soundex sounds_like space sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sql_variant_property sqlstate sqrt square start starting status std stddev stddev_pop stddev_samp stdev stdevp stop str str_to_date straight_join strcmp string stuff subdate substr substring subtime subtring_index sum switchoffset sysdate sysdatetime sysdatetimeoffset system_user sysutcdatetime table tables tablespace tan temporary terminated tertiary_weights then time time_format time_to_sec timediff timefromparts timestamp timestampadd timestampdiff timezone_hour timezone_minute to to_base64 to_days to_seconds todatetimeoffset trailing transaction translation trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse ucase uncompress uncompressed_length unhex unicode uninstall union unique unix_timestamp unknown unlock update upgrade upped upper usage use user user_resources using utc_date utc_time utc_timestamp uuid uuid_short validate_password_strength value values var var_pop var_samp variables variance varp version view warnings week weekday weekofyear weight_string when whenever where with work write xml xor year yearweek zon",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int integer interval number numeric real serial smallint varchar varying int8 serial8 text"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}}),hljs.registerLanguage("text",function(){return{}}),angular.module("hljs",[]).provider("hljsService",function(){var e={}
return{setOptions:function(t){angular.extend(e,t)},getOptions:function(){return angular.copy(e)},$get:["$window",function(t){return(t.hljs.configure||angular.noop)(e),t.hljs}]}}).factory("hljsCache",["$cacheFactory",function(e){return e("hljsCache")}]).controller("HljsCtrl",["hljsCache","hljsService",function(e,t){var n=this,r=null,i=null,o=null,a=null
n.init=function(e){r=e},n.setLanguage=function(e){i=e,o&&n.highlight(o)},n.highlightCallback=function(e){a=e},n.highlight=function(s){if(r){var c,u
o=s,i?(u=n._cacheKey(i,o),c=e.get(u),c||(c=t.highlight(i,t.fixMarkup(o),!0),e.put(u,c))):(u=n._cacheKey(o),c=e.get(u),c||(c=t.highlightAuto(t.fixMarkup(o)),e.put(u,c))),r.html(c.value),r.addClass(c.language),null!==a&&angular.isFunction(a)&&a()}},n.clear=function(){r&&(o=null,r.text(""))},n.release=function(){r=null},n._cacheKey=function(){var e=Array.prototype.slice.call(arguments),t="!angular-highlightjs!"
return e.join(t)}}]).directive("hljs",["$compile","$parse",function(e,t){return{restrict:"EA",controller:"HljsCtrl",compile:function(n){var r=n[0].innerHTML.replace(/^(\r\n|\r|\n)/m,""),i=n[0].textContent.replace(/^(\r\n|\r|\n)/m,"")
return n.html('<pre><code class="hljs"></code></pre>'),function(n,o,a,s){var c,u
if(angular.isDefined(a.compile)&&(c=t(a.compile)),angular.isDefined(a.escape)?u=t(a.escape):angular.isDefined(a.noEscape)&&(u=t("false")),s.init(o.find("code")),a.onhighlight&&s.highlightCallback(function(){n.$eval(a.onhighlight)}),(r||i)&&angular.isUndefined(a.source)&&angular.isUndefined(a.include)){var l
l=u&&!u(n)?i:r,s.highlight(l),c&&c(n)&&e(o.find("code").contents())(n)}n.$on("$destroy",function(){s.release()})}}}}]).directive("language",[function(){return{require:"hljs",restrict:"A",link:function(e,t,n,r){n.$observe("language",function(e){angular.isDefined(e)&&r.setLanguage(e)})}}}]).directive("source",["$compile","$parse",function(e,t){return{require:"hljs",restrict:"A",link:function(n,r,i,o){var a
angular.isDefined(i.compile)&&(a=t(i.compile)),n.$watch(i.source,function(t){t?(o.highlight(t),a&&a(n)&&e(r.find("code").contents())(n)):o.clear()})}}}]).directive("include",["$http","$templateCache","$q","$compile","$parse",function(e,t,n,r,i){return{require:"hljs",restrict:"A",compile:function(o,a){var s=a.include
return function(o,a,c,u){var l,f=0
angular.isDefined(c.compile)&&(l=i(c.compile)),o.$watch(s,function(i){var s=++f
if(i&&angular.isString(i)){var c,h
c=t.get(i),c||(h=n.defer(),e.get(i,{cache:t,transformResponse:function(e){return e}}).success(function(e){s===f&&h.resolve(e)}).error(function(){s===f&&u.clear(),h.resolve()}),c=h.promise),n.when(c).then(function(e){e&&(angular.isArray(e)?e=e[1]:angular.isObject(e)&&(e=e.data),e=e.replace(/^(\r\n|\r|\n)/m,""),u.highlight(e),l&&l(o)&&r(a.find("code").contents())(o))})}else u.clear()})}}}}])
var AppConfig={aspect:null}
!function(e,t){m=e.module("souris-common",["ngRoute","ngCookies"]),m.factory("$remoteService",["$http","$cookies","$location",function(e,n,r){var i=function(i,o,a,s){var c={cache:!1,headers:{"If-Modified-Since":"0"},withCredentials:!0}
void 0!==n.get("XSRF-TOKEN-DEV")&&(c.headers={"X-XSRF-TOKEN-DEV":n.get("XSRF-TOKEN-DEV")}),c.method=i,void 0===a&&(a={}),void 0===a.aspect&&(a.aspect=r.absUrl().split("#")[0].replace(/\/$/,"").split(r.host()+"/",2),1==a.aspect.length?a.aspect="/":a.aspect=a.aspect[1].split("/",2)[0],void 0!==t.aspect&&(a.aspect=t.aspect))
for(var u in a)if(a.hasOwnProperty(u)){var l=":"+u
o.search(l)>0&&(o=o.replace(l,a[u]),delete a[u])}return c.params=a,c.url=o,void 0!==s&&(c.data=s),e("DELETE"==i||"JSONP"==i?c:c)}
return function(e){return{get:function(t){return i("GET",e,t)},put:function(t,n){return i("PUT",e,t,n)},post:function(t,n){return i("POST",e,t,n)},patch:function(t,n){return i("PATCH",e,t,n)},del:function(t){return i("DELETE",e,t)},"delete":function(t){return i("DELETE",e,t)},jsonp:function(t){return i("JSONP",e,t)}}}}]),m.directive("selectOnClick",function(){"use strict"
return{restrict:"A",link:function(e,t){t.on("click",function(){this.select()})}}}),m.filter("default",function(){return function(e,t){return void 0===e?t:e}})}(angular,AppConfig)
var app=angular.module("souris-app",["souris-common","hljs"]).config(["$routeProvider",
function(e){e.when("/",{controller:CreateCtrl,templateUrl:"create.html"}).when("/:id!:key",{controller:ViewCtrl,templateUrl:"view.html"}).when("/:id",{controller:ViewCtrl,templateUrl:"view.html"}).otherwise({redirectTo:"/"})}])
CreateCtrl.$inject=["$scope","$remoteService","$location","$route"],ViewCtrl.$inject=["$scope","$routeParams","$remoteService","$location"]
var HighliteLang=[["text","Plain Text"],["apache","Apache"],["bash","Bash"],["coffeescript","CoffeeScript"],["cpp","C++"],["cs","C#"],["css","CSS"],["diff","Diff"],["http","HTTP"],["ini","Ini"],["java","Java"],["javascript","JavaScript"],["json","JSON"],["makefile","Makefile"],["markdown","Markdown"],["nginx","Nginx"],["objectivec","Objective C"],["perl","Perl"],["php","PHP"],["python","Python"],["ruby","Ruby"],["sql","SQL"],["xml","HTML, XML"]],ExpireTimes=[[3600,"1 Hour"],[86400,"1 Day"],[604800,"1 Week"],[2419200,"4 Weeks"],[15778463,"6 Months"],[31556926,"1 Year"]],fn={sha:function(e){return this.b64(CryptoJS.SHA256(e))},rmd:function(e){return this.b64(CryptoJS.RIPEMD160(e))},chk:function(e){return this.b64(CryptoJS.RIPEMD160(CryptoJS.SHA256(e)))},enc:function(e,t){return""+CryptoJS.AES.encrypt(e,t)},dec:function(e,t){return CryptoJS.AES.decrypt(e,t)},b64:function(e){return void 0!=e?CryptoJS.enc.Base64.stringify(e).replace(/[=]+/,"").replace(/\//g,"_").replace(/\+/g,"-"):void 0},d64:function(e){if(void 0!=e){switch(e.length%3){case 2:e+="="
case 1:e+="="}return CryptoJS.enc.Base64.parse(e.replace(/_/g,"/").replace(/-/g,"+"))}},rng:function(e){return this.b64(CryptoJS.lib.WordArray.random(e))},seed:Math.seedrandom,u8a:function(e){var t,n,r,i=e.words,o=new Uint8Array(4*i.length),a=0
for(n=0;n<i.length;++n)for(t=i[n],r=3;r>=0;--r)o[a++]=t>>8*r&255
return o},u16a:function(e){for(var t="",n=0;n<e.length;n++)t+=("0"+e[n].toString(16)).slice(-2)
return CryptoJS.enc.Hex.parse(t)},str8:function(e){for(var t="",n=0;n<e.byteLength;n++)0==(128&e[n])?t+=String.fromCharCode(e[n]):192==(224&e[n])&&128==(192&e[n+1])?(t+=String.fromCharCode(((31&e[n])<<6)+(63&e[n+1])),n+=1):224==(240&e[n])&&128==(192&e[n+1])&&128==(192&e[n+2])?(t+=String.fromCharCode(((15&e[n])<<12)+((63&e[n+1])<<6)+(63&e[n+2])),n+=2):240==(248&e[n])&&128==(192&e[n+1])&&128==(192&e[n+2])&&128==(192&e[n+3])?(t+=String.fromCharCode(((15&e[n])<<18)+((63&e[n+1])<<12)+((63&e[n+2])<<6)+(63&e[n+3])),n+=3):t+=String.fromCharCode(65533)
return t},obj:function(e){for(var t=[],n=0;n<e.length;n++)t.push({key:e[n][0],val:e[n][1]})
return t}},decrypt=function(e,t){return function(n){0===n.length&&t({err:"Not Found",code:"not_found"})
var r=n.split("\n")
n={}
for(var i=0;""!=r[i];){var o=r[i].trim().split(":")
n[o[0]]=o[1].trim(),i++}if(n.tx=r.splice(i).join(""),void 0===e)t({err:"Missing Key",code:"no_key"})
else if(n.chk!=fn.rmd(fn.d64(e)))t({err:"Invalid Key",code:"bad_key"})
else{var a
n.zip?(a=fn.dec(n.tx,e),a=fn.u8a(a),a=fn.str8(pako.inflate(a))):a=fn.dec(n.tx,e).toString(CryptoJS.enc.Utf8)
var s="text"
for(i=0;i<HighliteLang.length;i++)n.lang==HighliteLang[i][0]&&(s=HighliteLang[i][0])
t({code:"ok",tx:a,lang:s,exp:n.exp,zip:n.zip})}}},encrypt=function(e){var t=Date.now()
console.info("Begin Encryption Process...")
var n
void 0!==e.pass&&(n=fn.chk(e.pass))
var r=fn.rng(40),i=fn.sha(r),o=fn.chk(r),a=e.text
if(e.zip){console.info("Compressing text...")
var s=e.text.length,c=Date.now(),u=pako.gzip(a)
a=fn.u16a(u),console.info("Compress complete: "+(Date.now()-c)+"ms, "+s+" => "+e.text.length+" bytes")}var l=fn.enc(a,i),f=void 0===e.exp?void 0:e.exp+Date.now()/1e3|0,h={pass:n,chk:o,lang:e.lang,exp:f,zip:e.zip,burn:e.burn},d=""
for(var p in h)h.hasOwnProperty(p)&&void 0!==h[p]&&(d+=p+":\t"+h[p]+"\n")
for(d+="\n";l.length>79;)d+=l.slice(0,79)+"\n",l=l.slice(79)
return d+=l+"\n",console.info("Encrypt complete: "+(Date.now()-t)+" ms"),{txt:d,key:i}}
m.filter("blength",function(){return function(e){if(("string"==typeof e||e instanceof String)&&void 0!==e&&void 0!==e.length){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n)
128>r?t++:t+=r>127&&2048>r?2:3}return t}}})