@angular-wave/angular.ts 0.9.9 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/@types/angular.d.ts +24 -11
  2. package/@types/animations/animate-css-driver.d.ts +0 -1
  3. package/@types/animations/animate-css.d.ts +0 -1
  4. package/@types/animations/animate-js-driver.d.ts +1 -7
  5. package/@types/animations/animate-js.d.ts +1 -4
  6. package/@types/animations/animate-queue.d.ts +2 -4
  7. package/@types/animations/animate-swap.d.ts +2 -4
  8. package/@types/animations/animate.d.ts +24 -24
  9. package/@types/animations/animation.d.ts +2 -2
  10. package/@types/animations/interface.d.ts +12 -0
  11. package/@types/animations/raf-scheduler.d.ts +4 -4
  12. package/@types/animations/runner/animate-runner.d.ts +99 -0
  13. package/@types/animations/shared.d.ts +30 -2
  14. package/@types/core/compile/attributes.d.ts +5 -8
  15. package/@types/core/compile/compile.d.ts +4 -4
  16. package/@types/core/controller/controller.d.ts +1 -1
  17. package/@types/core/di/ng-module.d.ts +14 -14
  18. package/@types/core/filter/filter.d.ts +2 -2
  19. package/@types/core/scope/interface.d.ts +18 -0
  20. package/@types/core/scope/scope.d.ts +19 -95
  21. package/@types/directive/aria/aria.d.ts +11 -13
  22. package/@types/directive/attrs/attrs.d.ts +2 -2
  23. package/@types/directive/class/class.d.ts +3 -3
  24. package/@types/directive/events/events.d.ts +0 -2
  25. package/@types/directive/http/http.d.ts +4 -22
  26. package/@types/directive/if/if.d.ts +2 -4
  27. package/@types/directive/include/include.d.ts +2 -2
  28. package/@types/directive/inject/inject.d.ts +2 -2
  29. package/@types/directive/input/input.d.ts +10 -10
  30. package/@types/directive/messages/messages.d.ts +4 -4
  31. package/@types/directive/observe/observe.d.ts +2 -5
  32. package/@types/directive/worker/worker.d.ts +15 -0
  33. package/@types/interface.d.ts +40 -11
  34. package/@types/namespace.d.ts +11 -1
  35. package/@types/ng.d.ts +3 -5
  36. package/@types/router/directives/view-directive.d.ts +2 -2
  37. package/@types/router/params/interface.d.ts +0 -25
  38. package/@types/router/path/path-utils.d.ts +2 -2
  39. package/@types/router/state/interface.d.ts +0 -9
  40. package/@types/router/state/state-object.d.ts +6 -6
  41. package/@types/router/state/state-service.d.ts +3 -3
  42. package/@types/router/template-factory.d.ts +1 -1
  43. package/@types/router/transition/hook-builder.d.ts +1 -1
  44. package/@types/router/transition/interface.d.ts +0 -44
  45. package/@types/router/transition/transition-hook.d.ts +31 -0
  46. package/@types/router/transition/transition-service.d.ts +1 -1
  47. package/@types/router/transition/transition.d.ts +2 -2
  48. package/@types/services/pubsub/pubsub.d.ts +2 -2
  49. package/@types/services/sse/interface.d.ts +27 -1
  50. package/@types/services/sse/sse.d.ts +4 -3
  51. package/@types/services/worker/interface.d.ts +12 -0
  52. package/@types/services/worker/worker.d.ts +31 -0
  53. package/@types/shared/dom.d.ts +4 -5
  54. package/@types/shared/url-utils/url-utils.d.ts +14 -14
  55. package/README.md +1 -1
  56. package/dist/angular-ts.esm.js +1517 -1125
  57. package/dist/angular-ts.umd.js +1517 -1125
  58. package/dist/angular-ts.umd.min.js +1 -1
  59. package/dist/angular.css +1 -1
  60. package/package.json +1 -2
  61. package/@types/animations/animate-runner.d.ts +0 -31
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,function(t){"use strict";const e="ng-valid",n="ng-invalid",r="ng-pristine",s="ng-dirty",i="ng-untouched",o="ng-touched",a="ng-empty",c="ng-not-empty",l=/^((?:x|data)[-])/i,u=/[-]+(.)/g,h={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},d=Symbol("isProxy");function p(t){return!(!t||!t[d])}const f=dt("ng");let $=0;function m(){return $+=1,$}function g(t){return E(t)?t.toLowerCase():t}function v(t){if(null==t||T(t))return!1;if(Array.isArray(t)||t instanceof Array||E(t))return!0;const e="length"in Object(t)&&t.length;return x(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function y(t){return void 0===t}function b(t){return void 0!==t}function w(t){return null!==t&&"object"==typeof t}function E(t){return"string"==typeof t}function C(t){return null===t}function S(t){return null==t}function x(t){return"number"==typeof t}function A(t){return"[object Date]"===toString.call(t)}function O(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function k(t){return"function"==typeof t}function _(t){return"[object RegExp]"===toString.call(t)}function T(t){return t&&t.window===t}function j(t){return t&&t.$watch}function R(t){return"boolean"==typeof t}function N(t){return t&&k(t.then)}function L(t){return E(t)?t.trim():t}function V(t,e){const n=e;return t.replace(/[A-Z]/g,(t,e)=>(e?n:"")+t.toLowerCase())}function M(t,...e){return function(t,e){const n=t.$$hashKey;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(!w(r)&&!k(r))continue;const s=Object.keys(r);for(let e=0,n=s.length;e<n;e++){const n=s[e],i=r[n];t[n]=i}}return function(t,e){e?t.$$hashKey=e:delete t.$$hashKey}(t,n),t}(t,e)}function P(t){return Number.isNaN(t)}function D(t,e){return M(Object.create(t),e)}function U(t){return k(t.toString)&&t.toString!==toString}function I(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function H(t){return g(t.nodeName)}function F(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function q(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function B(t,e){return t===e||t!=t&&e!=e}function z(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;let r,s,i;if(n===typeof e&&"object"===n){if(!Array.isArray(t)){if(A(t))return!!A(e)&&B(t.getTime(),e.getTime());if(_(t))return!!_(e)&&t.toString()===e.toString();if(j(t)||j(e)||T(t)||T(e)||Array.isArray(e)||A(e)||_(e))return!1;for(s in i=Object.create(null),t)if("$"!==s.charAt(0)&&!k(t[s])){if(!z(t[s],e[s]))return!1;i[s]=!0}for(s in e)if(!(s in i)&&"$"!==s.charAt(0)&&b(e[s])&&!k(e[s]))return!1;return!0}if(!Array.isArray(e))return!1;if((r=t.length)===e.length){for(s=0;s<r;s++)if(!z(t[s],e[s]))return!1;return!0}}return!1}function W(t,e){if("hasOwnProperty"===t)throw f("badname","hasOwnProperty is not a valid {0} name",e)}function K(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!U(t)||Array.isArray(t)||A(t)?Y(t):t.toString()}return t}function G(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function Q(t,e){return Array.prototype.slice.call(t,e)}function J(t,e){const n=arguments.length>2?Q(arguments,2):[];return!k(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,G(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Z(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:T(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":j(e)&&(n="$SCOPE"),n}function Y(t,e){if(!y(t))return x(e)||(e=e?2:null),JSON.stringify(t,Z,e)}function X(t,e,n){const r=t.getTimezoneOffset(),s=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return P(n)?e:n}(e,r);return function(t,e){const n=new Date(t.getTime());return n.setMinutes(n.getMinutes()+e),n}(t,1*(s-r))}function tt(t){const e={};return(t||"").split("&").forEach(t=>{let n,r,s;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),s=t.substring(n+1)),r=nt(r),b(r)&&(s=!b(s)||nt(s),vt(e,r)?Array.isArray(e[r])?e[r].push(s):e[r]=[e[r],s]:e[r]=s))}),e}function et(t){const e=[];return t&&Object.entries(t).forEach(([t,n])=>{Array.isArray(n)?n.forEach(n=>{e.push(st(t,!0)+(!0===n?"":`=${st(n,!0)}`))}):e.push(st(t,!0)+(!0===n?"":`=${st(n,!0)}`))}),e.length?e.join("&"):""}function nt(t){try{return decodeURIComponent(t)}catch{}}function rt(t){return st(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function st(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}const it=["ng-","data-ng-"];function ot(t,e){if(Array.isArray(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(w(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function at(t,e="Assertion failed"){if(!t)throw new Error(e)}function ct(t,e,n){if(!t)throw f("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function lt(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),ct(k(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const ut={objectMaxDepth:5,urlErrorParamsEnabled:!0};function ht(t){var e;return w(t)&&(b(t.objectMaxDepth)&&(ut.objectMaxDepth=x(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),b(t.urlErrorParamsEnabled)&&R(t.urlErrorParamsEnabled)&&(ut.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),ut}function dt(t){return function(...e){const n=e[0],r=e[1];let s=`[${t?`${t}:`:""}${n}] `;const i=Q(e,2).map(t=>function(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(y(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(p(t)?t.$target:t);return JSON.stringify(n,(t,n)=>{const r=Z(t,n);if(w(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r})}return t}(t));return s+=r.replace(/\{\d+\}/g,t=>{const e=+t.slice(1,-1);return e<i.length?i[e]:t}),new Error(s)}}function pt(t){const e=t&&t.$$hashKey;if(e)return"function"==typeof e?t.$$hashKey():e;const n=typeof t;return"function"===n||"object"===n&&null!==t?(t.$$hashKey=`${n}:${m()}`,t.$$hashKey):"undefined"===n?`${n}:${m()}`:`${n}:${t}`}function ft(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function $t(t){return t.replace(l,"").replace(u,(t,e,n)=>n?e.toUpperCase():e)}function mt(t){return function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;const n=t;return"true"===n.dataset[e]||"true"===n.getAttribute(e)}(t,"animate")}function gt(t){return!t||!Object.keys(t).length}function vt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function yt(t,e){return t.slice(0,e.length)===e}const bt=new Map;let wt=1;const Et="ng",Ct="$scope",St=/-([a-z])/g,xt=/_([a-z])/g,At=["multiple","selected","checked","disabled","readonly","required","open"],Ot=["INPUT","SELECT","OPTION","TEXTAREA","BUTTON","FORM","DETAILS"];function kt(t,e){return e.toUpperCase()}function _t(t){return t.replace(St,kt)}function Tt(t){return t.replace(xt,kt)}function jt(t,e){const n=t[Et],r=n&&bt.get(n);r&&(e?delete r.data[e]:r.data={},function(t){const e=t[Et],{data:n}=bt.get(e);n&&Object.keys(n).length||(bt.delete(e),t[Et]=void 0)}(t))}function Rt(t,e=!1){let n=t[Et],r=n&&bt.get(n);return e&&!r&&(t[Et]=n=++wt,r={data:{}},bt.set(n,r)),r}function Nt(t){return!/<|&#?\w+;/.test(t)}function Lt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case Node.COMMENT_NODE:case void 0:return!0;default:return!1}}function Vt(t,e){t&&(Array.isArray(t)?t.forEach(t=>Vt(t,e)):(!e&&Lt(t)&&Gt([t]),Lt(t)&&Gt(t.querySelectorAll("*"))),delete t[Et],t.innerHTML="")}function Mt(t,e,n){if(Lt(t)){let r;const s=b(n),i=!s&&e&&!w(e),o=!e,a=Rt(t,!i),c=a&&a.data;if(s)c[_t(e)]=n;else{if(o)return c;if(i)return c&&c[_t(e)];for(r in e)c[_t(r)]=e[r]}}}function Pt(t,e,n){if(Lt(t)){const r=Rt(t,!0);(r&&r.data)[_t(e)]=n}else t.parentElement&&Pt(t.parentElement,e,n)}function Dt(t,e){if(Lt(t)){const n=Rt(t,!1),r=n&&n.data;if(!e)return;return r&&r[_t(e)]}}function Ut(t){return Dt(t,Ct)}function It(t,e){return Pt(t,Ct,e)}function Ht(t,e){return Pt(t,"$isolateScope",e)}function Ft(t,e){return qt(t,`$${e||"ngController"}Controller`)}function qt(t,e){let n;for(t.nodeType===Node.DOCUMENT_NODE&&(t=t.documentElement);t;){if(b(n=Dt(t,e)))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Bt(t,e=!1){e||Vt(t);const n=t.parentNode;n&&n.removeChild(t)}function zt(t){let e;if("string"==typeof t){e=(new DOMParser).parseFromString(t,"text/html").body.firstChild.cloneNode(!0)}else{if(!(t instanceof Element||t instanceof Node))throw new Error("Input must be an HTML string or a DOM element.");e=t.cloneNode(!0)}for(;e.firstChild;)e.removeChild(e.firstChild);const n=document.createElement("div");n.appendChild(e);const r=n.innerHTML;try{if(e.nodeType===Node.TEXT_NODE)return r.toLowerCase();if(e.nodeType===Node.COMMENT_NODE)return`\x3c!--${e.data.trim()}--\x3e`;{const t=r.match(/^(<[^>]+>)/);if(t)return t[1].replace(/^<([\w-]+)/,(t,e)=>"<"+e.toLowerCase())}}catch{return r.toLowerCase()}return r.toLowerCase()}function Wt(t){let e=t[0];const n=t[t.length-1];let r;for(let s=1;e!==n&&(e=e.nextSibling);s++)(r||t[s]!==e)&&(r||(r=Array.prototype.slice.call(t,0,s)),r.push(e));return r||t}function Kt(t,e){const n=e.toLowerCase();return!(!At.includes(n)||!Ot.includes(t.nodeName))&&n}function Gt(t){for(let e=0,n=t.length;e<n;e++)jt(t[e])}function Qt(t){return qt(t,"$injector")}function Jt(t){const e=document.createElement("template");return e.innerHTML=t.trim(),e.content.firstChild}function Zt(t){const e=document.createElement("template");return e.innerHTML=t.trim(),e.content.childNodes}function Yt(t){switch(Vt(t,!0),t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:t.replaceChildren()}}function Xt(t,e,n){if(n){const t=function(t){const{length:e}=t;for(let n=0;n<e;n++){const e=t[n];if(e.nodeType===Node.ELEMENT_NODE)return e}}(n);!t||t.parentNode||t.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}function te(){const t=document.querySelector("base")?.getAttribute("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}const ee=Object.freeze({$attrs:"$attrs",$scope:"$scope",$element:"$element",$$AnimateRunner:"$$AnimateRunner",$$animateAsyncRun:"$$animateAsyncRun",$$animateCache:"$$animateCache",$$animateCssDriver:"$$animateCssDriver",$$animateJs:"$$animateJs",$$animateJsDriver:"$$animateJsDriver",$$animateQueue:"$$animateQueue",$$animation:"$$animation",$$rAFScheduler:"$$rAFScheduler",$$taskTrackerFactory:"$$taskTrackerFactory",$anchorScroll:"$anchorScroll",$animate:"$animate",$animateCss:"$animateCss",$aria:"$aria",$compile:"$compile",$controller:"$controller",$document:"$document",$eventBus:"$eventBus",$exceptionHandler:"$exceptionHandler",$filter:"$filter",$http:"$http",$httpParamSerializer:"$httpParamSerializer",$interpolate:"$interpolate",$location:"$location",$log:"$log",$viewScroll:"$viewScroll",$parse:"$parse",$rootScope:"$rootScope",$rootElement:"$rootElement",$router:"$router",$sce:"$sce",$sceDelegate:"$sceDelegate",$state:"$state",$stateRegistry:"$stateRegistry",$sse:"$sse",$$sanitizeUri:"$$sanitizeUri",$$sanitizeUriProvider:"$$sanitizeUriProvider",$templateCache:"$templateCache",$templateFactory:"$templateFactory",$templateRequest:"$templateRequest",$transitions:"$transitions",$urlConfig:"$urlConfig",$url:"$url",$view:"$view",$window:"$window",$provide:"$provide",$injector:"$injector",$compileProvider:"$compileProvider",$animateProvider:"$animateProvider",$filterProvider:"$filterProvider",$controllerProvider:"$controllerProvider"});function ne(t){return t.map(t=>t+"Provider")}const re="$injector",se="$compileProvider";class ie{constructor(t,e,n){at(E(t),"name required"),at(Array.isArray(e),"requires array required"),this.name=t,this.requires=e,this.invokeQueue=[],this.configBlocks=[],this.runBlocks=[],n&&this.config(n),this.services=[]}value(t,e){return this.invokeQueue.push([ee.$provide,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([ee.$provide,"constant",[t,e]]),this}config(t){return this.configBlocks.push([re,"invoke",[t]]),this}run(t){return this.runBlocks.push(t),this}component(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([se,"component",[t,e]]),this}factory(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([ee.$provide,"factory",[t,e]]),this}service(t,e){return e&&k(e)&&(e.$$moduleName=t),this.services.push(t),this.invokeQueue.push([ee.$provide,"service",[t,e]]),this}provider(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([ee.$provide,"provider",[t,e]]),this}decorator(t,e){return e&&k(e)&&(e.$$moduleName=t),this.configBlocks.push([ee.$provide,"decorator",[t,e]]),this}directive(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push([se,"directive",[t,e]]),this}animation(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&k(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const oe=/^([^(]+?)=>/,ae=/^[^(]*\(\s*([^)]*)\)/m,ce=/^\s*(_?)(\S+?)\1\s*$/,le=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ue=dt(re),he="Provider",de=!0;class pe{constructor(t){this.cache={},this.strictDi=t,this.path=[],this.modules={}}get(t){if(vt(this.cache,t)){if(this.cache[t]===de)throw ue("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=de;try{this.cache[t]=this.factory(t)}catch(e){throw delete this.cache[t],e}return this.cache[t]}injectionArgs(t,e,n){const r=[],s=function(t,e,n){let r,s,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw ue("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);s=function(t){const e=me(t).replace(le,"");return e.match(oe)||e.match(ae)}(t),s[1].split(/,/).forEach(function(t){t.replace(ce,function(t,e,n){r.push(n)})})}t.$inject=r}}else Array.isArray(t)?(i=t.length-1,lt(t[i],"fn"),r=t.slice(0,i)):lt(t,"fn",!0);return r}(t,this.strictDi,n);for(let t=0,{length:n}=s;t<n;t++){const n=s[t];if("string"!=typeof n)throw ue("itkn","Incorrect injection token! Expected service name as string, got {0}",n);r.push(e&&vt(e,n)?e[n]:this.get(n))}return r}invoke(t,e,n,r){"string"==typeof n&&(r=n,n=null);const s=this.injectionArgs(t,n,r);return Array.isArray(t)&&(t=t[t.length-1]),/^class\b/.test(me(t))?(s.unshift(null),new(Function.prototype.bind.apply(t,s))):t.apply(e,s)}instantiate(t,e,n){const r=Array.isArray(t)?t[t.length-1]:t,s=this.injectionArgs(t,e,n);return s.unshift(null),new(Function.prototype.bind.apply(r,s))}loadNewModules(){}factory(t){console.error(`Unhandled ${t}`)}}class fe extends pe{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),ue("unpr","Unknown provider: {0}",this.path.join(" <- "))}loadNewModules(){}}class $e extends pe{constructor(t,e){super(e),this.providerInjector=t,this.modules=t.modules}factory(t){const e=this.providerInjector.get(t+he);return this.invoke(e.$get,e,void 0,t)}has(t){const e=vt(this.providerInjector.cache,t+he),n=vt(this.cache,t);return e||n}}function me(t){return Function.prototype.toString.call(t)}const ge=/^([^(]+?)=>/,ve=/^[^(]*\(\s*([^)]*)\)/m,ye=/,/,be=/^\s*(_?)(\S+?)\1\s*$/,we=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ee=dt(re),Ce="Provider";function Se(t,e=!1){at(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:Oe(c),factory:Oe(l),service:Oe(function(t,e){return l(t,[re,t=>t.instantiate(e)])}),value:Oe(function(t,e){return r[t+Ce]={$get:()=>e}}),constant:Oe(function(t,e){W(t,"constant"),s.cache[t]=e,i.cache[t]=e}),decorator:function(t,e){const n=s.get(t+Ce),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},s=r.$injector=new fe(r,e),i=new $e(s,e);r.$injectorProvider={$get:()=>i};let o=i;const a=u(t);return o=i.get(re),a.forEach(t=>t&&o.invoke(t)),o.loadNewModules=t=>u(t).forEach(t=>t&&o.invoke(t)),o;function c(t,e){let n;if(W(t,"service"),n=k(e)||Array.isArray(e)?s.instantiate(e):e,!n.$get)throw Ee("pget","Provider '{0}' must define $get factory method.",t);return r[t+Ce]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(y(n))throw Ee("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){ct(y(t)||Array.isArray(t),"modulesToLoad","not an array");let e=[];return t.forEach(t=>{if(!n.get(t)){n.set(t,!0);try{if(E(t)){const n=window.angular.module(t);o.modules[t]=n,e=e.concat(u(n.requires)).concat(n.runBlocks);n.invokeQueue.concat(n.configBlocks).forEach(t=>{const e=s.get(t[0]);e[t[1]].apply(e,t[2])})}else k(t)||Array.isArray(t)?e.push(s.invoke(t)):lt(t,"module")}catch(e){throw Array.isArray(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e.message=`${e.message}\n${e.stack}`),Ee("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}}),e}}function xe(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace(we,"");return e.match(ge)||e.match(ve)}function Ae(t,e,n){let r,s,i;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw Ee("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);s=xe(t),s[1].split(ye).forEach(function(t){t.replace(be,function(t,e,n){r.push(n)})})}t.$inject=r}}else Array.isArray(t)?(i=t.length-1,lt(t[i],"fn"),r=t.slice(0,i)):lt(t,"fn",!0);return r}function Oe(t){return function(e,n){if(!w(e))return t(e,n);Object.entries(e).forEach(([e,n])=>{t(e,n)})}}class ke{constructor(t){if(ct(t,"element"),this.initial=null,this._node=null,this._element=void 0,this._nodes=void 0,this.linked=!1,this.isList=!1,E(t)){this.initial=t;let e=Jt(t);switch(!0){case e instanceof Element:this.element=e;break;case e instanceof Node:this.node=e}}else if(t instanceof NodeList)this.initial=Array.from(t).map(t=>t.cloneNode(!0)),1==t.length?this.node=t[0]:(this._nodes=Array.from(t),this.isList=!0);else if(t instanceof Element)this.initial=t.cloneNode(!0),this.element=t;else if(t instanceof Node)this.initial=t.cloneNode(!0),this._node=t;else{if(!(t instanceof Array))throw new Error("Invalid element passed to NodeRef");1==t.length?(this.initial=t[0].cloneNode(!0),this.node=t[0]):(this.initial=Array.from(t).map(t=>t.cloneNode(!0)),this.nodes=t)}}get element(){return ct(this._element,"element"),this._element}set element(t){ct(t instanceof Element,"element"),this._element=t,this._nodes=void 0,this.isList=!1}get node(){return ct(this._node||this._element,"node"),this._node||this._element}set node(t){ct(t instanceof Node,"node"),this._node=t,t.nodeType===Node.ELEMENT_NODE?this._element=t:this._element=void 0}set nodes(t){ct(Array.isArray(t)&&t.every(t=>t instanceof Node),"nodes"),this._nodes=t,this.isList=!0}get nodes(){return ct(this._nodes,"nodes"),this._nodes}get nodelist(){if(ct(this.isList,"nodes"),0===this._nodes.length)return this._nodes;if(this._nodes[0].parentElement)return this._nodes[0].parentElement.childNodes;{const t=document.createDocumentFragment();return this._nodes.forEach(e=>{t.appendChild(e)}),t.childNodes}}get dom(){return this.isList?this.nodelist:this.node}get size(){return this.isList?this._nodes.length:1}getAny(){return this.isList?this._nodes[0]:this._element||this._node}getAll(){return this.isList?this._nodes:this._element||this._node}collection(){return this.isList?Array.from(this._nodes):[this._element||this._node]}getIndex(t){return this.isList?this._nodes[t]:this.node}setIndex(t,e){ct(null!==t,"index"),ct(e,"node"),this.isList?this._nodes[t]=e:this.node=e}clone(){const t=this.isList?this.nodes.map(t=>t.cloneNode(!0)):this.node.cloneNode(!0);return new ke(t)}isElement(){return void 0!==this._element}}const _e=dt("$controller"),Te=/^(\S+)(\s+as\s+([\w$]+))?$/;function je(t,e){if(E(t)){const e=Te.exec(t);if(e)return e[3]}}class Re{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,e){W(t,"controller"),w(t)?Object.entries(t).forEach(([t,e])=>{this.controllers.set(t,e)}):this.controllers.set(t,e)}$get=["$injector",t=>(e,n,r,s)=>{let i,o,a,c=s&&E(s)?s:null;if(r=!0===r,E(e)){if(o=e.match(Te),!o)throw _e("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(a=o[1],c=c||o[3],!(e=this.controllers.get(a)))throw _e("ctrlreg","The controller with the name '{0}' is not registered.",a);lt(e,a,!0)}if(r){const r=(Array.isArray(e)?e[e.length-1]:e).prototype;return i=Object.create(r||null),c&&(i.$controllerIdentifier=c,this.addIdentifier(n,c,i,a||e.name)),function(){const r=t.invoke(e,i,n,a);return r!==i&&(w(r)||k(r))&&(i=r,c&&(i.$controllerIdentifier=c,this.addIdentifier(n,c,i,a||e.name))),i}.bind(this,{instance:i,identifier:c})}return i=t.instantiate(e,n,a),c&&this.addIdentifier(n,c,i,a||e.name),i}];addIdentifier(t,e,n,r){if(!t||!w(t.$scope))throw dt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}const Ne=Le(window.location.href);function Le(t){if(!E(t))return t;const e=new URL(t,window.location.href),n=e.hostname.includes(":")?`[${e.hostname}]`:e.hostname;return{href:e.href,protocol:e.protocol,host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:n,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:`/${e.pathname}`}}function Ve(t,e){return t=Le(t),e=Le(e),t.protocol===e.protocol&&t.host===e.host}function Me(t){return t.replace(/#$/,"")}const Pe=dt("$sce"),De={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Ue(t){if("self"===t)return t;if(E(t)){if(t.indexOf("***")>-1)throw Pe("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(e=t,e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var e;if(_(t))return new RegExp(`^${t.source}$`);throw Pe("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}class Ie{constructor(){let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map(t=>Ue(t))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map(t=>Ue(t))),e},this.$get=[ee.$injector,ee.$$sanitizeUri,ee.$exceptionHandler,function(n,r,s){let i=function(){s(Pe("unsafe","Attempting to use an unsafe value in a safe context."))};function o(t,e){return"self"===t?Ve(e,Ne)||function(t){return Ve(t,document.baseURI)}(e):!!t.exec(e.href)}function a(t){const e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(i=n.get("$sanitize"));const c=a(),l={};return l[De.HTML]=a(c),l[De.CSS]=a(c),l[De.MEDIA_URL]=a(c),l[De.URL]=a(l[De.MEDIA_URL]),l[De.JS]=a(c),l[De.RESOURCE_URL]=a(l[De.URL]),{trustAs:function(t,e){const n=vt(l,t)?l[t]:null;if(n){if(null===e||y(e)||""===e)return e;if("string"==typeof e)return new n(e);s(Pe("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t))}else s(Pe("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e))},getTrusted:function(n,a){if(null===a||y(a)||""===a)return a;const c=vt(l,n)?l[n]:null;return c&&a instanceof c?a.$$unwrapTrustedValue():(k(a.$$unwrapTrustedValue)&&(a=a.$$unwrapTrustedValue()),n===De.MEDIA_URL||n===De.URL?r(a.toString(),n===De.MEDIA_URL):n===De.RESOURCE_URL?function(n){const r=Le(n.toString());let s,i,a=!1;for(s=0,i=t.length;s<i;s++)if(o(t[s],r)){a=!0;break}if(a)for(s=0,i=e.length;s<i;s++)if(o(e[s],r)){a=!1;break}return a}(a)?a:void s(Pe("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",a.toString())):n===De.HTML?i():void s(Pe("unsafe","Attempting to use an unsafe value in a safe context.")))},valueOf:function(t){return t instanceof c?t.$$unwrapTrustedValue():t}}}]}}function He(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=[ee.$parse,ee.$sceDelegate,(e,n)=>{const r=ot(De);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=(t,n)=>{const s=e(n);return s.literal&&s.constant?s:e(n,e=>r.getTrusted(t,e))};const s=r.parseAs,{getTrusted:i}=r,{trustAs:o}=r;return Object.entries(De).forEach(([t,e])=>{const n=g(t);r[Tt(`parse_as_${n}`)]=function(t){return s(e,t)},r[Tt(`get_trusted_${n}`)]=function(t){return i(e,t)},r[Tt(`trust_as_${n}`)]=function(t){return o(e,t)}}),r}]}const Fe={};function qe(t,e,n,r,s){return{restrict:"A",compile(n,i){const o=t(i[r]);return(t,n)=>{const r=n=>{try{o(t,{$event:n})}catch(t){e(t)}};n.addEventListener(s,r),t.$on("$destroy",()=>n.removeEventListener(s,r))}}}}function Be(t,e,n,r,s){return{restrict:"A",compile(i,o){const a=t(o[r]);return t=>{const r=n=>{try{a(t,{$event:n})}catch(t){e(t)}};n.addEventListener(s,r),t.$on("$destroy",()=>n.removeEventListener(s,r))}}}}"click copy cut dblclick focus blur keydown keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup paste submit touchstart touchend touchmove offline online".split(" ").forEach(t=>{const e=$t(`ng-${t}`);Fe[e]=[ee.$parse,ee.$exceptionHandler,ee.$window,(n,r,s)=>qe(n,r,s,e,t)]});const ze=dt("$compile"),We=/^\w/,Ke=document.createElement("div");class Ge{static $nonscope=!0;constructor(t,e,n,r,s,i){if(this.$rootScope=t,this.$animate=e,this.$exceptionHandler=n,this.$sce=r,i){const t=Object.keys(i);for(let e=0,n=t.length;e<n;e++){const n=t[e];this[n]=i[n]}}else this.$attr={};this.$nodeRef=s}get $$element(){return this.$nodeRef.node}$normalize=$t;$addClass(t){t&&t.length>0&&(mt(this.$$element)?this.$animate.addClass(this.$$element,t):this.$nodeRef.element.classList.add(t))}$removeClass(t){t&&t.length>0&&(mt(this.$$element)?this.$animate.removeClass(this.$$element,t):this.$nodeRef.element.classList.remove(t))}$updateClass(t,e){const n=Qe(t,e);n&&n.length&&(mt(this.$$element)?this.$animate.addClass(this.$$element,n):this.$nodeRef.element.classList.add(...n.trim().split(/\s+/)));const r=Qe(e,t);r&&r.length&&(mt(this.$$element)?this.$animate.removeClass(this.$$element,r):this.$nodeRef.element.classList.remove(...r.trim().split(/\s+/)))}$set(t,e,n,r){const s=Kt(this.$$element,t),i=h[t];let o=t;if(s?(this.$$element[t]=e,r=s):i&&(this[i]=e,o=i),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=V(t,"-")),"img"===this.$nodeRef.node.nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=this.sanitizeSrcset(e,"$set('srcset', value)")),!1!==n){let t=p(this.$$element)?this.$$element.$target:this.$$element;null===e||y(e)?t.removeAttribute(r):We.test(r)?s&&!1===e?t.removeAttribute(r):s?t.toggleAttribute(r,e):t.setAttribute(r,e):this.setSpecialAttr(this.$$element,r,e)}const{$$observers:a}=this;a&&a[o]&&a[o].forEach(t=>{try{t(e)}catch(t){this.$exceptionHandler(t)}})}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),r.$$inter||!vt(this,t)||y(this[t])||e(this[t]),function(){q(r,e)}}setSpecialAttr(t,e,n){Ke.innerHTML=`<span ${e}>`;const{attributes:r}=Ke.firstChild,s=r[0];r.removeNamedItem(s.name),s.value=n,t.attributes.setNamedItem(s)}sanitizeSrcset(t,e){let n;if(!t)return t;if(!E(t))throw ze("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());let r="";const s=L(t),i=/\s/.test(s)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=s.split(i),a=Math.floor(o.length/2);for(n=0;n<a;n++){const t=2*n;r+=this.$sce.getTrustedMediaUrl(L(o[t])),r+=" "+L(o[t+1])}const c=L(o[2*n]).split(/\s/);return r+=this.$sce.getTrustedMediaUrl(L(c[0])),2===c.length&&(r+=" "+L(c[1])),r}}function Qe(t,e){const n=new Set(t.split(/\s+/)),r=new Set(e.split(/\s+/));return Array.from(n).filter(t=>!r.has(t)).join(" ")}function Je(t,e){return{restrict:"A",compile:()=>(n,r)=>{const s=r;""===e&&(e=t);const i=_t(e);n[i]||(n[i]=s.getAttribute(t));const o=new MutationObserver(e=>{const r=e[0].target.getAttribute(t);n[i]!==r&&(n[i]=r)});o.observe(s,{attributes:!0,attributeFilter:[t]}),n.$on("$destroy",()=>{o.disconnect()})}}}const Ze=dt("$compile"),Ye=["ngIf","ngRepeat"],Xe=["ngSrc","ngSrcset","src","srcset"],tn=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,en=/^(on[a-z]+|formaction)$/,nn="Directive";class rn{static $inject=[ee.$provide,ee.$$sanitizeUriProvider];constructor(t,e){const n={},r=Object.create(null);function s(t,e,n){const s=/^([@&]|[=<]())(\??)\s*([\w$]*)$/,i=Object.create(null);return Object.entries(t).forEach(([t,o])=>{if((o=o.trim())in r)return void(i[t]=r[o]);const a=o.match(s);if(!a)throw Ze("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,t,o,n?"controller bindings definition":"isolate scope definition");i[t]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||t},a[4]&&(r[o]=i[t])}),i}function i(t,e){const n={isolateScope:null,bindToController:null};if(w(t.scope)&&(!0===t.bindToController?(n.bindToController=s(t.scope,e,!0),n.isolateScope={}):n.isolateScope=s(t.scope,e,!1)),w(t.bindToController)&&(n.bindToController=s(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw Ze("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(r,s){return ct(r,"name"),W(r,"directive"),E(r)?(!function(t){const e=t.charAt(0);if(!e||e!==g(e))throw Ze("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw Ze("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(r),ct(s,"directiveFactory"),vt(n,r)||(n[r]=[],t.factory(r+nn,["$injector","$exceptionHandler",function(t,e){const s=[];return n[r].forEach((n,i)=>{try{let e=t.invoke(n);const o=t=>()=>t;k(e)?e={compile:o(e)}:!e.compile&&e.link&&(e.compile=o(e.link)),e.priority=e.priority||0,e.index=i,e.name=e.name||r,e.require=function(t){const e=t.require||t.controller&&t.name;return!Array.isArray(e)&&w(e)&&Object.entries(e).forEach(([t,n])=>{const r=n.match(tn);n.substring(r[0].length)||(e[t]=r[0]+t)}),e}(e),e.restrict=function(t,e){if(t&&(!E(t)||!/[EA]/.test(t)))throw Ze("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,r),e.$$moduleName=n.$$moduleName,s.push(e)}catch(t){e(t)}}),s}])),n[r].push(s)):Object.entries(r).forEach(([t,n])=>e(t,n)),this},this.component=function(t,e){if(!E(t))return Object.entries(t).forEach(([t,e])=>this.component(t,e)),this;const n=e.controller||function(){};function r(t){function r(e){return k(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const s=e.template||e.templateUrl?e.template:"",i={controller:n,controllerAs:je(e.controller)||e.controllerAs||"$ctrl",template:r(s),templateUrl:r(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return Object.entries(e).forEach(([t,e])=>{"$"===t.charAt(0)&&(i[t]=e)}),i}return Object.entries(e).forEach(([t,e])=>{"$"===t.charAt(0)&&(r[t]=e,k(n)&&(n[t]=e))}),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(t){if(!b(t))return e.aHrefSanitizationTrustedUrlList();e.aHrefSanitizationTrustedUrlList(t)},this.imgSrcSanitizationTrustedUrlList=function(t){if(!b(t))return e.imgSrcSanitizationTrustedUrlList();e.imgSrcSanitizationTrustedUrlList(t)};let o=!1;this.strictComponentBindingsEnabled=function(t){return b(t)?(o=t,this):o};const a=Object.create(null);this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in a&&a[r]!==n)throw Ze("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,a[r],n);return a[r]=n,this},function(){function t(t,e){e.forEach(e=>{a[e.toLowerCase()]=t})}t(De.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(De.CSS,["*|style"]),t(De.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(De.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(De.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,e,r,s,c,u,h,d,f){let $;function m(){for(let t=0,e=$.length;t<e;++t)try{$[t]()}catch(t){r(t)}$=void 0}const g=e.startSymbol(),v=e.endSymbol(),C="{{"===g&&"}}"===v?t=>t:t=>t.replace(/\{\{/g,g).replace(/}}/g,v),S=/^ng(Attr|Prop|On|Observe|Window)([A-Z].*)$/;return x;function x(t,e,n,r,s){let i=new ke(t),o=A(i,e,n,r,s),a=null;return function(t,e,n){if(!i)throw Ze("multilink","This element has already been linked.");ct(t,"scope"),i.getAny()&&It(i.getAny(),t);s&&s.needsNewScope&&(t=t.$parent.$new());n=n||{};let r,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=n;l&&l.$$boundTransclude&&(l=l.$$boundTransclude);a||(a=function(t){const e=t;if(!e)return"html";return"foreignobject"!==H(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u));if("html"!==a){const t=Jt("<div></div>");t.append(i.node);const e=G(a,t.innerHTML);r=new ke(e[0])}else r=e?i.clone():i;if(c)for(const t in c)ct(r.element,"element"),Pt(r.element,`$${t}Controller`,c[t].instance);e&&e(r.dom,t);o&&o(t,r,l);e||(i=o=null);return r.linked=!0,r.getAll()}}function A(t,e,n,s,i){const o=[];let a,c=!1;for(let l=0;l<t.size;l++){const u=new Ge(h,f,r,d),p=T(t.getIndex(l),u,0===l?n:void 0,s);let $,m,g;p.length&&($=V(p,t.getIndex(l),u,e,null,[],[],Object.assign({},i,{index:l,parentNodeRef:t,ctxNodeRef:t})));let v=$?.nodeLinkFn;if(v&&$.terminal||!(g=t.getIndex(l).childNodes)||!g.length)m=null;else{let t=v?($.transcludeOnThisElement||!$.templateOnThisElement)&&$.transclude:e;m=A(new ke(g),t)}(v||m)&&(o.push({index:l,nodeLinkFnCtx:$,childLinkFn:m}),c=!0,a=a||v),i=null}return c?function(n,r,s){ct(r,"nodeRef");let i=[];if(a){const e=r.isList?r.nodes.length:1;i=new Array(e),o.forEach(e=>{let n=e.index;0===n?i[n]=r.isList?r.nodes[n]:r.node:t.getIndex(n)&&(i[n]=r.nodes[n])})}else r.isList?r.nodes.forEach(t=>i.push(t)):i.push(r.node);o.forEach(({index:t,nodeLinkFnCtx:r,childLinkFn:o})=>{const a=i[t];let c,l;a.stable=!0,r?.nodeLinkFn?(c=r.newScope?n.$new():n,l=r.transcludeOnThisElement?_(n,r.transclude,s):!r.templateOnThisElement&&s?s:!s&&e?_(n,e):null,r?.newScope&&It(a,c),r.nodeLinkFn(o,c,a,l)):o&&o(n,new ke(a.childNodes),s)})}:null}function _(t,e,n){function r(r,s,i,o,a){r||((r=t.$transcluded(a)).$$transcluded=!0);return e(r,s,{parentBoundTranscludeFn:n,transcludeControllers:i,futureParentElement:o})}const s=r.$$slots=Object.create(null);for(const r in e.$$slots)e.$$slots[r]?s[r]=_(t,e.$$slots[r],n):s[r]=null;return r}function T(t,n,s,i){const o=[],{nodeType:a}=t,u=n.$attr;let h;switch(a){case Node.ELEMENT_NODE:h=t.nodeName.toLowerCase(),i!==$t(h)&&I(o,$t(h),"E",s);for(let e=0;e<t.attributes?.length;e++){let a=!1,h=!1,d=!1,p=!1,f=!1,$=t.attributes[e],m=$.name,g=$.value,v=$t(m.toLowerCase());const y=v.match(S);y&&(a="Attr"===y[1],h="Prop"===y[1],d="On"===y[1],p="Observe"===y[1],f="Window"===y[1],m=m.replace(l,"").toLowerCase().substring(4+y[1].length).replace(/_(.)/g,(t,e)=>e.toUpperCase())),h||d||f?(n[v]=g,u[v]=$.name,h?Q(t,o,v,m):d?o.push(qe(c,r,window,v,m)):o.push(Be(c,r,window,v,m))):p?o.push(Je(m,g)):(v=$t(m.toLowerCase()),u[v]=m,!a&&vt(n,v)||(n[v]=g,Kt(t,v)&&(n[v]=!0)),Z(t,o,g,v,a),v!==i&&I(o,v,"A",s))}"input"===h&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:()=>(t,e)=>{r.expressions.forEach(n=>{t.$watch(n,()=>{const n=r(p(t)?t.$target:t);if(1===e.nodeType)e.innerHTML=n;else e.nodeValue=n})})}})}(o,t.nodeValue)}return o.sort(W),o}function N(t,e,n,r,s,i){let o;return t?x(e,n,r,s,i):function(){return o||(o=x(e,n,r,s,i),e=n=i=null),o.apply(this,arguments)}}function V(t,e,n,s,i,o,a,c){c=c||{};let l=-Number.MAX_VALUE,p=!1,{newScopeDirective:$,controllerDirectives:m,newIsolateScopeDirective:g,templateDirective:v,nonTlbTranscludeDirective:b,hasElementTranscludeDirective:S,ctxNodeRef:x,parentNodeRef:A}=c,O=!1,_=!1,R=new ke(e);const V=c.index;let D,I,B;n.$nodeRef=R;let z,W=i,Q=s,Z=!1,tt=!1,nt=function(t,s,i,c){let l,p,v,b,E,C,x,A,O,_=s;e===i?(A=n,x=n.$nodeRef):(x=new ke(i),A=new Ge(h,f,r,d,x,n)),b=s,g?v=s.$newIsolate():$&&(b=s.$parent),c&&(C=function(t,e,n,r){let s;j(t)||(r=n,n=e,e=t,t=void 0);S&&(s=E);n||(n=S?x.node.parentElement:x.node);if(!r)return c(t,e,s,n,_);{const i=c.$$slots[r];if(i)return i(t,e,s,n,_);if(y(i))throw Ze("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,zt(x.element))}},C.$$boundTransclude=c,C.isSlotFilled=function(t){return!!c.$$slots[t]}),m&&(E=function(t,e,n,r,s,i,o){const a=Object.create(null);for(const c in r){const l=r[c],h={$scope:l===o||l.$$isolateScope?s:i,$element:t.node,$attrs:e,$transclude:n};let{controller:d}=l;"@"===d&&(d=e[l.name]);const p=u(d,h,!0,l.controllerAs);a[l.name]=p,t.isElement()&&Pt(t.element,`$${l.name}Controller`,p.instance)}return a}(x,A,C,m,v,s,g)),g&&(v.$target.$$isolateBindings=g.$$isolateBindings,O=et(s,A,v,v.$$isolateBindings,g),O.removeWatches&&v.$on("$destroy",O.removeWatches));for(const t in E){const e=m[t],n=E[t],r=e.$$bindings.bindToController,s=n();n.instance=b.$new(s),Pt(x.node,`$${e.name}Controller`,n.instance),n.bindingInfo=et(b,A,n.instance,r,e)}for(m&&Object.entries(m).forEach(([t,e])=>{const{require:n}=e;e.bindToController&&!Array.isArray(n)&&w(n)&&M(E[t].instance,P(t,n,x.element,E))}),E&&Object.values(E).forEach(t=>{const e=t.instance;if(k(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){r(t)}if(k(e.$onInit))try{e.$target.$onInit()}catch(t){r(t)}k(e.$onDestroy)&&b.$on("$destroy",()=>{e.$onDestroy()})}),l=0,p=o.length;l<p;l++){let t=o[l];const e=t.require&&P(t.directiveName,t.require,x.element,E);try{t(t.isolateScope?v:s,x.node,A,e,C)}catch(t){r(t,zt(x.getAny()))}}for(g&&(g.template||null===g.templateUrl)&&(_=v),t&&i&&i.childNodes&&i.childNodes.length&&t(_,new ke(i.childNodes),c),l=a.length-1;l>=0;l--){let t=a[l];const e=t.require&&P(t.directiveName,t.require,x.node,E);try{t.isolateScope&&Ht(x.element,v),t(t.isolateScope?v:s,x.node,A,e,C)}catch(t){r(t,zt(x.getAny()))}}E&&Object.values(E).forEach(t=>{const e=t.instance;k(e.$postLink)&&e.$postLink()})};for(let i=0,u=t.length;i<u&&(D=t[i],B=void 0,!(l>D.priority));i++){z=D.scope,z&&(D.templateUrl||(w(z)?(K("new/isolated scope",g||$,D,R),g=D):K("new/isolated scope",g,D,R)),$=$||D),I=D.name;const h=D.replace&&(D.templateUrl||D.template),d=D.transclude&&!Ye.includes(D.name);if(!Z&&(h||d)){let e;for(let n=i+1;e=t[n++];)if(e.transclude&&!Ye.includes(e.name)||e.replace&&(e.templateUrl||e.template)){tt=!0;break}Z=!0}if(!D.templateUrl&&D.controller&&(m=m||Object.create(null),K(`'${I}' controller`,m[I],D,R),m[I]=D),z=D.transclude,z)if(O=!0,Ye.includes(D.name)||(K("transclusion",b,D,R),b=D),"element"===z)S=!0,l=D.priority,B=R,R=new ke(document.createComment("")),n.$nodeRef=R,e=R.node,x.node=e,Y(new ke(B.getAny()),e,V),Q=N(tt,B.getAny(),s,l,W&&W.name,{nonTlbTranscludeDirective:b});else{const t=Object.create(null);if(w(z)){B=document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);Object.entries(z).forEach(([r,s])=>{const i="?"===s.charAt(0);s=i?s.substring(1):s,e[s]=r,t[r]=null,n[r]=i}),R.element.childNodes.forEach(r=>{const s=e[$t(H(r))];s?(n[s]=!0,t[s]=t[s]||document.createDocumentFragment(),t[s].appendChild(r)):B.appendChild(r)}),Object.entries(n).forEach(([t,e])=>{if(!e)throw Ze("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(const e in t)if(t[e]){const n=t[e].childNodes;t[e]=N(tt,n,s)}B=B.childNodes}else B=e.cloneNode(!0).childNodes;Yt(e),Q=N(tt,B,s,void 0,void 0,{needsNewScope:D.$$isolateScope||D.$$newScope}),Q.$$slots=t}if(D.template)if(_=!0,K("template",v,D,R),v=D,z=k(D.template)?D.template(R.node,n):D.template,z=C(z),D.replace){if(W=D,B=Nt(z)?[]:sn(G(D.templateNamespace,L(z))),E(B)&&(B=Array.from(Zt(B)).filter(t=>t.nodeType===Node.ELEMENT_NODE)),e=B[0],1!==B.length||e.nodeType!==Node.ELEMENT_NODE)throw Ze("tplrt","Template for directive '{0}' must have exactly one root element. {1}",I,"");Y(R,e),A&&A.setIndex(V,e);const r={$attr:{}},s=T(e,r),o=t.splice(i+1,t.length-(i+1));(g||$)&&U(s,g,$),t=t.concat(s).concat(o),F(n,r),u=t.length}else R.isElement()&&(R.element.innerHTML=z);if(D.templateUrl)_=!0,K("template",v,D,R),v=D,D.replace&&(W=D),nt=q(t.splice(i,t.length-i),R,n,e,O&&Q,o,a,{index:V,controllerDirectives:m,newScopeDirective:$!==D&&$,newIsolateScopeDirective:g,templateDirective:v,nonTlbTranscludeDirective:b,futureParentElement:c.futureParentElement}),u=t.length;else if(D.compile)try{const t=D.compile(R.getAny(),n,Q),e=D.$$originalDirective||D;k(t)?rt(null,J(e,t)):t&&rt(J(e,t.pre),J(e,t.post))}catch(t){r(t,zt(R.getAny()))}D.terminal&&(p=!0,l=Math.max(l,D.priority))}return c.hasElementTranscludeDirective=S,{nodeLinkFn:nt,terminal:p,transclude:Q,transcludeOnThisElement:O,templateOnThisElement:_,newScope:$&&!0===$.scope};function rt(t,e){t&&(t.require=D.require,t.directiveName=I,(g===D||D.$$isolateScope)&&(t=X(t,{isolateScope:!0})),o.push(t)),e&&(e.require=D.require,e.directiveName=I,(g===D||D.$$isolateScope)&&(e=X(e,{isolateScope:!0})),a.push(e))}}function P(t,e,n,r){let s;if(E(e)){const i=e.match(tn),o=e.substring(i[0].length),a=i[1]||i[3],c="?"===i[2];if("^^"===a?n=n.parentElement?n.parentElement:void 0:(s=r&&r[o],s=s&&s.instance),!s){const t=`$${o}Controller`;s="^^"===a&&n&&n.nodeType===Node.DOCUMENT_NODE?null:n?a?qt(n,t):Dt(n,t):void 0}if(!s&&!c)throw Ze("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,t)}else if(Array.isArray(e)){s=[];for(let i=0,o=e.length;i<o;i++)s[i]=P(t,e[i],n,r)}else w(e)&&(s={},Object.entries(e).forEach(([e,i])=>{s[e]=P(t,i,n,r)}));return s||null}function U(t,e,n){for(let r=0,s=t.length;r<s;r++)t[r]=D(t[r],{$$isolateScope:e,$$newScope:n})}function I(e,r,s,o){let a=!1;if(vt(n,r))for(let n,c=t.get(r+nn),l=0,u=c.length;l<u;l++)if(n=c[l],(y(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(!n.$$bindings){const t=n.$$bindings=i(n,n.name);w(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),a=n}return a}function F(t,e){const n=e.$attr,r=t.$attr;Object.entries(t).forEach(([r,s])=>{"$"!==r.charAt(0)&&(e[r]&&e[r]!==s&&(s.length?s+=("style"===r?";":" ")+e[r]:s=e[r]),t.$set(r,s,!0,n[r]))}),Object.entries(e).forEach(([e,s])=>{vt(t,e)||"$"===e.charAt(0)||(t[e]=s,"class"!==e&&"style"!==e&&(r[e]=n[e]))})}function q(t,e,n,i,o,a,c,l){let u,h,d,p=[];const f=e.getAny(),$=t.shift(),m=D($,{templateUrl:null,transclude:null,replace:null,$$originalDirective:$}),g=k($.templateUrl)?$.templateUrl(e.element,n):$.templateUrl,{templateNamespace:v}=$;return Yt(e.element),s(g).then(r=>{let s,y,b,S;if(r=C(r),$.replace){if(b=Nt(r)?[]:E(r)?Array.from(Zt(r)).filter(t=>t.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.TEXT_NODE):sn(G(v,L(r))),s=b[0],1!==b.length||s.nodeType!==Node.ELEMENT_NODE)throw Ze("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$.name,g);y={$attr:{}},Y(e,s,l.index);const i=T(s,y);w($.scope)&&U(i,!0),t=i.concat(t),F(n,y)}else s=f,e.element.innerHTML=r;for(t.unshift(m),d=V(t,s,n,o,$,a,c,{...l,ctxNodeRef:e}),u=d?.nodeLinkFn,i&&Object.entries(i).forEach(([t,n])=>{n===s&&(i[t]=e)}),h=A(new ke(e.getAny().childNodes),o);p.length;){const t=p.shift(),n=p.shift(),r=p.shift();let i=e.getAny();if(!t.$$destroyed){if(n!==f){const t=n.className;l.hasElementTranscludeDirective&&$.replace||(i=s.cloneNode(!0),n.appendChild(i));try{""!==t&&e.element.classList.forEach(t=>n.classList.add(t))}catch{}}S=d.transcludeOnThisElement?_(t,d.transclude,r):r,u(h,t,i,S)}}p=null}).catch(t=>{O(t)?r(t):r(new Error(t))}),function(t,e,n,r,s){let i=s;e.$$destroyed||(p?p.push(e,n,r):(u.transcludeOnThisElement&&(i=_(e,u.transclude,s)),u(h,e,n,r,i)))}}function W(t,e){const n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function K(t,e,n,r){function s(t){return t?` (module: ${t})`:""}if(e)throw Ze("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,s(e.$$moduleName),n.name,s(n.$$moduleName),t,zt(r.getAny()))}function G(t,e){switch(t=(t||"html").toLowerCase()){case"svg":case"math":{const n=document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes}default:return e}}function Q(t,e,n,r){if(en.test(r))throw Ze("nodomevents","Property bindings for HTML DOM event properties are disallowed");const s=H(t),i=function(t,e){const n=e.toLowerCase();return a[`${t}|${n}`]||a[`*|${n}`]}(s,r);let o=t=>t;"srcset"!==r||"img"!==s&&"source"!==s?i&&(o=d.getTrusted.bind(d,i)):o=t=>function(t,e){if(!t)return t;if(!E(t))throw Ze("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());let n="";const r=L(t),s=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,i=r.split(s),o=Math.floor(i.length/2);let a;for(a=0;a<o;a++){const t=2*a;n+=d.getTrustedMediaUrl(L(i[t])),n+=" "+L(i[t+1])}const c=L(i[2*a]).split(/\s/);return n+=d.getTrustedMediaUrl(L(c[0])),2===c.length&&(n+=" "+L(c[1])),n}(d.valueOf(t),"ng-prop-srcset"),e.push({priority:100,compile:function(t,e){const s=c(e[n]);return{pre:function(t,i){function a(){const e=s(t);i[r]=o(e)}a(),t.$watch(r,a),t.$watch(e[n],t=>{d.valueOf(t),a()})}}}})}function Z(t,n,r,s,i){const o=H(t),a=function(t,e){return"srcdoc"===e?d.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?d.RESOURCE_URL:d.MEDIA_URL:"xlinkHref"===e?"image"===t?d.MEDIA_URL:"a"===t?d.URL:d.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?d.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:d.URL}(o,s),c=!i,l=Xe.includes(s)||i;let u=e(r,c,a,l);if(u){if("multiple"===s&&"select"===o)throw Ze("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",zt(t.outerHTML));if(en.test(s))throw Ze("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:()=>({pre:function(t,n,i){const o=i.$$observers||(i.$$observers=Object.create(null)),c=i[s];c!==r&&(u=c&&e(c,!0,a,l),r=c),u&&(i[s]=u(t),(o[s]||(o[s]=[])).$$inter=!0,u.expressions.forEach(e=>{(i.$$observers&&i.$$observers[s].$$scope||t).$watch(e,()=>{let e=u(t);"class"===s?i.$updateClass(e,i.$$element.classList.value):i.$set(s,e)})}),0==u.expressions.length&&i.$set(s,c))}})})}}function Y(t,e,n){const r=t.getAny().parentNode;if(r)if(b(n)){const t=r.childNodes[n];t&&r.replaceChild(e,t)}else r.insertBefore(e,r.firstChild);const s=document.createDocumentFragment();t.collection().forEach(t=>{s.appendChild(t)}),t.node=e}function X(t,e){return M(function(){return t.apply(null,arguments)},t,e)}function tt(t,e){if(o)throw Ze("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function et(t,n,r,s,i){const o=[],a={};let l;function u(e,n,s){k(r.$onChanges)&&($||(t.$postUpdate(m),$=[]),l||(l={},$.push(h)),l[e]={currentValue:n,firstChange:s})}function h(){r.$onChanges&&l&&r.$onChanges(l),l=void 0}return s&&Object.entries(s).forEach(([s,l])=>{const{attrName:d,optional:p,mode:f}=l;let $,m,g,v,C,S=!0,x=!0;switch(f){case"@":p||vt(n,d)||(tt(d,i.name),r[s]=n[d]=void 0),C=n.$observe(d,t=>{(E(t)||R(t))&&(u(s,t,x),r[s]=t,S?S=!1:(h(),x=!1))}),n.$$observers[d].$$scope=t,$=n[d],E($)?r[s]=e($)(t):R($)&&(r[s]=$),a[s]={currentValue:r[s],firstChange:!0},o.push(C);break;case"=":{if(!vt(n,d)){if(p)break;tt(d,i.name),n[d]=void 0}if(p&&!n[d])break;m=c(n[d]),v=m.literal?z:B,g=m.assign||function(){throw $=r.$target[s]=m(t),Ze("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[d],d,i.name)},$=r.$target[s]=m(t.$target);const e=function(e){return v(e,r[s])||(v(e,$)?g(t,e=r[s]):r[s]=e),$=e,$};if(e.$stateful=!0,l.collection)C=t.$watch(n[d],e);else{if(n[d]){let r=n[d];t.$watch(r,r=>{const s=c(n[d],e);r?(m.literal?t.$target[d]=r:t[d]=r,s(t)):t[d]=t[n[d]]},!0)}C=r.$watch(d,e=>{if(e!==$||y(n[d])){if(m.inputs&&!m.literal||y(n[d])&&b(e))throw r.$target[d]=$,Ze("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[d],d,i.name);w(e)?Object.entries(e).forEach(([e,n])=>{t.$target[e]=n}):(g(t.$target,$=e),t.$handler.watchers.get(n[d])?.forEach(t=>{t.listenerFn(e)}))}},!0)}o.push(C);break}case"<":if(!vt(n,d)){if(p)break;tt(d,i.name),n[d]=void 0}if(p&&!n[d])break;m=c(n[d]),r.$target[s]=m(t.$target),a[s]={currentValue:r.$target[s],firstChange:x},t.$target.attrs=n,n[d]&&(C=t.$watch(n[d],t=>{r.$target[s]=t,u(s,t,x),x&&(x=!1)},!0),o.push(C));break;case"&":if(p||vt(n,d)||tt(d,i.name),m=vt(n,d)?c(n[d]):()=>{},m.toString()===(()=>{}).toString()&&p)break;r.$target[s]=function(e){return m(t.$target,e)}}}),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}}function sn(t){let e=t.length;if(e<=1)return t;for(;e--;){const n=t[e];(n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&""===n.nodeValue.trim())&&[].splice.call(t,e,1)}return t}const on={$nonscope:!0,$addControl:()=>{},$getControls:()=>[],$$renameControl:(t,e)=>{t.$name=e},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},an="ng-pending",cn="ng-submitted";class ln{static $nonscope=!0;static $inject=["$element","$attrs","$scope","$animate","$interpolate"];constructor(t,r,s,i,o){this.$$controls=[],this.$name=o(r.name||r.ngForm||"")(s),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=on,this.$$element=t,this.$$animate=i,this.$error={},this.$$success={},this.$pending=void 0,this.$$classCache={};const a=this.$$element.classList.contains(e);this.$$classCache[e]=a,this.$$classCache[n]=!a}$rollbackViewValue(){this.$$controls.forEach(t=>{t.$rollbackViewValue()})}$commitViewValue(){this.$$controls.forEach(t=>{t.$commitViewValue()})}$addControl(t){W(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$target.$$parentForm=this}$getControls(){return ot(this.$$controls)}$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e}$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach(e=>{this.$setValidity(e,null,t)}),this.$error&&Object.keys(this.$error).forEach(e=>{this.$setValidity(e,null,t)}),this.$$success&&Object.keys(this.$$success).forEach(e=>{this.$setValidity(e,null,t)}),q(this.$$controls,t),t.$target.$$parentForm=on}$setDirty(){this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,s),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()}$setPristine(){this.$$animate.setClass(this.$$element,r,`${s} ${cn}`),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.$$controls.forEach(t=>{t.$setPristine()})}$setUntouched(){this.$$controls.forEach(t=>{t.$setUntouched()})}$setSubmitted(){let t=this;for(;t.$$parentForm&&t.$$parentForm!==on;)t=t.$$parentForm;t.$$setSubmitted()}$$setSubmitted(){this.$$animate.addClass(this.$$element,cn),this.$submitted=!0,this.$$controls.forEach(t=>{t.$$setSubmitted&&t.$$setSubmitted()})}set(t,e,n){const r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else p(t)&&(t=t.$target),t[e]=[n]}unset(t,e,n){const r=t[e];if(!r)return;-1===q(r,n)&&q(r,n.$target),0===r.length&&delete t[e]}$setValidity(t,r,s){let i,o=this;function a(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function c(t,r,s){r=r?`-${V(r,"-")}`:"",a(t,e+r,!0===s),a(t,n+r,!1===s)}y(r)?function(t,e,n,r){t[e]||(t[e]={});o.set(t[e],n,r)}(this,"$pending",t,s):function(t,e,n,r){t[e]&&o.unset(t[e],n,r);gt(t[e])&&(t[e]=void 0)}(this,"$pending",t,s),R(r)?r?(this.unset(this.$error,t,s),this.set(this.$$success,t,s)):(this.set(this.$error,t,s),this.unset(this.$$success,t,s)):(this.unset(this.$error,t,s),this.unset(this.$$success,t,s)),this.$pending?(a(this,an,!0),this.$valid=this.$invalid=void 0,c(this,"",null)):(a(this,an,!1),this.$valid=gt(this.$error),this.$invalid=!this.$valid,c(this,"",this.$valid)),i=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),c(this,t,i),this.$$parentForm.$setValidity(t,i,this)}}const un=function(t){return["$parse",function(n){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:ln,compile:function(s,i){s.classList.add(r,e);const o=i.name?"name":!(!t||!i.ngForm)&&"ngForm";return{pre:function(t,e,r,s){const i=s[0];if(!("action"in r)){const t=function(t){i.$commitViewValue(),i.$setSubmitted(),t.preventDefault()};e.addEventListener("submit",t),e.addEventListener("$destroy",()=>{setTimeout(()=>{e.removeEventListener("submit",t)},0,!1)})}(s[1]||i.$$parentForm).$addControl(i);let a=o?function(t){if(""===t)return n('this[""]').assign;return n(t).assign||(()=>{})}(i.$name):()=>{};o&&(a(t,i),r.$observe(o,e=>{i.$name!==e&&(t.$target[i.$name]=void 0,i.$$parentForm.$$renameControl(i,e),t.$target!==i.$$parentForm&&i.$$parentForm!==on||(t.$target[e]=i))})),e.addEventListener("$destroy",()=>{i.$target.$$parentForm.$removeControl(i),a(t,void 0),M(i,on)})}}}}}]},hn=un(),dn=un("ngForm"),pn=/(\s+|^)default(\s+|$)/;class fn{static $nonscope=!0;static $inject=["$attrs","$scope"];constructor(t,e){this.$$attrs=t,this.$$scope=e,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:mn,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}}class $n{static $nonscope=!0;constructor(t){this.$$options=t}getOption(t){return this.$$options[t]}createChild(t){let e=!1;return t=Object.assign({},t),Object.entries(t).forEach(([n,r])=>{"$inherit"===r?"*"===n?e=!0:(t[n]=this.$$options[n],"updateOn"===n&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===n&&(t.updateOnDefault=!1,t[n]=L(r.replace(pn,()=>(t.updateOnDefault=!0," "))))},this),e&&(delete t["*"],vn(t,this.$$options)),vn(t,mn.$$options),new $n(t)}}const mn=new $n({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),gn=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:fn}};function vn(t,e){Object.keys(e).forEach(n=>{b(t[n])||(t[n]=e[n])})}const yn=dt("ngModel");class bn{static $nonscope=!0;static $inject=["$scope",ee.$exceptionHandler,"$attrs","$element",ee.$parse,ee.$animate,ee.$interpolate];constructor(t,r,s,i,o,a,c){this.$viewValue=Number.NaN,this.$modelValue=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=c(s.name||"",!1)(t),this.$$parentForm=on,this.$options=mn,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=o(s.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$attr=s,this.$$element=i,this.$$animate=a,this.$$parse=o,this.$$exceptionHandler=r,this.$$hasNativeValidators=!1,this.$$classCache={};const l=this.$$element.classList.contains(e);var u;this.$$classCache[e]=l,this.$$classCache[n]=!l,this.$$eventRemovers=new Set,(u=this).$$scope.$watch("value",()=>{const t=u.$$ngModelGet(u.$$scope);t===u.$modelValue||u.$modelValue!=u.$modelValue&&t!=t||u.$$setModelValue(t)})}set(t,e){t[e]=!0}unset(t,e){delete t[e]}$setValidity(t,r){let s,i=this;function o(t,e,n){n&&!t.$$classCache[e]?(mt(t.$$element)?t.$$animate.addClass(t.$$element,e):t.$$element.classList.add(e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(mt(t.$$element)?t.$$animate.removeClass(t.$$element,e):t.$$element.classList.remove(e),t.$$classCache[e]=!1)}function a(t,r,s){r=r?`-${V(r,"-")}`:"",o(t,e+r,!0===s),o(t,n+r,!1===s)}y(r)?function(t,e,n){t[e]||(t[e]={}),i.set(t[e],n)}(this,"$pending",t):function(t,e,n){t[e]&&i.unset(t[e],n),gt(t[e])&&(t[e]=void 0)}(this,"$pending",t),R(r)?r?(delete this.$error[t],this.set(this.$$success,t)):(this.set(this.$error,t),delete this.$$success[t]):(delete this.$error[t],delete this.$$success[t]),this.$pending?(o(this,an,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,an,!1),this.$valid=gt(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),s=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,s),this.$$parentForm.$setValidity(t,s,this)}$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=e=>{let n=this.$$parsedNgModel(e);return k(n)&&(n=t(e)),n},this.$$ngModelSet=(t,n)=>{k(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw yn("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,zt(this.$$element))}$render(){}$isEmpty(t){return y(t)||""===t||null===t||t!=t}$$updateEmptyClasses(t){this.$isEmpty(t)?mt(this.$$element)?(this.$$animate.removeClass(this.$$element,c),this.$$animate.addClass(this.$$element,a)):(this.$$element.classList.remove(c),this.$$element.classList.add(a)):mt(this.$$element)?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,c)):(this.$$element.classList.remove(a),this.$$element.classList.add(c))}$setPristine(){this.$dirty=!1,this.$pristine=!0,this.$$element&&(mt(this.$$element)?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,r)):(this.$$element.classList.remove(a),this.$$element.classList.add(r)))}$setDirty(){this.$dirty=!0,this.$pristine=!1,mt(this.$$element)?(this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,s)):(this.$$element.classList.remove(r),this.$$element.classList.add(s)),this.$$parentForm.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,mt(this.$$element)?this.$$animate.setClass(this.$$element,i,o):(this.$$element.classList.remove(o),this.$$element.classList.add(i))}$setTouched(){this.$touched=!0,this.$untouched=!1,mt(this.$$element)?this.$$animate.setClass(this.$$element,o,i):(this.$$element.classList.remove(i),this.$$element.classList.add(o))}$rollbackViewValue(){clearTimeout(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()}$validate(){if(P(this.$modelValue))return;const t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,s=this.$options.getOption("allowInvalid"),i=this;this.$$runValidators(e,t,t=>{s||n===t||(i.$modelValue=t?e:void 0,i.$modelValue!==r&&i.$$writeModelToScope())})}$$runValidators(t,e,n){this.$$currentValidationRunId++;const r=this.$$currentValidationRunId,s=this;function i(t,e){r===s.$$currentValidationRunId&&s.$setValidity(t,e)}function o(t){r===s.$$currentValidationRunId&&n(t)}!function(){const t=s.$$parserName;if(!y(s.$$parserValid))return s.$$parserValid||(Object.keys(s.$validators).forEach(t=>{i(t,null)}),Object.keys(s.$asyncValidators).forEach(t=>{i(t,null)})),i(t,s.$$parserValid),s.$$parserValid;i(t,null);return!0}()?o(!1):function(){let n=!0;if(Object.entries(s.$validators).forEach(([r,s])=>{const o=Boolean(s(t,e));n=n&&o,i(r,o)}),!n)return Object.keys(s.$asyncValidators).forEach(t=>{i(t,null)}),!1;return!0}()?function(){const n=[];let r=!0;Object.entries(s.$asyncValidators).forEach(([s,o])=>{const a=o(t,e);if(!N(a))throw yn("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);i(s,void 0),n.push(a.then(()=>{i(s,!0)},()=>{r=!1,i(s,!1)}))}),n.length?Promise.all(n).then(()=>{o(r)},()=>{}):o(!0)}():o(!1)}$commitViewValue(){clearTimeout(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==this.$viewValue||""===this.$viewValue&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(this.$viewValue)||(this.$$updateEmptyClasses(this.$viewValue),this.$$lastCommittedViewValue=this.$viewValue,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))}$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!y(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(let e=0;e<this.$parsers.length;e++)if(t=this.$parsers[e](t),y(t)){this.$$parserValid=!1;break}P(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function s(){e.$modelValue!=n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,s()),this.$$runValidators(t,this.$$lastCommittedViewValue,n=>{r||(e.$modelValue=n?t:void 0,s())})}$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),Object.values(this.$viewChangeListeners).forEach(t=>{try{t()}catch(t){this.$$exceptionHandler(t)}},this)}$setViewValue(t,e){this.$viewValue=t,this.$options?.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)}$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");x(e[t])?e=e[t]:x(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:x(e["*"])&&(e=e["*"]),clearTimeout(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=setTimeout(()=>{n.$commitViewValue()},e):this.$commitViewValue()}$overrideModelOptions(t){this.$$removeAllEventListeners(),this.$options=this.$options.createChild(t),this.$$updateEvents=this.$options.$$options.updateOn,this.$$setUpdateOnEvents()}$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,()=>{}))}$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n}$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()}$$removeAllEventListeners(){this.$$eventRemovers.forEach(t=>t()),this.$$eventRemovers.clear()}$$setUpdateOnEvents(){this.$$updateEvents&&this.$$updateEvents.split(" ").forEach(t=>{this.$$element.addEventListener(t,this.$$updateEventHandler),this.$$eventRemovers.add(()=>this.$$element.removeEventListener(t,this.$$updateEventHandler))}),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$updateEvents.split(" ").forEach(t=>{this.$$element.addEventListener(t,this.$$updateEventHandler),this.$$eventRemovers.add(()=>this.$$element.removeEventListener(t,this.$$updateEventHandler))})}$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}}function wn(){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:bn,priority:1,compile:t=>(t.classList.add(r,i,e),{pre:(t,e,n,r)=>{const s=r[0],i=r[1]||s.$$parentForm,o=r[2];o&&(s.$options=o.$options),s.$$initGetterSetters(),i.$addControl(s),n.$observe("name",t=>{s.$name!==t&&s.$$parentForm.$$renameControl(s,t)});let a=t.$watch(n.ngModel,t=>{s.$$setModelValue(p(t)?t.$target:t)});t.$on("$destroy",()=>{s.$$parentForm.$removeControl(s),a()})},post:(t,e,n,r)=>{const s=r[0];s.$$setUpdateOnEvents(),e.addEventListener("blur",()=>{s.$touched||s.$setTouched()}),s.$viewChangeListeners.push(()=>t.$eval(e.dataset.change))}})}}const En=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Cn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Sn=/^(?=.{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])?)*$/,xn=/^\s*([-+])?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,An=/^(\d{4,})-(\d{2})-(\d{2})$/,On=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,kn=/^(\d{4,})-W(\d\d)$/,_n=/^(\d{4,})-(\d\d)$/,Tn=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,jn="validity",Rn=new Map;"date,datetime-local,month,time,week".split(",").forEach(t=>{Rn.set(t,!0)});const Nn={text:function(t,e,n,r){Vn(t,e,n,r),Ln(r)},date:Dn("date",An,Mn(An,["yyyy","MM","dd"])),"datetime-local":Dn("datetimelocal",On,Mn(On,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Dn("time",Tn,Mn(Tn,["HH","mm","ss","sss"])),week:Dn("week",kn,function(t,e){if(A(t))return t;if(E(t)){kn.lastIndex=0;const n=kn.exec(t);if(n){const t=+n[1],r=+n[2];let s=0,i=0,o=0,a=0;const c=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}(t),l=7*(r-1);return e&&(s=e.getHours(),i=e.getMinutes(),o=e.getSeconds(),a=e.getMilliseconds()),new Date(t,0,c.getDate()+l,s,i,o,a)}}return NaN}),month:Dn("month",_n,Mn(_n,["yyyy","MM"])),number:function(t,e,n,r,s,i){let o;if(Un(t,e,n,r,"number"),In(r),Vn(t,e,n,r),b(n.min)||n.ngMin){let e=n.min||i(n.ngMin)(t);o=Hn(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||y(o)||e>=o},n.$observe("min",t=>{t!==e&&(o=Hn(t),e=t,r.$validate())})}if(b(n.max)||n.ngMax){let e=n.max||i(n.ngMax)(t),s=Hn(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||y(s)||e<=s},n.$observe("max",t=>{t!==e&&(s=Hn(t),e=t,r.$validate())})}if(b(n.step)||n.ngStep){let e=n.step||i(n.ngStep)(t),s=Hn(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||y(s)||Bn(e,o||0,s)},n.$observe("step",t=>{t!==e&&(s=Hn(t),e=t,r.$validate())})}},url:function(t,e,n,r){Vn(t,e,n,r),Ln(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||Cn.test(n)}},email:function(t,e,n,r){Vn(t,e,n,r),Ln(r),r.$validators.email=function(t,e){const n=t||e;return r.$isEmpty(n)||Sn.test(n)}},radio:function(t,e,n,r){const s=!n.ngTrim||"false"!==L(n.ngTrim);y(n.name)&&e.setAttribute("name",m());e.addEventListener("change",function(t){let i;e.checked&&(i=n.value,s&&(i=L(i)),r.$setViewValue(i,t&&t.type))}),r.$render=function(){let{value:t}=n;s&&(t=L(t));const i=p(r.$viewValue)?r.$viewValue.$target:r.$viewValue;e.checked=(p(t)?t.$target:t)===(p(i)?i.$target:i)},n.$observe("value",r.$render)},range:function(t,e,n,r){Un(t,e,n,r,"range"),In(r),Vn(t,e,n,r);const s=r.$$hasNativeValidators&&"range"===e.type;let i=s?0:void 0,o=s?100:void 0,a=s?1:void 0;const{validity:c}=e,l=b(n.min),u=b(n.max),h=b(n.step),d=r.$render;r.$render=s&&b(c.rangeUnderflow)&&b(c.rangeOverflow)?function(){d(),r.$setViewValue(e.value)}:d,l&&(i=Hn(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||y(i)||e>=i},p("min",function(t){if(i=Hn(t),P(r.$modelValue))return;if(s){let t=e.value;i>t&&(t=i,e.value=t),r.$setViewValue(t)}else r.$validate()}));u&&(o=Hn(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||y(o)||e<=o},p("max",function(t){if(o=Hn(t),P(r.$modelValue))return;if(s){let t=e.value;o<t&&(e.value=o,t=o<i?i:o),r.$setViewValue(t)}else r.$validate()}));h&&(a=Hn(n.step),r.$validators.step=s?function(){return!c.stepMismatch}:function(t,e){return r.$isEmpty(e)||y(a)||Bn(e,i||0,a)},p("step",function(t){if(a=Hn(t),P(r.$modelValue))return;s?r.$viewValue!==e.value&&r.$setViewValue(e.value):r.$validate()}));function p(t,r){e.setAttribute(t,n[t]);let s=n[t];n.$observe(t,t=>{t!==s&&(s=t,r(t))})}},checkbox:function(t,e,n,r,s,i){const o=zn(i,t,"ngTrueValue",n.ngTrueValue,!0),a=zn(i,t,"ngFalseValue",n.ngFalseValue,!1);e.addEventListener("change",function(t){r.$setViewValue(e.checked,t&&t.type)}),r.$render=function(){e.checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push(t=>z(t,o)),r.$parsers.push(t=>t?o:a)},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function Ln(t){t.$formatters.push(e=>t.$isEmpty(e)?e:e.toString())}function Vn(t,e,n,r){const s=e.type.toLowerCase();let i,o=!1;e.addEventListener("compositionstart",()=>{o=!0}),e.addEventListener("compositionend",()=>{o=!1,a()});let a=function(t){if(i&&(clearTimeout(i),i=null),o)return;let a=e.value;const c=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(a=L(a)),(r.$viewValue!==a||""===a&&r.$$hasNativeValidators)&&r.$target.$setViewValue(a,c)};["input","change","paste","drop","cut"].forEach(t=>{e.addEventListener(t,a)}),Rn[s]&&r.$$hasNativeValidators&&s===n.type&&e.addEventListener("keydown wheel mousedown",function(t){if(!i){const e=this[jn],n=e.badInput,r=e.typeMismatch;i=setTimeout(()=>{i=null,e.badInput===n&&e.typeMismatch===r||a(t)})}}),r.$render=function(){const t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.value!==t&&(e.value=t)}}function Mn(t,e){return function(n,r){let s,i;if(A(n))return n;if(E(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),En.test(n))return new Date(n);if(t.lastIndex=0,s=t.exec(n),s){s.shift(),i=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},Object.entries(s).forEach(([t,n])=>{t<e.length&&(i[e[t]]=+n)});const t=new Date(i.yyyy,i.MM-1,i.dd,i.HH,i.mm,i.ss||0,1e3*i.sss||0);return i.yyyy<100&&t.setFullYear(i.yyyy),t}}return NaN}}const Pn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function Dn(t,e,n){return function(r,s,i,o,a,c){if(Un(r,s,i,o,t),Vn(0,s,i,o),o.$parsers.push(n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:h(n,undefined):void(o.$$parserName=t)),o.$formatters.push(function(e){if(e&&!E(e))throw yn("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Pn.test(e))throw yn("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!kn.test(e))throw yn("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!On.test(e))throw yn("datefmt","Expected week `{0}` to be a in date time format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings",e)}return e}),b(i.min)||i.ngMin){let e=i.min||c(i.ngMin)(r),s=u(p(e)?e.$target:e);o.$validators.min=function(e){return"month"===t?y(s)||n(e)>=n(s):!l(e)||y(s)||n(e)>=s},i.$observe("min",t=>{t!==e&&(s=u(t),e=t,o.$validate())})}if(b(i.max)||i.ngMax){let e=i.max||c(i.ngMax)(r),s=u(p(e)?e.$target:e);o.$validators.max=function(e){return"month"===t?y(s)||n(e)<=n(s):!l(e)||y(s)||n(e)<=s},i.$observe("max",t=>{t!==e&&(s=u(t),e=t,o.$validate())})}function l(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function u(t){return b(t)&&!A(t)?h(t)||void 0:t}function h(t,e){const r=o.$options.getOption("timezone");let s=n(t,e);return!Number.isNaN(s)&&r&&(s=X(s,r)),s}}}function Un(t,e,n,r,s){(r.$$hasNativeValidators=w(e.validity))&&r.$parsers.push(t=>{const n=e[jn]||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=s})}function In(t){t.$parsers.push(e=>t.$isEmpty(e)?null:xn.test(e)?parseFloat(e):void(t.$$parserName="number")),t.$formatters.push(e=>{if(!t.$isEmpty(e)){if(!x(e))throw yn("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e})}function Hn(t){return b(t)&&!x(t)&&(t=parseFloat(t)),P(t)?void 0:t}function Fn(t){return(0|t)===t}function qn(t){const e=t.toString(),n=e.indexOf(".");if(-1===n){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(e);if(t)return Number(t[1])}return 0}return e.length-n-1}function Bn(t,e,n){let r=Number(t);const s=!Fn(r),i=!Fn(e),o=!Fn(n);if(s||i||o){const t=s?qn(r):0,a=i?qn(e):0,c=o?qn(n):0,l=10**Math.max(t,a,c);r*=l,e*=l,n*=l,s&&(r=Math.round(r)),i&&(e=Math.round(e)),o&&(n=Math.round(n))}return(r-e)%n===0}function zn(t,e,n,r,s){let i;if(b(r)){if(i=t(r),!i.constant)throw yn("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return i(e)}return s}function Wn(t,e){return{restrict:"E",require:["?ngModel"],link:{pre(n,r,s,i){i[0]&&(Nn[g(s.type)]||Nn.text)(n,r,s,i[0],t,e)}}}}function Kn(){const t={configurable:!0,enumerable:!1,get(){return this.getAttribute("value")||""},set(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile(e,n){if("hidden"===g(n.type))return{pre(e,n){const r=n;r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",t)}}}}}Wn.$inject=["$filter","$parse"];const Gn=/^(true|false|\d+)$/;function Qn(){function t(t,e,n){t.value=b(n)?p(n)?n.$target:n:null,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>Gn.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,e=>{t(n,r,e)})}}}function Jn(t){return{restrict:"E",terminal:!0,compile(e,n){"text/ng-template"===n.type&&t.set(n.id,e.innerText)}}}Jn.$inject=["$templateCache"];class Zn{static $nonscope=["ngModelCtrl","selectValueMap","emptyOption","optionsMap","$scope","$element"];static $inject=["$element","$scope"];constructor(t,e){this.$element=t,this.$scope=e,this.selectValueMap={},this.ngModelCtrl={},this.multiple=!1,this.unknownOption=document.createElement("option"),this.hasEmptyOption=!1,this.emptyOption=void 0,this.optionsMap=new Map,this.renderScheduled=!1,this.updateScheduled=!1,e.$on("$destroy",()=>{this.renderUnknownOption=()=>{}})}renderUnknownOption(t){const e=this.generateUnknownOptionValue(t);this.unknownOption.value=e,this.$element.prepend(this.unknownOption),this.unknownOption.selected=!0,this.unknownOption.setAttribute("selected","selected"),this.$element.value=e}updateUnknownOption(t){const e=this.generateUnknownOptionValue(t);this.unknownOption.value=e,this.unknownOption.selected=!0,this.unknownOption.setAttribute("selected","selected"),this.$element.value=e}generateUnknownOptionValue(t){return y(t)?"? undefined:undefined ?":`? ${pt(t)} ?`}removeUnknownOption(){this.unknownOption.parentElement&&this.unknownOption.remove()}selectEmptyOption(){this.emptyOption&&(this.$element.value="",this.emptyOption.selected=!0,this.emptyOption.setAttribute("selected","selected"))}unselectEmptyOption(){this.hasEmptyOption&&(this.emptyOption.selected=!1)}readValue(){const t=this.$element.value,e=t in this.selectValueMap?this.selectValueMap[t]:t;return this.hasOption(e)?e:null}writeValue(t){const e=this.$element.options[this.$element.selectedIndex];if(e&&(e.selected=!1),this.hasOption(t)){this.removeUnknownOption();const e=pt(t);this.$element.value=e in this.selectValueMap?e:t;const n=this.$element.options[this.$element.selectedIndex];n?n.selected=!0:this.selectUnknownOrEmptyOption(t)}else this.selectUnknownOrEmptyOption(t)}addOption(t,e){if(e.nodeType===Node.COMMENT_NODE)return;W(t,'"option value"'),""===t&&(this.hasEmptyOption=!0,this.emptyOption=e);const n=this.optionsMap.get(t)||0;this.optionsMap.set(t,n+1),this.scheduleRender()}removeOption(t){const e=this.optionsMap.get(t);e&&(1===e?(this.optionsMap.delete(t),""===t&&(this.hasEmptyOption=!1,this.emptyOption=void 0)):this.optionsMap.set(t,e-1))}hasOption(t){return!!this.optionsMap.get(t)}$hasEmptyOption(){return this.hasEmptyOption}$isUnknownOptionSelected(){return this.$element.options[0]===this.unknownOption}$isEmptyOptionSelected(){return this.hasEmptyOption&&this.$element.options[this.$element.selectedIndex]===this.emptyOption}selectUnknownOrEmptyOption(t){null==t&&this.emptyOption?(this.removeUnknownOption(),this.selectEmptyOption()):this.unknownOption.parentElement?this.updateUnknownOption(t):this.renderUnknownOption(t)}scheduleRender(){this.renderScheduled||(this.renderScheduled=!0,this.$scope.$postUpdate(()=>{this.renderScheduled=!1,this.ngModelCtrl.$render()}))}scheduleViewValueUpdate(t=!1){this.updateScheduled||(this.updateScheduled=!0,this.$scope.$postUpdate(()=>{this.$scope.$$destroyed||(this.updateScheduled=!1,this.ngModelCtrl.$setViewValue(this.readValue()),t&&this.ngModelCtrl.$render())}))}registerOption(t,e,n,r,s){let i,o;if(n.$attr.ngValue)n.$observe("value",t=>{let n;const r=e.selected;b(o)&&(this.removeOption(i),delete this.selectValueMap[o],n=!0),o=pt(t),i=t,this.selectValueMap[o]=t,this.addOption(t,e),e.setAttribute("value",o),n&&r&&this.scheduleViewValueUpdate()});else if(r)n.$observe("value",t=>{let n;this.readValue();const r=e.selected;b(i)&&(this.removeOption(i),n=!0),i=t,this.addOption(t,e),n&&r&&this.scheduleViewValueUpdate()});else if(s){let r;t.value=s(t),n.value||(n.$set("value",t.value),this.addOption(t.value,e)),t.$watch("value",()=>{let i=s(t);n.value||n.$set("value",i);const o=e.selected;r!==i&&(this.removeOption(r),r=i),this.addOption(i,e),r&&o&&this.scheduleViewValueUpdate()})}else this.addOption(n.value,e);n.$observe("disabled",t=>{("true"===t||t&&e.selected)&&(this.multiple?this.scheduleViewValueUpdate(!0):(this.ngModelCtrl.$setViewValue(null),this.ngModelCtrl.$render()))}),e.addEventListener("$destroy",()=>{const t=this.readValue(),e=n.value;this.removeOption(e),this.scheduleRender(),(this.multiple&&t&&-1!==t.indexOf(e)||t===e)&&this.scheduleViewValueUpdate(!0)})}}function Yn(){return{restrict:"E",require:["select","?ngModel"],controller:Zn,priority:1,link:{pre:function(t,e,n,r){const s=r[0],i=r[1];if(!i)return void(s.registerOption=()=>{});if(s.ngModelCtrl=i,e.addEventListener("change",()=>{s.removeUnknownOption();const t=s.readValue();i.$setViewValue(t)}),n.multiple){let t;s.multiple=!0,s.readValue=function(){const t=[],n=e.getElementsByTagName("option");return Array.from(n).forEach(e=>{if(e.selected&&!e.disabled){const n=e.value;t.push(n in s.selectValueMap?s.selectValueMap[n]:n)}}),t},s.writeValue=function(t){const n=e.getElementsByTagName("option");Array.from(n).forEach(e=>{const n=!!t&&(F(t,e.value)||F(t,s.selectValueMap[e.value]));n!==e.selected&&(e.selected=n)})};let n=NaN;n!==i.$viewValue||z(t,i.$viewValue)||(t=ot(i.$viewValue),i.$render()),n=i.$viewValue,i.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){const s=r[1];if(!s)return;const i=r[0];s.$render=function(){i.writeValue(s.$viewValue)}}}}}function Xn(t){return{restrict:"E",priority:100,compile(e,n){let r,s;return b(n.ngValue)||(b(n.value)?r=t(n.value,!0):(s=t(e.textContent,!0),s||n.$set("value",e.textContent))),function(t,e,n){const i="$selectController",o=e.parentElement,a=Dt(o,i)||Dt(o.parentElement,i);a&&a.registerOption(t,e,n,r,s)}}}}function tr(){return{link(t,e,n){t.$watch(n.ngBind,t=>{e.textContent=K(p(t)?t.$target:t)},b(n.lazy))}}}function er(){return{link(t,e,n){n.$observe("ngBindTemplate",t=>{e.textContent=y(t)?"":t})}}}function nr(t){return{restrict:"A",compile:(e,n)=>(t(n.ngBindHtml),(t,e)=>{t.$watch(n.ngBindHtml,t=>{(y(t)||C(t))&&(t=""),e.innerHTML=t})})}}function rr(t,e){return t=`ngClass${t}`,function(){return{link(n,r,s){let i,o=Dt(r,"$classCounts"),a=!0;function c(t,e){const n=[];return t&&t.forEach(t=>{(e>0||o[t])&&(o[t]=(o[t]||0)+e,o[t]===+(e>0)&&n.push(t))}),n.join(" ")}o||(o=Object.create(null),Pt(r,"$classCounts",o)),"ngClass"!==t&&n.$watch("$index",()=>{!function(t){t===e?(o=c(ir(o=i),1),mt(r)?s.$addClass(o):n.$postUpdate(()=>{""!==o&&r.classList.add(...o.trim().split(" "))})):function(t){t=c(ir(t),-1),mt(r)?s.$removeClass(t):n.$postUpdate(()=>{""!==t&&r.classList.remove(...t.trim().split(" "))})}(i);var o;a=t}(1&n.$index)}),n.$watch(s[t],t=>{!function(t){a===e&&function(t,e){const n=ir(t),i=ir(e),o=sr(n,i),a=sr(i,n),l=c(o,-1),u=c(a,1);mt(r)?(s.$addClass(u),s.$removeClass(l)):(""!==u&&r.classList.add(...u.trim().split(" ")),""!==l&&r.classList.remove(...l.trim().split(" ")))}(i,t);i=t}(or(t))})}}}}function sr(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const s=t[r];for(let t=0;t<e.length;t++)if(s===e[t])continue t;n.push(s)}return n}function ir(t){return t&&t.split(" ")}function or(t){if(!t)return t;let e=t;return Array.isArray(t)?e=t.map(or).join(" "):w(t)?e=Object.keys(t).filter(e=>t[e]).join(" "):E(t)||(e=`${t}`),e}Xn.$inject=["$interpolate"],nr.$inject=[ee.$parse];const ar=rr("",!0),cr=rr("Odd",0),lr=rr("Even",1);function ur(){return{compile(t,e){e.$set("ngCloak",void 0),t.classList.remove("ng-cloak")}}}function hr(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const dr="ng-hide",pr="ng-hide-animate";function fr(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngShow,e=>{mt(n)?t[e?"removeClass":"addClass"](n,dr,{tempClasses:pr}):e?n.classList.remove(dr):n.classList.add(dr)})}}}function $r(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngHide,e=>{mt(n)?t[e?"addClass":"removeClass"](n,dr,{tempClasses:pr}):e?n.classList.add(dr):n.classList.remove(dr)})}}}function mr(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(e,n,r,s,i){let o,a,c;e.$watch(r.ngIf,e=>{e?a||i((e,r)=>{a=r,o=e,mt(e)?t.enter(e,n.parentElement,n):n.after(e)}):(c&&(Bt(c),c=null),a&&(a.$destroy(),a=null),o&&(c=o,mt(c)?t.leave(c).done(t=>{!1!==t&&(c=null)}):n.nextElementSibling.remove(),o=null))})}}}function gr(t,e,n,r){return{priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(s,i){const o=i.ngInclude||i.src,a=i.onload||"",c=i.autoscroll;return(s,i,l,u,h)=>{function d(){!b(c)||c&&!s.$eval(c)||e()}let p,f,$,m=0;const g=()=>{f&&(f.remove(),f=null),p&&(p.$destroy(),p=null),$&&(mt($)?n.leave($).done(t=>{!1!==t&&(f=null)}):$.remove(),f=$,$=null)};s.$watch(o,async e=>{const o=function(t){!1!==t&&d()},c=++m;e?(await t(e,!0).then(t=>{if(s.$$destroyed)return;if(c!==m)return;const r=s.$new();u.template=t;const l=h(r,t=>{g(),mt(t)?n.enter(t,null,i).done(o):(i.after(t),d())});p=r,$=l,p.$emit("$includeContentLoaded",e),s.$eval(a)},t=>{s.$$destroyed||(c===m&&(g(),s.$emit("$includeContentError",e)),r(new Error(t)))}),s.$emit("$includeContentRequested",e)):(g(),u.template=null)})}}}}function vr(t){return{priority:-400,require:"ngInclude",link(e,n,r,s){n.innerHTML=s.template,t(n.childNodes)(e)}}}function yr(){return{priority:450,compile:()=>({pre(t,e,n){const r=Ft(e);r?r.$eval(n.ngInit):t.$eval(n.ngInit)}})}}function br(){return{terminal:!0,priority:1e3}}fr.$inject=["$animate"],$r.$inject=["$animate"],mr.$inject=["$animate"],gr.$inject=[ee.$templateRequest,ee.$anchorScroll,ee.$animate,ee.$exceptionHandler],vr.$inject=[ee.$compile];const wr=dt("ngRef");function Er(t){return{priority:-1,restrict:"A",compile(e,n){const r=$t(H(e)),s=t(n.ngRef),i=s.assign||function(){throw wr("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return(t,e,o)=>{let a;if(vt(o,"ngRefRead")){if("$element"===o.ngRefRead)a=e;else if(a=Dt(e,`$${o.ngRefRead}Controller`),!a)throw wr("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=Dt(e,`$${r}Controller`);a=a||e,i(t,a),e.addEventListener("$destroy",()=>{s(t)===a&&i(t,null)})}}}}Er.$inject=["$parse"];const Cr="$$NG_REMOVED",Sr=dt("ngRepeat"),xr=/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/;function Ar(t){function e(t,e,n,r,s,i,o){t[n]!==r&&(t[n]=r),s&&(t[s]=i),r&&(t.$target.$$hashKey=r.$$hashKey),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&e))}function n(t){return t.clone}function r(t){return t.clone}function s(t,e,n){return pt(n)}function i(t,e){return e}return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:(o,a)=>{const c=a.ngRepeat,l=!!a.animate;let u=c.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!u)throw Sr("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",c);const h=u[1],d=u[2],p=u[3];if(u=h.match(xr),!u)throw Sr("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",h);const f=u[3]||u[1],$=u[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 Sr("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",p);const m=function(t){let e=!1;return function(...n){if(!e)return e=!0,t.apply(this,n)}}(()=>{b(a.lazy)&&b(a.swap)&&document.querySelectorAll(a.swap).forEach(t=>Bt(t))});return function(o,a,u,h,g){let y=Object.create(null);o.$watch(d,u=>{m();let h,d,b,w=a;const E=Object.create(null);let C,S,x,A,O,k,_,T,j;if(p&&(o[p]=u),v(u))k=u,O=s;else{O=i,k=[];for(const t in u)vt(u,t)&&"$"!==t.charAt(0)&&k.push(t)}for(C=k.length,T=new Array(C),h=0;h<C;h++)if(S=u===k?h:k[h],x=u[S],A=O(o,S,x),y[A])_=y[A],delete y[A],E[A]=_,T[h]=_;else{if(E[A])throw Object.values(T).forEach(t=>{t&&t.scope&&(y[t.id]=t)}),Sr("dupes","Duplicates keys in a repeater are not allowed. Repeater: {0}, Duplicate key: {1} for value: {2}",c,A,x);T[h]={id:A,scope:void 0,clone:void 0},E[A]=!0}for(let e in y){if(_=y[e],j=_.clone,l?t.leave(j):j.remove(),j.parentNode)for(h=0,d=j.length;h<d;h++)j[h][Cr]=!0;_.scope.$destroy()}for(h=0;h<C;h++)if(S=u===k?h:k[h],x=u[S],_=T[h],_.scope){b=w;do{b=b.nextSibling}while(b&&b[Cr]);n(_)!==b&&t.move(Wt(_.clone),null,w),w=r(_),e(_.scope,h,f,x,$,S,C)}else g((n,r)=>{_.scope=r;const s=n;l?t.enter(n,null,w):w.after(n),w=s,_.clone=n,E[_.id]=_,e(_.scope,h,f,x,$,S,C)});y=E},b(u.lazy))}}}}function Or(){return{restrict:"A",link(t,e,n){let r;t.$watch(n.ngStyle,t=>{if(r){const t=Object.keys(r);for(let n=0,r=t.length;n<r;n++)e.style.removeProperty(t[n])}if(t){r={...t.$target};const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,s]=n[t];e.style.setProperty(r,s)}}})}}}function kr(t){return{require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,s){const i=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(i,e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=Wt(a[n].clone);if(l[n].$destroy(),mt(e)){(c[n]=t.leave(e)).done(u(c,n))}else e.remove()}a.length=0,l.length=0,(o=s.cases[`!${e}`]||s.cases["?"])&&Object.values(o).forEach(e=>{e.transclude((n,r)=>{l.push(r);const s=e.element,i={clone:n,comment:document.createComment("")};a.push(i),mt(n)?t.enter(n,s.parentElement,s):Xt(n,s.parentElement,s)})})})}}}function _r(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,e,n,r,s){const i=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((t,e,n)=>n[e-1]!==t);i.forEach(t=>{r.cases[`!${t}`]=r.cases[`!${t}`]||[],r.cases[`!${t}`].push({transclude:s,element:e})})}}}function Tr(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(t,e,n,r,s){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:s,element:e})}}}Ar.$inject=[ee.$animate],kr.$inject=["$animate"];const jr=dt("ngOptions"),Rr=document.createElement("option"),Nr=document.createElement("optgroup"),Lr=/^\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]+?))?$/;function Vr(t,e){return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(n,r,s,i){const o=i[0],a=i[1],c=s.multiple;for(let t=0,e=r.childNodes,n=e.length;t<n;t++)if(""===e[t].value){o.hasEmptyOption=!0,o.emptyOption=e[t];break}Yt(r);const l=!!o.emptyOption;let u;Rr.cloneNode(!1).nodeValue="?";const h=function(t,n,r){const s=t.match(Lr);if(!s)throw jr("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,zt(n));const i=s[5]||s[7],o=s[6],a=/ as /.test(s[0])&&s[1],c=s[9],l=e(s[2]?s[1]:i),u=a&&e(a)||l,h=c&&e(c),d=c?function(t,e){return h(r,e)}:function(t){return pt(t)},p=function(t,e){return d(t,b(t,e))},f=e(s[2]||s[1]),$=e(s[3]||""),m=e(s[4]||""),g=e(s[8]),y={};let b=o?function(t,e){return y[o]=e,y[i]=t,y}:function(t){return y[i]=t,y};class w{constructor(t,e,n,r,s){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=s}}function E(t){let e;if(!o&&v(t))e=t;else{e=[];for(const n in t)vt(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:e(g,t=>{const e=[],n=E(t=t||[]),i=n.length;for(let o=0;o<i;o++){const i=t===n?o:n[o],a=t[i],c=b(a,i),l=d(a,c);if(e.push(l),s[2]||s[1]){const t=f(r,c);e.push(t)}if(s[4]){const t=m(r,c);e.push(t)}}return e}),getOptions(){const t=[],e={},n=g(r)||[],s=E(n),i=s.length;for(let o=0;o<i;o++){const i=n===s?o:s[o],a=n[i],c=b(a,i),l=u(r,c),h=d(l,c),p=f(r,c),g=$(r,c),v=m(r,c),y=new w(h,l,p,g,v);t.push(y),e[h]=y}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(s.ngOptions,r,n),d=document.createDocumentFragment();if(o.generateUnknownOptionValue=()=>"?",c?(o.writeValue=function(t){if(!u)return;const e=t&&t.map(f)||[];u.items.forEach(t=>{t.element.selected&&!F(e,t)&&(t.element.selected=!1)})},o.readValue=function(){const t=r.value||[],e=[];return t.forEach(t=>{const n=u.selectValueMap[t];n&&!n.disabled&&e.push(u.getViewValueFromOption(n))}),e}):(o.writeValue=function(t){if(!u)return;const e=r.options[r.selectedIndex],n=u.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(r.value!==n.selectValue&&(o.removeUnknownOption(),r.value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):o.selectUnknownOrEmptyOption(t)},o.readValue=function(){const t=u.selectValueMap[r.value];return t&&!t.disabled?(o.unselectEmptyOption(),o.removeUnknownOption(),u.getViewValueFromOption(t)):null},h.trackBy&&n.$watch(h.getTrackByValue(a.$viewValue),()=>{a.$render()})),l){const e=t(o.emptyOption);ct(e,"LinkFn required"),r.prepend(o.emptyOption),e(n),o.emptyOption.nodeType===Node.COMMENT_NODE&&(o.hasEmptyOption=!1,o.registerOption=function(t,e){""===e.value&&(o.hasEmptyOption=!0,o.emptyOption=e,a.$render(),e.addEventListener("$destroy",()=>{const t=o.$isEmptyOptionSelected();o.hasEmptyOption=!1,o.emptyOption=void 0,t&&a.$render()}))})}function p(t,e){const n=Rr.cloneNode(!1);e.appendChild(n),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,n)}function f(t){const e=u.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}n.$watch(h.getWatchables.decoratedNode.body[0].expression.name,function(){const t=u&&o.readValue();if(u)for(let t=u.items.length-1;t>=0;t--){const e=u.items[t];b(e.group)?Bt(e.element.parentNode):Bt(e.element)}u=h.getOptions();const e={};if(u.items.forEach(t=>{let n;b(t.group)?(n=e[t.group],n||(n=Nr.cloneNode(!1),d.appendChild(n),n.label=null===t.group?"null":t.group,e[t.group]=n),p(t,n)):p(t,d)}),r.appendChild(d),a.$render(),!a.$isEmpty(t)){const e=o.readValue();(h.trackBy||c?z(t,e):t===e)||(a.$setViewValue(e),a.$render())}})}}}}Vr.$inject=["$compile","$parse"];const Mr=dt("ngTransclude");function Pr(t){return{compile:function(e){const n=t(e.childNodes);return Yt(e),function(t,e,r,s,i){if(!i)throw Mr("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",zt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");const o=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,t=>{e.append(t)})}i(function(t,n){!function(t){if(t instanceof Array)return!1;if(t.nodeType!==Node.TEXT_NODE||t.nodeValue.trim())return!0}(t)?(a(),n.$destroy()):t instanceof NodeList?Array.from(t).forEach(t=>{e.append(t)}):e.append(t)},null,o),o&&!i.isSlotFilled(o)&&a()}}}}Pr.$inject=["$compile"];const Dr=/^\/(.+)\/([a-z]*)$/,Ur={};At.forEach(t=>{if("multiple"===t)return;function e(e,r,s){e.$watch(s[n],e=>{s.$set(t,!!e)})}let n=$t(`ng-${t}`),r=e;"checked"===t&&(r=function(t,r,s){s.ngModel!==s[n]&&e(t,0,s)}),Ur[n]=function(){return{restrict:"A",priority:100,link:r}}}),Object.entries(h).forEach(([t])=>{Ur[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(Dr);if(t)return void r.$set("ngPattern",new RegExp(t[1],t[2]).toString())}e.$watch(r[t],e=>{r.$set(t,e)})}}}}),["src","srcset","href"].forEach(t=>{const e=$t(`ng-${t}`);Ur[e]=[ee.$sce,function(n){return{priority:99,link(r,s,i){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(s.href)&&(o="xlinkHref",i.$attr[o]="href"),i.$set(e,n.getTrustedMediaUrl(i[e])),i.$observe(e,e=>{e?i.$set(o,e):"href"===t&&i.$set(o,null)})}}}]});const Ir=[ee.$parse,t=>({restrict:"A",require:"?ngModel",link:(e,n,r,s)=>{if(!s)return;let i=vt(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),s.$validators.required=(t,e)=>!i||!s.$isEmpty(e),r.$observe("required",t=>{i!==t&&(i=t,s.$validate())})}})],Hr=[ee.$parse,t=>({restrict:"A",require:"?ngModel",compile:(e,n)=>{let r,s;return n.ngPattern&&(r=n.ngPattern,s="/"===n.ngPattern.charAt(0)&&Dr.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,i){if(!i)return;let o=n.pattern;n.ngPattern?o=s(t):r=n.pattern;let a=Br(o,r,e);n.$observe("pattern",t=>{const n=a;a=Br(t,r,e),(n&&n.toString())!==(a&&a.toString())&&i.$validate()}),i.$validators.pattern=(t,e)=>i.$isEmpty(e)||y(a)||a.test(e)}}})],Fr=[ee.$parse,t=>({restrict:"A",require:"?ngModel",link:(e,n,r,s)=>{if(!s)return;let i=r.maxlength||t(r.ngMaxlength)(e),o=zr(i);r.$observe("maxlength",t=>{i!==t&&(o=zr(t),i=t,s.$validate())}),s.$validators.maxlength=function(t,e){return o<0||s.$isEmpty(e)||e.length<=o}}})],qr=[ee.$parse,t=>({restrict:"A",require:"?ngModel",link(e,n,r,s){if(!s)return;let i=r.minlength||t(r.ngMinlength)(e),o=zr(i)||-1;r.$observe("minlength",t=>{i!==t&&(o=zr(t)||-1,i=t,s.$validate())}),s.$validators.minlength=function(t,e){return s.$isEmpty(e)||e.length>=o}}})];function Br(t,e,n){if(t){if(p(t)&&(t=t.$target),E(t)){const e=t.match(/^\/(.*)\/([gimsuy]*)$/);t=e?new RegExp(e[1],e[2]):new RegExp(`^${t}$`)}if(!t.test)throw dt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,zt(n));return t}}function zr(t){const e=parseInt(t,10);return P(e)?-1:e}class Wr{constructor(){this.autoScrollingEnabled=!0}$get=[ee.$location,ee.$rootScope,function(t,e){function n(t){if(t){t.scrollIntoView();const e=function(){let t=r.yOffset;if(k(t))t=t();else if(I(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else x(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}const r=function(e){let r;(e=E(e)?e:x(e)?e.toString():t.getHash())?(r=document.getElementById(e))||(r=function(t){let e=null;return Array.prototype.some.call(t,t=>{if("a"===H(t))return e=t,!0}),e}(document.getElementsByName(e)))?n(r):"top"===e&&n(null):n(null)};return this.autoScrollingEnabled&&(e.$location=t,e.$watch("$location.$$hash",(t,e)=>{if(t===e&&""===t)return;const n=()=>Promise.resolve().then(r);"complete"===document.readyState?window.setTimeout(()=>n()):window.addEventListener("load",()=>n())})),r}]}const Kr=1,Gr=2,Qr=3,Jr=4,Zr=5,Yr=6,Xr=7,ts=8,es=9,ns=10,rs=11,ss=12,is=13,os=14,as=15,cs=16,ls=17,us="-add",hs="-remove",ds="-active",ps="ng-animate",fs="$$ngAnimateChildren";let $s,ms,gs,vs;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?($s="WebkitTransition",ms="webkitTransitionEnd transitionend"):($s="transition",ms="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(gs="WebkitAnimation",vs="webkitAnimationEnd animationend"):(gs="animation",vs="animationend");const ys="Duration",bs=is,ws="Delay",Es="TimingFunction",Cs=gs+ws,Ss=gs+ys,xs=$s+ws,As=$s+ys,Os=dt("ng");function ks(t,e,n){if(!t)throw Os("areq","Argument '{0}' is {1}",e||"?",n);return t}function _s(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&E(t)&&t.length?t.split(/\s+/):[]).forEach((t,s)=>{t&&t.length>0&&(r+=s>0?" ":"",r+=n?e+t:t+e)}),r}function Ts(t){if(!t)return t;for(let e=0;e<t.length;e++){const n=t[e];if(n.nodeType===Node.ELEMENT_NODE)return n}}function js(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function Rs(t,e){Ns(t,e),Ls(t,e)}function Ns(t,e){e.from&&(e.from=null)}function Ls(t,e){e.to&&(e.to=null)}function Vs(t,e,n){const r=e.options||{},s=n.options||{},i=`${r.addClass||""} ${s.addClass||""}`,o=`${r.removeClass||""} ${s.removeClass||""}`,a=function(t,e,n){const r=1,s=-1,i={};t=a(t),e=a(e),Object.keys(e).forEach(t=>{i[t]=r}),n=a(n),Object.keys(n).forEach(t=>{i[t]=i[t]===r?null:s});const o={addClass:"",removeClass:""};function a(t){E(t)&&(t=t.trim().split(" "));const e={};return t&&t.forEach(t=>{t.length&&(e[t]=!0)}),e}return Object.entries(i).forEach(([e,n])=>{let i,a;n===r?(i="addClass",a=!t[e]||t[e+hs]):n===s&&(i="removeClass",a=t[e]||t[e+us]),a&&(o[i].length&&(o[i]+=" "),o[i]+=e)}),o}(t.getAttribute("class"),i,o);return s.preparationClasses&&(r.preparationClasses=Ds(s.preparationClasses,r.preparationClasses),delete s.preparationClasses),M(r,s),a.addClass?r.addClass=a.addClass:r.addClass=null,a.removeClass?r.removeClass=a.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function Ms(t,e){const n=e?"paused":"",r=gs+"PlayState";return Ps(t,[r,n]),[r,n]}function Ps(t,e){const n=e[0];t.style[n]=e[1]}function Ds(t,e){return t?e?`${t} ${e}`:t:e}const Us=dt("$animate");function Is(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function Hs(t){return w(t)?t:{}}function Fs(t){const e=this;let n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Us("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const s=`${n}-animation`;e.$$registeredAnimations[n.substring(1)]=s,t.factory(s,r)},this.customFilter=function(t){return 1===arguments.length&&(r=k(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${ps}[(\\s|\\/)]`).test(n.toString()))throw n=null,Us("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',ps)}return n},this.$get=["$$animateQueue",function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel(t){t.cancel&&t.cancel()},enter:(e,n,r,s)=>(Xt(e,n=n||r.parentElement,r),t.push(e,"enter",Hs(s))),move:(e,n,r,s)=>(Xt(e,n=n||r.parentElement,r),t.push(e,"move",Hs(s))),leave:(e,n)=>t.push(e,"leave",Hs(n),()=>{Array.isArray(e)?e.forEach(t=>Bt(t)):Bt(e)}),addClass:(e,n,r)=>((r=Hs(r)).addClass=Is(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=Hs(r)).removeClass=Is(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,s)=>((s=Hs(s)).addClass=Is(s.addClass,n),s.removeClass=Is(s.removeClass,r),t.push(e,"setClass",s)),animate:(e,n,r,s,i)=>((i=Hs(i)).from=i.from?M(i.from,n):n,i.to=i.to?M(i.to,r):r,s=s||"ng-inline-animate",i.tempClasses=Is(i.tempClasses,s),t.push(e,"animate",i))}}]}function qs(){this.$get=[function(){let t=[];function e(e){t.push(e),t.length>1||window.requestAnimationFrame(function(){for(let e=0;e<t.length;e++)t[e]();t=[]})}return function(){let t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}]}Fs.$inject=["$provide"];let Bs;function zs(){this.$get=["$$animateAsyncRun",function(t){return Bs=t,Ws}]}class Ws{static chain(t,e){let n=0;!function r(){n!==t.length?t[n](t=>{!1!==t?(n++,r()):e(!1)}):e(!0)}()}static all(t,e){let n=0,r=!0;function s(s){r=r&&s,++n===t.length&&e(r)}t.forEach(t=>{t.done(s)})}constructor(t){this.setHost(t);const e=Bs();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{setTimeout(t,0,!1)})(t):e(t)},this._state=0}setHost(t){this.host=t||{}}done(t){2===this._state?t():this._doneCallbacks.push(t)}progress(){}getPromise(){if(!this.promise){const t=this;this.promise=new Promise((e,n)=>{t.done(t=>{!1===t?n():e()})})}return this.promise}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}pause(){this.host.pause&&this.host.pause()}resume(){this.host.resume&&this.host.resume()}end(){this.host.end&&this.host.end(),this._resolve(!0)}cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)}complete(t){0===this._state&&(this._state=1,this._tick(()=>{this._resolve(t)}))}_resolve(t){2!==this._state&&(this._doneCallbacks.forEach(e=>{e(t)}),this._doneCallbacks.length=0,this._state=2)}}class Ks{constructor(){this.cache=new Map}$get(){return this.cache}}class Gs{constructor(){this.log=window.console,this.errorHandler=(t,e)=>{this.log.error(t,e)},this.$get=["$log",t=>(this.log=t,this.errorHandler)]}}function Qs(){return function(t,e,n,r){if(!v(t)){if(null==t)return t;throw dt("filter")("notarray","Expected array but received: {0}",t)}let s;r=r||"$";let i=!1;switch(Zs(e)){case"function":s=e;break;case"boolean":case"null":case"number":case"string":i=!0;case"object":s=function(t,e,n,r){const s=w(t)&&n in t;let i;!0===e?e=z:k(e)||(e=function(t,e){return!y(t)&&(null===t||null===e?t===e:!(w(e)||w(t)&&!U(t))&&(t=`${t}`.toLowerCase(),e=`${e}`.toLowerCase(),-1!==t.indexOf(e)))});return i=function(i){return s&&!w(i)?Js(i,t[n],e,n,!1):Js(i,t,e,n,r)},i}(e,n,r,i);break;default:return t}return Array.prototype.filter.call(t,s)}}function Js(t,e,n,r,s,i){const o=Zs(t),a=Zs(e);if("string"===a&&"!"===e.charAt(0))return!Js(t,e.substring(1),n,r,s);if(Array.isArray(t))return t.some(t=>Js(t,e,n,r,s));switch(o){case"object":if(s){for(let s in t)if(s.charAt&&"$"!==s.charAt(0)&&Js(t[s],e,n,r,!0))return!0;return!i&&Js(t,e,n,r,!1)}if("object"===a){for(let s in e){const i=e[s];if(k(i)||y(i))continue;const o=s===r;if(!Js(o?t:t[s],i,n,r,o,o))return!1}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function Zs(t){return null===t?"null":typeof t}function Ys(){return function(t,e){return y(e)&&(e=2),Y(t,e)}}function Xs(){return function(t,e,n){return k(t)&&(t=t()),P(e=Math.abs(Number(e))===1/0?Number(e):parseInt(e,10))?t:(x(t)&&(t=t.toString()),v(t)?(n=(n=!n||isNaN(n)?0:parseInt(n,10))<0?Math.max(0,t.length+n):n,e>=0?ti(t,n,n+e):0===n?ti(t,e,t.length):ti(t,Math.max(0,n+e),n)):t)}}function ti(t,e,n){return E(t)?t.slice(e,n):[].slice.call(t,e,n)}function ei(t){return function(r,s,i,o){if(null==r)return r;if(k(r))return r();if(!v(r))throw dt("orderBy")("notarray","Expected array but received: {0}",r);Array.isArray(s)||(s=[s]),0===s.length&&(s=["+"]);const a=s.map(e=>{let n=1,r=t=>t;if(k(e))r=e;else if(E(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e)){let n=t(e);if(n.constant){const t=n();r=e=>e[t]}else r=n}return{get:r,descending:n}});const c=i?-1:1,l=k(o)?o:n,u=Array.prototype.map.call(r,function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:a.map(r=>function(t,n){let r=typeof t;null===t?r="null":"object"===r&&(t=function(t){if(k(t.valueOf)&&e(t=t.valueOf()))return t;if(U(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:n}}(r.get(t),n))}});return u.sort(function(t,e){for(let n=0,r=a.length;n<r;n++){const r=l(t.predicateValues[n],e.predicateValues[n]);if(r)return r*a[n].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c}),r=u.map(t=>t.value)};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){let n=0;const r=t.type,s=e.type;if(r===s){let s=t.value,i=e.value;"string"===r?(s=s.toLowerCase(),i=i.toLowerCase()):"object"===r&&(w(s)&&(s=t.index),w(i)&&(i=e.index)),s!==i&&(n=s<i?-1:1)}else n="undefined"===r?1:"undefined"===s?-1:"null"===r?1:"null"===s||r<s?-1:1;return n}}function ni(t){const e=(e,n,r)=>t.is(e,n,r);return e.$stateful=!0,e}function ri(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}ei.$inject=[ee.$parse],ni.$inject=[ee.$state],ri.$inject=[ee.$state];const si="Filter";class ii{static $inject=[ee.$provide];constructor(t){this.$provide=t,this.register({filter:Qs,json:Ys,limitTo:Xs,orderBy:ei,isState:ni,includedByState:ri})}register(t,e){return w(t)&&Object.entries(t).forEach(([t,e])=>{this.register(t,e)}),this.$provide.factory(t+si,e)}$get=[ee.$injector,t=>e=>t.get(e+si)]}class oi{constructor(t){this.$filter=t}compile(t){let e,n,r=ai(t,this.$filter);(e=function(t){if(1===t.body.length&&ci(t.body[0].expression))return{type:Qr,left:t.body[0].expression,right:{type:ls},operator:"="}}(r))&&(n=this.recurse(e));const s=function(t){if(1!==t.length)return;const e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}(r.body);let i;if(s){i=[];for(const[t,e]of Object.entries(s)){const n=this.recurse(e);n.isPure=e.isPure,e.input=n,i.push(n),e.watchId=t}}const o=[];r.body.forEach(t=>{o.push(this.recurse(t.expression))});const a=0===r.body.length?()=>{}:1===r.body.length?o[0]:function(t,e){let n;return o.forEach(r=>{n=r(t,e)}),n};return n&&(a.assign=(t,e,r)=>n(t,r,e)),i&&(a.inputs=i),a.decoratedNode=r,a}recurse(t,e,n){let r,s;const i=this;let o;switch(t.type){case rs:return this.value(t.value,e);case Xr:return s=this.recurse(t.argument),this[`unary${t.operator}`](s,e);case Yr:case Zr:return r=this.recurse(t.left),s=this.recurse(t.right),this[`binary${t.operator}`](r,s,e);case Jr:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case ns:return i.identifier(t.name,e,n);case es:return r=this.recurse(t.object,!1,!!n),t.computed||(s=t.property.name),t.computed&&(s=this.recurse(t.property)),t.computed?this.computedMember(r,s,e,n):this.nonComputedMember(r,s,e,n);case ts:return o=[],t.arguments.forEach(t=>{o.push(i.recurse(t))}),t.filter&&(s=this.$filter(t.callee.name)),t.filter||(s=this.recurse(t.callee,!0)),t.filter?(t,n,r)=>{const i=[];for(let e=0;e<o.length;++e){const s=o[e](t&&t.$target?t.$target:t,n,r);i.push(s)}const a=()=>s.apply(void 0,i);return e?{context:void 0,name:void 0,value:a}:a}:(t,n,r)=>{const i=s(t.$target?t.$target:t,n,r);let a;if(null!=i.value&&k(i.value)){const e=[];for(let s=0;s<o.length;++s){const i=o[s](t,n,r);e.push(k(i)?i():i)}a=i.value.apply(i.context,e)}return e?{value:a}:a};case Qr:return r=this.recurse(t.left,!0,1),s=this.recurse(t.right),(t,n,i)=>{const o=r(t,n,i),a=s(t,n,i);return(p(o.context)?o.context:o.context.$proxy??o.context)[o.name]=a,e?{value:a}:a};case ss:return o=[],t.elements.forEach(t=>{o.push(i.recurse(t))}),(t,n,r)=>{const s=[];for(let e=0;e<o.length;++e)s.push(o[e](t,n,r));return e?{value:s}:s};case os:return o=[],t.properties.forEach(t=>{t.computed?o.push({key:i.recurse(t.key),computed:!0,value:i.recurse(t.value)}):o.push({key:t.key.type===ns?t.key.name:`${t.key.value}`,computed:!1,value:i.recurse(t.value)})}),(t,n,r)=>{const s={};for(let e=0;e<o.length;++e)o[e].computed?s[o[e].key(t,n,r)]=o[e].value(t,n,r):s[o[e].key]=o[e].value(t,n,r);return e?{value:s}:s};case as:return t=>e?{value:t}:t.$proxy;case cs:return(t,n)=>e?{value:n}:n;case ls:return(t,n,r)=>e?{value:r}:r}}"unary+"(t,e){return(n,r,s)=>{let i=t(n,r,s);return i=b(i)?+i:0,e?{value:i}:i}}"unary-"(t,e){return(n,r,s)=>{let i=t(n,r,s);return i=b(i)?-i:-0,e?{value:i}:i}}"unary!"(t,e){return(n,r,s)=>{const i=!t(n,r,s);return e?{value:i}:i}}"binary+"(t,e,n){return(r,s,i)=>{const o=t(r,s,i),a=e(r,s,i),c=(u=a,void 0===(l=o)||w(l)?u:void 0===u||w(u)?l:l+u);var l,u;return n?{value:c}:c}}"binary-"(t,e,n){return(r,s,i)=>{const o=t(r,s,i),a=e(r,s,i),c=(b(o)?o:0)-(b(a)?a:0);return n?{value:c}:c}}"binary*"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)*e(r,s,i);return n?{value:o}:o}}"binary/"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)/e(r,s,i);return n?{value:o}:o}}"binary%"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)%e(r,s,i);return n?{value:o}:o}}"binary==="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)===e(r,s,i);return n?{value:o}:o}}"binary!=="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)!==e(r,s,i);return n?{value:o}:o}}"binary=="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)==e(r,s,i);return n?{value:o}:o}}"binary!="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)!=e(r,s,i);return n?{value:o}:o}}"binary<"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)<e(r,s,i);return n?{value:o}:o}}"binary>"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)>e(r,s,i);return n?{value:o}:o}}"binary<="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)<=e(r,s,i);return n?{value:o}:o}}"binary>="(t,e,n){return(r,s,i)=>{const o=t(r,s,i)>=e(r,s,i);return n?{value:o}:o}}"binary&&"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)&&e(r,s,i);return n?{value:o}:o}}"binary||"(t,e,n){return(r,s,i)=>{const o=t(r,s,i)||e(r,s,i);return n?{value:o}:o}}"ternary?:"(t,e,n,r){return(s,i,o)=>{const a=t(s,i,o)?e(s,i,o):n(s,i,o);return r?{value:a}:a}}value(t,e){return()=>e?{context:void 0,name:void 0,value:t}:t}identifier(t,e,n){return(r,s)=>{const i=s&&t in s?s:(r&&r.$proxy)??r;let o;return n&&1!==n&&i&&null==i[t]&&(i[t]={}),i&&(o=i.$target?i.$target[t]:i[t]),e?{context:i,name:t,value:o}:o}}computedMember(t,e,n,r){return(s,i,o)=>{const a=t(s,i,o);let c,l;return null!=a&&(c=e(s,i,o),c=function(t){return`${t}`}(c),r&&1!==r&&a&&!a[c]&&(a[c]={}),l=a[c]),n?{context:a,name:c,value:l}:l}}nonComputedMember(t,e,n,r){return(s,i,o)=>{const a=t(s,i,o);r&&1!==r&&a&&null==a[e]&&(a[e]={});const c=null!=a?a[e]:void 0;return n?{context:a,name:e,value:c}:c}}}function ai(t,e,n){let r,s,i,o,a,c,l,u,h,d,p,f=t;const $=f.isPure=function(t,e){switch(t.type){case es:if(t.computed)return!1;break;case Xr:return 1;case Yr:return"+"!==t.operator&&1;case ts:return!1}return void 0===e?2:e}(t,n);switch(t.type){case Kr:return r=!0,f.body.forEach(t=>{let n=ai(t.expression,e,$);r=r&&n.constant}),f.constant=r,f;case rs:return f.constant=!0,f.toWatch=[],f;case Xr:var m=ai(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case Yr:return o=ai(f.left,e,$),a=ai(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Zr:return o=ai(f.left,e,$),a=ai(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case Jr:return c=ai(t.test,e,$),l=ai(t.alternate,e,$),u=ai(t.consequent,e,$),f.constant=c.constant&&l.constant&&u.constant,f.toWatch=f.constant?[]:[t],f;case ns:return f.constant=!1,f.toWatch=[t],f;case es:return h=ai(t.object,e,$),t.computed&&(d=ai(t.property,e,$)),f.constant=h.constant&&(!f.computed||d.constant),f.toWatch=f.constant?[]:[t],f;case ts:return i=!!t.filter&&function(t,e){const n=t(e);return!n.$stateful}(e,t.callee.name),r=i,s=[],t.arguments.forEach(t=>{m=ai(t,e,$),r=r&&m.constant,s.push.apply(s,m.toWatch)}),f.constant=r,f.toWatch=i?s:[f],f;case Qr:return o=ai(t.left,e,$),a=ai(t.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=[f],f;case ss:return r=!0,s=[],t.elements.forEach(t=>{m=ai(t,e,$),r=r&&m.constant,s.push.apply(s,m.toWatch)}),f.constant=r,f.toWatch=s,f;case os:return r=!0,s=[],t.properties.forEach(t=>{m=ai(t.value,e,$),r=r&&m.constant,s.push.apply(s,m.toWatch),t.computed&&(p=ai(t.key,e,!1),r=r&&p.constant,s.push.apply(s,p.toWatch))}),f.constant=r,f.toWatch=s,f;case as:case cs:return f.constant=!1,f.toWatch=[],f}}function ci(t){return t.type===ns||t.type===es}const li=dt("$parse"),ui={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},hi=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class di{constructor(t){this.options=t}lex(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){const t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart&&this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{const e=t+this.peek(),n=e+this.peek(2),r=hi.has(t),s=hi.has(e),i=hi.has(n);if(r||s||i){const r=i?n:s?e:t;this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens}is(t,e){return-1!==e.indexOf(t)}peek(t){const e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)}isNumber(t){return t>="0"&&t<="9"&&"string"==typeof t}isWhitespace(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}isIdentifierStart(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}isIdentifierContinue(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}codePointAt(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888}peekMultichar(){const t=this.text.charAt(this.index),e=this.peek();if(!e)return t;const n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t}isExpOperator(t){return"-"===t||"+"===t||this.isNumber(t)}throwError(t,e,n){n=n||this.index;const r=b(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw li("lexerr",`Lexer Error: ${t} at column${r} in expression [${this.text}].`)}readNumber(){let t="";const e=this.index;for(;this.index<this.text.length;){const e=this.text.charAt(this.index).toLowerCase();if("."===e||this.isNumber(e))t+=e;else{const n=this.peek();if("e"===e&&this.isExpOperator(n))t+=e;else if(this.isExpOperator(e)&&n&&this.isNumber(n)&&"e"===t.charAt(t.length-1))t+=e;else{if(!this.isExpOperator(e)||n&&this.isNumber(n)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})}readIdent(){const t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){const t=this.peekMultichar();if(this.isIdentifierContinue&&!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})}readString(t){const e=this.index;let n="",r=!1;for(this.index++;this.index<this.text.length;){const s=this.text[this.index];if(r)n+="u"===s?this.handleUnicodeEscape():ui[s]||s,r=!1;else if("\\"===s)r=!0;else{if(s===t)return this.tokens.push({index:e,text:this.text.slice(e,this.index+1),constant:!0,value:n}),void this.index++;n+=s}this.index++}this.throwError("Unterminated quote",e)}handleUnicodeEscape(){const t=this.text.substring(this.index+1,this.index+5);return t.match(/[\da-f]{4}/i)||this.throwError(`Invalid unicode escape [\\u${t}]`),this.index+=4,String.fromCharCode(parseInt(t,16))}}const pi=dt("$parse"),fi=new Map([["true",!0],["false",!1],["null",null],["undefined",void 0]]);class $i{constructor(t){this.lexer=t,this.selfReferential={this:{type:as},$locals:{type:cs}}}ast(t){this.text=t,this.tokens=this.lexer.lex(t);const e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e}program(){const t=[];let e=!0;for(;e;)this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),this.expect(";")||(e=!1);return{type:Kr,body:t}}expressionStatement(){return{type:Gr,expression:this.filterChain()}}filterChain(){let t=this.assignment();for(;this.expect("|");)t=this.filter(t);return t}assignment(){let t=this.ternary();if(this.expect("=")){if(!ci(t))throw pi("lval","Trying to assign a value to a non l-value");t={type:Qr,left:t,right:this.assignment(),operator:"="}}return t}ternary(){const t=this.logicalOR();let e,n;return this.expect("?")&&(e=this.assignment(),this.consume(":"))?(n=this.assignment(),{type:Jr,test:t,alternate:e,consequent:n}):t}logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:Zr,operator:"||",left:t,right:this.logicalAND()};return t}logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:Zr,operator:"&&",left:t,right:this.equality()};return t}equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:Yr,operator:t.text,left:e,right:this.relational()};return e}relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:Yr,operator:t.text,left:e,right:this.additive()};return e}additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:Yr,operator:t.text,left:e,right:this.multiplicative()};return e}multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:Yr,operator:t.text,left:e,right:this.unary()};return e}unary(){let t;return(t=this.expect("+","-","!"))?{type:Xr,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()}primary(){let t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():vt(this.selfReferential,this.peek().text)?t=structuredClone(this.selfReferential[this.consume().text]):fi.has(this.peek().text)?t={type:rs,value:fi.get(this.consume().text)}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:ts,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:es,object:t,property:this.assignment(),computed:!0},this.consume("]")):"."===e.text?t={type:es,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t}filter(t){const e=[t],n={type:ts,callee:this.identifier(),arguments:e,filter:!0};for(;this.expect(":");)e.push(this.assignment());return n}parseArguments(){const t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t}identifier(){const t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:ns,name:t.text}}constant(){return{type:rs,value:this.consume().value}}arrayDeclaration(){const t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.assignment())}while(this.expect(","));return this.consume("]"),{type:ss,elements:t}}object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:is,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.assignment()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.assignment()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.assignment(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.assignment()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:os,properties:t}}throwError(t,e){throw pi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))}consume(t){if(0===this.tokens.length)throw pi("ueoe","Unexpected end of expression: {0}",this.text);const e=this.expect(t);if(e)return e;this.throwError(`is unexpected, expecting [${t}]`,this.peek())}peekToken(){if(0===this.tokens.length)throw pi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]}peek(...t){return this.peekAhead(0,...t)}peekAhead(t,...e){if(this.tokens.length>t){const n=this.tokens[t],r=n.text;if(e.includes(r)||!e[0]&&!e[1]&&!e[2]&&!e[3])return n}return!1}expect(...t){const e=this.peek(...t);return!!e&&(this.tokens.shift(),e)}}class mi{constructor(t,e){this.ast=new $i(t),this.astCompiler=new oi(e)}parse(t){const{ast:e}=this.getAst(t),n=this.astCompiler.compile(e);return n.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===rs||t.body[0].expression.type===ss||t.body[0].expression.type===os)}(e),n.constant=function(t){return t.constant}(e),n}getAst(t){return t=t.trim(),{ast:this.ast.ast(t)}}}class gi{constructor(){const t=Object.create(null);let e,n;this.setIdentifierFns=function(t,r){return e=t,n=r,this},this.$get=["$filter",function(r){const s={isIdentifierStart:k(e)&&e,isIdentifierContinue:k(n)&&n};return function(e,n){let o,a;switch(typeof e){case"string":if(a=e=e.trim(),o=t[a],!o){const n=new di(s);o=new mi(n,r).parse(e),t[a]=yi(o)}return i(o,n);case"function":return i(e,n);default:return i(()=>{},n)}};function i(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);let n=!1;const r=function(r,s,i,o){const a=n&&o?o[0]:t(r,s,i,o);if(r?.getter)return;const c=k(a)?a():a;return e(p(c)?c.$target:c)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,r.decoratedNode=t.decoratedNode,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map(function(t){return 2===t.isPure?function(e){return t(e)}:t}))),yi(r)}}]}}function vi(t,e,n,r){const s=t.$watch(()=>(s(),r(t)),e,n);return s}function yi(t){return t.constant?t.$$watchDelegate=vi:t.inputs&&(t.$$watchDelegate=bi),t}function bi(t,e,n,r){let s,i=r.inputs;if(1===i.length){let o=wi,a=i[0];return t.$watch(t=>{const e=a(t);return wi(e,o,a.isPure)||(s=r(t,void 0,[e]),o=e&&Ei(e)),s},e,n)}{const o=[],a=[];for(let t=0,e=i.length;t<e;t++)o[t]=wi,a[t]=null;return t.$watch(t=>{let e=!1;for(let n=0,r=i.length;n<r;n++){const r=i[n](t);(e||(e=!wi(r,o[n],i[n].isPure)))&&(a[n]=r,o[n]=r&&Ei(r))}return e&&(s=r(t,void 0,a)),s},e,n)}}function wi(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Ei(t))&&!n)&&(t===e||t!=t&&e!=e)}function Ei(t){return k(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Ci=dt("$interpolate");function Si(t,e){throw Ci("interr","Can't interpolate: {0}\n{1}",t,e.toString())}class xi{constructor(){this.startSymbol="{{",this.endSymbol="}}"}$get=[ee.$parse,ee.$sce,function(t,e){const n=this,r=n.startSymbol.length,s=n.endSymbol.length,i=new RegExp(n.startSymbol.replace(/./g,a),"g"),o=new RegExp(n.endSymbol.replace(/./g,a),"g");function a(t){return`\\\\\\${t}`}function c(t){return t.replace(i,n.startSymbol).replace(o,n.endSymbol)}function l(i,o,a,l){const u=a===e.URL||a===e.MEDIA_URL;if(!i.length||-1===i.indexOf(n.startSymbol)){if(o)return;let t=c(i);u&&(t=e.getTrusted(a,t));const n=()=>t;return n.exp=i,n.expressions=[],n.$$watchDelegate=vi,n}let h,d;l=!!l;let p=0;const f=[];let $;const m=i.length;let g;const v=[],w=[];let E;for(;p<m;){if(-1===(h=i.indexOf(n.startSymbol,p))||-1===(d=i.indexOf(n.endSymbol,h+r))){p!==m&&v.push(c(i.substring(p)));break}p!==h&&v.push(c(i.substring(p,h))),g=i.substring(h+r,d),f.push(g),p=d+s,w.push(v.length),v.push("")}E=1===v.length&&1===w.length;const C=u&&E?void 0:function(t){try{return t=a&&!u?e.getTrusted(a,t):e.valueOf(t),l&&!b(t)?t:K(t)}catch(t){Si(i,t)}};if($=f.map(e=>t(e,C)),!o||f.length){const t=function(t){for(let e=0,n=f.length;e<n;e++){if(l&&y(t[e]))return;v[w[e]]=t[e]}return u?e.getTrusted(a,E?v[0]:v.join("")):(a&&v.length>1&&function(t){throw Ci("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)}(i),v.join(""))};return M((e,n)=>{let r=0;const s=f.length,o=new Array(s);try{for(;r<s;r++){if(n){const i=f[r].trim();e.$watch(i,()=>{let r=new Array(s),i=0;for(;i<s;i++){let t=$[i];r[i]=t(e)}n(t(r))})}o[r]=$[r](e)}return t(o)}catch(t){Si(i,t)}},{exp:i,expressions:f,$$watchDelegate(e,n){let r;return e.$watch($,function(s,i){const o=t(s);n.call(this,o,s!==i?r:o,e),r=o})}})}}return l.startSymbol=function(){return n.startSymbol},l.endSymbol=function(){return n.endSymbol},l}]}let Ai={},Oi="";const ki="application/json",_i={"Content-Type":`${ki};charset=utf-8`},Ti=/^\[|^\{(?!\{)/,ji={"[":/]$/,"{":/}$/},Ri=/^\)]\}',?\n/,Ni=dt("$http");function Li(t){return w(t)?A(t)?t.toISOString():Y(t):t}function Vi(){this.$get=()=>t=>{if(!t)return"";const e=[];return Object.keys(t).sort().forEach(n=>{const r=t[n];null===r||y(r)||k(r)||(Array.isArray(r)?r.forEach(t=>{e.push(`${st(n)}=${st(Li(t))}`)}):e.push(`${st(n)}=${st(Li(r))}`))}),e.join("&")}}function Mi(t,e){if(E(t)){const r=t.replace(Ri,"").trim();if(r){const s=e("Content-Type"),i=s&&0===s.indexOf(ki);if(i||function(t){const e=t.match(Ti);return e&&ji[e[0]].test(t)}(r))try{t=E(n=r)?JSON.parse(n):n}catch(e){if(!i)return t;throw Ni("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function Pi(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return E(t)?t.split("\n").forEach(t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),L(t.substring(n+1)))}):w(t)&&Object.entries(t).forEach(([t,e])=>{r(g(t),L(e))}),e}function Di(t){let e;return function(n){if(e||(e=Pi(t)),n){let t=e[g(n)];return void 0===t&&(t=null),t}return e}}function Ui(t,e,n,r){return k(r)?r(t,e,n):(Array.isArray(r)&&r.forEach(r=>{t=r(t,e,n)}),t)}function Ii(t){return t>=200&&t<300}function Hi(){const t=this.defaults={transformResponse:[Mi],transformRequest:[function(t){return!w(t)||(e=t,"[object File]"===toString.call(e))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:Y(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ot(_i),put:ot(_i),patch:ot(_i)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return b(t)?(e=!!t,this):e},this.interceptors=[],this.xsrfTrustedOrigins=[],Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=[ee.$injector,ee.$sce,function(n,r){const s=new Map;t.paramSerializer=E(t.paramSerializer)?n.get(t.paramSerializer):t.paramSerializer;const i=[];this.interceptors.forEach(t=>{i.unshift(E(t)?n.get(t):n.invoke(t))});const o=function(t){const e=[Ne].concat(t.map(Le));return function(t){const n=Le(t);return e.some(Ve.bind(null,n))}}(this.xsrfTrustedOrigins);function a(c){if(!w(c))throw dt("$http")("badreq","Http request configuration must be an object. Received: {0}",c);if(!E(r.valueOf(c.url)))throw dt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",c.url);const l=M({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},c);var u;l.headers=function(e){let n=t.headers,r=M({},e.headers);return n=M({},n.common,n[g(e.method)]),Object.keys(n).forEach(t=>{const e=g(t);Object.keys(r).some(t=>g(t)===e)||(r[t]=n[t])}),function(t,e){let n;const r={};return Object.entries(t).forEach(([t,s])=>{k(s)?(n=s(e),null!=n&&(r[t]=n)):r[t]=s}),r}(r,ot(e))}(c),l.method=E(u=l.method)?u.toUpperCase():u,l.paramSerializer=E(l.paramSerializer)?n.get(l.paramSerializer):l.paramSerializer;const h=[],d=[];let p=Promise.resolve(l);return i.forEach(t=>{(t.request||t.requestError)&&h.unshift(t.request,t.requestError),(t.response||t.responseError)&&d.push(t.response,t.responseError)}),p=f(p,h),p=p.then(function(n){const{headers:i}=n,c=Ui(n.data,Di(i),void 0,n.transformRequest);y(c)&&Object.keys(i).forEach(t=>{"content-type"===g(t)&&delete i[t]});y(n.withCredentials)&&!y(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,i){const{promise:c,resolve:l,reject:u}=Promise.withResolvers();let h,d;const p=n.headers;let{url:f}=n;E(f)||(f=r.valueOf(f));f=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(f,n.paramSerializer(n.params)),a.pendingRequests.push(n),c.then(C,C),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(h=w(n.cache)?n.cache:w(t.cache)?t.cache:s);h&&(d=h.get(f),b(d)?N(d)?d.then(v,v):Array.isArray(d)?g(d[1],d[0],ot(d[2]),d[3],d[4]):g(d,200,{},"OK","complete"):h.set(f,c));if(y(d)){const e=o(n.url)?function(){let t,e,n,r,s;const i=document.cookie;if(i!==Oi)for(Oi=i,t=Oi.split("; "),Ai={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(s=Fi(e.substring(0,r)),y(Ai[s])&&(Ai[s]=Fi(e.substring(r+1))));return Ai}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&(p[n.xsrfHeaderName||t.xsrfHeaderName]=e),function(t,e,n,r,s,i,o,a,c,l){e=e||Me(window.location.href);const u=new XMLHttpRequest;let h,d=!1;if(u.open(t,e,!0),s)for(const[t,e]of Object.entries(s))b(e)&&u.setRequestHeader(t,e);if(u.onload=()=>{let t=u.status||0;const n=u.statusText||"";0===t&&(t=u.response?200:"file:"===new URL(e).protocol?404:0),f(t,u.response,u.getAllResponseHeaders(),n,"complete")},u.onerror=()=>f(-1,null,null,"","error"),u.ontimeout=()=>f(-1,null,null,"","timeout"),u.onabort=()=>{f(-1,null,null,"",d?"timeout":"abort")},c)for(const[t,e]of Object.entries(c))u.addEventListener(t,e);if(l)for(const[t,e]of Object.entries(l))u.upload.addEventListener(t,e);o&&(u.withCredentials=!0);if(a)try{u.responseType=a}catch(t){if("json"!==a)throw t}u.send(y(n)?null:n),"number"==typeof i&&i>0?h=setTimeout(()=>p("timeout"),i):N(i)&&i.then(()=>{p(b(i.$$timeoutId)?"timeout":"abort")});function p(t){d="timeout"===t,u&&u.abort()}function f(t,e,n,s,i){b(h)&&clearTimeout(h),r(t,e,n,s,i)}}(n.method,f,i,m,p,n.timeout,n.withCredentials,n.responseType,$(n.eventHandlers),$(n.uploadEventHandlers))}return c;function $(t){if(t){const n={};return Object.entries(t).forEach(([t,r])=>{n[t]=function(t){function n(){r(t)}e?setTimeout(()=>n()):n()}}),n}return{}}function m(t,n,r,s,i){function o(){g(n,t,r,s,i)}h&&(Ii(t)?h.set(f,[t,n,Pi(r),s,i]):h.delete(f)),e?setTimeout(o):o()}function g(t,e,r,s,i){(Ii(e=e>=-1?e:0)?l:u)({data:t,status:e,headers:Di(r),config:n,statusText:s,xhrStatus:i})}function v(t){g(t.data,t.status,ot(t.headers()),t.statusText,t.xhrStatus)}function C(){const t=a.pendingRequests.indexOf(n);-1!==t&&a.pendingRequests.splice(t,1)}}(n,c).then($,$)}),p=f(p,d),p;function f(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],s=e[n++];t=t.then(r,s)}return e.length=0,t}function $(t){const e=M({},t);return e.data=Ui(t.data,t.headers,t.status,l.transformResponse),Ii(t.status)?e:Promise.reject(e)}}return a.pendingRequests=[],function(...t){t.forEach(t=>{a[t]=function(e,n){return a(M({},n||{},{method:t,url:e}))}})}("get","delete","head"),function(...t){t.forEach(t=>{a[t]=function(e,n,r){return a(M({},r||{},{method:t,url:e,data:n}))}})}("post","put","patch"),a.defaults=t,a}]}function Fi(t){try{return decodeURIComponent(t)}catch{return t}}const qi=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Bi=dt("$location");let zi,Wi,Ki,Gi=!1;class Qi{constructor(t,e,n=!0,r){this.appBase=t,this.appBaseNoFile=e,this.html5=n,this.basePrefix=n?r||"":void 0,this.hashPrefix=n?void 0:r,this.absUrl="",this.$$url=void 0,this.$$updateBrowser=void 0}setUrl(t){const e=qi.exec(t);return void 0===e[1]&&""!==t||this.setPath(e[1]||""),void 0===e[2]&&void 0===e[1]&&""!==t||this.setSearch(e[3]||""),this.setHash(e[5]||""),this}getUrl(){return this.$$url}setPath(t){let e=null!==t?t.toString():"";return zi="/"===e.charAt(0)?e:`/${e}`,this.$$compose(),this}getPath(){return zi}setHash(t){return Ki=null!==t?t.toString():"",this.$$compose(),this}getHash(){return Ki}setSearch(t,e){if(1===arguments.length)if(E(t)||x(t))t=t.toString(),Wi=tt(t);else{if(!w(t))throw Bi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=structuredClone(t,{}),Object.entries(t).forEach(([e,n])=>{null==n&&delete t[e]}),Wi=t}else y(e)||null===e?delete Wi[t]:Wi[t]=e;return this.$$compose(),this}getSearch(){return Wi}$$compose(){this.$$url=function(t,e,n){const r=et(e),s=n?`#${rt(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;){const t=decodeURIComponent(e[n].replace(/%2F/gi,"/"));e[n]=rt(t)}return e.join("/")}(t)+(r?`?${r}`:"")+s}(zi,Wi,Ki),this.absUrl=this.html5?this.appBaseNoFile+this.$$url.substring(1):this.appBase+(this.$$url?this.hashPrefix+this.$$url:""),Gi=!0,setTimeout(()=>this.$$updateBrowser&&this.$$updateBrowser())}setState(t){if(!this.html5)throw Bi("nostate","History API state support is available only in HTML5 mode");return this.$$state=y(t)?null:t,Gi=!0,this}getState(){return this.$$state}parseLinkUrl(t,e){if(this.html5){if(e&&"#"===e[0])return this.setHash(e.slice(1)),!0;let n,r,s;return b(n=Yi(this.appBase,t))?(r=n,s=this.basePrefix&&b(n=Yi(this.basePrefix,n))?this.appBaseNoFile+(Yi("/",n)||n):this.appBase+r):b(n=Yi(this.appBaseNoFile,t))?s=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(s=this.appBaseNoFile),s&&this.parse(s),!!s}return Xi(this.appBase)===Xi(t)&&(this.parse(t),!0)}parse(t){if(this.html5){const e=Yi(this.appBaseNoFile,t);if(!E(e))throw Bi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);Zi(e,!0),zi||(zi="/"),this.$$compose()}else{const n=Yi(this.appBase,t)||Yi(this.appBaseNoFile,t);let r;function s(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let s;return yt(e,n)&&(e=e.replace(n,"")),r.exec(e)?t:(s=r.exec(t),s?s[1]:t)}y(n)||"#"!==n.charAt(0)?this.html5?r=n:(r="",y(n)&&(this.appBase=t)):(r=Yi(this.hashPrefix,n),y(r)&&(r=n)),Zi(r,!1),zi=s(zi,r,this.appBase),this.$$compose()}}}class Ji{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!0,requireBase:!1,rewriteLinks:!0},this.urlChangeListeners=[],this.urlChangeInit=!1,this.cachedState=null,this.lastHistoryState=null,this.lastBrowserUrl=window.location.href,this.cacheState()}setUrl(t,e){if(void 0===e&&(e=null),t){if(t=new URL(t).href,this.lastBrowserUrl===t&&this.lastHistoryState===e)return this;this.lastBrowserUrl=t,this.lastHistoryState=e,history.pushState(e,"",t),this.cacheState()}}getBrowserUrl(){return Me(window.location.href)}state(){return this.cachedState}cacheState(){const t=history.state??null;z(t,this.lastCachedState)||(this.cachedState=t,this.lastCachedState=t,this.lastHistoryState=t)}#t(){const t=this.lastHistoryState;this.cacheState(),this.lastBrowserUrl===this.getBrowserUrl()&&t===this.cachedState||(this.lastBrowserUrl=this.getBrowserUrl(),this.lastHistoryState=this.cachedState,this.urlChangeListeners.forEach(t=>{t(Me(window.location.href),this.cachedState)}))}#e(t){this.urlChangeInit||(window.addEventListener("popstate",this.#t.bind(this)),window.addEventListener("hashchange",this.#t.bind(this)),this.urlChangeInit=!0),this.urlChangeListeners.push(t)}$get=[ee.$rootScope,ee.$rootElement,(t,e)=>{let n;const r=te(),s=Me(window.location.href);let i;if(this.html5ModeConf.enabled){if(!r&&this.html5ModeConf.requireBase)throw Bi("nobase","$location in HTML5 mode requires a <base> tag to be present!");i=function(t){const e=t.indexOf("//")+2,n=t.indexOf("/",e);return-1===n?t:t.substring(0,n)}(s)+(r||"/")}else i=Xi(s);const o=(a=i).substring(0,Xi(a).lastIndexOf("/")+1);var a;n=new Qi(i,o,this.html5ModeConf.enabled,`#${this.hashPrefixConf}`),n.parseLinkUrl(s,s),n.$$state=this.state();const c=/^\s*(javascript|mailto):/i,l=(t,e)=>{const r=n.getUrl(),s=n.$$state;try{this.setUrl(t,e),n.$$state=this.state()}catch(t){throw n.setUrl(r),n.$$state=s,t}};e.addEventListener("click",t=>{const r=this.html5ModeConf.rewriteLinks;if(!r||t.ctrlKey||t.metaKey||t.shiftKey||2===t.button)return;let s=t.target;for(;"a"!==s.nodeName.toLowerCase();)if(s===e||!(s=s.parentElement))return;if(E(r)&&y(s.getAttribute(r)))return;let i=s.href;const o=s.getAttribute("href")||s.getAttribute("xlink:href");if(w(i)&&"[object SVGAnimatedString]"===i.toString()){i=new URL(i.animVal).href}c.test(i)||!i||s.getAttribute("target")||t.defaultPrevented||n.parseLinkUrl(i,o)&&t.preventDefault()}),n.absUrl!==s&&this.setUrl(n.absUrl,!0);let u=!0;this.#e((e,r)=>{yt(e,o)?Promise.resolve().then(()=>{const s=n.absUrl,i=n.$$state;let o;n.parse(e),n.$$state=r,o=t.$broadcast("$locationChangeStart",e,s,r,i).defaultPrevented,n.absUrl===e&&(o?(n.parse(s),n.$$state=i,l(s,i)):(u=!1,d(s,i)))}):window.location.href=e});const h=()=>{if(u||Gi){Gi=!1;const r=this.getBrowserUrl(),s=n.absUrl,i=this.state(),o=(e=s,!(to(r)===to(e))||n.html5&&i!==n.$$state);(u||o)&&(u=!1,setTimeout(()=>{const e=n.absUrl,{defaultPrevented:s}=t.$broadcast("$locationChangeStart",e,r,n.$$state,i);n.absUrl===e&&(s?(n.parse(r),n.$$state=i):(o&&l(e,i===n.$$state?null:n.$$state),d(r,i)))}))}var e};return n.$$updateBrowser=h,h(),t.$on("$updateBrowser",h),n;function d(e,r){t.$broadcast("$locationChangeSuccess",n.absUrl,e,n.$$state,r)}}]}function Zi(t,e){if(/^\s*[\\/]{2,}/.test(t))throw Bi("badpath",'Invalid url "{0}".',t);const n="/"!==t.charAt(0);n&&(t=`/${t}`);const r=Le(t),s=n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname;zi=function(t,e){const n=t.split("/");let r=n.length;for(;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(s,e),Wi=tt(r.search),Ki=decodeURIComponent(r.hash),zi&&"/"!==zi.charAt(0)&&(zi=`/${zi}`)}function Yi(t,e){if(yt(e,t))return e.substring(t.length)}function Xi(t){const e=t.indexOf("#");return-1===e?t:t.substring(0,e)}function to(t){const e=document.createElement("a");e.href=t;let n=e.href;return n.endsWith("/")&&!/^https?:\/\/[^/]+\/$/.test(n)&&(n=n.slice(0,-1)),n.endsWith("#")&&(n=n.slice(0,-1)),n}class eo{constructor(){this.debug=!1,this._override=null}setLogger(t){this._override=t}formatError(t){return O(t)&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack:t.sourceURL&&(t=`${t.message}\n${t.sourceURL}:${t.line}`)),t}consoleLog(t){const e=window.console||{},n=e[t]||e.log||(()=>{});return(...t)=>{const r=t.map(t=>this.formatError(t));return n.apply(e,r)}}$get(){return this._override?this._override():{log:this.consoleLog("log"),info:this.consoleLog("info"),warn:this.consoleLog("warn"),error:this.consoleLog("error"),debug:(()=>{const t=this.consoleLog("debug");return(...e)=>{this.debug&&t.apply(this,e)}})()}}}let no,ro,so=0;const io=[];class oo{constructor(){this.rootScope=ao()}$get=["$exceptionHandler","$parse",(t,e)=>(ro=t,no=e,this.rootScope)]}function ao(t={},e){if(C(t)||!0===t[co]||!0===(t.constructor&&t.constructor[co]))return t;if("object"==typeof t){const n=new Proxy(t,e||new lo);for(const e in t)if(vt(t,e))try{t.constructor.$nonscope&&Array.isArray(t.constructor.$nonscope)&&t.constructor.$nonscope.includes(e)||t.$nonscope&&Array.isArray(t.$nonscope)&&t.$nonscope.includes(e)||(t[e]=ao(t[e],n.$handler))}catch{}return n}return t}const co="$nonscope";class lo{constructor(t,e){this.context=t?t.context?t.context:t:void 0,this.watchers=t?t.watchers:new Map,this.$$listeners=new Map,this.foreignListeners=t?t.foreignListeners:new Map,this.foreignProxies=t?t.foreignProxies:new Set,this.objectListeners=t?t.objectListeners:new WeakMap,this.functionListeners=t?t.functionListeners:new Map,this.$proxy=null,this.$handler=this,this.$target=null,this.$value=null,this.$children=[],this.$id=(so+=1,so),this.$root=t?t.$root:this,this.$parent=e||(this.$root===this?null:t),this.$$asyncQueue=[],this.filters=[],this.$$destroyed=!1,this.scheduled=[]}set(t,e,n,r){if("undefined"===e)throw new Error("Attempting to set undefined property");if(t.constructor?.$nonscope&&Array.isArray(t.constructor.$nonscope)&&t.constructor.$nonscope.includes(e)||t.$nonscope&&Array.isArray(t.$nonscope)&&t.$nonscope.includes(e))return t[e]=n,!0;this.$proxy=r,this.$target=t;const s=t[e];if(void 0!==s&&Number.isNaN(s)&&Number.isNaN(n))return!0;if(s&&s[d]){if(Array.isArray(n)){if(s!==n){const t=this.watchers.get(e);t&&this.#n(t);const n=this.foreignListeners.get(e);n&&this.#n(n)}return this.objectListeners.get(t[e])&&this.objectListeners.delete(t[e]),t[e]=ao(n,this),this.objectListeners.set(t[e],[e]),!0}if(w(n)){if(vt(t,e)&&Object.keys(s).filter(t=>!n[t]).forEach(t=>{delete s[t]}),s!==n){const t=this.watchers.get(e);t&&this.#n(t);const r=this.foreignListeners.get(e);r&&this.#n(r),this.#r(n)}return t[e]=ao(n,this),!0}if(y(n)){let n=!1;if(Object.keys(s.$target).forEach(t=>{s.$target[t]?.[d]&&(n=!0),delete s[t]}),t[e]=void 0,!n){let t=this.watchers.get(e);t&&this.#n(t)}return!0}if(b(n)){t[e]=n;let s=this.watchers.get(e);if(s&&this.#n(s),Array.isArray(t)&&this.objectListeners.has(r)&&"length"!==e){this.objectListeners.get(r).forEach(t=>{const e=this.watchers.get(t);e&&this.#n(e)})}return!0}return!0}if(y(t[e])&&p(n)&&(this.foreignProxies.add(n),t[e]=n,!this.watchers.has(e)))return!0;if(y(n)?t[e]=n:t[e]=ao(n,this),s!==n){let r=this.$target,i=[];if(y(s)&&w(t[e])){this.objectListeners.has(t[e])||this.objectListeners.set(t[e],[e]);for(const t of Object.keys(n))this.watchers.get(t)?.forEach(t=>i.push(t)),r=n}Array.isArray(t)&&this.watchers.get("length")?.forEach(t=>i.push(t)),this.watchers.get(e)?.forEach(t=>i.push(t)),i.length>0&&this.#n(i,t=>t.filter(t=>{if(!t.watchProp)return!0;const e=t.watchProp.split(".").slice(0,-1).join("."),n=no(e)(t.originalTarget)?.$handler;return r===n?.$target}));let o=this.foreignListeners.get(e);!o&&this.$parent?.foreignListeners&&(o=this.$parent.foreignListeners.get(e)),o&&(this.$target.$$hashKey&&(o=o.filter(t=>!!t.originalTarget.$$hashKey&&t.originalTarget.$$hashKey==this.$target.$$hashKey)),this.#n(o))}if(this.objectListeners.has(r)&&"length"!==e){this.objectListeners.get(r).forEach(t=>{const e=this.watchers.get(t);e&&this.scheduled!==e&&this.#n(e)})}return!0}get(t,e,n){if("$$watchersCount"===e)return function(t){const e=uo(t).add(t.$id);return Array.from(t.watchers.values()).reduce((t,n)=>t+n.reduce((t,n)=>t+(e.has(n.scopeId)?1:0),0),0)}(this);if(e===d)return!0;if(t[e]&&p(t[e])?this.$proxy=t[e]:this.$proxy=n,this.propertyMap={$watch:this.$watch.bind(this),$new:this.$new.bind(this),$newIsolate:this.$newIsolate.bind(this),$destroy:this.$destroy.bind(this),$eval:this.$eval.bind(this),$apply:this.$apply.bind(this),$postUpdate:this.$postUpdate.bind(this),$isRoot:this.#s.bind(this),$target:t,$proxy:this.$proxy,$on:this.$on.bind(this),$emit:this.$emit.bind(this),$broadcast:this.$broadcast.bind(this),$transcluded:this.$transcluded.bind(this),$handler:this,$parent:this.$parent,$root:this.$root,$children:this.$children,$id:this.$id,$merge:this.$merge.bind(this),$getById:this.$getById.bind(this)},Array.isArray(t)&&["pop","shift","unshift"].includes(e)){if(this.objectListeners.has(n)){this.objectListeners.get(this.$proxy).forEach(t=>{const e=this.watchers.get(t);e&&(this.scheduled=e)})}"unshift"===e&&this.#n(this.scheduled)}return vt(this.propertyMap,e)?(this.$target=t,this.propertyMap[e]):t[e]}deleteProperty(t,e){if(t[e]&&t[e][d]){t[e]=void 0;let n=this.watchers.get(e);if(n&&this.#n(n),this.objectListeners.has(this.$proxy)){this.objectListeners.get(this.$proxy).forEach(t=>{n=this.watchers.get(t),n&&this.#n(n)})}return this.scheduled&&(this.#n(this.scheduled),this.scheduled=[]),!0}if(delete t[e],this.objectListeners.has(this.$proxy)){this.objectListeners.get(this.$proxy).forEach(t=>{const e=this.watchers.get(t);e&&this.#n(e)})}else{const n=this.watchers.get(e);n&&this.#n(n,t[e])}return!0}#r(t){y(t)||Object.keys(t).forEach(e=>{const n=this.watchers.get(e);n&&this.#n(n),w(t[e])&&this.#r(t[e])})}#n(t,e=t=>t){Promise.resolve().then(()=>{let n=0,r=e(t);for(;n<r.length;){const t=r[n];t.foreignListener?t.foreignListener.#i(t,this.$target):this.#i(t,this.$target),n++}})}$watch(t,e,n=!1){at(E(t),"Watched property required"),t=t.trim();const r=no(t);if(r.constant)return e&&Promise.resolve().then(()=>{let t=r();for(;k(t);)t=t();e(t,this.$target)}),()=>{};const s={originalTarget:this.$target,listenerFn:e,watchFn:r,scopeId:this.$id,id:m(),property:[]};let i=r.decoratedNode.body[0].expression.name,o=[],a=r.decoratedNode.body[0].expression.type;switch(a){case Kr:case Gr:throw new Error("Unsupported type "+a);case Qr:if(!e){let t=r(this.$target);for(;k(t);)t=t(this.$target);return Promise.resolve().then(t),()=>{}}i=r.decoratedNode.body[0].expression.left.name;break;case Jr:i=r.decoratedNode.body[0].expression.toWatch[0]?.test?.name,s.property.push(i);break;case Zr:{let t=[];return t.push(r.decoratedNode.body[0].expression.left.toWatch[0]?.name),t.push(r.decoratedNode.body[0].expression.right.toWatch[0]?.name),t.forEach(t=>{this.#o(t,s)}),()=>{t.forEach(t=>{this.#a(t,s.id)})}}case Yr:{let t=r.decoratedNode.body[0].expression.toWatch[0];if(i=t.property?t.property.name:t.name,!i)throw new Error("Unable to determine key");s.property.push(i);break}case Xr:{let t=r.decoratedNode.body[0].expression.toWatch[0];if(i=t.property?t.property.name:t.name,!i)throw new Error("Unable to determine key");s.property.push(i);break}case ts:{let t=[];return r.decoratedNode.body[0].expression.toWatch.forEach(e=>{b(e)&&t.push(e.name)}),t.forEach(t=>{this.#o(t,s),this.#n([s])}),()=>{t.forEach(t=>{this.#a(t,s.id)})}}case es:if(i=r.decoratedNode.body[0].expression.property.name,i||(i=r.decoratedNode.body[0].expression.object.name),s.property.push(i),t!==i){s.watchProp=t;let e=no(t.split(".").slice(0,-1).join("."))(s.originalTarget);if(e&&this.foreignProxies.has(e))return e.$handler.#c(i,s),e.$handler.#n([s]),()=>e.$handler.#a(i,s.id)}break;case ns:s.property.push(r.decoratedNode.body[0].expression.name);break;case rs:throw new Error("Unsupported type "+a);case ss:{let t=r.decoratedNode.body[0].expression.elements.map(t=>11===t.type?t.value:t.toWatch[0].name).filter(t=>!!t);return t.forEach(t=>{this.#o(t,s),this.#n([s])}),()=>{t.forEach(t=>{this.#a(t,s.id)})}}case is:throw new Error("Unsupported type "+a);case os:r.decoratedNode.body[0].expression.properties.forEach(t=>{if(!1===t.key.isPure)o.push(t.key.name),s.property.push(i);else if(t.value.name)o.push(t.value.name),s.property.push(i);else{const t=r.decoratedNode.body[0].expression.toWatch[0];i=t.property?t.property.name:t.name,s.property.push(i)}});break;case as:case cs:case ls:throw new Error("Unsupported type "+a)}let c=s.watchFn(this.$target);return w(c)&&this.objectListeners.set(c,[i]),o.length>0?o.forEach(t=>{this.#o(t,s)}):this.#o(i,s),n||this.#n([s]),()=>{if(o.length>0){let t=!0;return o.forEach(e=>{this.#a(e,s.id)||(t=!1)}),t}return this.#a(i,s.id)}}$new(t){let e;t?(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)==this.$target?Object.setPrototypeOf(t,this.$target):Object.setPrototypeOf(Object.getPrototypeOf(t)||t,this.$target),e=t):e=Object.create(this.$target);const n=new Proxy(e,new lo(this));return this.$children.push(n),n}$newIsolate(t){let e=t?Object.create(t):Object.create(null);const n=new Proxy(e,new lo(this,this.$root));return this.$children.push(n),n}$transcluded(t){let e=Object.create(this.$target);const n=new Proxy(e,new lo(this,t));return this.$children.push(n),n}#o(t,e){this.watchers.has(t)?this.watchers.get(t).push(e):this.watchers.set(t,[e])}#c(t,e){this.foreignListeners.has(t)?this.foreignListeners.get(t).push(e):this.foreignListeners.set(t,[e])}#a(t,e){const n=this.watchers.get(t);if(!n)return!1;const r=n.findIndex(t=>t.id===e);return-1!==r&&(n.splice(r,1),n.length?this.watchers.set(t,n):this.watchers.delete(t),!0)}$eval(t,e){const n=no(t)(this,e);return y(n)||null===n||n.name===Object.hasOwnProperty.name?n:k(n)?n():Number.isNaN(n)?0:n}$merge(t){Object.entries(t).forEach(([t,e])=>{this.set(this.$target,t,e,this.$proxy)})}$apply(t){try{return no(t)(this.$proxy)}catch(t){ro(t)}}$on(t,e){let n=this.$$listeners.get(t);return n||(n=[],this.$$listeners.set(t,n)),n.push(e),()=>{const r=n.indexOf(e);-1!==r&&(n.splice(r,1),0==n.length&&this.$$listeners.delete(t))}}$emit(t,...e){return this.#l({name:t,event:void 0,broadcast:!1},...e)}$broadcast(t,...e){return this.#l({name:t,event:void 0,broadcast:!0},...e)}#l({name:t,event:e,broadcast:n},...r){if(!n&&!this.$$listeners.has(t))return this.$parent?this.$parent.$handler.#l({name:t,event:e,broadcast:n},...r):void 0;e?e.currentScope=this.$target:e=e||{name:t,targetScope:this.$target,currentScope:this.$target,stopped:!1,stopPropagation(){e.stopped=!0},preventDefault(){e.defaultPrevented=!0},defaultPrevented:!1};const s=G([e],[e].concat(r),1);let i=this.$$listeners.get(t);if(i){let t=i.length;for(let e=0;e<t;e++)try{i[e].apply(null,s),i.length!==t&&(i.length<t&&e--,t=i.length)}catch(t){ro(t)}}return e.currentScope=null,e.stopped?e:n?(this.$children.length>0&&this.$children.forEach(s=>{e=s.$handler.#l({name:t,event:e,broadcast:n},...r)}),e):this.$parent?this.$parent.#l({name:t,event:e,broadcast:n},...r):e}#s(){return this.$root==this}$postUpdate(t){io.push(t)}$destroy(){if(!this.$$destroyed){if(this.$broadcast("$destroy"),Array.from(this.watchers.entries()).forEach(([t,e])=>{this.watchers.set(t,e.filter(t=>t.scopeId!==this.$id))}),this.#s())this.watchers.clear();else{let t=this.$parent.$children.filter(t=>t.$id==this.$id)[0];this.$parent.$children.splice(this.$parent.$children.indexOf(t),1)}this.$$listeners.clear(),this.$$destroyed=!0}}#i(t,e){const{originalTarget:n,listenerFn:r,watchFn:s}=t;try{let t=s(n);for(y(t)&&(t=s(e)),k(t)&&(t=t(n)),Array.isArray(t)&&t.forEach((e,r)=>{k(e)&&(t[r]=e(n))}),r(t,n),this.$$asyncQueue.forEach(t=>{t.handler.$id==this.$id&&Promise.resolve().then(t.fn(t.handler,t.locals))});io.length;)io.shift()()}catch(t){ro(t)}}$getById(t){if(E(t)&&(t=parseInt(t,10)),this.$id===t)return this;{let e;for(const n of this.$children){let r=n.$getById(t);if(r){e=r;break}}return e}}}function uo(t){const e=new Set([t.$id]);return t.$children?.forEach(t=>{uo(t).forEach(t=>e.add(t))}),e}const ho=dt("$templateRequest");function po(){let t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$sce",function(e,n,r,s){function i(o,a){if(i.totalPendingRequests++,!E(o)||!n.has(o))try{if(!(o=s.getTrustedResourceUrl(o)))return Promise.reject("Template not found")}catch(t){return Promise.reject(t.message)}let c=r.defaults&&r.defaults.transformResponse;return Array.isArray(c)?c=c.filter(function(t){return t!==Mi}):c===Mi&&(c=null),r.get(o,M({cache:n,transformResponse:c},t)).finally(function(){i.totalPendingRequests--}).then(function(t){return n.set(o,t.data),t.data},function(t){a||(t=ho("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,t.status,t.statusText),e(t));return Promise.reject(t)})}return i.totalPendingRequests=0,i}]}class fo{constructor(){this._aHrefSanitizationTrustedUrlList=/^\s*(https?|s?ftp|mailto|tel|file):/,this._imgSrcSanitizationTrustedUrlList=/^\s*((https?|ftp|file|blob):|data:image\/)/}aHrefSanitizationTrustedUrlList(t){return b(t)?(this._aHrefSanitizationTrustedUrlList=t,this):this._aHrefSanitizationTrustedUrlList}imgSrcSanitizationTrustedUrlList(t){return b(t)?(this._imgSrcSanitizationTrustedUrlList=t,this):this._imgSrcSanitizationTrustedUrlList}$get(){return(t,e)=>{if(!t)return t;const n=e?this._imgSrcSanitizationTrustedUrlList:this._aHrefSanitizationTrustedUrlList,r=Le(t.trim()).href;return""===r||r.match(n)?t:`unsafe:${r}`}}}const $o="ng-active",mo="ng-inactive";class go{constructor(t,e,n,r){this.$element=t,this.$scope=e,this.$attrs=n,this.$animate=r,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watch(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(t={}){this.renderLater=!1,this.cachedCollection=t;const e=yo(this.$scope,this.$attrs.ngMessagesMultiple)||yo(this.$scope,this.$attrs.multiple),n=[],r={};let s=0,i=this.head,o=!1,a=0;for(;i;){a++;const c=i.message;let l=!1;o||Object.entries(t).forEach(([t,e])=>{if(bo(e)&&!l&&(s++,c.test(t))){if(r[t])return;r[t]=!0,l=!0,c.attach()}}),l?o=!e:n.push(c),i=i.next}n.forEach(t=>{t.detach()});const c=n.length!==a,l=this.default&&!c&&s>0;l?this.default.attach():this.default&&this.default.detach(),c||l?this.$animate.setClass(this.$element,$o,mo):this.$animate.setClass(this.$element,mo,$o)}reRender(){this.renderLater||(this.renderLater=!0,Promise.resolve().then(()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)}))}register(t,e,n){if(n)this.default=e;else{const n=this.latestKey.toString();this.messages[n]={message:e},this.insertMessageNode(this.$element,t,n),t.$$ngMessageNode=n,this.latestKey++}this.reRender()}deregister(t,e){if(e)delete this.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,this.removeMessageNode(this.$element,t,e),delete this.messages[e]}this.reRender()}findPreviousMessage(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return this.messages[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}insertMessageNode(t,e,n){const r=this.messages[n];if(this.head){const n=this.findPreviousMessage(t,e);n?(r.next=n.next,n.next=r):(r.next=this.head,this.head=r)}else this.head=r}removeMessageNode(t,e,n){const r=this.messages[n];if(!r)return;const s=this.findPreviousMessage(t,e);s?s.next=r.next:this.head=r.next}}function vo(t){return{require:"ngMessages",restrict:"AE",controller:(e,n,r)=>new go(e,n,r,t)}}function yo(t,e){return E(e)&&0===e.length||bo(t.$eval(e))}function bo(t){return E(t)?t.length:!!t}function wo(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,s){const i=s.ngMessagesInclude||s.src;t(i).then(t=>{n.$$destroyed||E(t)&&!t.trim()||e(t)(n,t=>{r.after(t)})})}}}vo.$inject=["$animate"],wo.$inject=["$templateRequest","$compile"];const Eo=xo(!1),Co=xo(!1),So=xo(!0);function xo(t){function e(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,s,i,o){let a,c,l,u,h,d;if(!t){a=r,l=s.ngMessage||s.when,u=s.ngMessageExp||s.whenExp;const t=function(t){c=t?Array.isArray(t)?t:t.split(/[\s,]+/):null,i.reRender()};u?(t(n.$eval(u)),n.$watch(u,t)):t(l)}i.register(a,d={test:t=>function(t,e){if(t)return Array.isArray(t)?t.indexOf(e)>=0:vt(t,e)}(c,t),attach(){h||o((n,s)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=i.getAttachId();h.addEventListener("$destroy",()=>{h&&h.$$attachId===o&&(i.deregister(a,t),d.detach()),s.$destroy()})})},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",()=>{i.deregister(a,t)})}}}return e.$inject=["$animate"],e}const Ao="ngAriaDisable",Oo=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],ko=function(t,e){if(-1!==e.indexOf(t.nodeName))return!0};function _o(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function e(e,n,r,s){return function(i,o,a){if(vt(a,Ao))return;const c=a.$normalize(n);!t[c]||ko(o,r)||a[c]||i.$watch(a[e],t=>{t=s?!t:!!t,o.setAttribute(n,t)})}}this.config=function(e){t=M(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}function To(t){return t.$$watchExpr("ngDisabled","aria-disabled",Oo,!1)}function jo(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function Ro(){return{restrict:"A",require:"?ngMessages",link(t,e,n){vt(n,Ao)||e.hasAttribute("aria-live")||e.setAttribute("aria-live","assertive")}}}function No(t,e){return{restrict:"A",compile(n,r){if(vt(r,Ao))return;const s=e(r.ngClick);return function(e,n,r){ko(n,Oo)||(t.config("bindRoleForClick")&&!n.hasAttribute("role")&&n.setAttribute("role","button"),t.config("tabindex")&&!n.hasAttribute("tabindex")&&n.setAttribute("tabindex","0"),!t.config("bindKeydown")||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.addEventListener("keydown",t=>{const n=parseInt(t.key,10);13!==n&&32!==n||(-1!==Oo.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply(function(){s(e,{$event:t})}))}))}}}}function Lo(t){return t.$$watchExpr("ngRequired","aria-required",Oo,!1)}function Vo(t){return t.$$watchExpr("ngChecked","aria-checked",Oo,!1)}function Mo(t){return t.$$watchExpr("ngValue","aria-checked",Oo,!1)}function Po(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function Do(t){return t.$$watchExpr("ngReadonly","aria-readonly",Oo,!1)}function Uo(t){function e(e,n,r,s){return t.config(n)&&!r.getAttribute(e)&&(s||!ko(r,Oo))&&("hidden"!==r.getAttribute("type")||"INPUT"!==r.nodeName)}function n(t,e){return!e.getAttribute("role")&&e.getAttribute("type")===t&&!ko(e,Oo)}return{restrict:"A",require:"ngModel",priority:200,compile(r,s){if(vt(s,Ao))return;const i=function(t){const{type:e}=t,{role:n}=t;return"checkbox"===(e||n)||"menuitemcheckbox"===n?"checkbox":"radio"===(e||n)||"menuitemradio"===n?"radio":"range"===e||"progressbar"===n||"slider"===n?"range":""}(s);return{post(r,s,o,a){const c=e("tabindex","tabindex",s,!1);switch(i){case"radio":case"checkbox":n(i,s)&&s.setAttribute("role",i),e("aria-checked","ariaChecked",s,!1)&&a.$watch("$modelValue","radio"===i?function(){s.setAttribute("aria-checked",(o.value==a.$viewValue).toString())}:function(){s.setAttribute("aria-checked",(!a.$isEmpty(a.$viewValue)).toString())}),c&&s.setAttribute("tabindex",0);break;case"range":if(n(i,s)&&s.setAttribute("role","slider"),t.config("ariaValue")){const t=!s.hasAttribute("aria-valuemin")&&(vt(o,"min")||vt(o,"ngMin")),e=!s.hasAttribute("aria-valuemax")&&(vt(o,"max")||vt(o,"ngMax")),n=!s.hasAttribute("aria-valuenow");t&&o.$observe("min",t=>{s.setAttribute("aria-valuemin",t)}),e&&o.$observe("max",t=>{s.setAttribute("aria-valuemax",t)}),n&&a.$watch("$modelValue",t=>{s.setAttribute("aria-valuenow",t)})}c&&s.setAttribute("tabindex",0)}!vt(o,"ngRequired")&&a.$validators.required&&e("aria-required","ariaRequired",s,!1)&&o.$observe("required",()=>{s.setAttribute("aria-required",(!!o.required).toString())}),e("aria-invalid","ariaInvalid",s,!0)&&a.$watch("$invalid",t=>{s.setAttribute("aria-invalid",(!!t).toString())})}}}}}function Io(t){return function(e,n,r){vt(r,Ao)||!t.config("tabindex")||n.hasAttribute("tabindex")||ko(n,Oo)||n.setAttribute("tabindex",0)}}To.$inject=[ee.$aria],jo.$inject=[ee.$aria],No.$inject=[ee.$aria,ee.$parse],Lo.$inject=[ee.$aria],Vo.$inject=["$aria"],Mo.$inject=[ee.$aria],Po.$inject=[ee.$aria],Do.$inject=[ee.$aria],Uo.$inject=[ee.$aria],Io.$inject=[ee.$aria];const Ho="$$animateCss",Fo=1e3,qo={transitionDuration:As,transitionDelay:xs,transitionProperty:$s+bs,animationDuration:Ss,animationDelay:Cs,animationIterationCount:gs+"IterationCount"},Bo={transitionDuration:As,transitionDelay:xs,animationDuration:Ss,animationDelay:Cs};function zo(t,e){return[e?Cs:xs,`${t}s`]}function Wo(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return Object.entries(e).forEach(([t,e])=>{let s=r[e];if(s){const e=s.charAt(0);("-"===e||"+"===e||e>=0)&&(s=function(t){let e=0;return t.split(/\s*,\s*/).forEach(t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t}),e}(s)),0===s&&(s=null),n[t]=s}}),n}function Ko(t){return 0===t||null!=t}function Go(t,e){let n=$s,r=`${t}s`;return e?n+=ys:r+=" linear all",[n,r]}function Qo(t,e,n){n.forEach(n=>{t[n]=b(t[n])?t[n]:e.style.getPropertyValue(n)})}function Jo(){this.$get=["$$AnimateRunner","$$animateCache","$$rAFScheduler",function(t,e,n){const r=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};const s=[];function i(t){s.push(t),n.waitUntilQuiet(()=>{e.flush();const t=document.body.offsetWidth+1;for(let e=0;e<s.length;e++)s[e](t);s.length=0})}function o(t,n,r){const s=function(t,n,r,s){let i=e.get(n);i||(i=Wo(t,s),"infinite"===i.animationIterationCount&&(i.animationIterationCount=1));const o=r||i.transitionDuration>0||i.animationDuration>0;return e.put(n,i,o),i}(t,n,r,qo),i=s.animationDelay,o=s.transitionDelay;return s.maxDelay=i&&o?Math.max(i,o):i||o,s.maxDuration=Math.max(s.animationDuration*s.animationIterationCount,s.transitionDuration),s}return function(n,s){let a,c=s||{};c.$$prepared||(c=js(structuredClone(c)));const l={},u=n;if(!u||!u.parentNode)return q();const h=[],d=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(c);let p,f,$,m,g,v,y,b,w,E;const C=[];if(0===c.duration)return q();const S=c.event&&Array.isArray(c.event)?c.event.join(" "):c.event,x=S&&c.structural;let A="",O="";x?A=_s(S,"ng-",!0):S&&(A=S),c.addClass&&(O+=_s(c.addClass,us)),c.removeClass&&(O.length&&(O+=" "),O+=_s(c.removeClass,hs)),c.applyClassesEarly&&O.length&&r(n,c);let k=[A,O].join(" ").trim();const _=d.to&&Object.keys(d.to).length>0;if(!((c.keyframeStyle||"").length>0)&&!_&&!k)return q();let T,j,R=e.cacheKey(u,S,c.addClass,c.removeClass);if(e.containsCachedAnimationWithoutDuration(R))return k=null,q();if(c.stagger>0){const t=parseFloat(c.stagger);T={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else T=function(t,n,r,s){let i;const o=`stagger-${r}`;if(e.count(r)>0&&(i=e.get(o),!i)){const r=_s(n,"-stagger");t.className+=` ${r}`,i=Wo(t,s),i.animationDuration=Math.max(i.animationDuration,0),i.transitionDuration=Math.max(i.transitionDuration,0),t.classList.remove(r),e.put(o,i,!0)}return i||{}}(u,k,R,Bo);if(c.$$skipPreparationClasses||n.classList.add(...k.split(" ").filter(t=>""!==t)),c.transitionStyle){const t=[$s,c.transitionStyle];Ps(u,t),h.push(t)}if(c.duration>=0){j=u.style[$s].length>0;const t=Go(c.duration,j);Ps(u,t),h.push(t)}if(c.keyframeStyle){const t=[gs,c.keyframeStyle];Ps(u,t),h.push(t)}const N=T?c.staggerIndex>=0?c.staggerIndex:e.count(R):0,L=0===N;L&&!c.skipBlocking&&Zo(u,9999);let V=o(u,R,!x),M=V.maxDelay;v=Math.max(M,0),b=V.maxDuration;const P={};if(P.hasTransitions=V.transitionDuration>0,P.hasAnimations=V.animationDuration>0,P.hasTransitionAll=P.hasTransitions&&"all"===V.transitionProperty,P.applyTransitionDuration=_&&(P.hasTransitions&&!P.hasTransitionAll||P.hasAnimations&&!P.hasTransitions),P.applyAnimationDuration=c.duration&&P.hasAnimations,P.applyTransitionDelay=Ko(c.delay)&&(P.applyTransitionDuration||P.hasTransitions),P.applyAnimationDelay=Ko(c.delay)&&P.hasAnimations,P.recalculateTimingStyles=O.length>0,(P.applyTransitionDuration||P.applyAnimationDuration)&&(b=c.duration?parseFloat(c.duration):b,P.applyTransitionDuration&&(P.hasTransitions=!0,V.transitionDuration=b,j=u.style[$s+bs].length>0,h.push(Go(b,j))),P.applyAnimationDuration&&(P.hasAnimations=!0,V.animationDuration=b,h.push([Ss,`${b}s`]))),0===b&&!P.recalculateTimingStyles)return q();let D=_s(k,ds);return null!=c.delay&&("boolean"!=typeof c.delay&&(a=parseFloat(c.delay),v=Math.max(a,0)),P.applyTransitionDelay&&h.push(zo(a)),P.applyAnimationDelay&&h.push(zo(a,!0))),null==c.duration&&V.transitionDuration>0&&(P.recalculateTimingStyles=P.recalculateTimingStyles||L),y=v*Fo,w=b*Fo,c.skipBlocking||(P.blockTransition=V.transitionDuration>0,P.blockKeyframeAnimation=V.animationDuration>0&&T.animationDelay>0&&0===T.animationDuration),c.from&&(c.cleanupStyles&&Qo(l,u,Object.keys(c.from)),Ns(0,c)),P.blockTransition||P.blockKeyframeAnimation?F(b):c.skipBlocking||Zo(u,!1),{$$willAnimate:!0,end:U,start(){if(!p)return g={end:U,cancel:I,resume:null,pause:null},m=new t(g),i(z),m}};function U(){H()}function I(){H(!0)}function H(t){if(p||$&&f)return;p=!0,f=!1,k&&!c.$$skipPreparationClasses&&n.classList.remove(...k.split(" ")),D=_s(k,ds),D&&n.classList.remove(...D.split(" ")),Ms(u,!1),Zo(u,!1),h.forEach(t=>{u.style[t[0]]=""}),r(n,c),Rs(n,c),Object.keys(l).length&&Object.entries(l).forEach(([t,e])=>{e?u.style.setProperty(t,e):u.style.removeProperty(t)}),c.onDone&&c.onDone(),C&&C.length&&n.off(C.join(" "),B);const e=Dt(n,Ho);e&&(clearTimeout(e[0].timer),jt(n,Ho)),m&&m.complete(!t)}function F(t){P.blockTransition&&Zo(u,t),P.blockKeyframeAnimation&&Ms(u,!!t)}function q(){return m=new t({end:U,cancel:I}),i(()=>{}),H(),{$$willAnimate:!1,start:()=>m,end:U}}function B(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==u)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(3));Math.max(n-E,0)>=y&&r>=b&&($=!0,H())}function z(){if(p)return;if(!u.parentNode)return void H();const t=function(t){if($)f&&t&&(f=!1,H());else if(f=!t,V.animationDuration){const t=Ms(u,f);f?h.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(h,t)}},s=N>0&&(V.transitionDuration&&0===T.transitionDuration||V.animationDuration&&0===T.animationDuration)&&Math.max(T.animationDelay,T.transitionDelay);function i(){if(p)return;if(F(!1),h.forEach(t=>{const e=t[0];u.style[e]=t[1]}),r(n,c),n.classList.add(...D.split(" ").filter(t=>""!==t)),P.recalculateTimingStyles){if(R=e.cacheKey(u,S,c.addClass,c.removeClass),V=o(u,R,!1),M=V.maxDelay,v=Math.max(M,0),b=V.maxDuration,0===b)return void H();P.hasTransitions=V.transitionDuration>0,P.hasAnimations=V.animationDuration>0}if(P.applyAnimationDelay&&(M="boolean"!=typeof c.delay&&Ko(c.delay)?parseFloat(c.delay):M,v=Math.max(M,0),V.animationDelay=M,a=zo(M,!0),h.push(a),u.style[a[0]]=a[1]),y=v*Fo,w=b*Fo,c.easing){let t;const e=c.easing;P.hasTransitions&&(t=$s+Es,h.push([t,e]),u.style[t]=e),P.hasAnimations&&(t=gs+Es,h.push([t,e]),u.style[t]=e)}V.transitionDuration&&C.push(ms),V.animationDuration&&C.push(vs),E=Date.now();const t=y+1.5*w,s=E+t,i=Dt(n,Ho)||[];let f=!0;if(i.length){const t=i[0];f=s>t.expectedEndTime,f?clearTimeout(t.timer):i.push(H)}if(f){const e=setTimeout(d,t,!1);i[0]={timer:e,expectedEndTime:s},i.push(H),Pt(n,Ho,i)}C.length&&C.forEach(t=>{n.addEventListener(t,B)}),c.to&&(c.cleanupStyles&&Qo(l,u,Object.keys(c.to)),Ls(0,c))}function d(){const t=Dt(n,Ho);if(t){for(let e=1;e<t.length;e++)t[e]();jt(n,Ho)}}s?setTimeout(i,Math.floor(s*N*Fo),!1):i(),g.resume=function(){t(!0)},g.pause=function(){t(!1)}}}}]}function Zo(t,e){const n=e?`-${e}s`:"";return Ps(t,[xs,n]),[xs,n]}const Yo="data-ng-animate",Xo="$ngAnimatePin";function ta(t){const e=this.rules={skip:[],cancel:[],join:[]};function n(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function r(t,e){if(t&&e){const n=function(t){if(!t)return null;const e=t.split(" "),n=Object.create(null);return e.forEach(t=>{n[t]=!0}),n}(e);return t.split(" ").some(t=>n[t])}}function s(t,n,r){return e[t].some(t=>t(n,r))}function i(t,e){const n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}e.join.push(t=>!t.structural&&i(t)),e.skip.push(t=>!t.structural&&!i(t)),e.skip.push((t,e)=>"leave"===e.event&&t.structural),e.skip.push((t,e)=>e.structural&&2===e.state&&!t.structural),e.cancel.push((t,e)=>e.structural&&t.structural),e.cancel.push((t,e)=>2===e.state&&t.structural),e.cancel.push((t,e)=>{if(e.structural)return!1;const n=t.addClass,s=t.removeClass,i=e.addClass,o=e.removeClass;return!(y(n)&&y(s)||y(i)&&y(o))&&(r(n,o)||r(s,i))}),this.$get=[ee.$rootScope,ee.$injector,ee.$$animation,ee.$$AnimateRunner,ee.$templateRequest,function(e,r,o,a,c){const l=new Map,u=new Map;let h=null;function d(t){u.delete(t.target)}e.templateRequest=c;const p=e.$watch("$templateRequest.totalPendingRequests",t=>{0===t&&(p(),e.$templateRequest=void 0,e.$postUpdate(()=>{e.$postUpdate(()=>{null===h&&(h=!0)})}))},!0),f=Object.create(null),$=t.customFilter(),m=t.classNameFilter(),g=function(){return!0},v=$||g,C=m?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return m.test(n)}:g,S=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};function x(t,e){return Vs(t,e,{})}const A=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function O(t,e,n){const r=Ts(e);return t.filter(t=>!(t.node===r&&(!n||t.callback===n)))}function k(t,e){"close"!==t||e.parentNode||_.off(e)}let _={on(t,e,n){const r=Ts(e);f[t]=f[t]||[],f[t].push({node:r,callback:n}),e.addEventListener("$destroy",()=>{l.get(r)||_.off(t,e,n)})},off(t,e,n){if(1===arguments.length&&!E(arguments[0])){e=arguments[0];for(const t in f)f[t]=O(f[t],e);return}const r=f[t];r&&(f[t]=1===arguments.length?null:O(r,e,n))},pin(t,e){ks(I(t),"element","not an element"),ks(I(e),"parentElement","not an element"),Pt(t,Xo,e)},push:(t,c,h,d)=>((h=h||{}).domOperation=d,function(t,c,h){let d=h,p=Array.isArray(t)?t.filter(t=>"#comment"!==t.nodeName)[0]:t;const $=p,m=$&&$.parentNode;d=js(d);const g=new a,O=function(){let t=!1;return function(n){t?n():e.$postUpdate(()=>{t=!0,n()})}}();Array.isArray(d.addClass)&&(d.addClass=d.addClass.join(" "));d.addClass&&!E(d.addClass)&&(d.addClass=null);Array.isArray(d.removeClass)&&(d.removeClass=d.removeClass.join(" "));d.removeClass&&!E(d.removeClass)&&(d.removeClass=null);d.from&&!w(d.from)&&(d.from=null);d.to&&!w(d.to)&&(d.to=null);if(!$||!v($,c,h)||!C($,d))return U(),g;const _=["enter","move","leave"].indexOf(c)>=0;let R=document.hidden||u.get($);const N=!R&&l.get($)||{},L=!!N.state;R||L&&1===N.state||(R=!function(t,e){const n=document.body,s=r.get("$rootElement");let i,o=t===n||"HTML"===t.nodeName,a=t===s,c=!1,h=u.get(t),d=Mt(t,Xo);d&&(e=d);for(;e&&(a||(a=e===s),e.nodeType===Node.ELEMENT_NODE);){const t=l.get(e)||{};if(!c){const n=u.get(e);if(!0===n&&!1!==h){h=!0;break}!1===n&&(h=!1),c=t.structural}if(y(i)||!0===i){const t=Mt(e,fs);b(t)&&(i=t)}if(c&&!1===i)break;if(o||(o=e===n),o&&a)break;e=a||(d=Mt(e,Xo),!d)?e.parentNode:d}return(!c||i)&&!0!==h&&a&&o}($,m));if(R)return document.hidden&&D(g,c,"start",n(d)),U(),document.hidden&&D(g,c,"close",n(d)),g;_&&function(t){const e=t.querySelectorAll(`[${Yo}]`);e.forEach(t=>{const e=parseInt(t.getAttribute(Yo),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}})}($);const V={structural:_,element:p,event:c,addClass:d.addClass,removeClass:d.removeClass,close:U,options:d,runner:g};if(L){if(s("skip",V,N))return 2===N.state?(U(),g):(Vs(p,N,V),N.runner);if(s("cancel",V,N))if(2===N.state)N.runner.end();else{if(!N.structural)return Vs(p,N,V),N.runner;N.close()}else{if(s("join",V,N)){if(2!==N.state)return function(t,e,n){let r="";e&&(r=_s(e,"ng-",!0)),n.addClass&&(r=Ds(r,_s(n.addClass,us))),n.removeClass&&(r=Ds(r,_s(n.removeClass,hs))),r.length&&(n.preparationClasses=r,t.className+=` ${r}`)}(p,_?c:null,d),c=V.event=N.event,d=Vs(p,N,V),N.runner;x(p,V)}}}else x(p,V);let M=V.structural;M||(M="animate"===V.event&&Object.keys(V.options.to||{}).length>0||i(V));if(!M)return U(),T($),g;const P=(N.counter||0)+1;return V.counter=P,j($,1,V),e.$postUpdate(()=>{p=function(t){return t instanceof NodeList?Array.from(t).filter(t=>t.nodeType==Node.ELEMENT_NODE):t.nodeType===Node.ELEMENT_NODE?t:void 0}(t);let e=l.get($);const r=!e;e=e||{};const s=(p.parentElement||[])&&("animate"===e.event||e.structural||i(e));if(r||e.counter!==P||!s)return r&&(S(p,d),Rs(p,d)),(r||_&&e.event!==c)&&(d.domOperation(),g.end()),void(s||T($));c=!e.structural&&i(e,!0)?"setClass":e.event,j($,2);const a=o(p,c,e.options);g.setHost(a),D(g,c,"start",n(d)),a.done(t=>{U(!t);const e=l.get($);e&&e.counter===P&&T($),D(g,c,"close",n(d))})}),g;function D(t,e,n,r){O(()=>{const t=function(t,e,n){const r=[],s=f[n];return s&&s.forEach(s=>{(A.call(s.node,e)||"leave"===n&&A.call(s.node,t))&&r.push(s.callback)}),r}(m,$,e);t.length?(t.forEach(t=>{t(p,n,r)}),k(n,$)):k(n,$)}),t.progress(e,n,r)}function U(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach(e=>t.classList.remove(e)),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach(e=>t.classList.remove(e)),e.activeClasses=null)}(p,d),S(p,d),Rs(p,d),d.domOperation(),g.complete(!t)}}(t,c,h)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(I(t)){const r=t;1===n?e=!u.get(r):(u.has(r)||t.addEventListener("$destroy",d),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(Yo),l.delete(t)}function j(t,e,n){(n=n||{}).state=e,t.setAttribute(Yo,e);const r=l.get(t),s=r?M(r,n):n;l.set(t,s)}}]}function ea(t){this.$get=[ee.$injector,"$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(s,i,o,a){let c=!1;3===arguments.length&&w(o)&&(a=o,o=null),a=js(a),o||(o=s.getAttribute("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=Array.isArray(n)?n:n.split(" ");const r=[],s={};for(let i=0;i<n.length;i++){const o=n[i],a=t.$$registeredAnimations[o];a&&!s[o]&&(r.push(e.get(a)),s[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===i?(e="leave",t="afterLeave"):(e=`before${i.charAt(0).toUpperCase()}${i.substring(1)}`,t=i),"enter"!==i&&"move"!==i&&(d=v(s,i,a,h,e)),p=v(s,i,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push(e=>{t=d(e)}),e.length?e.push(t=>{$(),t(!0)}):$(),p&&e.push(e=>{t=p(e)}),f.setHost({end(){s()},cancel(){s(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function s(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(s,a)}function m(){c=!0,$(),Rs(s,a)}function g(t,e,r,s,i){const o=[];return s.forEach(s=>{const a=s[i];a&&o.push(()=>{let s,i,o=!1;const c=function(t){o||(o=!0,(i||(()=>{}))(t),s.complete(!t))};return s=new n({end(){c()},cancel(){c(!0)}}),i=function(t,e,r,s,i){let o;switch(r){case"animate":o=[e,s.from,s.to,i];break;case"setClass":o=[e,l,u,i];break;case"addClass":o=[e,l,i];break;case"removeClass":o=[e,u,i];break;default:o=[e,i]}o.push(s);let a=t.apply(t,o);if(a)if(k(a.start)&&(a=a.start()),a instanceof n)a.done(i);else if(k(a))return a;return()=>{}}(a,t,e,r,t=>{c(!1===t)}),s})}),o}function v(t,e,r,s,i){let o=g(t,e,r,s,i);if(0===o.length){let e,n;"beforeSetClass"===i?(e=g(t,"removeClass",r,s,"beforeRemoveClass"),n=g(t,"addClass",r,s,"beforeAddClass")):"setClass"===i&&(e=g(t,"removeClass",r,s,"removeClass"),n=g(t,"addClass",r,s,"addClass")),e&&(o=o.concat(e)),n&&(o=o.concat(n))}if(0!==o.length)return function(t){const e=[];return o.length&&o.forEach(t=>{e.push(t())}),e.length?n.all(e,t):t(),function(t){e.forEach(e=>{t?e.cancel():e.end()})}}}}}]}ta.$inject=["$animateProvider"],ea.$inject=["$animateProvider"];const na="$$animationRunner",ra="$$animatePrepareClasses";function sa(){const t="ng-animate-ref",e=this.drivers=[];function n(t){!function(t,e){if(Lt(t)){const n=Rt(t,!1),r=n?.data;r&&vt(r,_t(e))&&delete r[_t(e)]}}(t,na)}function r(t){return Dt(t,na)}this.$get=[ee.$rootScope,ee.$injector,ee.$$AnimateRunner,ee.$$rAFScheduler,ee.$$animateCache,function(s,i,o,a,c){const l=[],u=function(t,e){e.addClass&&(t.classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t.classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(h,d,p){p=js(p);const f=["enter","move","leave"].indexOf(d)>=0,$=new o({end(){y()},cancel(){y(!0)}});if(!e.length)return y(),$;let m=ft(h.getAttribute("class"),ft(p.addClass,p.removeClass)),{tempClasses:g}=p;return g&&(m+=` ${g}`,p.tempClasses=null),f&&Pt(h,ra,`ng-${d}-prepare`),function(t,e){Pt(t,na,e)}(h,$),l.push({element:h,classes:m,event:d,structural:f,options:p,beforeStart:function(){g=(g?`${g} `:"")+ps,h.className+=` ${g}`;let t=Dt(h,ra);t&&(h.classList.remove(t),t=null)},close:y}),h.addEventListener("$destroy",function(){const t=r(h);!t||"leave"===d&&p.$$domOperationFired||t.end()}),l.length>1||s.$postUpdate(()=>{const n=[];l.forEach(t=>{r(t.element)?n.push(t):t.close()}),l.length=0;const s=function(e){const n=[],r={};e.forEach((e,s)=>{const{element:i}=e,o=i,{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),s=[];return r.forEach(e=>{const n=e.getAttribute(t);n&&n.length&&s.push(e)}),s}(o):[];if(l.length){const e=c?"to":"from";l.forEach(n=>{const i=n.getAttribute(t);r[i]=r[i]||{},r[i][e]={animationID:s,element:n}})}else n.push(e)});const s={},i={};return Object.values(r).forEach(t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,i=t.toString();return void(s[i]||(s[i]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!i[l]){const t=i[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:v(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}i[l].anchors.push({out:r.element,in:o.element})}),n}(n),o=[];s.forEach(t=>{const n=t.from?t.from.element:t.element;let s=p.addClass;s=(s?`${s} `:"")+ps;const a=c.cacheKey(n,t.event,s,p.removeClass);o.push({element:n,domNode:n,fn:function(){let n;const s=t.close;if(c.containsCachedAnimationWithoutDuration(a))return void s();t.beforeStart();if(r(t.anchors?t.from.element||t.to.element:t.element)){const r=function(t){for(let n=e.length-1;n>=0;n--){const r=e[n],s=i.get(r)(t);if(s)return s}}(t);r&&(n=r.start)}if(n){const e=n();e.done(t=>{s(!t)}),function(t,e){t.from&&t.to?(n(t.from.element),n(t.to.element)):n(t.element);function n(t){const n=r(t);n&&n.setHost(e)}}(t,e)}else s()}})});const u=function(t){const e={children:[]};let n;const r=new Map;for(n=0;n<t.length;n++){const e=t[n];r.set(e.domNode,t[n]={domNode:e.domNode,element:e.element,fn:e.fn,children:[]})}for(n=0;n<t.length;n++)s(t[n]);return function(t){const e=[],n=[];let r;for(r=0;r<t.children.length;r++)n.push(t.children[r]);let s=n.length,i=0,o=[];for(r=0;r<n.length;r++){const t=n[r];s<=0&&(s=i,i=0,e.push(o),o=[]),o.push(t),t.children.forEach(t=>{i++,n.push(t)}),s--}return o.length&&e.push(o),e}(e);function s(t){if(t.processed)return t;t.processed=!0;const n=t.domNode;let i,{parentNode:o}=n;for(r.set(n,t);o;){if(i=r.get(o),i){i.processed||(i=s(i));break}o=o.parentNode}return(i||e).children.push(t),t}}(o);for(let t=0;t<u.length;t++){const e=u[t];for(let n=0;n<e.length;n++){const r=e[n],{element:s}=r;if(u[t][n]=r.fn,0===t){jt(s,ra);continue}const i=Dt(s,ra);i&&s.classList.add(i)}}a(u)}),$;function v(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const s=t[r];if("ng-"!==s.substring(0,3))for(let t=0;t<e.length;t++)if(s===e[t]){n.push(s);break}}return n.join(" ")}function y(t){n(h),u(h,p),Rs(h,p),p.domOperation(),g&&g.split(" ").forEach(t=>h.classList.remove(t)),$.complete(!t)}}}]}class ia{constructor(){this.queue=[],this.cancelFn=null}nextTick(){if(!this.queue.length)return;this.queue.shift().forEach(t=>t()),this.cancelFn||(this.cancelFn=window.requestAnimationFrame(()=>{this.cancelFn=null,this.nextTick()}))}$get(){const t=t=>{this.queue=this.queue.concat(t),this.nextTick()};return t.queue=this.queue,t.waitUntilQuiet=t=>{null!==this.cancelFn&&(window.cancelAnimationFrame(this.cancelFn),this.cancelFn=null),this.cancelFn=window.requestAnimationFrame(()=>{this.cancelFn=null,t(),this.nextTick()})},t}}const oa="$animId";let aa=0;const ca=new Map;function la(){return{cacheKey(t,e,n,r){const{parentNode:s}=t,i=[s[oa]??(s[oa]=++aa),e,t.getAttribute("class")];return n&&i.push(n),r&&i.push(r),i.join(" ")},containsCachedAnimationWithoutDuration(t){const e=ca.get(t);return!!e&&!e.isValid},flush(){ca.clear()},count:t=>ca.get(t)?.total??0,get:t=>ca.get(t)?.value,put(t,e,n){const r=ca.get(t);r?(r.total++,r.value=e):ca.set(t,{total:1,value:e,isValid:n})}}}function ua(){this.$get=[la]}const ha="ng-animate-shim",da="ng-anchor",pa="ng-anchor-out",fa="ng-anchor-in";function $a(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,s=n,i=(o=s).parentNode&&11===o.parentNode.nodeType||r.contains(s)?s:r;var o;return function(n){return n.from&&n.to?function(n,s,o){const c=a(n),l=a(s),u=[];if(o.forEach(n=>{const s=function(n,s){const o=n.cloneNode(!0),a=ma(p(o));let c;n[0].classList.add(ha),s[0].classList.add(ha),o.classList.add(da),i.append(o);const l=d();if(!l&&(c=f(),!c))return $();const u=l||c;return{start(){let t,n=u.start();return n.done(()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done(()=>{n=null,$(),t.complete()}),n;$(),t.complete()}),t=new e({end:r,cancel:r}),t;function r(){n&&n.end()}}};function h(t){const e={},n=t.getBoundingClientRect();return["width","height","top","left"].forEach(t=>{let s=n[t];switch(t){case"top":s+=r.scrollTop;break;case"left":s+=r.scrollLeft}e[t]=`${Math.floor(s)}px`}),e}function d(){const e=t(o,{addClass:pa,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function p(t){return t.getAttribute("class")||""}function f(){const e=ma(p(s)),n=ga(e,a),r=ga(a,e),i=t(o,{to:h(s),addClass:`${fa} ${n}`,removeClass:`${pa} ${r}`,delay:!0});return i.$$willAnimate?i:null}function $(){o.remove(),n[0].classList.remove(ha),s[0].classList.remove(ha)}}(n.out,n.in);s&&u.push(s)}),!c&&!l&&0===u.length)return;return{start(){const t=[];c&&t.push(c.start()),l&&t.push(l.start()),u.forEach(e=>{t.push(e.start())});const n=new e({end:r,cancel:r});return e.all(t,t=>{n.complete(t)}),n;function r(){t.forEach(t=>{t.end()})}}}}(n.from,n.to,n.anchors):a(n)};function a(e){const n=e.options||{};e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=Ds(n.event,n.preparationClasses));const r=t(e.element,n);return r.$$willAnimate?r:null}}]}function ma(t){return t.replace(/\bng-\S+\b/g,"")}function ga(t,e){return E(t)&&(t=t.split(" ")),E(e)&&(e=e.split(" ")),t.filter(t=>-1===e.indexOf(t)).join(" ")}function va(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),s=n(t.to);if(!r&&!s)return;return{start(){const t=[];r&&t.push(r.start()),s&&t.push(s.start()),e.all(t,function(t){n.complete(t)});const n=new e({end:i(),cancel:i()});return n;function i(){return function(){t.forEach(t=>{t.end()})}}}}}return n(t)};function n(e){const{element:n,event:r,options:s,classes:i}=e;return t(n,r,i,s)}}]}function ya(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,s,i){let o,a;e.$watch(r.ngAnimateSwap||r.for,e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),e&&i((e,r)=>{o=e,a=r,t.enter(e,null,n)})})}}}function ba(t){return{link(e,n,r){const s=r.ngAnimateChildren;function i(t){Pt(n,fs,t="on"===t||"true"===t)}E(s)&&0===s.length?Pt(n,fs,!0):(i(t(s)(e)),r.$observe("ngAnimateChildren",i))}}}function wa(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;if(n!==typeof e||"object"!==n)return!1;const r=[t,e];if(r.every(Array.isArray))return i=e,(s=t).length===i.length&&Pa(s,i).reduce((t,e)=>t&&wa(e[0],e[1]),!0);var s,i;if(r.every(A))return t.getTime()===e.getTime();if(r.every(_))return t.toString()===e.toString();if(r.every(k))return!0;if([k,Array.isArray,A,_].some(t=>!!t(r)))return!1;const o={};for(const n in t){if(!wa(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}function Ea(t,e){const n=Object.create(t);return e&&Object.assign(n,e),n}function Ca(t,e){const n=t.indexOf(e);return-1!==n&&t.splice(n,1),t}function Sa(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,xa(t||{},Object.keys(n)))}function xa(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function Aa(t,e){return Object.keys(t).filter(t=>!e.includes(t)).reduce((e,n)=>(e[n]=t[n],e),{})}function Oa(t,e){const n=Array.isArray(t),r=n?[]:{},s=n?t=>r.push(t):(t,e)=>r[e]=t;return Object.entries(t).forEach(([t,n])=>{e(n,t)&&s(n,t)}),r}function ka(t,e){let n;return Object.entries(t).forEach(([t,r])=>{n||e(r,t)&&(n=r)}),n}function _a(t,e,n){return n=n||(Array.isArray(t)?[]:{}),Object.entries(t).forEach(([t,r])=>n[t]=e(r,t)),n}$a.$inject=["$$animationProvider"],va.$inject=["$$animationProvider"],ya.$inject=["$animate"],ba.$inject=[ee.$interpolate];const Ta=(t,e)=>t&&e,ja=(t,e)=>t||e,Ra=(t,e)=>t.concat(e);function Na(t,e){return t.push(e),t}const La=(t,e)=>t.includes(e)?t:Na(t,e),Va=t=>t.reduce(Ra,[]),Ma=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(e);return r}};function Pa(...t){if(0===t.length)return[];const e=t.reduce((t,e)=>Math.min(e.length,t),9007199254740991),n=[];for(let r=0;r<e;r++)switch(t.length){case 1:n.push([t[0][r]]);break;case 2:n.push([t[0][r],t[1][r]]);break;case 3:n.push([t[0][r],t[1][r],t[2][r]]);break;case 4:n.push([t[0][r],t[1][r],t[2][r],t[3][r]]);break;default:n.push(t.map(t=>t[r]))}return n}function Da(t,e){let n,r;if(Array.isArray(e)&&([n,r]=e),!E(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function Ua(t){return t.length>0?t[t.length-1]:void 0}function Ia(t,e){return e&&Object.keys(e).forEach(t=>delete e[t]),e||(e={}),Object.assign(e,t)}const Ha=t=>t.catch(()=>0)&&t,Fa=t=>Ha(Promise.reject(t));function qa(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return e.bind(this,...n)}}const Ba=qa((t,e,n)=>n&&n[t]===e),za=t=>{const e=t.split(".");return t=>e.reduce((t,e)=>t&&t[e],t)};function Wa(t){return function(e){return null!=e&&e.constructor===t||e instanceof t}}const Ka=t=>()=>t;function Ga(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}class Qa{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substring(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new Ja(this,t)}}function Ja(t,e){function n(t){return Array.isArray(t)?t:b(t)?[t]:[]}function r(t,r){return function(s){if(Array.isArray(s)&&0===s.length)return s;const i=_a(n(s),t);return!0===r?0===Oa(i,t=>!t).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(i)}}function s(t){return function(e,r){const s=n(e),i=n(r);if(s.length!==i.length)return!1;for(let e=0;e<s.length;e++)if(!t(s[e],i[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach(e=>{const n=t[e].bind(t),i="equals"===e?s:r;this[e]=i(n)}),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}class Za{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=xa(Za.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=Ea(_a(this.defaultTypes,(t,e)=>new Qa(Object.assign({name:e},t))),{})}type(t,e,n){if(!b(e))return this.types[t];if(vt(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new Qa(Object.assign({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this}_flushTypeQueue(){for(;this.typeQueue.length;){const t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object.assign(this.types[t.name],window.angular.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:Wa(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(Za.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!S(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:Wa(Boolean),pattern:/[01]/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce((n,r)=>n&&t[r]()===e[r](),!0),pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:t({encode:JSON.stringify,decode:JSON.parse,is:Wa(Object),equals:wa,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:wa})})}();class Ya{constructor(){this.paramTypes=new Za,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1;const t=this.type("path");t.encode=t=>null!=t?t.toString().replace(/([~/])/g,t=>({"~":"~~","/":"~2F"}[t])):t,t.decode=t=>null!=t?t.toString().replace(/(~~|~2F)/g,t=>({"~~":"~","~2F":"/"}[t])):t,this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue()}$get=[function(){return this}];caseInsensitive(t){return this._isCaseInsensitive=b(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(b(t)&&!0!==t&&!1!==t&&!E(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=b(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=b(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return b(e)?this:r}}class Xa{constructor(t={}){Object.assign(this,t)}$inherit(t,e,n){const r=function(t,e){const n=[];for(const r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}(e,n),s={},i=[];for(const t in r){if(!r[t]||!r[t].params)continue;const e=r[t].params,n=Object.keys(e);if(n.length)for(const t in n)0==e[n[t]].inherit||i.indexOf(n[t])>=0||(i.push(n[t]),s[n[t]]=this[n[t]])}return Object.assign({},s,t)}}class tc{constructor(t=[],e=null){this._items=Array.isArray(t)?[...t]:[],this._limit=Number.isInteger(e)&&e>0?e:null,this._evictListeners=[]}onEvict(t){this._evictListeners.push(t)}enqueue(t){return this._items.push(t),null!==this._limit&&this._items.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return void 0!==t&&this._evictListeners.forEach(e=>e(t)),t}dequeue(){return this._items.length>0?this._items.shift():void 0}clear(){const t=[...this._items];return this._items.length=0,t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return-1!==e&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){return this._items[0]}}class ec{constructor(){this.params=new Xa,this.lastStartedTransitionId=-1,this.transitionHistory=new tc([],1),this.successfulTransitions=new tc([],1),this.current=void 0,this.$current=void 0,this.transition=void 0}$get=()=>this}function nc(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter(t=>!E(t)).length||n.filter(t=>!k(t)).length)}return k(t)}function rc(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}function sc(t,e){return e.length<=t?e:e.substring(0,t-3)+"..."}function ic(t){const e=oc(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,s=t.name||"";return s&&r.match(/function \(/)?"function "+s+r.substring(9):r}function oc(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function ac(t){const e=[],n=Ga([[y,Ka("undefined")],[C,Ka("null")],[rc,Ka("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>w(t)&&!Array.isArray(t)&&t.constructor!==Object&&k(t.toString),t=>t.toString()],[nc,ic],[Ka(!0),t=>t]]);function r(t){if(w(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return n(t)}return y(t)?r(t):JSON.stringify(t,(t,e)=>r(e)).replace(/\\"/g,'"')}function cc(t,e){return E(Ua(t))&&E(e)?t.slice(0,-1).concat(Ua(t)+e):Na(t,e)}function lc(t){if(!t)return"ng-view (defunct)";const e=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ng-view#${t.id}:${t.fqn} (${t.name}@${e})]`}function uc(t){return x(t)?hc[t]:hc[hc[t]]}const hc={RESOLVE:0,TRANSITION:1,HOOK:2,UIVIEW:3,VIEWCONFIG:4},dc=za("$id"),pc=za("router.$id"),fc=t=>`Transition #${dc(t)}-${pc(t)}`;const $c=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(hc).map(t=>parseInt(t,10)).filter(t=>!isNaN(t)).map(t=>hc[t])),e.map(uc).forEach(e=>this._enabled[e]=t)}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[uc(t)]}traceTransitionStart(t){this.enabled(hc.TRANSITION)&&console.log(`${fc(t)}: Started -> ${ac(t)}`)}traceTransitionIgnored(t){this.enabled(hc.TRANSITION)&&console.log(`${fc(t)}: Ignored <> ${ac(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(hc.HOOK))return;const r=za("traceData.hookType")(n)||"internal",s=za("traceData.context.state.name")(n)||za("traceData.context")(n)||"unknown",i=ic(t.registeredHook.callback);console.log(`${fc(e)}: Hook -> ${r} context: ${s}, ${sc(200,i)}`)}traceHookResult(t,e){this.enabled(hc.HOOK)&&console.log(`${fc(e)}: <- Hook returned: ${sc(200,ac(t))}`)}traceResolvePath(t,e,n){this.enabled(hc.RESOLVE)&&console.log(`${fc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(hc.RESOLVE)&&console.log(`${fc(e)}: <- Resolved ${t} to: ${sc(200,ac(t.data))}`)}traceError(t,e){this.enabled(hc.TRANSITION)&&console.log(`${fc(e)}: <- Rejected ${ac(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(hc.TRANSITION)&&console.log(`${fc(e)}: <- Success ${ac(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(hc.UIVIEW)&&console.log(`ng-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${lc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(hc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(hc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${sc(200,e)}`)}traceViewSync(t){if(!this.enabled(hc.VIEWCONFIG))return;const e="uiview component fqn",n="view config state (view name)",r=t.map(({ngView:t,viewConfig:r})=>{const s=t&&t.fqn,i=r&&`${r.viewDecl.$context.name}: (${r.viewDecl.$name})`;return{[e]:s,[n]:i}}).sort((t,n)=>(t[e]||"").localeCompare(n[e]||""));console.table(r)}traceViewServiceEvent(t,e){this.enabled(hc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${(t=>{const e=t.viewDecl,n=e.$context.name||"(root)";return`[View#${t.$id} from '${n}' state]: target ng-view: '${e.$ngViewName}@${e.$ngViewContextAnchor}'`})(e)}`)}traceViewServiceUIViewEvent(t,e){this.enabled(hc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${lc(e)}`)}};let mc="LAZY",gc="WAIT";class vc{constructor(t,e,n,r,s){this.resolved=!1,this.promise=void 0,t instanceof vc?Object.assign(this,t):k(e)?(at(!S(t),"token argument is required"),this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=s,this.resolved=void 0!==s,this.promise=this.resolved?Promise.resolve(this.data):void 0):w(t)&&t.token&&(vt(t,"resolveFn")||vt(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||mc,async:e.async||n.async||gc}}resolve(t,e){const n=t.findNode(this),r=n&&n.state,s=this.getPolicy(r).async,i=k(s)?s:t=>t;return this.promise=Promise.resolve().then(()=>Promise.all(t.getDependencies(this).map(n=>n.get(t,e)))).then(t=>this.resolveFn.apply(null,t)).then(i).then(t=>(this.data=t,this.resolved=!0,this.resolveFn=null,$c.traceResolvableResolved(this,e),this.data)),this.promise}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${ac(this.token)}, requires: [${this.deps.map(ac)}])`}clone(){return new vc(this)}}vc.fromData=(t,e)=>new vc(t,()=>e,null,null,e);class yc{constructor(t,e,n,r){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=Object.assign({},n||{}),this._options=Object.assign({},r||{}),this._definition=t.matcher.find(e,this._options.relative)}name(){return this._definition&&this._definition.name||this._identifier}identifier(){return this._identifier}params(){return this._params}$state(){return this._definition}state(){return this._definition&&this._definition.self}options(){return this._options}exists(){return!(!this._definition||!this._definition.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this._definition&&t){const e=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${e}'`}return this._definition?this._definition.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${ac(this.params())}`}withState(t){return new yc(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new yc(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new yc(this._stateRegistry,this._identifier,this._params,n)}}yc.isDef=t=>t&&t.state&&(E(t.state)||w(t.state)&&E(t.state.name));const bc=0,wc=1,Ec=2;function Cc(t,e,n){const r=!1===n.reloadOnSearch&&e===wc||void 0,s=ka([n.dynamic,r],b),i=b(s)?{dynamic:s}:{},o=function(t){function e(){return t.value}t=(t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length)(t)?{value:t}:t,e.__cacheable=!0;const n=nc(t.value)?t.value:e;return Object.assign(t,{$$fn:n})}(n&&n.params&&n.params[t]);return Object.assign(i,o)}class Sc{constructor(t,e,n,r,s){const i=Cc(t,n,s);e=function(t,e,n,r,s){if(t.type&&e&&"string"!==e.name)throw new Error(`Param '${r}' has two type configurations.`);if(t.type&&e&&"string"===e.name&&s.type(t.type))return s.type(t.type);if(e)return e;if(!t.type){const t=n===Ec?"any":n===bc?"path":n===wc?"query":"string";return s.type(t)}return t.type instanceof Qa?t.type:s.type(t.type)}(i,e,n,t,r.paramTypes);const o=function(){const e={array:n===wc&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,i).array}();e=o?e.$asArray(o,n===wc):e;const a=void 0!==i.value||n===wc,c=b(i.dynamic)?!!i.dynamic:!!e.dynamic,l=b(i.raw)?!!i.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!b(r)||null==r)return n;if(!0===r||E(r))return r;throw new Error(`Invalid squash policy: '${r}'. Valid policies: false, true, or arbitrary string`)}(i,a,r.defaultSquashPolicy()),h=function(t,e,n,r){const s=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}],i=Array.isArray(t.replace)?t.replace:[];E(r)&&i.push({from:r,to:void 0});const o=_a(i,t=>t.from);return Oa(s,t=>-1===o.indexOf(t.from)).concat(i)}(i,o,a,u),d=b(i.inherit)?!!i.inherit:!!e.inherit;this.isOptional=a,this.type=e,this.location=n,this.id=t,this.dynamic=c,this.raw=l,this.squash=u,this.replace=h,this.inherit=d,this.array=o,this.config=i}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),y(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.defaultValue;if(!window.angular.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=window.angular.$injector.invoke(this.config.$$fn);if(null!=t&&!this.type.is(t))throw new Error(`Default value (${t}) for parameter '${this.id}' is not an instance of ParamType (${this.type.name})`);return this.config.$$fn.__cacheable&&(this._defaultValueCache={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return this.location===wc}validates(t){if((y(t)||null===t)&&this.isOptional)return!0;const e=this.type.$normalize(t);if(!this.type.is(e))return!1;const n=e;return!(E(n)&&!this.type.pattern.exec(n))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,e={}){const n={};for(const r of t)n[r.id]=r.value(e[r.id]);return n}static changed(t,e={},n={}){return t.filter(t=>!t.type.equals(e[t.id],n[t.id]))}static equals(t,e={},n={}){return 0===Sc.changed(t,e,n).length}static validates(t,e={}){return t.map(t=>t.validates(e[t.id])).reduce(Ta,!0)}}class xc{constructor(t){if(t instanceof xc){const e=t;this.state=e.state,this.paramSchema=e.paramSchema.slice(),this.paramValues=Object.assign({},e.paramValues),this.resolvables=e.resolvables.slice(),this.views=e.views&&e.views.slice()}else{const e=t;this.state=e,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map(t=>t.clone())}}clone(){return new xc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce((e,n)=>{return Da(e,[(r=n).id,r.value(t[r.id])]);var r},{}),this}parameter(t){return ka(this.paramSchema,Ba("id",t))}equals(t,e){const n=this.diff(t,e);return n&&0===n.length}diff(t,e){if(this.state!==t.state)return!1;const n=e?e(this):this.paramSchema;return Sc.changed(n,this.paramValues,t.paramValues)}}class Ac{static buildPath(t){const e=t.params();return t.$state().path.map(t=>new xc(t).applyRawParams(e))}static buildToPath(t,e){const n=Ac.buildPath(e);return e.options().inherit?Ac.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter(t=>n.includes(t.state)).forEach(n=>{const r=Object.values(n.state.views||{}),s=Ac.subPath(e,t=>t===n),i=r.map(e=>t.createViewConfig(s,e));n.views=i.reduce(Ra,[])})}static inheritParams(t,e,n=[]){const r=t.map(t=>t.paramSchema).reduce(Ra,[]).filter(t=>!t.inherit).map(t=>t.id);return e.map(function(e){let s=Object.assign({},e&&e.paramValues);const i=xa(s,n);s=Aa(s,n);const o=Aa(function(t,e){const n=ka(t,Ba("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(s,o,i);return new xc(e.state).applyRawParams(a)})}static treeChanges(t,e,n){const r=Math.min(t.length,e.length);let s=0;const i=(t,e)=>t.equals(e,Ac.nonDynamicParams);for(;s<r&&t[s].state!==n&&i(t[s],e[s]);)s++;let o,a,c,l,u;o=t,a=o.slice(0,s),c=o.slice(s);const h=a.map(function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r});return l=e.slice(s),u=h.concat(l),{from:o,to:u,retained:a,retainedWithToParams:h,exiting:c,entering:l}}static matching(t,e,n){let r=!1;return Pa(t,e).reduce((t,[e,s])=>(r=r||!e.equals(s,n),r?t:t.concat(e)),[])}static equals(t,e,n){return t.length===e.length&&Ac.matching(t,e,n).length===t.length}static subPath(t,e){const n=ka(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter(t=>!t.dynamic)}static paramValues(t){return t.reduce((t,e)=>Object.assign(t,e.paramValues),{})}}function Oc(t,e){return new yc(t,e.at(-1).state,e.map(t=>t.paramValues).reduce((t,e)=>({...t,...e}),{}),{})}const kc={LAZY:"LAZY",EAGER:"EAGER"},_c=[kc.EAGER,kc.LAZY],Tc=[kc.EAGER];class jc{constructor(t){this._path=t}getTokens(){return this._path.reduce((t,e)=>t.concat(e.resolvables.map(t=>t.token)),[]).reduce(La,[])}getResolvable(t){return Ua(this._path.map(t=>t.resolvables).reduce(Ra,[]).filter(e=>e.token===t))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e)}subContext(t){return new jc(Ac.subPath(this._path,e=>e.state===t))}addResolvables(t,e){const n=ka(this._path,Ba("state",e)),r=t.map(t=>t.token);n.resolvables=n.resolvables.filter(t=>-1===r.indexOf(t.token)).concat(t)}resolvePath(t="LAZY",e){const n=(_c.includes(t)?t:"LAZY")===kc.EAGER?Tc:_c;$c.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>t.includes(this.getPolicy(n)[e]),s=this._path.reduce((t,s)=>{const i=s.resolvables.filter(r(n,"when")),o=i.filter(r(["NOWAIT"],"async")),a=i.filter(t=>!r(["NOWAIT"],"async")(t)),c=this.subContext(s.state),l=t=>t.get(c,e).then(e=>({token:t.token,value:e}));return o.forEach(l),t.concat(a.map(l))},[]);return Promise.all(s)}findNode(t){return ka(this._path,e=>e.resolvables.includes(t))}getDependencies(t){const e=this.findNode(t),n=(Ac.subPath(this._path,t=>t===e)||this._path).reduce((t,e)=>t.concat(e.resolvables),[]).filter(e=>e!==t);return t.deps.map(t=>{const e=n.filter(e=>e.token===t);if(e.length)return Ua(e);const r=window.angular.$injector.get(t);if(y(r))throw new Error("Could not find Dependency Injection token: "+ac(t));return new vc(t,()=>r,[],r)})}}const Rc=(t,e)=>t.reduce((t,n)=>t||b(e[n]),!1);function Nc(t){if(!t.parent)return{};const e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),r=e.concat(n);if(b(t.views)&&Rc(r,t))throw new Error(`State '${t.name}' has a 'views' object. It cannot also have "view properties" at the state level. Move the following properties into a view (in the 'views' object): ${r.filter(e=>b(t[e])).join(", ")}`);const s={},i=t.views||{$default:xa(t,r)};return Object.entries(i).forEach(([r,i])=>{if(r=r||"$default",E(i)&&(i={component:i}),i=Object.assign({},i),Rc(e,i)&&Rc(n,i))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${r}@${t.name}'`);i.resolveAs=i.resolveAs||"$resolve",i.$context=t,i.$name=r;const o=Vc.normalizeUIViewTarget(i.$context,i.$name);i.$ngViewName=o.ngViewName,i.$ngViewContextAnchor=o.ngViewContextAnchor,s[r]=i}),s}let Lc=0;class Vc{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=Lc++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=new jc(this.path),e=this.path.reduce((t,e)=>Object.assign(t,e.paramValues),{}),n=[Promise.resolve(this.factory.fromConfig(this.viewDecl,e,t)),Promise.resolve(this.getController(t))];return Promise.all(n).then(t=>($c.traceViewServiceEvent("Loaded",this),this.controller=t[1],Object.assign(this,t[0]),this))}getController(t){const e=this.viewDecl.controllerProvider;if(!nc(e))return this.viewDecl.controller;const n=Ae(e),r=Array.isArray(e)?Ua(e):e;return new vc("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",s=E(n[1])?n[1]:"^";const i=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);i&&(s=i[1],r=i[2]),"!"===r.charAt(0)&&(r=r.substring(1),s="");if(/^(\^(?:\.\^)*)$/.exec(s)){const e=s.split(".").reduce(t=>t.parent,t);s=e.name}else"."===s&&(s=t.name);return{ngViewName:r,ngViewContextAnchor:s}}}class Mc{constructor(){this._ngViews=[],this._viewConfigs=[],this._listeners=[],this.viewConfigFactory(function(){let t=null;return(e,n)=>(t=t||window.angular.$injector.get("$templateFactory"),new Vc(e,n,t))}())}$get=()=>this;rootViewContext(t){return this._rootContext=t||this._rootContext}viewConfigFactory(t){this.viewConfigFactory=t}createViewConfig(t,e){const n=this.viewConfigFactory;if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);return n(t,e)}deactivateViewConfig(t){$c.traceViewServiceEvent("<- Removing",t),Ca(this._viewConfigs,t)}activateViewConfig(t){$c.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._ngViews.map(t=>[t.fqn,t]).reduce(Da,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=qa((t,e,n,r)=>e*(t(n)-t(r))),r=t=>{-1!==this._ngViews.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)},s=this._ngViews.sort(n(function(t){const e=t=>t&&t.parent?e(t.parent)+1:1;return 1e4*t.fqn.split(".").length+e(t.creationContext)},1)).map(r=>{const s=this._viewConfigs.filter(Mc.matches(t,r));return s.length>1&&s.sort(n(e,-1)),{ngView:r,viewConfig:s[0]}}),i=s.map(t=>t.viewConfig),o=this._viewConfigs.filter(t=>!i.includes(t)).map(t=>({ngView:void 0,viewConfig:t}));s.forEach(t=>{r(t)});const a=s.concat(o);this._listeners.forEach(t=>t(a)),$c.traceViewSync(a)}registerUIView(t){$c.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter(e=>e.fqn===t.fqn).length&&$c.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?($c.traceViewServiceUIViewEvent("<- Deregistering",t),Ca(e,t)):$c.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map(t=>t.fqn)}active(){return this._ngViews.filter(t=>t.$config).map(t=>t.name)}}Mc.matches=(t,e)=>n=>{if(e.$type!==n.viewDecl.$type)return!1;const r=n.viewDecl,s=r.$ngViewName.split("."),i=e.fqn.split(".");if(!wa(s,i.slice(0-s.length)))return!1;const o=1-s.length||void 0,a=i.slice(0,o).join("."),c=t[a].creationContext;return r.$ngViewContextAnchor===(c&&c.name)};const Pc={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},Dc={TRANSITION:0,STATE:1},Uc=2,Ic=3,Hc=4,Fc=5,qc=6;let Bc=0;class zc{static superseded(t,e){const n=new zc(Uc,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return zc.superseded(t,{redirected:!0})}static invalid(t){return new zc(Hc,"This transition is invalid",t)}static ignored(t){return new zc(Fc,"The transition was ignored",t)}static aborted(t){return new zc(Ic,"The transition has been aborted",t)}static errored(t){return new zc(qc,"The transition errored",t)}static normalize(t){return Wa(zc)(t)?t:zc.errored(t)}constructor(t,e,n){this.$id=Bc++,this.type=t,this.message=e,this.detail=n,this.redirected=!1}toString(){const t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():ac(e);var e;const{$id:n,type:r,message:s}=this;return`Transition Rejection($id: ${n} type: ${r}, message: ${s}, detail: ${t})`}toPromise(){return Object.assign(Fa(this),{_transitionRejection:this})}}class Wc{constructor(){this.eventBus=Gc}$get=()=>this.eventBus}class Kc{constructor(t=!1){this.disposed=!1,this.key=1,this.pendingKeys=[],this.publishDepth=0,this.subscriptions=[],this.topics={},this.async_=Boolean(t)}subscribe(t,e,n=null){let r=this.topics[t];r||(r=this.topics[t]=[]);const s=this.key;return this.subscriptions[s]=t,this.subscriptions[s+1]=e,this.subscriptions[s+2]=n,this.key=s+3,r.push(s),s}subscribeOnce(t,e,n=null){let r=!1;const s=this.subscribe(t,(...t)=>{r||(r=!0,this.unsubscribeByKey(s),e.apply(n,t))},this);return s}static runAsync_(t,e,n){Promise.resolve().then(()=>{t.apply(e,n)})}unsubscribe(t,e,n=null){const r=this.topics[t];if(r){const t=this.subscriptions,s=r.find(r=>t[r+1]===e&&t[r+2]===n);if(void 0!==s)return this.unsubscribeByKey(s)}return!1}unsubscribeByKey(t){const e=this.subscriptions[t];if(e){let n=this.topics[e];0!==this.publishDepth?(this.pendingKeys.push(t),this.subscriptions[t+1]=()=>{}):(n&&(this.topics[e]=n.filter(e=>e!==t)),delete this.subscriptions[t],delete this.subscriptions[t+1],delete this.subscriptions[t+2])}return!!e}publish(t,...e){const n=this.topics[t];if(n){const t=e;if(this.async_)for(let e=0;e<n.length;e++){const r=n[e];Kc.runAsync_(this.subscriptions[r+1],this.subscriptions[r+2],t)}else{this.publishDepth++;try{for(let e=0,r=n.length;e<r&&!this.isDisposed();e++){const r=n[e];this.subscriptions[r+1].apply(this.subscriptions[r+2],t)}}finally{if(this.publishDepth--,this.pendingKeys.length>0&&0===this.publishDepth){let t;for(;t=this.pendingKeys.pop();)this.unsubscribeByKey(t)}}}return!0}return!1}clear(t){if(t){const e=this.topics[t];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics[t])}else this.subscriptions.length=0,this.topics={}}getCount(t){if(t){const e=this.topics[t];return e?e.length:0}let e=0;for(const t in this.topics)e+=this.getCount(t);return e}isDisposed(){return this.disposed}dispose(){this.clear(),this.pendingKeys.length=0,this.disposed=!0}}const Gc=new Kc(!0),Qc={current:()=>{},transition:null,traceData:{},bind:null};class Jc{static chain(t,e){return t.reduce((t,e)=>t.then(()=>e.invokeHook()),e||Promise.resolve())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if(rc(r)){const s=t.slice(n+1);return Jc.chain(s,r).then(()=>{e()})}}return e()}static runAllHooks(t){t.forEach(t=>t.invokeHook())}constructor(t,e,n,r){this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=r,this.isSuperseded=()=>this.type.hookPhase===Pc.RUN&&!this.options.transition.isActive(),this.options=Sa(r,Qc),this.type=n.eventType}logError(t){Gc.publish("$stateService:defaultErrorHandler",t)}invokeHook(){const t=this.registeredHook;if(t._deregistered)return;const e=this.getNotCurrentRejection();if(e)return e;const n=this.options;$c.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),s=t=>zc.normalize(t).toPromise(),i=e=>t.eventType.getErrorHandler(this)(e),o=e=>t.eventType.getResultHandler(this)(e);try{const t=r();return!this.type.synchronous&&rc(t)?t.catch(s).then(o,i):o(t)}catch(t){return i(zc.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();return e||(rc(t)?t.then(t=>this.handleHookResult(t)):($c.traceHookResult(t,this.transition),!1===t?zc.aborted("Hook aborted transition").toPromise():t instanceof yc?zc.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition._aborted?zc.aborted().toPromise():this.isSuperseded()?zc.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${za("traceData.hookType")(t)||"internal"} context: ${za("traceData.context.state.name")(t)||za("traceData.context")(t)||"unknown"}, ${sc(200,oc(e.callback))}`}}Jc.HANDLE_RESULT=t=>e=>t.handleHookResult(e),Jc.LOG_REJECTED_RESULT=t=>e=>{rc(e)&&e.catch(e=>t.logError(zc.normalize(e)))},Jc.LOG_ERROR=t=>e=>t.logError(e),Jc.REJECT_ERROR=()=>t=>Fa(t),Jc.THROW_ERROR=()=>t=>{throw t};class Zc{static fromString(t){return function(t){return!!/[!,*]+/.exec(t)}(t)?new Zc(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map(t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}function Yc(t,e,n){const r=E(e)?[e]:e;return!!(k(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new Zc(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}class Xc{constructor(t,e,n,r,s,i={}){this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=s,this.invokeCount=0,this._deregistered=!1,this.priority=i.priority||0,this.bind=i.bind||null,this.invokeLimit=i.invokeLimit}_matchingNodes(t,e,n){if(!0===e)return t;const r=t.filter(t=>Yc(t.state,e,n));return r.length?r:null}_getDefaultMatchCriteria(){return _a(this.tranSvc._getPathTypes(),()=>!0)}_getMatchingNodes(t,e){const n=Object.assign(this._getDefaultMatchCriteria(),this.matchCriteria);return Object.values(this.tranSvc._getPathTypes()).reduce((r,s)=>{const i=s.scope===Dc.STATE,o=t[s.name]||[],a=i?o:[Ua(o)];return r[s.name]=this._matchingNodes(a,n[s.name],e),r},{})}matches(t,e){const n=this._getMatchingNodes(t,e);return Object.values(n).every(t=>t)?n:null}deregister(){this.removeHookFromRegistry(this),this._deregistered=!0}}function tl(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],s=t=>Ca(r,t);function i(t,i,o={}){const a=new Xc(e,n,i,t,s,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=i,i}class el{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.transitionService._getEvents(t).map(t=>this.buildHooks(t)).reduce(Ra,[]).filter(Boolean)}buildHooks(t){const e=this.transition,n=e.treeChanges(),r=this.getMatchingHooks(t,n,e);if(!r)return[];const s={transition:e,current:e.options().current};return r.map(r=>r.matches(n,e)[t.criteriaMatchPath.name].map(n=>{const i=Object.assign({bind:r.bind,traceData:{hookType:t.name,context:n}},s),o=t.criteriaMatchPath.scope===Dc.STATE?n.state.self:null,a=new Jc(e,o,r,i);return{hook:r,node:n,transitionHook:a}})).reduce(Ra,[]).sort(function(t=!1){return function(e,n){const r=t?-1:1,s=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==s?s:n.hook.priority-e.hook.priority}}(t.reverseSort)).map(t=>t.transitionHook)}getMatchingHooks(t,e,n){const r=t.hookPhase===Pc.CREATE,s=this.transition.transitionService;return(r?[s]:[this.transition,s]).map(e=>e.getHooks(t.name)).filter(Ma(Array.isArray,`broken event named: ${t.name}`)).reduce(Ra,[]).filter(t=>t.matches(e,n))}}class nl{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=Promise.withResolvers(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new el(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:Ka(this)},e.options()),this.$id=n._transitionCount++;const s=Ac.buildToPath(t,e);this._treeChanges=Ac.treeChanges(t,s,this._options.reloadState),this.createTransitionHookRegFns();const i=this._hookBuilder.buildHooksForPhase(Pc.CREATE);Jc.invokeHooks(i,()=>null),this.applyViewConfigs(),this.onStart=void 0,this.onBefore=void 0,this.onSuccess=void 0,this.onEnter=void 0,this.onRetain=void 0,this.onExit=void 0,this.onFinish=void 0,this.onError=void 0}createTransitionHookRegFns(){this.transitionService._getEvents().filter(t=>t.hookPhase!==Pc.CREATE).forEach(t=>tl(this,this.transitionService,t))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map(t=>t.state);Ac.applyViewConfigs(this.transitionService.$view,this._treeChanges.to,t)}$from(){return Ua(this._treeChanges.from).state}$to(){return Ua(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof nl?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!Yc(this.$to(),t.to,this)||t.from&&!Yc(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map(t=>t.paramValues).reduce((t,e)=>({...t,...e}),{}))}getResolveTokens(t="to"){return new jc(this._treeChanges[t]).getTokens()}addResolvable(t,e){void 0===e&&(e=""),t=Wa(vc)(t)?t:new vc(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,s=ka(r,t=>t.state.name===n);at(!!s,`targetNode not found ${n}`);new jc(r).addResolvables([t],s.state)}redirectedFrom(){return this._options.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this._options}entering(){return _a(this._treeChanges.entering,t=>t.state).map(t=>t.self)}exiting(){return _a(this._treeChanges.exiting,t=>t.state).map(t=>t.self).reverse()}retained(){return _a(this._treeChanges.retained,t=>t.state).map(t=>t.self)}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(Ba("state",e)):n,n.map(t=>t.views).reduce(Ra,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const s=Object.assign({},this.options(),t.options(),r);t=t.withOptions(s,!0);const i=this.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=i._treeChanges.entering;return Ac.matching(a,o,Ac.nonDynamicParams).filter(e=>{return!(n=t.options().reloadState,t=>n&&t.state.includes[n.name])(e);var n}).forEach((t,e)=>{t.resolvables=o[e].resolvables}),i}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(Pa(t.to,t.from).map(t=>t[0].state!==t[1].state).reduce(ja,!1))return;const e=t.to.map(t=>t.paramSchema),[n,r]=[t.to,t.from].map(t=>t.map(t=>t.paramValues));return Pa(e,n,r).map(([t,e,n])=>Sc.changed(t,e,n)).reduce(Ra,[])}dynamic(){const t=this._changedParams();return!!t&&t.map(t=>t.dynamic).reduce(ja,!1)}ignored(){return!!this._ignoredReason()}_ignoredReason(){const t=this.globals.transition,e=this._options.reloadState,n=(t,n)=>{if(t.length!==n.length)return!1;const r=Ac.matching(t,n);return t.length===r.filter(t=>!e||!t.state.includes[e.name]).length},r=this._treeChanges,s=t&&t._treeChanges;return s&&n(s.to,r.to)&&n(s.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0}run(){const t=t=>this._hookBuilder.buildHooksForPhase(t),e=t(Pc.BEFORE);return Jc.invokeHooks(e,()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),$c.traceTransitionStart(this),Promise.resolve()}).then(()=>{const e=t(Pc.RUN),n=Promise.resolve();return Jc.invokeHooks(e,()=>n)}).then(()=>{$c.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to());this._hookBuilder.buildHooksForPhase(Pc.SUCCESS).forEach(t=>{t.invokeHook()})},e=>{$c.traceError(e,this),this.success=!1,this._deferred.reject(e),this._error=e;t(Pc.ERROR).forEach(t=>t.invokeHook())}),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){y(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return zc.invalid(`Cannot transition to abstract state '${t.name}'`);const e=t.parameters(),n=this.params(),r=e.filter(t=>!t.validates(n[t.id]));if(r.length){const e=r.map(t=>`[${t.id}:${ac(n[t.id])}]`).join(", "),s=`The following parameter values are not valid for state '${t.name}': ${e}`;return zc.invalid(s)}return!1===this.success?this._error:void 0}toString(){const t=this.from(),e=this.to(),n=t=>null!==t["#"]&&void 0!==t["#"]?t:Aa(t,["#"]);return`Transition#${this.$id}( '${w(t)?t.name:t}'${ac(n(this._treeChanges.from.map(t=>t.paramValues).reduce((t,e)=>({...t,...e}),{})))} -> ${this.valid()?"":"(X) "}'${w(e)?e.name:e}'${ac(n(this.params()))} )`}}nl.diToken=nl;const rl=["$transition$",nl];function sl(t){const e=Object.values(t.treeChanges()).reduce(Ra,[]).reduce(La,[]),n=t=>rl.includes(t.token)?vc.fromData(t.token,null):t;e.forEach(t=>{t.resolvables=t.resolvables.map(n)})}function il(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const ol=il("onExit"),al=il("onRetain"),cl=il("onEnter"),ll=1e3,ul=t=>new jc(t.treeChanges().to).resolvePath("EAGER",t).then(()=>{}),hl=(t,e)=>new jc(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then(()=>{}),dl=t=>new jc(t.treeChanges().to).resolvePath("LAZY",t).then(()=>{}),pl=t=>{const e=t.views("entering");if(e.length)return Promise.all(e.map(t=>Promise.resolve(t.load()))).then(()=>{})},fl=t=>{const e=t.globals,n=()=>{e.transition===t&&(e.transition=null)};t.onSuccess({},()=>{e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,Ia(t.params(),e.params)},{priority:1e4}),t.promise.then(n,n)};function $l(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},t=>{const s=t.entering().filter(t=>!!t.$$state().lazyLoad).map(e=>ml(t,e,r));return Promise.all(s).then(function(){if("url"!==t.originalTransition().options().source){const n=t.targetState();return e.target(n.identifier(),n.params(),n.options())}const r=n.match(n.parts()),s=r&&r.rule;if(s&&"STATE"===s.type){const n=s.state,i=r.match;return e.target(n,i,t.options())}n.sync()})})}function ml(t,e,n){const r=e.$$state().lazyLoad;let s=r._promise;if(!s){const i=t=>(delete e.lazyLoad,delete e.$$state().lazyLoad,delete r._promise,t),o=t=>(delete r._promise,Promise.reject(t));s=r._promise=Promise.resolve(r(t,e)).then(function(t){t&&Array.isArray(t.states)&&t.states.forEach(t=>n.register(t));return t}).then(i,o)}return s}class gl{constructor(t,e,n,r,s=!1,i=Jc.HANDLE_RESULT,o=Jc.REJECT_ERROR,a=!1){this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=s,this.getResultHandler=i,this.getErrorHandler=o,this.synchronous=a}}function vl(t){const e=t._ignoredReason();if(!e)return;$c.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),zc.ignored().toPromise()}function yl(t){if(!t.valid())throw new Error(t.error().toString())}let bl={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class wl{static $inject=ne([ee.$router,ee.$view]);constructor(t,e){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this.globals=t,this.$view=e,this._deregisterHookFns={},this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(sl)}$get=[ee.$state,ee.$url,ee.$stateRegistry,ee.$view,(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=$l(this,t,e,n),this._deregisterHookFns.updateUrl=((t,e,n)=>{t.onSuccess({},t=>{const r=t.options(),s=e;if("url"!==r.source&&r.location&&s.$current.navigable){const t={replace:"replace"===r.location};n.push(s.$current.navigable.url,s.globals.params,t)}n.update(!0)},{priority:9999})})(this,t,e),this._deregisterHookFns.redirectTo=((t,e)=>{t.onStart({to:t=>!!t.redirectTo},t=>{const n=t.to().redirectTo;if(!n)return;const r=e;function s(e){if(e)return e instanceof yc?e:E(e)?r.target(e,t.params(),t.options()):e.state||e.params?r.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}return k(n)?Promise.resolve(n(t)).then(s):s(n)})})(this,t),this._deregisterHookFns.activateViews=((t,e)=>{t.onSuccess({},t=>{const n=t.views("entering"),r=t.views("exiting");(n.length||r.length)&&(r.forEach(t=>e.deactivateViewConfig(t)),n.forEach(t=>{e.activateViewConfig(t)}),e.sync())})})(this,r),this)];create(t,e){return new nl(t,e,this,this.globals)}_defineCoreEvents(){const t=Pc,e=Jc,n=this._criteriaPaths,r=!1,s=!0;this._defineEvent("onCreate",t.CREATE,0,n.to,r,e.LOG_REJECTED_RESULT,e.THROW_ERROR,s),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,s),this._defineEvent("onError",t.ERROR,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,s)}_defineCorePaths(){const{STATE:t,TRANSITION:e}=Dc;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)}_defineEvent(t,e,n,r,s=!1,i=Jc.HANDLE_RESULT,o=Jc.REJECT_ERROR,a=!1){const c=new gl(t,e,n,r,s,i,o,a);this._eventTypes.push(c),tl(this,this,c)}_getEvents(t){return(b(t)?this._eventTypes.filter(e=>e.hookPhase===t):this._eventTypes.slice()).sort((t,e)=>{const n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n})}_definePathType(t,e){this._criteriaPaths[t]={name:t,scope:e}}_getPathTypes(){return this._criteriaPaths}getHooks(t){return this._registeredHooks[t]}_registerCoreTransitionHooks(){const t=this._deregisterHookFns;t.addCoreResolves=void this.onCreate({},function(t){t.addResolvable(vc.fromData(nl,t),""),t.addResolvable(vc.fromData("$transition$",t),""),t.addResolvable(vc.fromData("$stateParams",t.params()),""),t.entering().forEach(e=>{t.addResolvable(vc.fromData("$state$",e),e)})}),t.ignored=(t=>t.onBefore({},vl,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},yl,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},ol))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},al))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},cl))(this),t.eagerResolve=(t=>t.onStart({},ul,{priority:ll}))(this),t.lazyResolve=(t=>t.onEnter({entering:Ka(!0)},hl,{priority:ll}))(this),t.resolveAll=(t=>t.onFinish({},dl,{priority:ll}))(this),t.loadViews=(t=>t.onFinish({},pl))(this),t.updateGlobals=(t=>t.onCreate({},fl))(this),t.lazyLoad=$l(this)}}const El=dt("$stateProvider");class Cl{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=["$routerProvider","$transitionsProvider"];constructor(t,e,n){this.stateRegistry=void 0,this.urlService=void 0,this.globals=t,this.transitionService=e,this.$injector=n,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){throw t instanceof Error&&t.stack?t:t instanceof zc?new Error(t.toString()):new Error(t)},Gc.subscribe("$stateService:defaultErrorHandler",t=>this.defaultErrorHandler()(t))}$get=()=>this;decorator(t,e){return this.stateRegistry.decorator(t,e)||this}state(t){if(!t.name)throw El("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw El("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=Oc(this.stateRegistry,t),r=this.globals,s=()=>r.transitionHistory.peekTail(),i=s(),o=new tc(this.invalidCallbacks.slice()),a=this.$injector,c=t=>{if(!(t instanceof yc))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?s()!==i?zc.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):zc.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?zc.invalid(e.error()).toPromise():Promise.resolve(r(e,n,a)).then(c).then(e=>e||t())}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Ca(this.invalidCallbacks,t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!b(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=Sa(n,{relative:this.$current,inherit:!0},bl);return this.transitionTo(t,e,r)}target(t,e,n={}){if(w(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");const r=this.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error(`No such reload state '${E(n.reload)?n.reload:n.reload.name}'`);return new yc(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t._treeChanges.to:(()=>[new xc(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=Sa(n,bl);const r=()=>this.globals.transition;n=Object.assign(n,{current:r});const s=this.target(t,e,n),i=this.getCurrentPath();if(!s.exists())return this._handleInvalidTargetState(i,s);if(!s.valid())return Fa(s.error());if(!1===n.supercede&&r())return zc.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();const o=t=>e=>{if(e instanceof zc){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===Fc)return n&&this.urlService.update(),Promise.resolve(this.globals.current);const r=e.detail;if(e.type===Uc&&e.redirected&&r instanceof yc){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===Ic)return n&&this.urlService.update(),Promise.reject(e)}return this.defaultErrorHandler()(e),Promise.reject(e)},a=this.transitionService.create(i,s),c=a.run().catch(o(a));return Ha(c),Object.assign(c,{transition:a})}is(t,e,n){n=Sa(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(t,n.relative);if(!b(r))return;if(this.$current!==r)return!1;if(!e)return!0;const s=r.parameters({inherit:!0,matchingKeys:e});return Sc.equals(s,Sc.values(s,e),this.globals.params)}includes(t,e,n){n=Sa(n,{relative:this.$current});const r=E(t)&&Zc.fromString(t);if(r){if(!r.matches(this.$current.name))return!1;t=this.$current.name}const s=this.stateRegistry.matcher.find(t,n.relative),i=this.$current.includes;if(!b(s))return;if(!b(i[s.name]))return!1;if(!e)return!0;const o=s.parameters({inherit:!0,matchingKeys:e});return Sc.equals(o,Sc.values(o,e),this.globals.params)}href(t,e,n){n=Sa(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.stateRegistry.matcher.find(t,n.relative);if(!b(r))return null;n.inherit&&(e=this.globals.params.$inherit(e,this.$current,r));const s=r&&n.lossy?r.navigable:r;return s&&void 0!==s.url&&null!==s.url?this.urlService.href(s.url,e,{absolute:n.absolute}):null}defaultErrorHandler(t){return this._defaultErrorHandler=t||this._defaultErrorHandler}get(t,e){const n=this.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)}lazyLoad(t,e){const n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);const r=this.getCurrentPath(),s=Oc(this.stateRegistry,r);return ml(e=e||this.transitionService.create(r,s),n)}}class Sl{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=[ee.$anchorScroll,t=>this.enabled?t:async function(t){return setTimeout(()=>{t.scrollIntoView(!1)},0)}]}class xl{constructor(){this._useHttp=!1}$get=[ee.$http,ee.$templateCache,ee.$templateRequest,ee.$injector,(t,e,n,r)=>(this.$templateRequest=n,this.$http=t,this.$templateCache=e,this.$injector=r,this)];useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>Promise.resolve(t).then(t=>({template:t})),s=t=>Promise.resolve(t).then(t=>({component:t}));switch((t=>b(t.template)?"template":b(t.templateUrl)?"templateUrl":b(t.templateProvider)?"templateProvider":b(t.component)?"component":b(t.componentProvider)?"componentProvider":"default")(t)){case"template":return r(this.fromString(t.template,e));case"templateUrl":return r(this.fromUrl(t.templateUrl,e));case"templateProvider":return r(this.fromProvider(t.templateProvider,e,n));case"component":return s(t.component);case"componentProvider":return s(this.fromComponentProvider(t.componentProvider,n));default:return r("<ng-view></ng-view>")}}fromString(t,e){return k(t)?t(e):t}fromUrl(t,e){return k(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(t){return t.data}):this.$templateRequest(t)}fromProvider(t,e,n){const r=Ae(t),s=Array.isArray(t)?Ua(t):t;return new vc("",s,r).get(n)}fromComponentProvider(t,e){const n=Ae(t),r=Array.isArray(t)?Ua(t):t;return new vc("",r,n).get(e)}makeComponentTemplate(t,e,n,r){r=r||{};const s=t=>{const e=function(t){return t.replace(/^([A-Z])/,t=>t.toLowerCase()).replace(/([A-Z])/g,t=>"-"+t.toLowerCase())}(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},i=function(t,e){const n=t.get(e+nn);if(!n||!n.length)throw new Error(`Unable to find component named '${e}'`);return n.map(Al).reduce(Ra,[])}(this.$injector,n).map(n=>{const{name:i,type:o}=n,a=s(i);if(t.getAttribute(a)&&!r[i])return`${a}='${t.getAttribute(a)}'`;const c=r[i]||i;if("@"===o)return`${a}='{{s$resolve.${c}}}'`;if("&"===o){const t=e.getResolvable(c),n=t&&t.data,r=n&&Ae(n)||[];return`${a}='$resolve.${c}${Array.isArray(n)?`[${n.length-1}]`:""}(${r.join(",")})'`}return`${a}='$resolve.${c}'`}).join(" "),o=s(n);return`<${o} ${i}></${o}>`}}const Al=t=>w(t.bindToController)?Ol(t.bindToController):Ol(t.scope),Ol=t=>Object.keys(t||{}).map(e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])]).filter(t=>b(t)&&Array.isArray(t[1])).map(t=>({name:t[1][2]||t[0],type:t[1][1]}));function kl(t,e){let n=["",""],r=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const _l=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),Tl={state:{params:{}},strict:!0,caseInsensitive:!0};class jl{static pathSegmentsAndParams(t){return Pa(t._segments,t._params.filter(t=>t.location===bc).concat(void 0)).reduce(Ra,[]).filter(t=>""!==t&&b(t))}static queryParams(t){return t._params.filter(t=>t.location===wc)}static compare(t,e){const n=t=>t._cache.weights=t._cache.weights||(t=>t._cache.segments=t._cache.segments||t._cache.path.map(jl.pathSegmentsAndParams).reduce(Ra,[]).reduce(cc,[]).map(t=>E(t)?_l(t):t).reduce(Ra,[]))(t).map(t=>"/"===t?1:E(t)?2:t instanceof Sc?3:void 0),r=n(t),s=n(e);((t,e,n)=>{const r=Math.max(t.length,e.length);for(;t.length<r;)t.push(n);for(;e.length<r;)e.push(n)})(r,s,0);const i=Pa(r,s);let o,a;for(a=0;a<i.length;a++)if(o=i[a][0]-i[a][1],0!==o)return o;return 0}constructor(t,e,n,r){this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=r=Sa(r,Tl),this.pattern=t;const s=/([:*])([\w[\]]+)|\{([\w[\]]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,i=/([:]?)([\w[\].-]+)|\{([\w[\].-]+)(?::\s*((?:[^{\\}]+|\\.|{(?:[^{\\}]+|\\.)*})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!jl.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(ka(this._params,Ba("id",e)))throw new Error(`Duplicate parameter name '${e}' in pattern '${t}'`)},u=(n,r)=>{const s=n[2]||n[3],i=r?n[4]:n[4]||("*"===n[1]?"[\\s\\S]*":null);return{id:s,regexp:i,segment:t.substring(c,n.index),type:i?e.type(i)||(t=>Ea(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(i):null}};let h,d;for(;(a=s.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,Ua(this._params)]),c=s.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=i.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=s.lastIndex}this._segments.push(d),this._compiled=o.map(t=>kl.apply(null,t)).concat(kl(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return e.value(t)}exec(t,e={},n){const r=(s=this._cache,i="pattern",o=()=>new RegExp(["^",Va(this._cache.path.map(t=>t._compiled)).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),s[i]=s[i]||o()).exec(t);var s,i,o;if(!r)return null;const a=this.parameters(),c=a.filter(t=>!t.isSearch()),l=a.filter(t=>t.isSearch()),u=this._cache.path.map(t=>t._segments.length-1).reduce((t,e)=>t+e),h={};if(u!==r.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function d(t){const e=t=>t.split("").reverse().join(""),n=_a(e(t).split(/-(?!\\)/),e);return _a(n,t=>t.replace(/\\-/g,"-")).reverse()}for(let t=0;t<u;t++){const e=c[t];let n=r[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=d(n)),h[e.id]=this._getDecodedParamValue(n,e)}return l.forEach(t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);h[t.id]=this._getDecodedParamValue(n,t)}),n&&(h["#"]=n),h}parameters(t={}){return!1===t.inherit?this._params:Va(this._cache.path.map(t=>t._params))}parameter(t,e={}){const n=this._cache.parent;return(()=>{for(const e of this._params)if(e.id===t)return e})()||!1!==e.inherit&&n&&n.parameter(t,e)||null}validates(t){t=t||{};return this.parameters().filter(e=>vt(t,e.id)).map(e=>((t,e)=>!t||t.validates(e))(e,t[e.id])).reduce(Ta,!0)}format(t={}){const e=this._cache.path,n=e.map(jl.pathSegmentsAndParams).reduce(Ra,[]).map(t=>E(t)?t:s(t)),r=e.map(jl.queryParams).reduce(Ra,[]).map(s);if(n.concat(r).filter(t=>!1===t.isValid).length)return null;function s(e){const n=e.value(t[e.id]),r=e.validates(n),s=e.isDefaultValue(n),i=!!s&&e.squash,o=e.type.encode(n);return{param:e,value:n,isValid:r,isDefaultValue:s,squash:i,encoded:o}}const i=n.reduce((t,e)=>{if(E(e))return t+e;const{squash:n,encoded:r,param:s}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:E(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+_a(r,Rl).join("-"):s.raw?t+r:t+encodeURIComponent(r)},""),o=r.map(t=>{let{param:e,squash:n,encoded:r,isDefaultValue:s}=t;if(!(null==r||s&&!1!==n)&&(Array.isArray(r)||(r=[r]),0!==r.length))return e.raw||(r=_a(r,encodeURIComponent)),r.map(t=>`${e.id}=${t}`)}).reduce(Ra,[]).join("&");return i+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}function Rl(t){return encodeURIComponent(t).replace(/-/g,t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`)}jl.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Nl{name=void 0;navigable=void 0;parent=void 0;params=void 0;url=void 0;includes=void 0;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const e=this.name?Zc.fromString(this.name):null;this.__stateObjectCache={nameGlob:e}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?t+"."+this.name:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=Sa(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter(e=>!t.matchingKeys||vt(t.matchingKeys,e.id))}parameter(t,e={}){return this.url&&this.url.parameter(t,e)||ka(Object.values(this.params),Ba("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Nl.isStateDeclaration=t=>k(t.$$state),Nl.isState=t=>w(t.__stateObjectCache);class Ll{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=Nl,s=Ga([[E,t=>s(this.urlService.compile(t))],[Wa(jl),t=>this.fromUrlMatcher(t,e)],[(...t)=>n(...t)||r(...t),t=>this.fromState(t,this.stateService,this.routerGlobals)],[Wa(RegExp),t=>this.fromRegExp(t,e)],[k,t=>new Vl(t,e)]]),i=s(t);if(!i)throw new Error("invalid 'what' in when()");return i}fromUrlMatcher(t,e){let n=e;E(e)&&(e=this.urlService.compile(e)),Wa(jl)(e)&&(n=t=>e.format(t));const r={urlMatcher:t,matchPriority:function(e){const n=t.parameters().filter(t=>t.isOptional);return n.length?n.filter(t=>e[t.id]).length/n.length:1e-6},type:"URLMATCHER"};return Object.assign(new Vl(function(e){const n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n},n),r)}fromState(t,e,n){const r=Nl.isStateDeclaration(t)?t.$$state():t,s={state:r,type:"STATE"};return Object.assign(this.fromUrlMatcher(r.url,t=>{const s=e;s.href(r,t)!==s.href(n.current,n.params)&&s.transitionTo(r,t,{inherit:!0,source:"url"})}),s)}fromRegExp(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const n=E(e)?t=>e.replace(/\$(\$|\d{1,2})/,(e,n)=>t["$"===n?0:Number(n)]):e,r={regexp:t,type:"REGEXP"};return Object.assign(new Vl(e=>t.exec(e.path),n),r)}}Ll.isUrlRule=t=>t&&["type","match","handler"].every(e=>b(t[e]));class Vl{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this._group=void 0,this.handler=e||(t=>t),this.priority=void 0}matchPriority(t){return at(y(t)),0-this.$id}}function Ml(t,e){let n=function(t,e){return(e.priority||0)-(t.priority||0)}(t,e);return 0!==n?n:(n=((t,e)=>{const n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[t.type]||0)-(n[e.type]||0)})(t,e),0!==n?n:(n=((t,e)=>t.urlMatcher&&e.urlMatcher?jl.compare(t.urlMatcher,e.urlMatcher):0)(t,e),0!==n?n:((t,e)=>{const n={STATE:!0,URLMATCHER:!0};return n[t.type]&&n[e.type]?0:(t.$id||0)-(e.$id||0)})(t,e)))}function Pl(t){if(!(k(t)||E(t)||Wa(yc)(t)||yc.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return k(t)?t:Ka(t)}class Dl{constructor(t){this._sortFn=Ml,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=Pl(t);this.rule(this.urlRuleFactory.create((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path),e))}otherwise(t){const e=Pl(t);this._otherwiseFn=this.urlRuleFactory.create(Ka(!0),e),this._sorted=!1}removeRule(t){Ca(this._rules,t)}rule(t){if(!Ll.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])}sort(t){const e=this.stableSort(this._rules,this._sortFn=t||this._sortFn);let n=0;for(let t=0;t<e.length;t++)e[t]._group=n,t<e.length-1&&0!==this._sortFn(e[t],e[t+1])&&n++;this._rules=e,this._sorted=!0}ensureSorted(){this._sorted||this.sort()}stableSort(t,e){const n=t.map((t,e)=>({elem:t,idx:e}));return n.sort((t,n)=>{const r=e(t.elem,n.elem);return 0===r?t.idx-n.idx:r}),n.map(t=>t.elem)}when(t,e,n){const r=this.urlRuleFactory.create(t,e);return b(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class Ul{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new Sc(t,e,Ec,this.urlServiceConfig,n)}fromPath(t,e,n){return new Sc(t,e,bc,this.urlServiceConfig,n)}fromSearch(t,e,n){return new Sc(t,e,wc,this.urlServiceConfig,n)}}class Il{static $inject=ne([ee.$location,ee.$state,ee.$router,ee.$urlConfig]);$location;constructor(t,e,n,r){this.$locationProvider=t,this.stateService=e,this.stateService.urlService=this,this.urlRuleFactory=new Ll(this,this.stateService,n),this.rules=new Dl(this.urlRuleFactory),this.config=r,this.paramFactory=new Ul(this.config),this._urlListeners=[]}getPath(){return this.$location.getPath()}getSearch(){return this.$location.getSearch()}getHash(){return this.$location.getHash()}$get=[ee.$location,ee.$rootScope,(t,e)=>(this.$location=t,e.$on("$locationChangeSuccess",t=>{this._urlListeners.forEach(e=>{e(t)})}),this.listen(!0),this)];baseHref(){return this._baseHref||(this._baseHref=te()||window.location.pathname)}url(t,e){if(b(t)){const e=decodeURIComponent(t);this.$location.setUrl(e)}return e&&this.$location.setState(e),this.$location.getUrl()}onChange(t){return this._urlListeners.push(t),()=>Ca(this._urlListeners,t)}parts(){return{path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()}}sync(t){if(t&&t.defaultPrevented)return;const e=this.stateService,n={path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()},r=this.match(n);Ga([[E,t=>this.url(t)],[yc.isDef,t=>e.go(t.state,t.params,t.options)],[Wa(yc),t=>e.go(t.state(),t.params(),t.options())]])(r&&r.rule.handler(r.match,n))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.onChange(t=>this.sync(t));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}match(t){t=Object.assign({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const s=n(e[t]);r=!r||s&&s.weight>r.weight?s:r}return r}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const s=this.$locationProvider.html5ModeConf.enabled;if(s||(r="#"+this.$locationProvider.hashPrefixConf+r),r=function(t,e,n,r){return"/"===r?t:e?(t=>t.replace(/\/[^/]*$/,""))(r)+t:n?r.slice(1)+t:t}(r,s,n.absolute,this.baseHref()),!n.absolute||!r)return r;const i=!s&&r?"/":"";return[`${window.location.protocol}//`,window.location.host,i,r].join("")}compile(t,e){const n=this.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const s={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive};return new jl(t,n.paramTypes,this.paramFactory,Object.assign(s,e))}isMatcher(t){if(!w(t))return!1;let e=!0;return Object.entries(jl.prototype).forEach(([n,r])=>{k(r)&&(e=e&&b(t[n])&&k(t[n]))}),e}}class Hl{constructor(t){this._states=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,e,n=!0){if(!t&&""!==t)return;const r=E(t);let s=r?t:t.name;this.isRelative(s)&&(s=this.resolvePath(s,e));const i=this._states[s];if(i&&(r||!(r||i!==t&&i.self!==t)))return i;if(r&&n){const t=Object.values(this._states).filter(t=>t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(s));return t.length>1&&console.error(`stateMatcher.find: Found multiple matches for ${s} using glob: `,t.map(t=>t.name)),t[0]}}resolvePath(t,e){if(!e)throw new Error(`No reference point given for path '${t}'`);const n=this.find(e),r=t.split("."),s=r.length;let i=0,o=n;for(;i<s;i++)if(""!==r[i]||0!==i){if("^"!==r[i])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${n.name}'`);o=o.parent}else o=n;const a=r.slice(i).join(".");return o.name+(o.name&&a?".":"")+a}}function Fl(t){return t.self.$$state=()=>t,t.self}function ql(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Ea(t.parent.data,t.data)),t.data}function Bl(t,e){return function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};Ia(r,t),t.url+="{remainder:any}",r=t}const s=n.parent,i=function(t){if(!E(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(r.url),o=i?t.compile(i.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return i&&i.root?o:(s&&s.navigable||e()).url.append(o)}}function zl(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}}function Wl(t){return t.parent?t.parent.path.concat(t):[t]}function Kl(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function Gl(t){const e=Ga([[t=>t.resolveFn,t=>new vc(Zl(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new vc(Zl(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new vc(Zl(t),()=>new t.useClass,[],t.policy)],[t=>t.useValue,t=>new vc(Zl(t),()=>t.useValue,[],t.policy,t.useValue)],[t=>t.useExisting,t=>new vc(Zl(t),t=>t,[t.useExisting],t.policy)]]),n=Ga([[t=>E(t.val),t=>new vc(t.token,t=>t,[t.val],t.policy)],[t=>Array.isArray(t.val),t=>new vc(t.token,Ua(t.val),t.val.slice(0,-1),t.policy)],[t=>k(t.val),t=>new vc(t.token,t.val,(t=>{const e=window.angular.$injector;return t.$inject||e&&Ae(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),r=Ga([[Wa(vc),t=>t],[t=>!(!t.token||!t.resolveFn),e],[t=>!!(t&&t.val&&(E(t.val)||Array.isArray(t.val)||k(t.val))),n],[Ka(!0),t=>{throw new Error("Invalid resolve value: "+ac(t))}]]),s=t.resolve,i=Array.isArray(s)?s:((t,e)=>Object.keys(t||{}).map(n=>({token:n,val:t[n],deps:void 0,policy:e[n]})))(s,t.resolvePolicy||{});return i.map(r)}class Ql{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find("");var s;this.builders={name:[t=>t.name],self:[Fl],parent:[function(e){return Jl(e)?null:t.find(n.parentName(e))||r()}],data:[ql],url:[Bl(e,r)],navigable:[zl(Jl)],params:[(s=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(_a(Aa(t.params||{},e.map(t=>t.id)),(e,n)=>s.fromConfig(n,null,t.self)));return e.concat(n).map(t=>[t.id,t]).reduce(Da,{})})],views:[],path:[Wl],includes:[Kl],resolvables:[Gl]}}builder(t,e){const n=this.builders,r=n[t]||[];return E(t)&&!b(e)?r.length>1?r:r[0]:E(t)&&k(e)?(n[t]=r,n[t].push(e),()=>n[t].splice(n[t].indexOf(e,1))&&null):void 0}build(t){const{matcher:e,builders:n}=this,r=this.parentName(t);if(r&&!e.find(r,void 0,!1))return null;for(const e in n){if(!vt(n,e))continue;const r=n[e].reduce((t,e)=>n=>e(n,t),()=>{});t[e]=r(t)}return t}parentName(t){const e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${e})`);return n.join(".")}return t.parent?E(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=E(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}function Jl(t){return""===t.name}function Zl(t){return t.provide||t.token}class Yl{constructor(t,e,n,r,s){this.stateRegistry=t,this.urlServiceRules=e,this.states=n,this.builder=r,this.listeners=s,this.queue=[]}register(t){const e=new Nl(t);if(!E(name))throw new Error("State must have a valid name");if(vt(this.states,e.name)||this.queue.map(t=>t.name).includes(e.name))throw new Error(`State '${e.name}' is already defined`);return this.queue.push(e),this.flush(),e}flush(){const{queue:t,states:e,builder:n}=this,r=[],s=[],i={},o=t=>vt(this.states,t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach(t=>t("registered",r.map(t=>t.self)))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=s.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&s.splice(h,1),r.push(c);continue}const d=i[l];if(i[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&s.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.urlServiceRules;e.rule(e.urlRuleFactory.create(t))}}class Xl{static $inject=ne([ee.$url,ee.$state,ee.$router,ee.$view]);constructor(t,e,n,r){this.states={},e.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.rules,this.$injector=void 0,this.listeners=[],this.matcher=new Hl(this.states),this.builder=new Ql(this.matcher,t),this.builder.builder("views",Nc),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new Yl(this,this.urlServiceRules,this.states,this.builder,this.listeners),this.registerRoot(),r.rootViewContext(this.root()),n.$current=this.root(),n.current=n.$current.self}$get=[ee.$injector,t=>(this.$injector=t,this.builder.$injector=t,this)];getStateHookBuilder(t){let e=this;return function(n){const r=n[t],s="onExit"===t?"from":"to";return r?function(t,n){const i=new jc(t.treeChanges(s)).subContext(n.$$state()),o=Object.assign(tu(i),{$state$:n,$transition$:t});return e.$injector.invoke(r,this,o)}:void 0}}registerRoot(){this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this._root.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Ca(this.listeners,t)}.bind(this)}root(){return this._root}register(t){return this.stateQueue.register(t)}_deregisterTree(t){const e=this.get().map(t=>t.$$state()),n=t=>{const r=e.filter(e=>-1!==t.indexOf(e.parent));return 0===r.length?r:r.concat(n(r))},r=n([t]),s=[t].concat(r).reverse();return s.forEach(t=>{const e=this.urlServiceRules;e.rules().filter(Ba("state",t)).forEach(t=>e.removeRule(t)),delete this.states[t.name]}),s}deregister(t){const e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);const n=this._deregisterTree(e.$$state());return this.listeners.forEach(t=>t("deregistered",n.map(t=>t.self))),n}get(t,e){if(0===arguments.length)return Object.keys(this.states).map(t=>this.states[t].self);const n=this.matcher.find(t,e);return n&&n.self||null}decorator(t,e){return this.builder.builder(t,e)}}const tu=t=>t.getTokens().filter(E).map(e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]}).reduce(Da,{});function eu(t){const e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");const n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function nu(t){const e=qt(t,"$ngView"),n=za("$cfg.path")(e);return n?Ua(n).state.name:void 0}function ru(t,e,n){const r=n.ngState||t.current.name,s=Object.assign(function(t,e){return{relative:nu(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.ngStateOpts||{}),i=t.href(r,n.ngStateParams,s);return{ngState:r,ngStateParams:n.ngStateParams,ngStateOpts:s,href:i}}function su(t){const e="[object SVGAnimatedString]"===Object.prototype.toString.call(t.getAttribute("href")),n="FORM"===t.nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t.nodeName,clickable:!n}}function iu(t,e,n,r,s){return function(i){const o=i.which||i.button,a=r();if(o>1||i.ctrlKey||i.metaKey||i.shiftKey||i.altKey||t.getAttribute("target"))i.preventDefault(),i.stopImmediatePropagation();else{const r=setTimeout(function(){if(!t.getAttribute("disabled")){e.go(a.ngState,a.ngStateParams,a.ngStateOpts).then(()=>{s.$emit("$updateBrowser")})}});i.preventDefault();let o=n.isAnchor&&!a.href?1:0;i.preventDefault=function(){o--<=0&&clearTimeout(r)}}}}function ou(t,e,n,r){let s;r&&(s=r.events),Array.isArray(s)||(s=["click"]);for(const e of s)t.addEventListener(e,n);e.$on("$destroy",function(){for(const e of s)t.removeEventListener(e,n)})}function au(t,e,n){const r=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,i,o)=>{const a=su(s),c=o[1]||o[0];let l=null;const u={},h=()=>ru(r,s,u),d=eu(i.ngSref);function p(){u.ngStateParams=Object.assign({},t.$eval(d.paramExpr));const e=h();l&&l(),c&&(l=c.$$addStateInfo(e.ngState,e.ngStateParams)),null!=e.href&&i.$set(a.attr,e.href)}u.ngState=d.state,u.ngStateOpts=i.ngSrefOpts?t.$eval(i.ngSrefOpts):{},d.paramExpr&&(t.$watch(d.paramExpr,function(t){u.ngStateParams=Object.assign({},t),p()},!0),u.ngStateParams=Object.assign({},t.$eval(d.paramExpr))),p(),t.$on("$destroy",e.onStatesChanged(p)),t.$on("$destroy",n.onSuccess({},p)),a.clickable&&ou(s,t,iu(s,r,a,h,t),u.ngStateOpts)}}}function cu(t,e,n){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(r,s,i,o){const a=su(s),c=o[1]||o[0];let l,u=null;const h={},d=()=>ru(t,s,h),p=["ngState","ngStateParams","ngStateOpts"],f=p.reduce((t,e)=>(t[e]=()=>{},t),{});function $(){const t=d();u&&u(),c&&(u=c.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&i.$set(a.attr,t.href)}p.forEach(t=>{h[t]=i[t]?r.$eval(i[t]):null,i.$observe(t,e=>{f[t](),f[t]=r.$watch(e,e=>{h[t]=e,$()})})}),$(),r.$on("$destroy",e.onStatesChanged($)),r.$on("$destroy",n.onSuccess({},$)),a.clickable&&(l=iu(s,t,a,d,r),ou(s,r,l,h.ngStateOpts))}}}function lu(t,e,n,r,s){return{restrict:"A",controller:function(i,o,a){let c,l,u=[];c=n(a.ngSrefActiveEq||"",!1)(i);try{l=i.$eval(a.ngSrefActive)}catch{}function h(t){t.promise.then($,()=>{})}function d(){p(l)}function p(t){w(t)&&(u=[],Object.entries(t).forEach(([t,e])=>{const n=function(t,e){const n=eu(t);f(n.state,i.$eval(n.paramExpr),e)};E(e)?n(e,t):Array.isArray(e)&&e.forEach(e=>{n(e,t)})}))}function f(e,n,r){const s={state:t.get(e,nu(o))||{name:e},params:n,activeClass:r};return u.push(s),function(){Ca(u,s)}}function $(){const e=t=>t.split(/\s/).filter(Boolean),n=t=>t.map(t=>t.activeClass).map(e).reduce(Ra,[]),r=n(u).concat(e(c)).reduce(La,[]),s=n(u.filter(e=>t.includes(e.state.name,e.params))),i=!!u.filter(e=>t.is(e.state.name,e.params)).length?e(c):[],a=s.concat(i).reduce(La,[]),l=r.filter(t=>!a.includes(t));a.forEach(t=>o.classList.add(t)),l.forEach(t=>o.classList.remove(t))}l=l||n(a.ngSrefActive||"",!1)(i),p(l),this.$$addStateInfo=function(t,e){if(w(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},i.$on("$destroy",function(){const t=r.onStatesChanged(d),e=s.onStart({},h),n=i.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}au.$inject=["$state","$stateRegistry","$transitions"],cu.$inject=["$state","$stateRegistry","$transitions"],lu.$inject=["$state","$router","$interpolate","$stateRegistry","$transitions"];let uu=["$view","$animate","$viewScroll","$interpolate",function(t,e,n,r){const s={$cfg:{viewDecl:{$context:t.rootViewContext()}},$ngView:{}},i={count:0,terminal:!0,priority:400,transclude:"element",compile:function(o,a,c){return function(o,a,l){const u=l.onload||"",h=l.autoscroll,d={enter:function(t,n,r){mt(t)?e.enter(t,null,n).then(r):(n.after(t),r())},leave:function(t,n){mt(t)?e.leave(t).then(n):(t.parentElement.removeChild(t),n())}},p=qt(a,"$ngView")||s,f=r(l.ngView||l.name||"")(o)||"$default";let $,m,g,v;const y={id:i.count++,name:f,fqn:p.$ngView.fqn?p.$ngView.fqn+"."+f:f,config:null,configUpdated:function(t){if(t&&!(t instanceof Vc))return;if(e=v,n=t,e===n)return;var e,n;$c.traceUIViewConfigUpdated(y,t&&t.viewDecl&&t.viewDecl.$context),v=t,E(t)},get creationContext(){const t=za("$cfg.viewDecl.$context")(p),e=za("$ngView.creationContext")(p);return t||e}};$c.traceUIViewEvent("Linking",y),Pt(a,"$ngView",{$ngView:y}),E();const w=t.registerUIView(y);function E(t){const e=o.$new(),r=Promise.withResolvers(),s=Promise.withResolvers(),i={$cfg:t,$ngView:y},l={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",f),m=c(e,function(t){Pt(t,"$ngViewAnim",l),Pt(t,"$ngView",i),d.enter(t,a,function(){r.resolve(),g&&g.$emit("$viewContentAnimationEnded"),(b(h)&&!h||o.$eval(h))&&n(t)}),function(){if($&&($c.traceUIViewEvent("Removing (previous) el",Dt($,"$ngView")),$.remove(),$=null),g&&($c.traceUIViewEvent("Destroying scope",y),g.$destroy(),g=null),m){const t=Dt(m,"$ngViewAnim");$c.traceUIViewEvent("Animate out",t),d.leave(m,function(){t.$$animLeave.resolve(),$=null}),$=m,m=null}}()}),g=e,g.$emit("$viewContentLoaded",t||v),g.$eval(u)}o.$on("$destroy",function(){$c.traceUIViewEvent("Destroying/Unregistering",y),w()})}}};return i}];function hu(t,e,n){const r=za("viewDecl.controllerAs"),s=za("viewDecl.resolveAs");return{priority:-400,compile:function(i){const o=i.innerHTML;return Vt(i,!0),function(i,a){const c=Dt(a,"$ngView");if(!c)return a.innerHTML=o,void t(a.contentDocument||a.childNodes)(i);const l=c.$cfg||{viewDecl:{},getTemplate:()=>{}},u=l.path&&new jc(l.path);a.innerHTML=l.getTemplate(a,u)||o,$c.traceUIViewFill(c.$ngView,a.innerHTML);const h=t(a.contentDocument||a.childNodes),d=l.controller,p=r(l),f=s(l),$=u&&tu(u);if(f&&(i.$target[f]=$),d){const t=e(d,Object.assign({},$,{$scope:i,$element:a}));p&&(i.$target[p]=t,i.$target[p][f]=$),Pt(a,"$ngControllerController",t),Array.from(a.children).forEach(e=>{Pt(e,"$ngControllerController",t)}),function(t,e,n,r){!k(e.$onInit)||r.viewDecl.component||r.viewDecl.componentProvider||e.$onInit();const s=Ua(r.path).state.self,i={bind:e};if(k(e.uiOnParamsChanged)){const o=new jc(r.path).getResolvable("$transition$").data,a=t=>{if(t===o||-1!==t.exiting().indexOf(s))return;const n=t.params("to"),r=t.params("from"),i=t=>t.paramSchema,a=t.treeChanges("to").map(i).reduce(Ra,[]),c=t.treeChanges("from").map(i).reduce(Ra,[]),l=a.filter(t=>{const e=c.indexOf(t);return-1===e||!c[e].type.equals(n[t.id],r[t.id])});if(l.length){const r=l.map(t=>t.id),s=Oa(n,(t,e)=>-1!==r.indexOf(e));e.uiOnParamsChanged(s,t)}};n.$on("$destroy",t.onSuccess({},a,i))}if(k(e.uiCanExit)){const r=du++,o="_uiCanExitIds",a=t=>!!t&&(t[o]&&!0===t[o][r]||a(t.redirectedFrom())),c=t=>{let n;const s=t[o]=t[o]||{};return a(t)||(n=Promise.resolve(e.uiCanExit(t)),n.then(t=>s[r]=!1!==t)),n},l={exiting:s.name};n.$on("$destroy",t.onBefore(l,c,i))}}(n,t,i,l)}h(i)}}}}hu.$inject=["$compile","$controller","$transitions"];let du=0;function pu(t){return{link:(e,n,r)=>{const s=r.ngChannel,i=n.childNodes.length>0,o=t.subscribe(s,t=>{i?w(t)&&e.$merge(t):n.innerHTML=t});e.$on("$destroy",()=>{t.unsubscribeByKey(o)})}}}function fu(t,e){return{restrict:"A",link(n,r,s){const i=s.ngSetter;if(!i)return void e.warn("ng-setter: expression null");const o=t(i).assign;if(!o)return void e.warn("ng-setter: expression invalid");const a=t=>{o(n,t.trim())},c=new MutationObserver(t=>{let e=!1;for(const n of t)if("childList"===n.type||"characterData"===n.type){e=!0;break}e&&a(r.innerHTML)});c.observe(r,{childList:!0,subtree:!0,characterData:!0}),n.$on("$destroy",()=>c.disconnect()),a(r.innerHTML)}}}function $u(t,e){const n=e||"ng"+t.charAt(0).toUpperCase()+t.slice(1),r=function(t,e){return function(n,r,s,i,o,a){function c(t){let e=null;if("form"===t.tagName.toLowerCase())e=t;else if("form"in t&&t.form)e=t.form;else if(t.hasAttribute("form")){const n=t.getAttribute("form");if(n){const t=document.getElementById(n);t&&"form"===t.tagName.toLowerCase()&&(e=t)}}if(!e){if("name"in t&&"string"==typeof t.name&&t.name.length>0&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)){const e=t.name,n=t.value;return{[e]:n}}return{}}const n=new FormData(e),r={};return n.forEach((t,e)=>{r[e]=t}),r}return{restrict:"A",link(l,u,h){const d=h.trigger||function(t){const e=t.tagName.toLowerCase();if(["input","textarea","select"].includes(e))return"change";if("form"===e)return"submit";return"click"}(u),p=u.tagName.toLowerCase();b(h.latch)&&h.$observe("latch",function(t){let e=!1;return function(...n){if(e)return t.apply(this,n);e=!0}}(()=>u.dispatchEvent(new Event(d))));let f,$=!1;b(h.interval)&&(u.dispatchEvent(new Event(d)),f=setInterval(()=>u.dispatchEvent(new Event(d)),parseInt(h.interval)||1e3)),u.addEventListener(d,async d=>{if(u.disabled)return;"form"===p&&d.preventDefault();const f=h.swap||"innerHTML",m=h.target,g=m?document.querySelector(m):u;if(!g)return void s.warn(`${e}: target "${m}" not found`);const v=h[e];if(!v)return void s.warn(`${e}: no URL specified`);const y=t=>{b(h.loading)&&h.$set("loading",!1),b(h.loadingClass)&&h.$removeClass(h.loadingClass);const e=t.data;200<=t.status&&t.status<=299?(b(h.success)&&i(h.success)(l,{$res:e}),b(h.stateSuccess)&&o.go(h.stateSuccess)):400<=t.status&&t.status<=599&&(b(h.error)&&i(h.error)(l,{$res:e}),b(h.stateError)&&o.go(h.stateError)),function(t,e,n,r,s){let i=[];if(!["textcontent","delete","none"].includes(e)){if(!t)return;if(w(t))return void r.$merge(t);const e=s(t)(r);i=e instanceof DocumentFragment?Array.from(e.childNodes):[e]}switch(e){case"innerHTML":default:n.replaceChildren(...i);break;case"outerHTML":{const t=n.parentNode;if(!t)return;const e=document.createDocumentFragment();i.forEach(t=>e.appendChild(t)),t.replaceChild(e,n);break}case"textContent":n.textContent=t;break;case"beforebegin":i.forEach(t=>n.parentNode.insertBefore(t,n));break;case"afterbegin":i.slice().reverse().forEach(t=>n.insertBefore(t,n.firstChild));break;case"beforeend":i.forEach(t=>n.appendChild(t));break;case"afterend":i.slice().reverse().forEach(t=>n.parentNode.insertBefore(t,n.nextSibling));break;case"delete":n.remove();case"none":}}(e,f,g,l,r)};if(b(h.delay)&&await function(t=0){return new Promise(e=>setTimeout(e,t))}(0|parseInt(h.delay)),!$)if(b(h.throttle)&&($=!0,h.$set("throttled",!0),setTimeout(()=>{h.$set("throttled",!1),$=!1},parseInt(h.throttle))),b(h.loading)&&h.$set("loading",!0),b(h.loadingClass)&&h.$addClass(h.loadingClass),"post"===t||"put"===t){let e;const r={};h.enctype?(r.headers={"Content-Type":h.enctype},e=et(c(u))):e=c(u),n[t](v,e,r).then(y).catch(y)}else if("get"===t&&h.ngSse){const t=v,n={withCredentials:"true"===h.withCredentials,transformMessage:t=>{try{return JSON.parse(t)}catch{return t}},onOpen:()=>{s.info(`${e}: SSE connection opened to ${t}`),b(h.loading)&&h.$set("loading",!1),b(h.loadingClass)&&h.$removeClass(h.loadingClass)},onMessage:t=>{y({status:200,data:t})},onError:t=>{s.error(`${e}: SSE error`,t);y({status:500,data:t})}},r=a(t,n);l.$on("$destroy",()=>{s.info(`${e}: closing SSE connection`),r.close()})}else n[t](v).then(y).catch(y)}),f&&l.$on("$destroy",()=>clearInterval(f)),"load"==d&&u.dispatchEvent(new Event("load"))}}}}(t,n);return r.$inject=[ee.$http,ee.$compile,ee.$log,ee.$parse,ee.$state,ee.$sse],r}pu.$inject=[ee.$eventBus],fu.$inject=[ee.$parse,ee.$log];const mu=$u("get"),gu=$u("delete"),vu=$u("post"),yu=$u("put"),bu=$u("get","ngSse");function wu(t,e){return{restrict:"A",link(n,r,s){const i=s.ngInject;if(!i)return;const o=i.replace(/(\$[\w]+|[\w]+(?:Service|Factory))/g,(r,s)=>{try{const t=e.get(s);return n.$target[s]=t,s}catch{return t.warn(`Injectable ${s} not found in $injector`),r}});n.$apply(o)}}}function Eu(){return{restrict:"A",link(t,e,n){const r=n.ngEl,s=r||e.id;t.$target[s]=e;const i=e.parentNode;if(!i)return;const o=new MutationObserver(n=>{for(const r of n)Array.from(r.removedNodes).forEach(n=>{n===e&&(delete t.$target[s],o.disconnect())})});o.observe(i,{childList:!0})}}}wu.$inject=[ee.$log,ee.$injector];class Cu{constructor(){this.defaults={}}$get=()=>(t,e={})=>{const n=this.#u(t,e.params);return this.#h(n,e)};#u(t,e){if(!e)return t;const n=Object.entries(e).map(([t,e])=>`${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&");return t+(t.includes("?")?"&":"?")+n}#h(t,e){const n=new EventSource(t,{withCredentials:!!e.withCredentials});return e.onOpen&&n.addEventListener("open",t=>e.onOpen(t)),n.addEventListener("message",t=>{let n=t.data;try{n=e.transformMessage?e.transformMessage(n):JSON.parse(n)}catch{}e.onMessage?.(n,t)}),e.onError&&n.addEventListener("error",t=>e.onError(t)),n}}function Su(){return{restrict:"A",link(t,e,n){const r=n.onEnter,s=n.onLeave,i=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting?r&&t.$eval(r):s&&t.$eval(s)})},{root:null,threshold:.1});i.observe(e);const o=e.parentNode;let a;o&&(a=new MutationObserver(t=>{for(const n of t)Array.from(n.removedNodes).forEach(t=>{t===e&&(i.disconnect(),a.disconnect())})}),a.observe(o,{childList:!0})),t.$on("$destroy",()=>{i.disconnect(),a&&a.disconnect()})}}}const xu=dt("ng"),Au=dt("$injector"),Ou={};const ku=new class{constructor(){this.$cache=bt,this.$eventBus=Gc,this.version="0.9.9",this.bootsrappedModules=[],this.getController=Ft,this.getInjector=Qt,this.getScope=Ut,this.errorHandlingConfig=ht,this.$t=ee,window.angular=this,function(t){t.module("ng",[],[ee.$provide,t=>{t.provider({$$sanitizeUri:fo}),t.value("$window",window),t.value("$document",document),t.provider(ee.$compile,rn).directive({input:Wn,textarea:Wn,form:hn,script:Jn,select:Yn,option:Xn,ngBind:tr,ngBindHtml:nr,ngBindTemplate:er,ngClass:ar,ngClassEven:lr,ngClassOdd:cr,ngCloak:ur,ngController:hr,ngDelete:gu,ngDisabled:To,ngEl:Eu,ngForm:dn,ngGet:mu,ngHide:$r,ngIf:mr,ngInclude:gr,ngInject:wu,ngInit:yr,ngMessages:vo,ngMessage:Eo,ngMessageExp:Co,ngMessagesInclude:wo,ngMessageDefault:So,ngNonBindable:br,ngPost:vu,ngPut:yu,ngRef:Er,ngRepeat:Ar,ngSetter:fu,ngShow:fr,ngStyle:Or,ngSse:bu,ngSwitch:kr,ngSwitchWhen:_r,ngSwitchDefault:Tr,ngOptions:Vr,ngTransclude:Pr,ngModel:wn,pattern:Hr,ngPattern:Hr,required:Ir,ngRequired:Ir,ngMinlength:qr,minlength:qr,ngMaxlength:Fr,maxlength:Fr,ngValue:Qn,ngModelOptions:gn,ngViewport:Su}).directive({input:Kn,ngAnimateSwap:ya,ngAnimateChildren:ba,ngChecked:Vo,ngClick:No,ngDblclick:Io,ngInclude:vr,ngHide:Po,ngShow:jo,ngMessages:Ro,ngModel:Uo,ngReadonly:Do,ngRequired:Lo,ngValue:Mo,ngSref:au,ngSrefActive:lu,ngSrefActiveEq:lu,ngState:cu,ngView:uu,ngChannel:pu}).directive({ngView:hu}).directive(Ur).directive(Fe),t.provider({$aria:_o,$anchorScroll:Wr,$animate:Fs,$$animation:sa,$animateCss:Jo,$$animateCssDriver:$a,$$animateJs:ea,$$animateJsDriver:va,$$animateCache:ua,$$animateQueue:ta,$$AnimateRunner:zs,$$animateAsyncRun:qs,$controller:Re,$exceptionHandler:Gs,$filter:ii,$interpolate:xi,$http:Hi,$httpParamSerializer:Vi,$location:Ji,$log:eo,$parse:gi,$$rAFScheduler:ia,$rootScope:oo,$router:ec,$sce:He,$sceDelegate:Ie,$sse:Cu,$templateCache:Ks,$templateRequest:po,$urlConfig:Ya,$view:Mc,$transitions:wl,$state:Cl,$viewScroll:Sl,$templateFactory:xl,$url:Il,$stateRegistry:Xl,$eventBus:Wc})}]).factory("$stateParams",[ee.$router,t=>t.params]).value("$trace",$c)}(this)}bootstrap(t,e,n){if(n=n||{strictDi:!1},(t instanceof Element||t instanceof Document)&&Qt(t))throw xu("btstrpd","App already bootstrapped");Array.isArray(e)&&(this.bootsrappedModules=e),this.bootsrappedModules.unshift(["$provide",e=>{e.value("$rootElement",t)}]),this.bootsrappedModules.unshift("ng");const r=Se(this.bootsrappedModules,n.strictDi);return r.invoke([ee.$rootScope,ee.$rootElement,ee.$compile,ee.$injector,(t,e,n,r)=>{this.$injector=r,Pt(e,"$injector",r);if(n(e)(t),!vt(r,"strictDi"))try{r.invoke(()=>{})}catch(t){r.strictDi=!!/strict mode/.exec(t&&t.toString())}r.get(ee.$stateRegistry).get().map(t=>t.$$state().resolvables).reduce(Ra,[]).filter(t=>"deferred"===t.deps).forEach(t=>t.deps=Ae(t.resolveFn,r.strictDi))}]),r}injector(t,e){return Se(t,e)}init(t){let e,n;const r={};it.forEach(r=>{const s=`${r}app`;t.hasAttribute&&t.hasAttribute(s)&&(e=t,n=t.getAttribute(s))}),it.forEach(r=>{const s=`${r}app`;let i;!e&&(i=t.querySelector(`[${s.replace(":","\\:")}]`))&&(e=i,n=i.getAttribute(s))}),e&&(r.strictDi=null!==function(t,e){let n,r;const s=it.length;for(r=0;r<s;++r)if(n=it[r]+e,E(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return W(t,"module"),e&&vt(Ou,t)&&(Ou[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(Ou,t,()=>{if(!e)throw Au("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new ie(t,e,n)})}};document.addEventListener("DOMContentLoaded",()=>ku.init(document),{once:!0}),t.angular=ku});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).angular={})}(this,function(e){"use strict";const t="ng-valid",n="ng-invalid",r="ng-pristine",s="ng-dirty",i="ng-untouched",o="ng-touched",a="ng-empty",c="ng-not-empty",l=/^((?:x|data)[-])/i,u=/[-]+(.)/g,h={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},d=Symbol("isProxy");function p(e){return!(!e||!e[d])}const f=de("ng");let $=0;function m(){return $+=1,$}function g(e){return E(e)?e.toLowerCase():e}function v(e){if(null==e||_(e))return!1;if(Array.isArray(e)||e instanceof Array||E(e))return!0;const t="length"in Object(e)&&e.length;return x(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function y(e){return void 0===e}function b(e){return void 0!==e}function w(e){return null!==e&&"object"==typeof e}function E(e){return"string"==typeof e}function C(e){return null===e}function S(e){return null==e}function x(e){return"number"==typeof e}function A(e){return"[object Date]"===toString.call(e)}function O(e){switch(toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function k(e){return"function"==typeof e}function T(e){return"[object RegExp]"===toString.call(e)}function _(e){return e&&e.window===e}function j(e){return e&&e.$watch}function L(e){return"boolean"==typeof e}function N(e){return e&&k(e.then)}function R(e){return E(e)?e.trim():e}function V(e,t){const n=t;return e.replace(/[A-Z]/g,(e,t)=>(t?n:"")+e.toLowerCase())}function M(e,...t){return function(e,t){const n=e.$$hashKey;for(let n=0,r=t.length;n<r;++n){const r=t[n];if(!w(r)&&!k(r))continue;const s=Object.keys(r);for(let t=0,n=s.length;t<n;t++){const n=s[t],i=r[n];e[n]=i}}return function(e,t){t?e.$$hashKey=t:delete e.$$hashKey}(e,n),e}(e,t)}function P(e){return Number.isNaN(e)}function D(e,t){return M(Object.create(e),t)}function U(e){return k(e.toString)&&e.toString!==toString}function I(e){return!(!e||!(e.nodeName||e.attr&&e.find))}function H(e){return g(e.nodeName)}function F(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function q(e,t){const n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function B(e,t){return e===t||e!=e&&t!=t}function z(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;const n=typeof e;let r,s,i;if(n===typeof t&&"object"===n){if(!Array.isArray(e)){if(A(e))return!!A(t)&&B(e.getTime(),t.getTime());if(T(e))return!!T(t)&&e.toString()===t.toString();if(j(e)||j(t)||_(e)||_(t)||Array.isArray(t)||A(t)||T(t))return!1;for(s in i=Object.create(null),e)if("$"!==s.charAt(0)&&!k(e[s])){if(!z(e[s],t[s]))return!1;i[s]=!0}for(s in t)if(!(s in i)&&"$"!==s.charAt(0)&&b(t[s])&&!k(t[s]))return!1;return!0}if(!Array.isArray(t))return!1;if((r=e.length)===t.length){for(s=0;s<r;s++)if(!z(e[s],t[s]))return!1;return!0}}return!1}function W(e,t){if("hasOwnProperty"===e)throw f("badname","hasOwnProperty is not a valid {0} name",t)}function K(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=`${e}`;break;default:e=!U(e)||Array.isArray(e)||A(e)?Y(e):e.toString()}return e}function G(e,t,n){return e.concat(Array.prototype.slice.call(t,n))}function Q(e,t){return Array.prototype.slice.call(e,t)}function J(e,t){const n=arguments.length>2?Q(arguments,2):[];return!k(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,G(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function Z(e,t){let n=t;return"string"==typeof e&&"$"===e.charAt(0)&&"$"===e.charAt(1)?n=void 0:_(t)?n="$WINDOW":t&&window.document===t?n="$DOCUMENT":j(t)&&(n="$SCOPE"),n}function Y(e,t){if(!y(e))return x(t)||(t=t?2:null),JSON.stringify(e,Z,t)}function X(e,t,n){const r=e.getTimezoneOffset(),s=function(e,t){const n=Date.parse(`Jan 01, 1970 00:00:00 ${e}`)/6e4;return P(n)?t:n}(t,r);return function(e,t){const n=new Date(e.getTime());return n.setMinutes(n.getMinutes()+t),n}(e,1*(s-r))}function ee(e){const t={};return(e||"").split("&").forEach(e=>{let n,r,s;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),-1!==n&&(r=e.substring(0,n),s=e.substring(n+1)),r=ne(r),b(r)&&(s=!b(s)||ne(s),ve(t,r)?Array.isArray(t[r])?t[r].push(s):t[r]=[t[r],s]:t[r]=s))}),t}function te(e){const t=[];return e&&Object.entries(e).forEach(([e,n])=>{Array.isArray(n)?n.forEach(n=>{t.push(se(e,!0)+(!0===n?"":`=${se(n,!0)}`))}):t.push(se(e,!0)+(!0===n?"":`=${se(n,!0)}`))}),t.length?t.join("&"):""}function ne(e){try{return decodeURIComponent(e)}catch{}}function re(e){return se(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function se(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":"+")}const ie=["ng-","data-ng-"];function oe(e,t){if(Array.isArray(e)){t=t||[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(w(e)){t=t||{};for(const n in e)n.startsWith("$")&&"$"===n.charAt(1)||(t[n]=e[n])}return t||e}function ae(e,t="Assertion failed"){if(!e)throw new Error(t)}function ce(e,t,n){if(!e)throw f("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function le(e,t,n){return n&&Array.isArray(e)&&(e=e[e.length-1]),ce(k(e),t,`not a function, got ${e&&"object"==typeof e?e.constructor.name||"Object":typeof e}`),e}const ue={objectMaxDepth:5,urlErrorParamsEnabled:!0};function he(e){var t;return w(e)&&(b(e.objectMaxDepth)&&(ue.objectMaxDepth=x(t=e.objectMaxDepth)&&t>0?e.objectMaxDepth:NaN),b(e.urlErrorParamsEnabled)&&L(e.urlErrorParamsEnabled)&&(ue.urlErrorParamsEnabled=e.urlErrorParamsEnabled)),ue}function de(e){return function(...t){const n=t[0],r=t[1];let s=`[${e?`${e}:`:""}${n}] `;const i=Q(t,2).map(e=>function(e){if("function"==typeof e)return e.toString().replace(/ \{[\s\S]*$/,"");if(y(e))return"undefined";if("string"!=typeof e){const t=[];let n=structuredClone(p(e)?e.$target:e);return JSON.stringify(n,(e,n)=>{const r=Z(e,n);if(w(r)){if(t.indexOf(r)>=0)return"...";t.push(r)}return r})}return e}(e));return s+=r.replace(/\{\d+\}/g,e=>{const t=+e.slice(1,-1);return t<i.length?i[t]:e}),new Error(s)}}function pe(e){const t=e&&e.$$hashKey;if(t)return"function"==typeof t?e.$$hashKey():t;const n=typeof e;return"function"===n||"object"===n&&null!==e?(e.$$hashKey=`${n}:${m()}`,e.$$hashKey):"undefined"===n?`${n}:${m()}`:`${n}:${e}`}function fe(e,t){return e||t?e?t?(Array.isArray(e)&&(e=e.join(" ")),Array.isArray(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function $e(e){return e.replace(l,"").replace(u,(e,t,n)=>n?t.toUpperCase():t)}function me(e){return function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return!1;const n=e;return"true"===n.dataset[t]||"true"===n.getAttribute(t)}(e,"animate")}function ge(e){return!e||!Object.keys(e).length}function ve(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ye(e){let t=!1;return function(...n){if(t)return e.apply(this,n);t=!0}}function be(e=0){return new Promise(t=>setTimeout(t,e))}function we(e,t){return e.slice(0,t.length)===t}const Ee=new Map,Ce=1,Se=2,xe=3,Ae=4,Oe=5,ke=6,Te=7,_e=8,je=9,Le=10,Ne=11,Re=12,Ve=13,Me=14,Pe=15,De=16,Ue=17,Ie="-add",He="-remove",Fe="-active",qe="ng-animate",Be="$$ngAnimateChildren";let ze,We,Ke,Ge;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(ze="WebkitTransition",We="webkitTransitionEnd transitionend"):(ze="transition",We="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Ke="WebkitAnimation",Ge="webkitAnimationEnd animationend"):(Ke="animation",Ge="animationend");const Qe="Duration",Je=Ve,Ze="Delay",Ye="TimingFunction",Xe=Ke+Ze,et=Ke+Qe,tt=ze+Ze,nt=ze+Qe,rt=de("ng");function st(e,t,n){if(!e)throw rt("areq","Argument '{0}' is {1}",t||"?",n);return e}function it(e,t,n){let r="";return(e=Array.isArray(e)?e:e&&E(e)&&e.length?e.split(/\s+/):[]).forEach((e,s)=>{e&&e.length>0&&(r+=s>0?" ":"",r+=n?t+e:e+t)}),r}function ot(e){if(!e||!Array.isArray(e))return e;for(let t=0;t<e.length;t++){const n=e[t];if(n.nodeType===Node.ELEMENT_NODE)return n}}function at(e){if(!(e=e||{}).$$prepared){let t=e.domOperation||(()=>{});e.domOperation=function(){e.$$domOperationFired=!0,t(),t=()=>{}},e.$$prepared=!0}return e}function ct(e,t){lt(e,t),ut(e,t)}function lt(e,t){t.from&&(Object.assign(e.style,t.from),t.from=null)}function ut(e,t){t.to&&(Object.assign(e.style,t.to),t.to=null)}function ht(e,t,n){const r=t.options||{},s=n.options||{},i=`${r.addClass||""} ${s.addClass||""}`,o=`${r.removeClass||""} ${s.removeClass||""}`,a=function(e,t,n){const r=1,s=-1,i={};e=a(e),t=a(t),Object.keys(t).forEach(e=>{i[e]=r}),n=a(n),Object.keys(n).forEach(e=>{i[e]=i[e]===r?null:s});const o={addClass:"",removeClass:""};function a(e){E(e)&&(e=e.trim().split(" "));const t={};return e&&e.forEach(e=>{e.length&&(t[e]=!0)}),t}return Object.entries(i).forEach(([t,n])=>{let i,a;n===r?(i="addClass",a=!e[t]||e[t+He]):n===s&&(i="removeClass",a=e[t]||e[t+Ie]),a&&(o[i].length&&(o[i]+=" "),o[i]+=t)}),o}(e.getAttribute("class"),i,o);return s.preparationClasses&&(r.preparationClasses=ft(s.preparationClasses,r.preparationClasses),delete s.preparationClasses),M(r,s),a.addClass?r.addClass=a.addClass:r.addClass=null,a.removeClass?r.removeClass=a.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function dt(e,t){const n=t?"paused":"",r=Ke+"PlayState";return pt(e,[r,n]),[r,n]}function pt(e,t){const n=t[0];e.style[n]=t[1]}function ft(e,t){return e?t?`${e} ${t}`:e:t}let $t=1;const mt="ng",gt="$scope",vt=/-([a-z])/g,yt=/_([a-z])/g,bt=["multiple","selected","checked","disabled","readonly","required","open"],wt=["INPUT","SELECT","OPTION","TEXTAREA","BUTTON","FORM","DETAILS"];function Et(e,t){return t.toUpperCase()}function Ct(e){return e.replace(vt,Et)}function St(e){return e.replace(yt,Et)}function xt(e,t){const n=e[mt],r=n&&Ee.get(n);r&&(t?delete r.data[t]:r.data={},function(e){const t=e[mt],{data:n}=Ee.get(t);n&&Object.keys(n).length||(Ee.delete(t),e[mt]=void 0)}(e))}function At(e,t=!1){let n=e[mt],r=n&&Ee.get(n);return t&&!r&&(e[mt]=n=++$t,r={data:{}},Ee.set(n,r)),r}function Ot(e){return!/<|&#?\w+;/.test(e)}function kt(e){switch(e.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case Node.COMMENT_NODE:case void 0:return!0;default:return!1}}function Tt(e,t){e&&(Array.isArray(e)?e.forEach(e=>Tt(e,t)):(!t&&kt(e)&&Ft([e]),kt(e)&&Ft(e.querySelectorAll("*"))),delete e[mt],e.innerHTML="")}function _t(e,t,n){if(kt(e)){let r;const s=b(n),i=!s&&t&&!w(t),o=!t,a=At(e,!i),c=a&&a.data;if(s)c[Ct(t)]=n;else{if(o)return c;if(i)return c&&c[Ct(t)];for(r in t)c[Ct(r)]=t[r]}}}function jt(e,t,n){if(kt(e)){const r=At(e,!0);(r&&r.data)[Ct(t)]=n}else e.parentElement&&jt(e.parentElement,t,n)}function Lt(e,t){if(kt(e)){const n=At(e,!1),r=n&&n.data;if(!t)return;return r&&r[Ct(t)]}}function Nt(e){return Lt(e,gt)}function Rt(e,t){return jt(e,gt,t)}function Vt(e,t){return jt(e,"$isolateScope",t)}function Mt(e,t){return Pt(e,`$${t||"ngController"}Controller`)}function Pt(e,t){let n;for(e.nodeType===Node.DOCUMENT_NODE&&(e=e.documentElement);e;){if(b(n=Lt(e,t)))return n;e=e.parentNode||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host}}function Dt(e,t=!1){t||Tt(e);const n=e.parentNode;n&&n.removeChild(e)}function Ut(e){let t;if("string"==typeof e){t=(new DOMParser).parseFromString(e,"text/html").body.firstChild.cloneNode(!0)}else{if(!(e instanceof Element||e instanceof Node))throw new Error("Input must be an HTML string or a DOM element.");t=e.cloneNode(!0)}for(;t.firstChild;)t.removeChild(t.firstChild);const n=document.createElement("div");n.appendChild(t);const r=n.innerHTML;try{if(t.nodeType===Node.TEXT_NODE)return r.toLowerCase();if(t.nodeType===Node.COMMENT_NODE)return`\x3c!--${t.data.trim()}--\x3e`;{const e=r.match(/^(<[^>]+>)/);if(e)return e[1].replace(/^<([\w-]+)/,(e,t)=>"<"+t.toLowerCase())}}catch{return r.toLowerCase()}return r.toLowerCase()}function It(e){let t=e[0];const n=e[e.length-1];let r;for(let s=1;t!==n&&(t=t.nextSibling);s++)(r||e[s]!==t)&&(r||(r=Array.prototype.slice.call(e,0,s)),r.push(t));return r||e}function Ht(e,t){const n=t.toLowerCase();return!(!bt.includes(n)||!wt.includes(e.nodeName))&&n}function Ft(e){for(let t=0,n=e.length;t<n;t++)xt(e[t])}function qt(e){return Pt(e,"$injector")}function Bt(e){const t=document.createElement("template");return t.innerHTML=e.trim(),t.content.firstChild}function zt(e){const t=document.createElement("template");return t.innerHTML=e.trim(),t.content.childNodes}function Wt(e){switch(Tt(e,!0),e.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:e.replaceChildren()}}function Kt(e,t,n){if(n){const e=ot(n);!e||e.parentNode||e.previousSibling||(n=null)}n?n.after(e):t.prepend(e)}function Gt(e,t,n){const r=e.style.visibility,s=e.style.position,i=e.style.pointerEvents;Object.assign(e.style,{visibility:"hidden",position:"absolute",pointerEvents:"none"}),Kt(e,t,n),requestAnimationFrame(()=>{e.style.visibility=r,e.style.position=s,e.style.pointerEvents=i})}function Qt(){const e=document.querySelector("base")?.getAttribute("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""}const Jt=Object.freeze({$attrs:"$attrs",$scope:"$scope",$element:"$element",$$animateCache:"$$animateCache",$$animateCssDriver:"$$animateCssDriver",$$animateJs:"$$animateJs",$$animateJsDriver:"$$animateJsDriver",$$animateQueue:"$$animateQueue",$$animation:"$$animation",$$rAFScheduler:"$$rAFScheduler",$$taskTrackerFactory:"$$taskTrackerFactory",$anchorScroll:"$anchorScroll",$animate:"$animate",$animateCss:"$animateCss",$aria:"$aria",$compile:"$compile",$controller:"$controller",$document:"$document",$eventBus:"$eventBus",$exceptionHandler:"$exceptionHandler",$filter:"$filter",$http:"$http",$httpParamSerializer:"$httpParamSerializer",$interpolate:"$interpolate",$location:"$location",$log:"$log",$viewScroll:"$viewScroll",$parse:"$parse",$rootScope:"$rootScope",$rootElement:"$rootElement",$router:"$router",$sce:"$sce",$sceDelegate:"$sceDelegate",$state:"$state",$stateRegistry:"$stateRegistry",$sse:"$sse",$$sanitizeUri:"$$sanitizeUri",$$sanitizeUriProvider:"$$sanitizeUriProvider",$templateCache:"$templateCache",$templateFactory:"$templateFactory",$templateRequest:"$templateRequest",$transitions:"$transitions",$urlConfig:"$urlConfig",$url:"$url",$view:"$view",$window:"$window",$provide:"$provide",$injector:"$injector",$compileProvider:"$compileProvider",$animateProvider:"$animateProvider",$filterProvider:"$filterProvider",$controllerProvider:"$controllerProvider"});function Zt(e){return e.map(e=>e+"Provider")}const Yt="$injector",Xt="$compileProvider";class en{constructor(e,t,n){ae(E(e),"name required"),ae(Array.isArray(t),"requires array required"),this.name=e,this.requires=t,this.invokeQueue=[],this.configBlocks=[],this.runBlocks=[],n&&this.config(n),this.services=[]}value(e,t){return this.invokeQueue.push([Jt.$provide,"value",[e,t]]),this}constant(e,t){return this.invokeQueue.unshift([Jt.$provide,"constant",[e,t]]),this}config(e){return this.configBlocks.push([Yt,"invoke",[e]]),this}run(e){return this.runBlocks.push(e),this}component(e,t){return t&&k(t)&&(t.$$moduleName=e),this.invokeQueue.push([Xt,"component",[e,t]]),this}factory(e,t){return t&&k(t)&&(t.$$moduleName=e),this.invokeQueue.push([Jt.$provide,"factory",[e,t]]),this}service(e,t){return t&&k(t)&&(t.$$moduleName=e),this.services.push(e),this.invokeQueue.push([Jt.$provide,"service",[e,t]]),this}provider(e,t){return t&&k(t)&&(t.$$moduleName=e),this.invokeQueue.push([Jt.$provide,"provider",[e,t]]),this}decorator(e,t){return t&&k(t)&&(t.$$moduleName=e),this.configBlocks.push([Jt.$provide,"decorator",[e,t]]),this}directive(e,t){return t&&k(t)&&(t.$$moduleName=e),this.invokeQueue.push([Xt,"directive",[e,t]]),this}animation(e,t){return t&&k(t)&&(t.$$moduleName=e),this.invokeQueue.push(["$animateProvider","register",[e,t]]),this}filter(e,t){return t&&k(t)&&(t.$$moduleName=e),this.invokeQueue.push(["$filterProvider","register",[e,t]]),this}controller(e,t){return t&&k(t)&&(t.$$moduleName=e),this.invokeQueue.push(["$controllerProvider","register",[e,t]]),this}}const tn=/^([^(]+?)=>/,nn=/^[^(]*\(\s*([^)]*)\)/m,rn=/^\s*(_?)(\S+?)\1\s*$/,sn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,on=de(Yt),an="Provider",cn=!0;class ln{constructor(e){this.cache={},this.strictDi=e,this.path=[],this.modules={}}get(e){if(ve(this.cache,e)){if(this.cache[e]===cn)throw on("cdep","Circular dependency found: {0}",`${e} <- ${this.path.join(" <- ")}`);return this.cache[e]}this.path.unshift(e),this.cache[e]=cn;try{this.cache[e]=this.factory(e)}catch(t){throw delete this.cache[e],t}return this.cache[e]}injectionArgs(e,t,n){const r=[],s=function(e,t,n){let r,s,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw on("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);s=function(e){const t=dn(e).replace(sn,"");return t.match(tn)||t.match(nn)}(e),s[1].split(/,/).forEach(function(e){e.replace(rn,function(e,t,n){r.push(n)})})}e.$inject=r}}else Array.isArray(e)?(i=e.length-1,le(e[i],"fn"),r=e.slice(0,i)):le(e,"fn",!0);return r}(e,this.strictDi,n);for(let e=0,{length:n}=s;e<n;e++){const n=s[e];if("string"!=typeof n)throw on("itkn","Incorrect injection token! Expected service name as string, got {0}",n);r.push(t&&ve(t,n)?t[n]:this.get(n))}return r}invoke(e,t,n,r){"string"==typeof n&&(r=n,n=null);const s=this.injectionArgs(e,n,r);return Array.isArray(e)&&(e=e[e.length-1]),/^class\b/.test(dn(e))?(s.unshift(null),new(Function.prototype.bind.apply(e,s))):e.apply(t,s)}instantiate(e,t,n){const r=Array.isArray(e)?e[e.length-1]:e,s=this.injectionArgs(e,t,n);return s.unshift(null),new(Function.prototype.bind.apply(r,s))}loadNewModules(){}factory(e){console.error(`Unhandled ${e}`)}}class un extends ln{constructor(e,t){super(t),this.cache=e}factory(e){throw this.path.push(e),on("unpr","Unknown provider: {0}",this.path.join(" <- "))}loadNewModules(){}}class hn extends ln{constructor(e,t){super(t),this.providerInjector=e,this.modules=e.modules}factory(e){const t=this.providerInjector.get(e+an);return this.invoke(t.$get,t,void 0,e)}has(e){const t=ve(this.providerInjector.cache,e+an),n=ve(this.cache,e);return t||n}loadNewModules(){}}function dn(e){return Function.prototype.toString.call(e)}const pn=/^([^(]+?)=>/,fn=/^[^(]*\(\s*([^)]*)\)/m,$n=/,/,mn=/^\s*(_?)(\S+?)\1\s*$/,gn=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,vn=de(Yt),yn="Provider";function bn(e,t=!1){ae(Array.isArray(e),"modules required");const n=new Map,r={$provide:{provider:Cn(c),factory:Cn(l),service:Cn(function(e,t){return l(e,[Yt,e=>e.instantiate(t)])}),value:Cn(function(e,t){return r[e+yn]={$get:()=>t}}),constant:Cn(function(e,t){W(e,"constant"),s.cache[e]=t,i.cache[e]=t}),decorator:function(e,t){const n=s.get(e+yn),r=n.$get;n.$get=function(){const e=o.invoke(r,n);return o.invoke(t,null,{$delegate:e})}}}},s=r.$injector=new un(r,t),i=new hn(s,t);r.$injectorProvider={$get:()=>i};let o=i;const a=u(e);return o=i.get(Yt),a.forEach(e=>e&&o.invoke(e)),o.loadNewModules=e=>u(e).forEach(e=>e&&o.invoke(e)),o;function c(e,t){let n;if(W(e,"service"),n=k(t)||Array.isArray(t)?s.instantiate(t):t,!n.$get)throw vn("pget","Provider '{0}' must define $get factory method.",e);return r[e+yn]=n,n}function l(e,t){return c(e,{$get:()=>{const n=o.invoke(t,this);if(y(n))throw vn("undef","Provider '{0}' must return a value from $get factory method.",e);return n}})}function u(e){ce(y(e)||Array.isArray(e),"modulesToLoad","not an array");let t=[];return e.forEach(e=>{if(!n.get(e)){n.set(e,!0);try{if(E(e)){const n=window.angular.module(e);o.modules[e]=n,t=t.concat(u(n.requires)).concat(n.runBlocks);n.invokeQueue.concat(n.configBlocks).forEach(e=>{const t=s.get(e[0]);t[e[1]].apply(t,e[2])})}else k(e)||Array.isArray(e)?t.push(s.invoke(e)):le(e,"module")}catch(t){throw Array.isArray(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t.message=`${t.message}\n${t.stack}`),vn("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}}),t}}function wn(e){const t=function(e){return Function.prototype.toString.call(e)}(e).replace(gn,"");return t.match(pn)||t.match(fn)}function En(e,t,n){let r,s,i;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw vn("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);s=wn(e),s[1].split($n).forEach(function(e){e.replace(mn,function(e,t,n){r.push(n)})})}e.$inject=r}}else Array.isArray(e)?(i=e.length-1,le(e[i],"fn"),r=e.slice(0,i)):le(e,"fn",!0);return r}function Cn(e){return function(t,n){if(!w(t))return e(t,n);Object.entries(t).forEach(([t,n])=>{e(t,n)})}}class Sn{constructor(e){if(ce(e,"element"),this.initial=null,this._node=null,this._element=void 0,this._nodes=void 0,this.linked=!1,this.isList=!1,E(e)){this.initial=e;let t=Bt(e);switch(!0){case t instanceof Element:this.element=t;break;case t instanceof Node:this.node=t}}else if(e instanceof NodeList)this.initial=Array.from(e).map(e=>e.cloneNode(!0)),1==e.length?this.node=e[0]:(this._nodes=Array.from(e),this.isList=!0);else if(e instanceof Element)this.initial=e.cloneNode(!0),this.element=e;else if(e instanceof Node)this.initial=e.cloneNode(!0),this._node=e;else{if(!(e instanceof Array))throw new Error("Invalid element passed to NodeRef");1==e.length?(this.initial=e[0].cloneNode(!0),this.node=e[0]):(this.initial=Array.from(e).map(e=>e.cloneNode(!0)),this.nodes=e)}}get element(){return ce(this._element,"element"),this._element}set element(e){ce(e instanceof Element,"element"),this._element=e,this._nodes=void 0,this.isList=!1}get node(){return ce(this._node||this._element,"node"),this._node||this._element}set node(e){ce(e instanceof Node,"node"),this._node=e,e.nodeType===Node.ELEMENT_NODE?this._element=e:this._element=void 0}set nodes(e){ce(Array.isArray(e)&&e.every(e=>e instanceof Node),"nodes"),this._nodes=e,this.isList=!0}get nodes(){return ce(this._nodes,"nodes"),this._nodes}get nodelist(){if(ce(this.isList,"nodes"),0===this._nodes.length)return this._nodes;if(this._nodes[0].parentElement)return this._nodes[0].parentElement.childNodes;{const e=document.createDocumentFragment();return this._nodes.forEach(t=>{e.appendChild(t)}),e.childNodes}}get dom(){return this.isList?this.nodelist:this.node}get size(){return this.isList?this._nodes.length:1}getAny(){return this.isList?this._nodes[0]:this._element||this._node}getAll(){return this.isList?this._nodes:this._element||this._node}collection(){return this.isList?Array.from(this._nodes):[this._element||this._node]}getIndex(e){return this.isList?this._nodes[e]:this.node}setIndex(e,t){ce(null!==e,"index"),ce(t,"node"),this.isList?this._nodes[e]=t:this.node=t}clone(){const e=this.isList?this.nodes.map(e=>e.cloneNode(!0)):this.node.cloneNode(!0);return new Sn(e)}isElement(){return void 0!==this._element}}const xn=de("$controller"),An=/^(\S+)(\s+as\s+([\w$]+))?$/;function On(e,t){if(E(e)){const t=An.exec(e);if(t)return t[3]}}class kn{constructor(){this.controllers=new Map}has(e){return this.controllers.has(e)}register(e,t){W(e,"controller"),w(e)?Object.entries(e).forEach(([e,t])=>{this.controllers.set(e,t)}):this.controllers.set(e,t)}$get=["$injector",e=>(t,n,r,s)=>{let i,o,a,c=s&&E(s)?s:null;if(r=!0===r,E(t)){if(o=t.match(An),!o)throw xn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);if(a=o[1],c=c||o[3],!(t=this.controllers.get(a)))throw xn("ctrlreg","The controller with the name '{0}' is not registered.",a);le(t,a,!0)}if(r){const r=(Array.isArray(t)?t[t.length-1]:t).prototype;return i=Object.create(r||null),c&&(i.$controllerIdentifier=c,this.addIdentifier(n,c,i,a||t.name)),function(){const r=e.invoke(t,i,n,a);return r!==i&&(w(r)||k(r))&&(i=r,c&&(i.$controllerIdentifier=c,this.addIdentifier(n,c,i,a||t.name))),i}.bind(this,{instance:i,identifier:c})}return i=e.instantiate(t,n,a),c&&this.addIdentifier(n,c,i,a||t.name),i}];addIdentifier(e,t,n,r){if(!e||!w(e.$scope))throw de("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,t);e.$scope[t]=n,e.$scope.$controllerIdentifier=t}}const Tn=_n(window.location.href);function _n(e){if(!E(e))return e;const t=new URL(e,window.location.href),n=t.hostname.includes(":")?`[${t.hostname}]`:t.hostname;return{href:t.href,protocol:t.protocol,host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:n,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:`/${t.pathname}`}}function jn(e,t){return e=_n(e),t=_n(t),e.protocol===t.protocol&&e.host===t.host}function Ln(e){return e.replace(/#$/,"")}const Nn=de("$sce"),Rn={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Vn(e){if("self"===e)return e;if(E(e)){if(e.indexOf("***")>-1)throw Nn("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=(t=e,t.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${e}$`)}var t;if(T(e))return new RegExp(`^${e.source}$`);throw Nn("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}class Mn{constructor(){let e=["self"],t=[];this.trustedResourceUrlList=function(t){return arguments.length&&(e=t.map(e=>Vn(e))),e},this.bannedResourceUrlList=function(e){return arguments.length&&(t=e.map(e=>Vn(e))),t},this.$get=[Jt.$injector,Jt.$$sanitizeUri,Jt.$exceptionHandler,function(n,r,s){let i=function(){s(Nn("unsafe","Attempting to use an unsafe value in a safe context."))};function o(e,t){return"self"===e?jn(t,Tn)||function(e){return jn(e,document.baseURI)}(t):!!e.exec(t.href)}function a(e){const 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().toString()},t}n.has("$sanitize")&&(i=n.get("$sanitize"));const c=a(),l={};return l[Rn.HTML]=a(c),l[Rn.CSS]=a(c),l[Rn.MEDIA_URL]=a(c),l[Rn.URL]=a(l[Rn.MEDIA_URL]),l[Rn.JS]=a(c),l[Rn.RESOURCE_URL]=a(l[Rn.URL]),{trustAs:function(e,t){const n=ve(l,e)?l[e]:null;if(n){if(null===t||y(t)||""===t)return t;if("string"==typeof t)return new n(t);s(Nn("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e))}else s(Nn("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t))},getTrusted:function(n,a){if(null===a||y(a)||""===a)return a;const c=ve(l,n)?l[n]:null;return c&&a instanceof c?a.$$unwrapTrustedValue():(k(a.$$unwrapTrustedValue)&&(a=a.$$unwrapTrustedValue()),n===Rn.MEDIA_URL||n===Rn.URL?r(a.toString(),n===Rn.MEDIA_URL):n===Rn.RESOURCE_URL?function(n){const r=_n(n.toString());let s,i,a=!1;for(s=0,i=e.length;s<i;s++)if(o(e[s],r)){a=!0;break}if(a)for(s=0,i=t.length;s<i;s++)if(o(t[s],r)){a=!1;break}return a}(a)?a:void s(Nn("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",a.toString())):n===Rn.HTML?i():void s(Nn("unsafe","Attempting to use an unsafe value in a safe context.")))},valueOf:function(e){return e instanceof c?e.$$unwrapTrustedValue():e}}}]}}function Pn(){let e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=[Jt.$parse,Jt.$sceDelegate,(t,n)=>{const r=oe(Rn);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=function(e){return e}),r.parseAs=(e,n)=>{const s=t(n);return s.literal&&s.constant?s:t(n,t=>r.getTrusted(e,t))};const s=r.parseAs,{getTrusted:i}=r,{trustAs:o}=r;return Object.entries(Rn).forEach(([e,t])=>{const n=g(e);r[St(`parse_as_${n}`)]=function(e){return s(t,e)},r[St(`get_trusted_${n}`)]=function(e){return i(t,e)},r[St(`trust_as_${n}`)]=function(e){return o(t,e)}}),r}]}const Dn={};function Un(e,t,n,r){return{restrict:"A",compile(s,i){const o=e(i[n]);return(e,n)=>{const s=n=>{try{o(e,{$event:n})}catch(e){t(e)}};n.addEventListener(r,s),e.$on("$destroy",()=>n.removeEventListener(r,s))}}}}function In(e,t,n,r,s){return{restrict:"A",compile(i,o){const a=e(o[r]);return e=>{const r=n=>{try{a(e,{$event:n})}catch(e){t(e)}};n.addEventListener(s,r),e.$on("$destroy",()=>n.removeEventListener(s,r))}}}}"click copy cut dblclick focus blur keydown keyup load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup paste submit touchstart touchend touchmove".split(" ").forEach(e=>{const t=$e(`ng-${e}`);Dn[t]=[Jt.$parse,Jt.$exceptionHandler,(n,r)=>Un(n,r,t,e)]});const Hn=de("$compile"),Fn=/^\w/,qn=document.createElement("div");class Bn{static $nonscope=!0;constructor(e,t,n,r,s,i){if(this.$rootScope=e,this.$animate=t,this.$exceptionHandler=n,this.$sce=r,i){const e=Object.keys(i);for(let t=0,n=e.length;t<n;t++){const n=e[t];this[n]=i[n]}}else this.$attr={};this.$nodeRef=s}get $$element(){return this.$nodeRef.node}$normalize=$e;$addClass(e){e&&e.length>0&&(me(this.$$element)?this.$animate.addClass(this.$$element,e):this.$nodeRef.element.classList.add(e))}$removeClass(e){e&&e.length>0&&(me(this.$$element)?this.$animate.removeClass(this.$$element,e):this.$nodeRef.element.classList.remove(e))}$updateClass(e,t){const n=zn(e,t);n&&n.length&&(me(this.$$element)?this.$animate.addClass(this.$$element,n):this.$nodeRef.element.classList.add(...n.trim().split(/\s+/)));const r=zn(t,e);r&&r.length&&(me(this.$$element)?this.$animate.removeClass(this.$$element,r):this.$nodeRef.element.classList.remove(...r.trim().split(/\s+/)))}$set(e,t,n,r){const s=Ht(this.$$element,e),i=h[e];let o=e;if(s?(this.$$element[e]=t,r=s):i&&(this[i]=t,o=i),this[e]=t,r?this.$attr[e]=r:(r=this.$attr[e])||(this.$attr[e]=r=V(e,"-")),"img"===this.$nodeRef.node.nodeName.toLowerCase()&&"srcset"===e&&(this[e]=t=this.sanitizeSrcset(t,"$set('srcset', value)")),!1!==n){let e=p(this.$$element)?this.$$element.$target:this.$$element;null===t||y(t)?e.removeAttribute(r):Fn.test(r)?s&&!1===t?e.removeAttribute(r):s?e.toggleAttribute(r,t):e.setAttribute(r,t):this.setSpecialAttr(this.$$element,r,t)}const{$$observers:a}=this;a&&a[o]&&a[o].forEach(e=>{try{e(t)}catch(e){this.$exceptionHandler(e)}})}$observe(e,t){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[e]||(n[e]=[]);return r.push(t),r.$$inter||!ve(this,e)||y(this[e])||t(this[e]),function(){q(r,t)}}setSpecialAttr(e,t,n){qn.innerHTML=`<span ${t}>`;const{attributes:r}=qn.firstChild,s=r[0];r.removeNamedItem(s.name),s.value=n,e.attributes.setNamedItem(s)}sanitizeSrcset(e,t){let n;if(!e)return e;if(!E(e))throw Hn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());let r="";const s=R(e),i=/\s/.test(s)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,o=s.split(i),a=Math.floor(o.length/2);for(n=0;n<a;n++){const e=2*n;r+=this.$sce.getTrustedMediaUrl(R(o[e])),r+=" "+R(o[e+1])}const c=R(o[2*n]).split(/\s/);return r+=this.$sce.getTrustedMediaUrl(R(c[0])),2===c.length&&(r+=" "+R(c[1])),r}}function zn(e,t){const n=new Set(e.split(/\s+/)),r=new Set(t.split(/\s+/));return Array.from(n).filter(e=>!r.has(e)).join(" ")}function Wn(e,t){return{restrict:"A",compile:()=>(n,r)=>{""===t&&(t=e);const s=Ct(t);n[s]||(n[s]=r.getAttribute(e));const i=new MutationObserver(t=>{const r=t[0].target.getAttribute(e);n[s]!==r&&(n[s]=r)});i.observe(r,{attributes:!0,attributeFilter:[e]}),n.$on("$destroy",()=>{i.disconnect()})}}}const Kn=de("$compile"),Gn=["ngIf","ngRepeat"],Qn=["ngSrc","ngSrcset","src","srcset"],Jn=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,Zn=/^(on[a-z]+|formaction)$/,Yn="Directive";class Xn{static $inject=[Jt.$provide,Jt.$$sanitizeUriProvider];constructor(e,t){const n={},r=Object.create(null);function s(e,t,n){const s=/^([@&]|[=<]())(\??)\s*([\w$]*)$/,i=Object.create(null);return Object.entries(e).forEach(([e,o])=>{if((o=o.trim())in r)return void(i[e]=r[o]);const a=o.match(s);if(!a)throw Kn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,e,o,n?"controller bindings definition":"isolate scope definition");i[e]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||e},a[4]&&(r[o]=i[e])}),i}function i(e,t){const n={isolateScope:null,bindToController:null};if(w(e.scope)&&(!0===e.bindToController?(n.bindToController=s(e.scope,t,!0),n.isolateScope={}):n.isolateScope=s(e.scope,t,!1)),w(e.bindToController)&&(n.bindToController=s(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw Kn("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function t(r,s){return ce(r,"name"),W(r,"directive"),E(r)?(!function(e){const t=e.charAt(0);if(!t||t!==g(t))throw Kn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Kn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(r),ce(s,"directiveFactory"),ve(n,r)||(n[r]=[],e.factory(r+Yn,["$injector","$exceptionHandler",function(e,t){const s=[];return n[r].forEach((n,i)=>{try{let t=e.invoke(n);const o=e=>()=>e;k(t)?t={compile:o(t)}:!t.compile&&t.link&&(t.compile=o(t.link)),t.priority=t.priority||0,t.index=i,t.name=t.name||r,t.require=function(e){const t=e.require||e.controller&&e.name;return!Array.isArray(t)&&w(t)&&Object.entries(t).forEach(([e,n])=>{const r=n.match(Jn);n.substring(r[0].length)||(t[e]=r[0]+e)}),t}(t),t.restrict=function(e,t){if(e&&(!E(e)||!/[EA]/.test(e)))throw Kn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(t.restrict,r),t.$$moduleName=n.$$moduleName,s.push(t)}catch(e){t(e)}}),s}])),n[r].push(s)):Object.entries(r).forEach(([e,n])=>t(e,n)),this},this.component=function(e,t){if(!E(e))return Object.entries(e).forEach(([e,t])=>this.component(e,t)),this;const n=t.controller||function(){};function r(e){function r(t){return k(t)||Array.isArray(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}const s=t.template||t.templateUrl?t.template:"",i={controller:n,controllerAs:On(t.controller)||t.controllerAs||"$ctrl",template:r(s),templateUrl:r(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return Object.entries(t).forEach(([e,t])=>{"$"===e.charAt(0)&&(i[e]=t)}),i}return Object.entries(t).forEach(([e,t])=>{"$"===e.charAt(0)&&(r[e]=t,k(n)&&(n[e]=t))}),r.$inject=["$injector"],this.directive(e,r)},this.aHrefSanitizationTrustedUrlList=function(e){if(!b(e))return t.aHrefSanitizationTrustedUrlList();t.aHrefSanitizationTrustedUrlList(e)},this.imgSrcSanitizationTrustedUrlList=function(e){if(!b(e))return t.imgSrcSanitizationTrustedUrlList();t.imgSrcSanitizationTrustedUrlList(e)};let o=!1;this.strictComponentBindingsEnabled=function(e){return b(e)?(o=e,this):o};const a=Object.create(null);this.addPropertySecurityContext=function(e,t,n){const r=`${e.toLowerCase()}|${t.toLowerCase()}`;if(r in a&&a[r]!==n)throw Kn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,a[r],n);return a[r]=n,this},function(){function e(e,t){t.forEach(t=>{a[t.toLowerCase()]=e})}e(Rn.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(Rn.CSS,["*|style"]),e(Rn.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(Rn.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(Rn.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(e,t,r,s,c,u,h,d,f){let $;function m(){for(let e=0,t=$.length;e<t;++e)try{$[e]()}catch(e){r(e)}$=void 0}const g=t.startSymbol(),v=t.endSymbol(),C="{{"===g&&"}}"===v?e=>e:e=>e.replace(/\{\{/g,g).replace(/}}/g,v),S=/^ng(Attr|Prop|On|Observe|Window)([A-Z].*)$/;return x;function x(e,t,n,r,s){let i=new Sn(e),o=A(i,t,n,r,s),a=null;return function(e,t,n){if(!i)throw Kn("multilink","This element has already been linked.");ce(e,"scope"),i.getAny()&&Rt(i.getAny(),e);s&&s.needsNewScope&&(e=e.$parent.$new());n=n||{};let r,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=n;l&&l.$$boundTransclude&&(l=l.$$boundTransclude);a||(a=function(e){const t=e;if(!t)return"html";return"foreignobject"!==H(t)&&toString.call(t).match(/SVG/)?"svg":"html"}(u));if("html"!==a){const e=Bt("<div></div>");e.append(i.node);const t=G(a,e.innerHTML);r=new Sn(t[0])}else r=t?i.clone():i;if(c)for(const e in c)ce(r.element,"element"),jt(r.element,`$${e}Controller`,c[e].instance);t&&t(r.dom,e);o&&o(e,r,l);t||(i=o=null);return r.linked=!0,r.getAll()}}function A(e,t,n,s,i){const o=[];let a,c=!1;for(let l=0;l<e.size;l++){const u=new Bn(h,f,r,d),p=_(e.getIndex(l),u,0===l?n:void 0,s);let $,m,g;p.length&&($=V(p,e.getIndex(l),u,t,null,[],[],Object.assign({},i,{index:l,parentNodeRef:e,ctxNodeRef:e})));let v=$?.nodeLinkFn;if(v&&$.terminal||!(g=e.getIndex(l).childNodes)||!g.length)m=null;else{let e=v?($.transcludeOnThisElement||!$.templateOnThisElement)&&$.transclude:t;m=A(new Sn(g),e)}(v||m)&&(o.push({index:l,nodeLinkFnCtx:$,childLinkFn:m}),c=!0,a=a||v),i=null}return c?function(n,r,s){ce(r,"nodeRef");let i=[];if(a){const t=r.isList?r.nodes.length:1;i=new Array(t),o.forEach(t=>{let n=t.index;0===n?i[n]=r.isList?r.nodes[n]:r.node:e.getIndex(n)&&(i[n]=r.nodes[n])})}else r.isList?r.nodes.forEach(e=>i.push(e)):i.push(r.node);o.forEach(({index:e,nodeLinkFnCtx:r,childLinkFn:o})=>{const a=i[e];let c,l;a.stable=!0,r?.nodeLinkFn?(c=r.newScope?n.$new():n,l=r.transcludeOnThisElement?T(n,r.transclude,s):!r.templateOnThisElement&&s?s:!s&&t?T(n,t):null,r?.newScope&&Rt(a,c),r.nodeLinkFn(o,c,a,l)):o&&o(n,new Sn(a.childNodes),s)})}:null}function T(e,t,n){function r(r,s,i,o,a){r||((r=e.$transcluded(a)).$$transcluded=!0);return t(r,s,{parentBoundTranscludeFn:n,transcludeControllers:i,futureParentElement:o})}const s=r.$$slots=Object.create(null);for(const r in t.$$slots)t.$$slots[r]?s[r]=T(e,t.$$slots[r],n):s[r]=null;return r}function _(e,n,s,i){const o=[],{nodeType:a}=e,u=n.$attr;let h;switch(a){case Node.ELEMENT_NODE:h=e.nodeName.toLowerCase(),i!==$e(h)&&I(o,$e(h),"E",s);for(let t=0;t<e.attributes?.length;t++){let a=!1,h=!1,d=!1,p=!1,f=!1,$=e.attributes[t],m=$.name,g=$.value,v=$e(m.toLowerCase());const y=v.match(S);y&&(a="Attr"===y[1],h="Prop"===y[1],d="On"===y[1],p="Observe"===y[1],f="Window"===y[1],m=m.replace(l,"").toLowerCase().substring(4+y[1].length).replace(/_(.)/g,(e,t)=>t.toUpperCase())),h||d||f?(n[v]=g,u[v]=$.name,h?Q(e,o,v,m):d?o.push(Un(c,r,v,m)):o.push(In(c,r,window,v,m))):p?o.push(Wn(m,g)):(v=$e(m.toLowerCase()),u[v]=m,!a&&ve(n,v)||(n[v]=g,Ht(e,v)&&(n[v]=!0)),Z(e,o,g,v,a),v!==i&&I(o,v,"A",s))}"input"===h&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(e,n){const r=t(n,!0);r&&e.push({priority:0,compile:()=>(e,t)=>{r.expressions.forEach(n=>{e.$watch(n,()=>{const n=r(p(e)?e.$target:e);if(1===t.nodeType)t.innerHTML=n;else t.nodeValue=n})})}})}(o,e.nodeValue)}return o.sort(W),o}function N(e,t,n,r,s,i){let o;return e?x(t,n,r,s,i):function(){return o||(o=x(t,n,r,s,i),t=n=i=null),o.apply(this,arguments)}}function V(e,t,n,s,i,o,a,c){c=c||{};let l=-Number.MAX_VALUE,p=!1,{newScopeDirective:$,controllerDirectives:m,newIsolateScopeDirective:g,templateDirective:v,nonTlbTranscludeDirective:b,hasElementTranscludeDirective:S,ctxNodeRef:x,parentNodeRef:A}=c,O=!1,T=!1,L=new Sn(t);const V=c.index;let D,I,B;n.$nodeRef=L;let z,W=i,Q=s,Z=!1,ee=!1,ne=function(e,s,i,c){let l,p,v,b,E,C,x,A,O,T=s;t===i?(A=n,x=n.$nodeRef):(x=new Sn(i),A=new Bn(h,f,r,d,x,n)),b=s,g?v=s.$newIsolate():$&&(b=s.$parent),c&&(C=function(e,t,n,r){let s;j(e)||(r=n,n=t,t=e,e=void 0);S&&(s=E);n||(n=S?x.node.parentElement:x.node);if(!r)return c(e,t,s,n,T);{const i=c.$$slots[r];if(i)return i(e,t,s,n,T);if(y(i))throw Kn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Ut(x.element))}},C.$$boundTransclude=c,C.isSlotFilled=function(e){return!!c.$$slots[e]}),m&&(E=function(e,t,n,r,s,i,o){const a=Object.create(null);for(const c in r){const l=r[c],h={$scope:l===o||l.$$isolateScope?s:i,$element:e.node,$attrs:t,$transclude:n};let{controller:d}=l;"@"===d&&(d=t[l.name]);const p=u(d,h,!0,l.controllerAs);a[l.name]=p,e.isElement()&&jt(e.element,`$${l.name}Controller`,p.instance)}return a}(x,A,C,m,v,s,g)),g&&(v.$target.$$isolateBindings=g.$$isolateBindings,O=te(s,A,v,v.$$isolateBindings,g),O.removeWatches&&v.$on("$destroy",O.removeWatches));for(const e in E){const t=m[e],n=E[e],r=t.$$bindings.bindToController,s=n();n.instance=b.$new(s),jt(x.node,`$${t.name}Controller`,n.instance),n.bindingInfo=te(b,A,n.instance,r,t)}for(m&&Object.entries(m).forEach(([e,t])=>{const{require:n}=t;t.bindToController&&!Array.isArray(n)&&w(n)&&M(E[e].instance,P(e,n,x.element,E))}),E&&Object.values(E).forEach(e=>{const t=e.instance;if(k(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){r(e)}if(k(t.$onInit))try{t.$target.$onInit()}catch(e){r(e)}k(t.$onDestroy)&&b.$on("$destroy",()=>{t.$onDestroy()})}),l=0,p=o.length;l<p;l++){let e=o[l];const t=e.require&&P(e.directiveName,e.require,x.element,E);try{e(e.isolateScope?v:s,x.node,A,t,C)}catch(e){r(e,Ut(x.getAny()))}}for(g&&(g.template||null===g.templateUrl)&&(T=v),e&&i&&i.childNodes&&i.childNodes.length&&e(T,new Sn(i.childNodes),c),l=a.length-1;l>=0;l--){let e=a[l];const t=e.require&&P(e.directiveName,e.require,x.node,E);try{e.isolateScope&&Vt(x.element,v),e(e.isolateScope?v:s,x.node,A,t,C)}catch(e){r(e,Ut(x.getAny()))}}E&&Object.values(E).forEach(e=>{const t=e.instance;k(t.$postLink)&&t.$postLink()})};for(let i=0,u=e.length;i<u&&(D=e[i],B=void 0,!(l>D.priority));i++){z=D.scope,z&&(D.templateUrl||(w(z)?(K("new/isolated scope",g||$,D,L),g=D):K("new/isolated scope",g,D,L)),$=$||D),I=D.name;const h=D.replace&&(D.templateUrl||D.template),d=D.transclude&&!Gn.includes(D.name);if(!Z&&(h||d)){let t;for(let n=i+1;t=e[n++];)if(t.transclude&&!Gn.includes(t.name)||t.replace&&(t.templateUrl||t.template)){ee=!0;break}Z=!0}if(!D.templateUrl&&D.controller&&(m=m||Object.create(null),K(`'${I}' controller`,m[I],D,L),m[I]=D),z=D.transclude,z)if(O=!0,Gn.includes(D.name)||(K("transclusion",b,D,L),b=D),"element"===z)S=!0,l=D.priority,B=L,L=new Sn(document.createComment("")),n.$nodeRef=L,t=L.node,x.node=t,Y(new Sn(B.getAny()),t,V),Q=N(ee,B.getAny(),s,l,W&&W.name,{nonTlbTranscludeDirective:b});else{const e=Object.create(null);if(w(z)){B=document.createDocumentFragment();const t=Object.create(null),n=Object.create(null);Object.entries(z).forEach(([r,s])=>{const i="?"===s.charAt(0);s=i?s.substring(1):s,t[s]=r,e[r]=null,n[r]=i}),L.element.childNodes.forEach(r=>{const s=t[$e(H(r))];s?(n[s]=!0,e[s]=e[s]||document.createDocumentFragment(),e[s].appendChild(r)):B.appendChild(r)}),Object.entries(n).forEach(([e,t])=>{if(!t)throw Kn("reqslot","Required transclusion slot `{0}` was not filled.",e)});for(const t in e)if(e[t]){const n=e[t].childNodes;e[t]=N(ee,n,s)}B=B.childNodes}else B=t.cloneNode(!0).childNodes;Wt(t),Q=N(ee,B,s,void 0,void 0,{needsNewScope:D.$$isolateScope||D.$$newScope}),Q.$$slots=e}if(D.template)if(T=!0,K("template",v,D,L),v=D,z=k(D.template)?D.template(L.node,n):D.template,z=C(z),D.replace){if(W=D,B=Ot(z)?[]:er(G(D.templateNamespace,R(z))),E(B)&&(B=Array.from(zt(B)).filter(e=>e.nodeType===Node.ELEMENT_NODE)),t=B[0],1!==B.length||t.nodeType!==Node.ELEMENT_NODE)throw Kn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",I,"");Y(L,t),A&&A.setIndex(V,t);const r={$attr:{}},s=_(t,r),o=e.splice(i+1,e.length-(i+1));(g||$)&&U(s,g,$),e=e.concat(s).concat(o),F(n,r),u=e.length}else L.isElement()&&(L.element.innerHTML=z);if(D.templateUrl)T=!0,K("template",v,D,L),v=D,D.replace&&(W=D),ne=q(e.splice(i,e.length-i),L,n,t,O&&Q,o,a,{index:V,controllerDirectives:m,newScopeDirective:$!==D&&$,newIsolateScopeDirective:g,templateDirective:v,nonTlbTranscludeDirective:b,futureParentElement:c.futureParentElement}),u=e.length;else if(D.compile)try{const e=D.compile(L.getAny(),n,Q),t=D.$$originalDirective||D;k(e)?re(null,J(t,e)):e&&re(J(t,e.pre),J(t,e.post))}catch(e){r(e,Ut(L.getAny()))}D.terminal&&(p=!0,l=Math.max(l,D.priority))}return c.hasElementTranscludeDirective=S,{nodeLinkFn:ne,terminal:p,transclude:Q,transcludeOnThisElement:O,templateOnThisElement:T,newScope:$&&!0===$.scope};function re(e,t){e&&(e.require=D.require,e.directiveName=I,(g===D||D.$$isolateScope)&&(e=X(e,{isolateScope:!0})),o.push(e)),t&&(t.require=D.require,t.directiveName=I,(g===D||D.$$isolateScope)&&(t=X(t,{isolateScope:!0})),a.push(t))}}function P(e,t,n,r){let s;if(E(t)){const i=t.match(Jn),o=t.substring(i[0].length),a=i[1]||i[3],c="?"===i[2];if("^^"===a?n=n.parentElement?n.parentElement:void 0:(s=r&&r[o],s=s&&s.instance),!s){const e=`$${o}Controller`;s="^^"===a&&n&&n.nodeType===Node.DOCUMENT_NODE?null:n?a?Pt(n,e):Lt(n,e):void 0}if(!s&&!c)throw Kn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",o,e)}else if(Array.isArray(t)){s=[];for(let i=0,o=t.length;i<o;i++)s[i]=P(e,t[i],n,r)}else w(t)&&(s={},Object.entries(t).forEach(([t,i])=>{s[t]=P(e,i,n,r)}));return s||null}function U(e,t,n){for(let r=0,s=e.length;r<s;r++)e[r]=D(e[r],{$$isolateScope:t,$$newScope:n})}function I(t,r,s,o){let a=!1;if(ve(n,r))for(let n,c=e.get(r+Yn),l=0,u=c.length;l<u;l++)if(n=c[l],(y(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(!n.$$bindings){const e=n.$$bindings=i(n,n.name);w(e.isolateScope)&&(n.$$isolateBindings=e.isolateScope)}t.push(n),a=n}return a}function F(e,t){const n=t.$attr,r=e.$attr;Object.entries(e).forEach(([r,s])=>{"$"!==r.charAt(0)&&(t[r]&&t[r]!==s&&(s.length?s+=("style"===r?";":" ")+t[r]:s=t[r]),e.$set(r,s,!0,n[r]))}),Object.entries(t).forEach(([t,s])=>{ve(e,t)||"$"===t.charAt(0)||(e[t]=s,"class"!==t&&"style"!==t&&(r[t]=n[t]))})}function q(e,t,n,i,o,a,c,l){let u,h,d,p=[];const f=t.getAny(),$=e.shift(),m=D($,{templateUrl:null,transclude:null,replace:null,$$originalDirective:$}),g=k($.templateUrl)?$.templateUrl(t.element,n):$.templateUrl,{templateNamespace:v}=$;return Wt(t.element),s(g).then(r=>{let s,y,b,S;if(r=C(r),$.replace){if(b=Ot(r)?[]:E(r)?Array.from(zt(r)).filter(e=>e.nodeType!==Node.COMMENT_NODE&&e.nodeType!==Node.TEXT_NODE):er(G(v,R(r))),s=b[0],1!==b.length||s.nodeType!==Node.ELEMENT_NODE)throw Kn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$.name,g);y={$attr:{}},Y(t,s,l.index);const i=_(s,y);w($.scope)&&U(i,!0),e=i.concat(e),F(n,y)}else s=f,t.element.innerHTML=r;for(e.unshift(m),d=V(e,s,n,o,$,a,c,{...l,ctxNodeRef:t}),u=d?.nodeLinkFn,i&&Object.entries(i).forEach(([e,n])=>{n===s&&(i[e]=t)}),h=A(new Sn(t.getAny().childNodes),o);p.length;){const e=p.shift(),n=p.shift(),r=p.shift();let i=t.getAny();if(!e.$$destroyed){if(n!==f){const e=n.className;l.hasElementTranscludeDirective&&$.replace||(i=s.cloneNode(!0),n.appendChild(i));try{""!==e&&t.element.classList.forEach(e=>n.classList.add(e))}catch{}}S=d.transcludeOnThisElement?T(e,d.transclude,r):r,u(h,e,i,S)}}p=null}).catch(e=>{O(e)?r(e):r(new Error(e))}),function(e,t,n,r,s){let i=s;t.$$destroyed||(p?p.push(t,n,r):(u.transcludeOnThisElement&&(i=T(t,u.transclude,s)),u(h,t,n,r,i)))}}function W(e,t){const n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function K(e,t,n,r){function s(e){return e?` (module: ${e})`:""}if(t)throw Kn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,s(t.$$moduleName),n.name,s(n.$$moduleName),e,Ut(r.getAny()))}function G(e,t){switch(e=(e||"html").toLowerCase()){case"svg":case"math":{const n=document.createElement("div");return n.innerHTML=`<${e}>${t}</${e}>`,n.childNodes[0].childNodes}default:return t}}function Q(e,t,n,r){if(Zn.test(r))throw Kn("nodomevents","Property bindings for HTML DOM event properties are disallowed");const s=H(e),i=function(e,t){const n=t.toLowerCase();return a[`${e}|${n}`]||a[`*|${n}`]}(s,r);let o=e=>e;"srcset"!==r||"img"!==s&&"source"!==s?i&&(o=d.getTrusted.bind(d,i)):o=e=>function(e,t){if(!e)return e;if(!E(e))throw Kn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());let n="";const r=R(e),s=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,i=r.split(s),o=Math.floor(i.length/2);let a;for(a=0;a<o;a++){const e=2*a;n+=d.getTrustedMediaUrl(R(i[e])),n+=" "+R(i[e+1])}const c=R(i[2*a]).split(/\s/);return n+=d.getTrustedMediaUrl(R(c[0])),2===c.length&&(n+=" "+R(c[1])),n}(d.valueOf(e),"ng-prop-srcset"),t.push({priority:100,compile:function(e,t){const s=c(t[n]);return{pre:function(e,i){function a(){const t=s(e);i[r]=o(t)}a(),e.$watch(r,a),e.$watch(t[n],e=>{d.valueOf(e),a()})}}}})}function Z(e,n,r,s,i){const o=H(e),a=function(e,t){return"srcdoc"===t?d.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?d.RESOURCE_URL:d.MEDIA_URL:"xlinkHref"===t?"image"===e?d.MEDIA_URL:"a"===e?d.URL:d.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?d.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:d.URL}(o,s),c=!i,l=Qn.includes(s)||i;let u=t(r,c,a,l);if(u){if("multiple"===s&&"select"===o)throw Kn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Ut(e.outerHTML));if(Zn.test(s))throw Kn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:()=>({pre:function(e,n,i){const o=i.$$observers||(i.$$observers=Object.create(null)),c=i[s];c!==r&&(u=c&&t(c,!0,a,l),r=c),u&&(i[s]=u(e),(o[s]||(o[s]=[])).$$inter=!0,u.expressions.forEach(t=>{(i.$$observers&&i.$$observers[s].$$scope||e).$watch(t,()=>{let t=u(e);"class"===s?i.$updateClass(t,i.$$element.classList.value):i.$set(s,t)})}),0==u.expressions.length&&i.$set(s,c))}})})}}function Y(e,t,n){const r=e.getAny().parentNode;if(r)if(b(n)){const e=r.childNodes[n];e&&r.replaceChild(t,e)}else r.insertBefore(t,r.firstChild);const s=document.createDocumentFragment();e.collection().forEach(e=>{s.appendChild(e)}),e.node=t}function X(e,t){return M(function(){return e.apply(null,arguments)},e,t)}function ee(e,t){if(o)throw Kn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function te(e,n,r,s,i){const o=[],a={};let l;function u(t,n,s){k(r.$onChanges)&&($||(e.$postUpdate(m),$=[]),l||(l={},$.push(h)),l[t]={currentValue:n,firstChange:s})}function h(){r.$onChanges&&l&&r.$onChanges(l),l=void 0}return s&&Object.entries(s).forEach(([s,l])=>{const{attrName:d,optional:p,mode:f}=l;let $,m,g,v,C,S=!0,x=!0;switch(f){case"@":p||ve(n,d)||(ee(d,i.name),r[s]=n[d]=void 0),C=n.$observe(d,e=>{(E(e)||L(e))&&(u(s,e,x),r[s]=e,S?S=!1:(h(),x=!1))}),n.$$observers[d].$$scope=e,$=n[d],E($)?r[s]=t($)(e):L($)&&(r[s]=$),a[s]={currentValue:r[s],firstChange:!0},o.push(C);break;case"=":{if(!ve(n,d)){if(p)break;ee(d,i.name),n[d]=void 0}if(p&&!n[d])break;m=c(n[d]),v=m.literal?z:B,g=m.assign||function(){throw $=r.$target[s]=m(e),Kn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[d],d,i.name)},$=r.$target[s]=m(e.$target);const t=function(t){return v(t,r[s])||(v(t,$)?g(e,t=r[s]):r[s]=t),$=t,$};if(t.$stateful=!0,l.collection)C=e.$watch(n[d],t);else{if(n[d]){let r=n[d];e.$watch(r,r=>{const s=c(n[d],t);r?(m.literal?e.$target[d]=r:e[d]=r,s(e)):e[d]=e[n[d]]},!0)}C=r.$watch(d,t=>{if(t!==$||y(n[d])){if(m.inputs&&!m.literal||y(n[d])&&b(t))throw r.$target[d]=$,Kn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[d],d,i.name);w(t)?Object.entries(t).forEach(([t,n])=>{e.$target[t]=n}):(g(e.$target,$=t),e.$handler.watchers.get(n[d])?.forEach(n=>{n.listenerFn(t,e.$target)}))}},!0)}o.push(C);break}case"<":if(!ve(n,d)){if(p)break;ee(d,i.name),n[d]=void 0}if(p&&!n[d])break;m=c(n[d]),r.$target[s]=m(e.$target),a[s]={currentValue:r.$target[s],firstChange:x},e.$target.attrs=n,n[d]&&(C=e.$watch(n[d],e=>{r.$target[s]=e,u(s,e,x),x&&(x=!1)},!0),o.push(C));break;case"&":if(p||ve(n,d)||ee(d,i.name),m=ve(n,d)?c(n[d]):()=>{},m.toString()===(()=>{}).toString()&&p)break;r.$target[s]=function(t){return m(e.$target,t)}}}),{initialChanges:a,removeWatches:o.length&&function(){for(let e=0,t=o.length;e<t;++e)o[e]()}}}}]}}function er(e){let t=e.length;if(t<=1)return e;for(;t--;){const n=e[t];(n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&""===n.nodeValue.trim())&&[].splice.call(e,t,1)}return e}const tr={$nonscope:!0,$addControl:()=>{},$getControls:()=>[],$$renameControl:(e,t)=>{e.$name=t},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},nr="ng-pending",rr="ng-submitted";class sr{static $nonscope=!0;static $inject=["$element","$attrs","$scope","$animate","$interpolate"];constructor(e,r,s,i,o){this.$$controls=[],this.$name=o(r.name||r.ngForm||"")(s),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=tr,this.$$element=e,this.$$animate=i,this.$error={},this.$$success={},this.$pending=void 0,this.$$classCache={};const a=this.$$element.classList.contains(t);this.$$classCache[t]=a,this.$$classCache[n]=!a}$rollbackViewValue(){this.$$controls.forEach(e=>{e.$rollbackViewValue()})}$commitViewValue(){this.$$controls.forEach(e=>{e.$commitViewValue()})}$addControl(e){W(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$target.$$parentForm=this}$getControls(){return oe(this.$$controls)}$$renameControl(e,t){const n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t}$removeControl(e){e.$name&&this[e.$name]===e&&delete this[e.$name],this.$pending&&Object.keys(this.$pending).forEach(t=>{this.$setValidity(t,null,e)}),this.$error&&Object.keys(this.$error).forEach(t=>{this.$setValidity(t,null,e)}),this.$$success&&Object.keys(this.$$success).forEach(t=>{this.$setValidity(t,null,e)}),q(this.$$controls,e),e.$target.$$parentForm=tr}$setDirty(){me(this.$$element)?(this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,s)):(this.$$element.classList.remove(r),this.$$element.classList.add(s)),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()}$setPristine(){me(this.$$element)?this.$$animate.setClass(this.$$element,r,`${s} ${rr}`):(this.$$element.classList.remove(s,rr),this.$$element.classList.add(r)),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.$$controls.forEach(e=>{e.$setPristine()})}$setUntouched(){this.$$controls.forEach(e=>{e.$setUntouched()})}$setSubmitted(){let e=this;for(;e.$$parentForm&&e.$$parentForm!==tr;)e=e.$$parentForm;e.$$setSubmitted()}$$setSubmitted(){me(this.$$element)?this.$$animate.addClass(this.$$element,rr):this.$$element.classList.add(rr),this.$submitted=!0,this.$$controls.forEach(e=>{e.$$setSubmitted&&e.$$setSubmitted()})}set(e,t,n){const r=e[t];if(r){-1===r.indexOf(n)&&r.push(n)}else p(e)&&(e=e.$target),e[t]=[n]}unset(e,t,n){const r=e[t];if(!r)return;-1===q(r,n)&&q(r,n.$target),0===r.length&&delete e[t]}$setValidity(e,r,s){let i,o=this;function a(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function c(e,r,s){r=r?`-${V(r,"-")}`:"",a(e,t+r,!0===s),a(e,n+r,!1===s)}y(r)?function(e,t,n,r){e[t]||(e[t]={});o.set(e[t],n,r)}(this,"$pending",e,s):function(e,t,n,r){e[t]&&o.unset(e[t],n,r);ge(e[t])&&(e[t]=void 0)}(this,"$pending",e,s),L(r)?r?(this.unset(this.$error,e,s),this.set(this.$$success,e,s)):(this.set(this.$error,e,s),this.unset(this.$$success,e,s)):(this.unset(this.$error,e,s),this.unset(this.$$success,e,s)),this.$pending?(a(this,nr,!0),this.$valid=this.$invalid=void 0,c(this,"",null)):(a(this,nr,!1),this.$valid=ge(this.$error),this.$invalid=!this.$valid,c(this,"",this.$valid)),i=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null),c(this,e,i),this.$$parentForm.$setValidity(e,i,this)}}const ir=function(e){return["$parse",function(n){return{name:"form",restrict:e?"EA":"E",require:["form","^^?form"],controller:sr,compile:function(s,i){s.classList.add(r,t);const o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,t,r,s){const i=s[0];if(!("action"in r)){const e=function(e){i.$commitViewValue(),i.$setSubmitted(),e.preventDefault()};t.addEventListener("submit",e),t.addEventListener("$destroy",()=>{setTimeout(()=>{t.removeEventListener("submit",e)},0,!1)})}(s[1]||i.$$parentForm).$addControl(i);let a=o?function(e){if(""===e)return n('this[""]').assign;return n(e).assign||(()=>{})}(i.$name):()=>{};o&&(a(e,i),r.$observe(o,t=>{i.$name!==t&&(e.$target[i.$name]=void 0,i.$$parentForm.$$renameControl(i,t),e.$target!==i.$$parentForm&&i.$$parentForm!==tr||(e.$target[t]=i))})),t.addEventListener("$destroy",()=>{i.$target.$$parentForm.$removeControl(i),a(e,void 0),M(i,tr)})}}}}}]},or=ir(),ar=ir("ngForm"),cr=/(\s+|^)default(\s+|$)/;class lr{static $nonscope=!0;static $inject=["$attrs","$scope"];constructor(e,t){this.$$attrs=e,this.$$scope=t,this.parentCtrl}$onInit(){const e=this.parentCtrl?this.parentCtrl.$options:hr,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}}class ur{static $nonscope=!0;constructor(e){this.$$options=e}getOption(e){return this.$$options[e]}createChild(e){let t=!1;return e=Object.assign({},e),Object.entries(e).forEach(([n,r])=>{"$inherit"===r?"*"===n?t=!0:(e[n]=this.$$options[n],"updateOn"===n&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===n&&(e.updateOnDefault=!1,e[n]=R(r.replace(cr,()=>(e.updateOnDefault=!0," "))))},this),t&&(delete e["*"],pr(e,this.$$options)),pr(e,hr.$$options),new ur(e)}}const hr=new ur({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),dr=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:lr}};function pr(e,t){Object.keys(t).forEach(n=>{b(e[n])||(e[n]=t[n])})}const fr=de("ngModel");class $r{static $nonscope=!0;static $inject=["$scope",Jt.$exceptionHandler,"$attrs","$element",Jt.$parse,Jt.$animate,Jt.$interpolate];constructor(e,r,s,i,o,a,c){this.$viewValue=Number.NaN,this.$modelValue=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=c(s.name||"",!1)(e),this.$$parentForm=tr,this.$options=hr,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=o(s.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$attr=s,this.$$element=i,this.$$animate=a,this.$$parse=o,this.$$exceptionHandler=r,this.$$hasNativeValidators=!1,this.$$classCache={};const l=this.$$element.classList.contains(t);var u;this.$$classCache[t]=l,this.$$classCache[n]=!l,this.$$eventRemovers=new Set,(u=this).$$scope.$watch("value",()=>{const e=u.$$ngModelGet(u.$$scope);e===u.$modelValue||u.$modelValue!=u.$modelValue&&e!=e||u.$$setModelValue(e)})}set(e,t){e[t]=!0}unset(e,t){delete e[t]}$setValidity(e,r){let s,i=this;function o(e,t,n){n&&!e.$$classCache[t]?(me(e.$$element)?e.$$animate.addClass(e.$$element,t):e.$$element.classList.add(t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(me(e.$$element)?e.$$animate.removeClass(e.$$element,t):e.$$element.classList.remove(t),e.$$classCache[t]=!1)}function a(e,r,s){r=r?`-${V(r,"-")}`:"",o(e,t+r,!0===s),o(e,n+r,!1===s)}y(r)?function(e,t,n){e[t]||(e[t]={}),i.set(e[t],n)}(this,"$pending",e):function(e,t,n){e[t]&&i.unset(e[t],n),ge(e[t])&&(e[t]=void 0)}(this,"$pending",e),L(r)?r?(delete this.$error[e],this.set(this.$$success,e)):(this.set(this.$error,e),delete this.$$success[e]):(delete this.$error[e],delete this.$$success[e]),this.$pending?(o(this,nr,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,nr,!1),this.$valid=ge(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),s=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null),a(this,e,s),this.$$parentForm.$setValidity(e,s,this)}$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const e=this.$$parse(`${this.$$attr.ngModel}()`),t=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=t=>{let n=this.$$parsedNgModel(t);return k(n)&&(n=e(t)),n},this.$$ngModelSet=(e,n)=>{k(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw fr("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Ut(this.$$element))}$render(){}$isEmpty(e){return y(e)||""===e||null===e||e!=e}$$updateEmptyClasses(e){this.$isEmpty(e)?me(this.$$element)?(this.$$animate.removeClass(this.$$element,c),this.$$animate.addClass(this.$$element,a)):(this.$$element.classList.remove(c),this.$$element.classList.add(a)):me(this.$$element)?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,c)):(this.$$element.classList.remove(a),this.$$element.classList.add(c))}$setPristine(){this.$dirty=!1,this.$pristine=!0,this.$$element&&(me(this.$$element)?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,r)):(this.$$element.classList.remove(a),this.$$element.classList.add(r)))}$setDirty(){this.$dirty=!0,this.$pristine=!1,me(this.$$element)?(this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,s)):(this.$$element.classList.remove(r),this.$$element.classList.add(s)),this.$$parentForm.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,me(this.$$element)?this.$$animate.setClass(this.$$element,i,o):(this.$$element.classList.remove(o),this.$$element.classList.add(i))}$setTouched(){this.$touched=!0,this.$untouched=!1,me(this.$$element)?this.$$animate.setClass(this.$$element,o,i):(this.$$element.classList.remove(i),this.$$element.classList.add(o))}$rollbackViewValue(){clearTimeout(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()}$validate(){if(P(this.$modelValue))return;const e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,s=this.$options.getOption("allowInvalid"),i=this;this.$$runValidators(t,e,e=>{s||n===e||(i.$modelValue=e?t:void 0,i.$modelValue!==r&&i.$$writeModelToScope())})}$$runValidators(e,t,n){this.$$currentValidationRunId++;const r=this.$$currentValidationRunId,s=this;function i(e,t){r===s.$$currentValidationRunId&&s.$setValidity(e,t)}function o(e){r===s.$$currentValidationRunId&&n(e)}!function(){const e=s.$$parserName;if(!y(s.$$parserValid))return s.$$parserValid||(Object.keys(s.$validators).forEach(e=>{i(e,null)}),Object.keys(s.$asyncValidators).forEach(e=>{i(e,null)})),i(e,s.$$parserValid),s.$$parserValid;i(e,null);return!0}()?o(!1):function(){let n=!0;if(Object.entries(s.$validators).forEach(([r,s])=>{const o=Boolean(s(e,t));n=n&&o,i(r,o)}),!n)return Object.keys(s.$asyncValidators).forEach(e=>{i(e,null)}),!1;return!0}()?function(){const n=[];let r=!0;Object.entries(s.$asyncValidators).forEach(([s,o])=>{const a=o(e,t);if(!N(a))throw fr("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);i(s,void 0),n.push(a.then(()=>{i(s,!0)},()=>{r=!1,i(s,!1)}))}),n.length?Promise.all(n).then(()=>{o(r)},()=>{}):o(!0)}():o(!1)}$commitViewValue(){clearTimeout(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==this.$viewValue||""===this.$viewValue&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(this.$viewValue)||(this.$$updateEmptyClasses(this.$viewValue),this.$$lastCommittedViewValue=this.$viewValue,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))}$$parseAndValidate(){let e=this.$$lastCommittedViewValue;const t=this;if(this.$$parserValid=!y(e)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(let t=0;t<this.$parsers.length;t++)if(e=this.$parsers[t](e),y(e)){this.$$parserValid=!1;break}P(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function s(){t.$modelValue!=n&&t.$$writeModelToScope()}this.$$rawModelValue=e,r&&(this.$modelValue=e,s()),this.$$runValidators(e,this.$$lastCommittedViewValue,n=>{r||(t.$modelValue=n?e:void 0,s())})}$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),Object.values(this.$viewChangeListeners).forEach(e=>{try{e()}catch(e){this.$$exceptionHandler(e)}},this)}$setViewValue(e,t){this.$viewValue=e,this.$options?.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)}$$debounceViewValueCommit(e){let t=this.$options.getOption("debounce");x(t[e])?t=t[e]:x(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:x(t["*"])&&(t=t["*"]),clearTimeout(this.$$pendingDebounce);const n=this;t>0?this.$$pendingDebounce=setTimeout(()=>{n.$commitViewValue()},t):this.$commitViewValue()}$overrideModelOptions(e){this.$$removeAllEventListeners(),this.$options=this.$options.createChild(e),this.$$updateEvents=this.$options.$$options.updateOn,this.$$setUpdateOnEvents()}$processModelValue(){const e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,()=>{}))}$$format(){const e=this.$formatters;let t=e.length,n=this.$modelValue;for(;t--;)n=e[t](n);return n}$$setModelValue(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()}$$removeAllEventListeners(){this.$$eventRemovers.forEach(e=>e()),this.$$eventRemovers.clear()}$$setUpdateOnEvents(){this.$$updateEvents&&this.$$updateEvents.split(" ").forEach(e=>{this.$$element.addEventListener(e,this.$$updateEventHandler),this.$$eventRemovers.add(()=>this.$$element.removeEventListener(e,this.$$updateEventHandler))}),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$updateEvents.split(" ").forEach(e=>{this.$$element.addEventListener(e,this.$$updateEventHandler),this.$$eventRemovers.add(()=>this.$$element.removeEventListener(e,this.$$updateEventHandler))})}$$updateEventHandler(e){this.$$debounceViewValueCommit(e&&e.type)}}function mr(){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:$r,priority:1,compile:e=>(e.classList.add(r,i,t),{pre:(e,t,n,r)=>{const s=r[0],i=r[1]||s.$$parentForm,o=r[2];o&&(s.$options=o.$options),s.$$initGetterSetters(),i.$addControl(s),n.$observe("name",e=>{s.$name!==e&&s.$$parentForm.$$renameControl(s,e)});let a=e.$watch(n.ngModel,e=>{s.$$setModelValue(p(e)?e.$target:e)});e.$on("$destroy",()=>{s.$$parentForm.$removeControl(s),a()})},post:(e,t,n,r)=>{const s=r[0];s.$$setUpdateOnEvents(),t.addEventListener("blur",()=>{s.$touched||s.$setTouched()}),s.$viewChangeListeners.push(()=>e.$eval(t.dataset.change))}})}}const gr=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,vr=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,yr=/^(?=.{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])?)*$/,br=/^\s*([-+])?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,wr=/^(\d{4,})-(\d{2})-(\d{2})$/,Er=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Cr=/^(\d{4,})-W(\d\d)$/,Sr=/^(\d{4,})-(\d\d)$/,xr=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ar="validity",Or=new Map;"date,datetime-local,month,time,week".split(",").forEach(e=>{Or.set(e,!0)});const kr={text:function(e,t,n,r){_r(e,t,n,r),Tr(r)},date:Nr("date",wr,jr(wr,["yyyy","MM","dd"])),"datetime-local":Nr("datetimelocal",Er,jr(Er,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Nr("time",xr,jr(xr,["HH","mm","ss","sss"])),week:Nr("week",Cr,function(e,t){if(A(e))return e;if(E(e)){Cr.lastIndex=0;const n=Cr.exec(e);if(n){const e=+n[1],r=+n[2];let s=0,i=0,o=0,a=0;const c=function(e){const t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}(e),l=7*(r-1);return t&&(s=t.getHours(),i=t.getMinutes(),o=t.getSeconds(),a=t.getMilliseconds()),new Date(e,0,c.getDate()+l,s,i,o,a)}}return NaN}),month:Nr("month",Sr,jr(Sr,["yyyy","MM"])),number:function(e,t,n,r,s,i){let o;if(Rr(e,t,n,r,"number"),Vr(r),_r(e,t,n,r),b(n.min)||n.ngMin){let t=n.min||i(n.ngMin)(e);o=Mr(t),r.$validators.min=function(e,t){return r.$isEmpty(t)||y(o)||t>=o},n.$observe("min",e=>{e!==t&&(o=Mr(e),t=e,r.$validate())})}if(b(n.max)||n.ngMax){let t=n.max||i(n.ngMax)(e),s=Mr(t);r.$validators.max=function(e,t){return r.$isEmpty(t)||y(s)||t<=s},n.$observe("max",e=>{e!==t&&(s=Mr(e),t=e,r.$validate())})}if(b(n.step)||n.ngStep){let t=n.step||i(n.ngStep)(e),s=Mr(t);r.$validators.step=function(e,t){return r.$isEmpty(t)||y(s)||Ur(t,o||0,s)},n.$observe("step",e=>{e!==t&&(s=Mr(e),t=e,r.$validate())})}},url:function(e,t,n,r){_r(e,t,n,r),Tr(r),r.$validators.url=function(e,t){const n=e||t;return r.$isEmpty(n)||vr.test(n)}},email:function(e,t,n,r){_r(e,t,n,r),Tr(r),r.$validators.email=function(e,t){const n=e||t;return r.$isEmpty(n)||yr.test(n)}},radio:function(e,t,n,r){const s=!n.ngTrim||"false"!==R(n.ngTrim);y(n.name)&&t.setAttribute("name",m());t.addEventListener("change",function(e){let i;t.checked&&(i=n.value,s&&(i=R(i)),r.$setViewValue(i,e&&e.type))}),r.$render=function(){let{value:e}=n;s&&(e=R(e));const i=p(r.$viewValue)?r.$viewValue.$target:r.$viewValue;t.checked=(p(e)?e.$target:e)===(p(i)?i.$target:i)},n.$observe("value",r.$render)},range:function(e,t,n,r){Rr(e,t,n,r,"range"),Vr(r),_r(e,t,n,r);const s=r.$$hasNativeValidators&&"range"===t.type;let i=s?0:void 0,o=s?100:void 0,a=s?1:void 0;const{validity:c}=t,l=b(n.min),u=b(n.max),h=b(n.step),d=r.$render;r.$render=s&&b(c.rangeUnderflow)&&b(c.rangeOverflow)?function(){d(),r.$setViewValue(t.value)}:d,l&&(i=Mr(n.min),r.$validators.min=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||y(i)||t>=i},p("min",function(e){if(i=Mr(e),P(r.$modelValue))return;if(s){let e=t.value;i>e&&(e=i,t.value=e),r.$setViewValue(e)}else r.$validate()}));u&&(o=Mr(n.max),r.$validators.max=s?function(){return!0}:function(e,t){return r.$isEmpty(t)||y(o)||t<=o},p("max",function(e){if(o=Mr(e),P(r.$modelValue))return;if(s){let e=t.value;o<e&&(t.value=o,e=o<i?i:o),r.$setViewValue(e)}else r.$validate()}));h&&(a=Mr(n.step),r.$validators.step=s?function(){return!c.stepMismatch}:function(e,t){return r.$isEmpty(t)||y(a)||Ur(t,i||0,a)},p("step",function(e){if(a=Mr(e),P(r.$modelValue))return;s?r.$viewValue!==t.value&&r.$setViewValue(t.value):r.$validate()}));function p(e,r){t.setAttribute(e,n[e]);let s=n[e];n.$observe(e,e=>{e!==s&&(s=e,r(e))})}},checkbox:function(e,t,n,r,s,i){const o=Ir(i,e,"ngTrueValue",n.ngTrueValue,!0),a=Ir(i,e,"ngFalseValue",n.ngFalseValue,!1);t.addEventListener("change",function(e){r.$setViewValue(t.checked,e&&e.type)}),r.$render=function(){t.checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(e=>z(e,o)),r.$parsers.push(e=>e?o:a)},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function Tr(e){e.$formatters.push(t=>e.$isEmpty(t)?t:t.toString())}function _r(e,t,n,r){const s=t.type.toLowerCase();let i,o=!1;t.addEventListener("compositionstart",()=>{o=!0}),t.addEventListener("compositionend",()=>{o=!1,a()});let a=function(e){if(i&&(clearTimeout(i),i=null),o)return;let a=t.value;const c=e&&e.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(a=R(a)),(r.$viewValue!==a||""===a&&r.$$hasNativeValidators)&&r.$target.$setViewValue(a,c)};["input","change","paste","drop","cut"].forEach(e=>{t.addEventListener(e,a)}),Or[s]&&r.$$hasNativeValidators&&s===n.type&&t.addEventListener("keydown wheel mousedown",function(e){if(!i){const t=this[Ar],n=t.badInput,r=t.typeMismatch;i=setTimeout(()=>{i=null,t.badInput===n&&t.typeMismatch===r||a(e)})}}),r.$render=function(){const e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.value!==e&&(t.value=e)}}function jr(e,t){return function(n,r){let s,i;if(A(n))return n;if(E(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),gr.test(n))return new Date(n);if(e.lastIndex=0,s=e.exec(n),s){s.shift(),i=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},Object.entries(s).forEach(([e,n])=>{e<t.length&&(i[t[e]]=+n)});const e=new Date(i.yyyy,i.MM-1,i.dd,i.HH,i.mm,i.ss||0,1e3*i.sss||0);return i.yyyy<100&&e.setFullYear(i.yyyy),e}}return NaN}}const Lr=/\b\d{4}-(0[1-9]|1[0-2])\b/;function Nr(e,t,n){return function(r,s,i,o,a,c){if(Rr(r,s,i,o,e),_r(0,s,i,o),o.$parsers.push(n=>o.$isEmpty(n)?null:t.test(n)?["month","week","datetimelocal","time","date"].includes(e)?n:h(n,undefined):void(o.$$parserName=e)),o.$formatters.push(function(t){if(t&&!E(t))throw fr("datefmt","Expected `{0}` to be a String",t);if("month"===e){if(null==t)return"";if(!Lr.test(t))throw fr("datefmt","Expected month `{0}` to be a 'YYYY-DD'",t)}if("week"===e){if(null==t)return"";if(!Cr.test(t))throw fr("datefmt","Expected week `{0}` to be a 'yyyy-Www'",t)}if("datetimelocal"===e){if(null==t)return"";if(!Er.test(t))throw fr("datefmt","Expected week `{0}` to be a in date time format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings",t)}return t}),b(i.min)||i.ngMin){let t=i.min||c(i.ngMin)(r),s=u(p(t)?t.$target:t);o.$validators.min=function(t){return"month"===e?y(s)||n(t)>=n(s):!l(t)||y(s)||n(t)>=s},i.$observe("min",e=>{e!==t&&(s=u(e),t=e,o.$validate())})}if(b(i.max)||i.ngMax){let t=i.max||c(i.ngMax)(r),s=u(p(t)?t.$target:t);o.$validators.max=function(t){return"month"===e?y(s)||n(t)<=n(s):!l(t)||y(s)||n(t)<=s},i.$observe("max",e=>{e!==t&&(s=u(e),t=e,o.$validate())})}function l(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function u(e){return b(e)&&!A(e)?h(e)||void 0:e}function h(e,t){const r=o.$options.getOption("timezone");let s=n(e,t);return!Number.isNaN(s)&&r&&(s=X(s,r)),s}}}function Rr(e,t,n,r,s){(r.$$hasNativeValidators=w(t.validity))&&r.$parsers.push(e=>{const n=t[Ar]||{};if(!n.badInput&&!n.typeMismatch)return e;r.$$parserName=s})}function Vr(e){e.$parsers.push(t=>e.$isEmpty(t)?null:br.test(t)?parseFloat(t):void(e.$$parserName="number")),e.$formatters.push(t=>{if(!e.$isEmpty(t)){if(!x(t))throw fr("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function Mr(e){return b(e)&&!x(e)&&(e=parseFloat(e)),P(e)?void 0:e}function Pr(e){return(0|e)===e}function Dr(e){const t=e.toString(),n=t.indexOf(".");if(-1===n){if(e>-1&&e<1){const e=/e-(\d+)$/.exec(t);if(e)return Number(e[1])}return 0}return t.length-n-1}function Ur(e,t,n){let r=Number(e);const s=!Pr(r),i=!Pr(t),o=!Pr(n);if(s||i||o){const e=s?Dr(r):0,a=i?Dr(t):0,c=o?Dr(n):0,l=10**Math.max(e,a,c);r*=l,t*=l,n*=l,s&&(r=Math.round(r)),i&&(t=Math.round(t)),o&&(n=Math.round(n))}return(r-t)%n===0}function Ir(e,t,n,r,s){let i;if(b(r)){if(i=e(r),!i.constant)throw fr("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return i(t)}return s}function Hr(e,t){return{restrict:"E",require:["?ngModel"],link:{pre(n,r,s,i){i[0]&&(kr[g(s.type)]||kr.text)(n,r,s,i[0],e,t)}}}}function Fr(){const e={configurable:!0,enumerable:!1,get(){return this.getAttribute("value")||""},set(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile(t,n){if("hidden"===g(n.type))return{pre(t,n){const r=n;r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",e)}}}}}Hr.$inject=["$filter","$parse"];const qr=/^(true|false|\d+)$/;function Br(){function e(e,t,n){e.value=b(n)?p(n)?n.$target:n:null,t.$set("value",n)}return{restrict:"A",priority:100,compile:(t,n)=>qr.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,t=>{e(n,r,t)})}}}function zr(e){return{restrict:"E",terminal:!0,compile(t,n){"text/ng-template"===n.type&&e.set(n.id,t.innerText)}}}zr.$inject=["$templateCache"];class Wr{static $nonscope=["ngModelCtrl","selectValueMap","emptyOption","optionsMap","$scope","$element"];static $inject=["$element","$scope"];constructor(e,t){this.$element=e,this.$scope=t,this.selectValueMap={},this.ngModelCtrl={},this.multiple=!1,this.unknownOption=document.createElement("option"),this.hasEmptyOption=!1,this.emptyOption=void 0,this.optionsMap=new Map,this.renderScheduled=!1,this.updateScheduled=!1,t.$on("$destroy",()=>{this.renderUnknownOption=()=>{}})}renderUnknownOption(e){const t=this.generateUnknownOptionValue(e);this.unknownOption.value=t,this.$element.prepend(this.unknownOption),this.unknownOption.selected=!0,this.unknownOption.setAttribute("selected","selected"),this.$element.value=t}updateUnknownOption(e){const t=this.generateUnknownOptionValue(e);this.unknownOption.value=t,this.unknownOption.selected=!0,this.unknownOption.setAttribute("selected","selected"),this.$element.value=t}generateUnknownOptionValue(e){return y(e)?"? undefined:undefined ?":`? ${pe(e)} ?`}removeUnknownOption(){this.unknownOption.parentElement&&this.unknownOption.remove()}selectEmptyOption(){this.emptyOption&&(this.$element.value="",this.emptyOption.selected=!0,this.emptyOption.setAttribute("selected","selected"))}unselectEmptyOption(){this.hasEmptyOption&&(this.emptyOption.selected=!1)}readValue(){const e=this.$element.value,t=e in this.selectValueMap?this.selectValueMap[e]:e;return this.hasOption(t)?t:null}writeValue(e){const t=this.$element.options[this.$element.selectedIndex];if(t&&(t.selected=!1),this.hasOption(e)){this.removeUnknownOption();const t=pe(e);this.$element.value=t in this.selectValueMap?t:e;const n=this.$element.options[this.$element.selectedIndex];n?n.selected=!0:this.selectUnknownOrEmptyOption(e)}else this.selectUnknownOrEmptyOption(e)}addOption(e,t){if(t.nodeType===Node.COMMENT_NODE)return;W(e,'"option value"'),""===e&&(this.hasEmptyOption=!0,this.emptyOption=t);const n=this.optionsMap.get(e)||0;this.optionsMap.set(e,n+1),this.scheduleRender()}removeOption(e){const t=this.optionsMap.get(e);t&&(1===t?(this.optionsMap.delete(e),""===e&&(this.hasEmptyOption=!1,this.emptyOption=void 0)):this.optionsMap.set(e,t-1))}hasOption(e){return!!this.optionsMap.get(e)}$hasEmptyOption(){return this.hasEmptyOption}$isUnknownOptionSelected(){return this.$element.options[0]===this.unknownOption}$isEmptyOptionSelected(){return this.hasEmptyOption&&this.$element.options[this.$element.selectedIndex]===this.emptyOption}selectUnknownOrEmptyOption(e){null==e&&this.emptyOption?(this.removeUnknownOption(),this.selectEmptyOption()):this.unknownOption.parentElement?this.updateUnknownOption(e):this.renderUnknownOption(e)}scheduleRender(){this.renderScheduled||(this.renderScheduled=!0,this.$scope.$postUpdate(()=>{this.renderScheduled=!1,this.ngModelCtrl.$render()}))}scheduleViewValueUpdate(e=!1){this.updateScheduled||(this.updateScheduled=!0,this.$scope.$postUpdate(()=>{this.$scope.$$destroyed||(this.updateScheduled=!1,this.ngModelCtrl.$setViewValue(this.readValue()),e&&this.ngModelCtrl.$render())}))}registerOption(e,t,n,r,s){let i,o;if(n.$attr.ngValue)n.$observe("value",e=>{let n;const r=t.selected;b(o)&&(this.removeOption(i),delete this.selectValueMap[o],n=!0),o=pe(e),i=e,this.selectValueMap[o]=e,this.addOption(e,t),t.setAttribute("value",o),n&&r&&this.scheduleViewValueUpdate()});else if(r)n.$observe("value",e=>{let n;this.readValue();const r=t.selected;b(i)&&(this.removeOption(i),n=!0),i=e,this.addOption(e,t),n&&r&&this.scheduleViewValueUpdate()});else if(s){let r;e.value=s(e),n.value||(n.$set("value",e.value),this.addOption(e.value,t)),e.$watch("value",()=>{let i=s(e);n.value||n.$set("value",i);const o=t.selected;r!==i&&(this.removeOption(r),r=i),this.addOption(i,t),r&&o&&this.scheduleViewValueUpdate()})}else this.addOption(n.value,t);n.$observe("disabled",e=>{("true"===e||e&&t.selected)&&(this.multiple?this.scheduleViewValueUpdate(!0):(this.ngModelCtrl.$setViewValue(null),this.ngModelCtrl.$render()))}),t.addEventListener("$destroy",()=>{const e=this.readValue(),t=n.value;this.removeOption(t),this.scheduleRender(),(this.multiple&&e&&-1!==e.indexOf(t)||e===t)&&this.scheduleViewValueUpdate(!0)})}}function Kr(){return{restrict:"E",require:["select","?ngModel"],controller:Wr,priority:1,link:{pre:function(e,t,n,r){const s=r[0],i=r[1];if(!i)return void(s.registerOption=()=>{});if(s.ngModelCtrl=i,t.addEventListener("change",()=>{s.removeUnknownOption();const e=s.readValue();i.$setViewValue(e)}),n.multiple){let e;s.multiple=!0,s.readValue=function(){const e=[],n=t.getElementsByTagName("option");return Array.from(n).forEach(t=>{if(t.selected&&!t.disabled){const n=t.value;e.push(n in s.selectValueMap?s.selectValueMap[n]:n)}}),e},s.writeValue=function(e){const n=t.getElementsByTagName("option");Array.from(n).forEach(t=>{const n=!!e&&(F(e,t.value)||F(e,s.selectValueMap[t.value]));n!==t.selected&&(t.selected=n)})};let n=NaN;n!==i.$viewValue||z(e,i.$viewValue)||(e=oe(i.$viewValue),i.$render()),n=i.$viewValue,i.$isEmpty=function(e){return!e||0===e.length}}},post:function(e,t,n,r){const s=r[1];if(!s)return;const i=r[0];s.$render=function(){i.writeValue(s.$viewValue)}}}}}function Gr(e){return{restrict:"E",priority:100,compile(t,n){let r,s;return b(n.ngValue)||(b(n.value)?r=e(n.value,!0):(s=e(t.textContent,!0),s||n.$set("value",t.textContent))),function(e,t,n){const i="$selectController",o=t.parentElement,a=Lt(o,i)||Lt(o.parentElement,i);a&&a.registerOption(e,t,n,r,s)}}}}function Qr(){return{link(e,t,n){e.$watch(n.ngBind,e=>{t.textContent=K(p(e)?e.$target:e)},b(n.lazy))}}}function Jr(){return{link(e,t,n){n.$observe("ngBindTemplate",e=>{t.textContent=y(e)?"":e})}}}function Zr(e){return{restrict:"A",compile:(t,n)=>(e(n.ngBindHtml),(e,t)=>{e.$watch(n.ngBindHtml,e=>{(y(e)||C(e))&&(e=""),t.innerHTML=e})})}}function Yr(e,t){return e=`ngClass${e}`,function(){return{link(n,r,s){let i,o=Lt(r,"$classCounts"),a=!0;function c(e,t){const n=[];return e&&e.forEach(e=>{(t>0||o[e])&&(o[e]=(o[e]||0)+t,o[e]===+(t>0)&&n.push(e))}),n.join(" ")}o||(o=Object.create(null),jt(r,"$classCounts",o)),"ngClass"!==e&&n.$watch("$index",()=>{!function(e){e===t?(o=c(es(o=i),1),me(r)?s.$addClass(o):n.$postUpdate(()=>{""!==o&&r.classList.add(...o.trim().split(" "))})):function(e){e=c(es(e),-1),me(r)?s.$removeClass(e):n.$postUpdate(()=>{""!==e&&r.classList.remove(...e.trim().split(" "))})}(i);var o;a=e}(1&n.$index)}),n.$watch(s[e],e=>{!function(e){a===t&&function(e,t){const n=es(e),i=es(t),o=Xr(n,i),a=Xr(i,n),l=c(o,-1),u=c(a,1);me(r)?(s.$addClass(u),s.$removeClass(l)):(""!==u&&r.classList.add(...u.trim().split(" ")),""!==l&&r.classList.remove(...l.trim().split(" ")))}(i,e);i=e}(ts(e))})}}}}function Xr(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;const n=[];e:for(let r=0;r<e.length;r++){const s=e[r];for(let e=0;e<t.length;e++)if(s===t[e])continue e;n.push(s)}return n}function es(e){return e&&e.split(" ")}function ts(e){if(!e)return e;let t=e;return Array.isArray(e)?t=e.map(ts).join(" "):w(e)?t=Object.keys(e).filter(t=>e[t]).join(" "):E(e)||(t=`${e}`),t}Gr.$inject=["$interpolate"],Zr.$inject=[Jt.$parse];const ns=Yr("",!0),rs=Yr("Odd",0),ss=Yr("Even",1);function is(){return{compile(e,t){t.$set("ngCloak",void 0)}}}function os(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const as="ng-hide",cs="ng-hide-animate";function ls(e){return{restrict:"A",link(t,n,r){t.$watch(r.ngShow,t=>{me(n)?e[t?"removeClass":"addClass"](n,as,{tempClasses:cs}):t?n.classList.remove(as):n.classList.add(as)})}}}function us(e){return{restrict:"A",link(t,n,r){t.$watch(r.ngHide,t=>{me(n)?e[t?"addClass":"removeClass"](n,as,{tempClasses:cs}):t?n.classList.add(as):n.classList.remove(as)})}}}function hs(e){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(t,n,r,s,i){let o,a,c;t.$watch(r.ngIf,t=>{t?a||i((t,r)=>{a=r,o=t,me(t)?e.enter(t,n.parentElement,n):n.after(t)}):(c&&(Dt(c),c=null),a&&(a.$destroy(),a=null),o&&(c=o,me(c)?e.leave(c).done(e=>{!1!==e&&(c=null)}):n.nextElementSibling.remove(),o=null))})}}}function ds(e,t,n,r){return{priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(s,i){const o=i.ngInclude||i.src,a=i.onload||"",c=i.autoscroll;return(s,i,l,u,h)=>{function d(){!b(c)||c&&!s.$eval(c)||t()}let p,f,$,m=0;const g=()=>{f&&(f.remove(),f=null),p&&(p.$destroy(),p=null),$&&(me($)?n.leave($).done(e=>{!1!==e&&(f=null)}):$.remove(),f=$,$=null)};s.$watch(o,async t=>{const o=function(e){!1!==e&&d()},c=++m;t?(await e(t,!0).then(e=>{if(s.$$destroyed)return;if(c!==m)return;const r=s.$new();u.template=e;const l=h(r,e=>{g(),me(e)?n.enter(e,null,i).done(o):(i.after(e),d())});p=r,$=l,p.$emit("$includeContentLoaded",t),s.$eval(a)},e=>{s.$$destroyed||(c===m&&(g(),s.$emit("$includeContentError",t)),r(new Error(e)))}),s.$emit("$includeContentRequested",t)):(g(),u.template=null)})}}}}function ps(e){return{priority:-400,require:"ngInclude",link(t,n,r,s){n.innerHTML=s.template,e(n.childNodes)(t)}}}function fs(){return{priority:450,compile:()=>({pre(e,t,n){const r=Mt(t);r?r.$eval(n.ngInit):e.$eval(n.ngInit)}})}}function $s(){return{terminal:!0,priority:1e3}}ls.$inject=["$animate"],us.$inject=["$animate"],hs.$inject=["$animate"],ds.$inject=[Jt.$templateRequest,Jt.$anchorScroll,Jt.$animate,Jt.$exceptionHandler],ps.$inject=[Jt.$compile];const ms=de("ngRef");function gs(e){return{priority:-1,restrict:"A",compile(t,n){const r=$e(H(t)),s=e(n.ngRef),i=s.assign||function(){throw ms("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return(e,t,o)=>{let a;if(ve(o,"ngRefRead")){if("$element"===o.ngRefRead)a=t;else if(a=Lt(t,`$${o.ngRefRead}Controller`),!a)throw ms("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=Lt(t,`$${r}Controller`);a=a||t,i(e,a),t.addEventListener("$destroy",()=>{s(e)===a&&i(e,null)})}}}}gs.$inject=["$parse"];const vs="$$NG_REMOVED",ys=de("ngRepeat"),bs=/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/;function ws(e){function t(e,t,n,r,s,i,o){e[n]!==r&&(e[n]=r),s&&(e[s]=i),r&&(e.$target.$$hashKey=r.$$hashKey),e.$index=t,e.$first=0===t,e.$last=t===o-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=!(1&t))}function n(e){return e.clone}function r(e){return e.clone}function s(e,t,n){return pe(n)}function i(e,t){return t}return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:(o,a)=>{const c=a.ngRepeat,l=!!a.animate;let u=c.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!u)throw ys("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",c);const h=u[1],d=u[2],p=u[3];if(u=h.match(bs),!u)throw ys("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",h);const f=u[3]||u[1],$=u[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 ys("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",p);const m=function(e){let t=!1;return function(...n){if(!t)return t=!0,e.apply(this,n)}}(()=>{b(a.lazy)&&b(a.swap)&&document.querySelectorAll(a.swap).forEach(e=>Dt(e))});return function(o,a,u,h,g){let y=Object.create(null);o.$watch(d,u=>{m();let h,d,b,w=a;const E=Object.create(null);let C,S,x,A,O,k,T,_,j;if(p&&(o[p]=u),v(u))k=u,O=s;else{O=i,k=[];for(const e in u)ve(u,e)&&"$"!==e.charAt(0)&&k.push(e)}for(C=k.length,_=new Array(C),h=0;h<C;h++)if(S=u===k?h:k[h],x=u[S],A=O(o,S,x),y[A])T=y[A],delete y[A],E[A]=T,_[h]=T;else{if(E[A])throw Object.values(_).forEach(e=>{e&&e.scope&&(y[e.id]=e)}),ys("dupes","Duplicates keys in a repeater are not allowed. Repeater: {0}, Duplicate key: {1} for value: {2}",c,A,x);_[h]={id:A,scope:void 0,clone:void 0},E[A]=!0}for(let t in y){if(T=y[t],j=T.clone,l?e.leave(j):j.remove(),j.parentNode)for(h=0,d=j.length;h<d;h++)j[h][vs]=!0;T.scope.$destroy()}for(h=0;h<C;h++)if(S=u===k?h:k[h],x=u[S],T=_[h],T.scope){b=w;do{b=b.nextSibling}while(b&&b[vs]);n(T)!==b&&e.move(It(T.clone),null,w),w=r(T),t(T.scope,h,f,x,$,S,C)}else g((n,r)=>{T.scope=r;const s=n;l?e.enter(n,null,w):w.after(n),w=s,T.clone=n,E[T.id]=T,t(T.scope,h,f,x,$,S,C)});y=E},b(u.lazy))}}}}function Es(){return{restrict:"A",link(e,t,n){let r;e.$watch(n.ngStyle,e=>{if(r){const e=Object.keys(r);for(let n=0,r=e.length;n<r;n++)t.style.removeProperty(e[n])}if(e){r={...e.$target};const n=Object.entries(e);for(let e=0,r=n.length;e<r;e++){const[r,s]=n[e];t.style.setProperty(r,s)}}})}}}function Cs(e){return{require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(t,n,r,s){const i=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};t.$watch(i,t=>{let n,r;for(;c.length;)e.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const t=It(a[n].clone);if(l[n].$destroy(),me(t)){(c[n]=e.leave(t)).done(u(c,n))}else t.remove()}a.length=0,l.length=0,(o=s.cases[`!${t}`]||s.cases["?"])&&Object.values(o).forEach(t=>{t.transclude((n,r)=>{l.push(r);const s=t.element,i={clone:n,comment:document.createComment("")};a.push(i),me(n)?e.enter(n,s.parentElement,s):Kt(n,s.parentElement,s)})})})}}}function Ss(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(e,t,n,r,s){const i=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((e,t,n)=>n[t-1]!==e);i.forEach(e=>{r.cases[`!${e}`]=r.cases[`!${e}`]||[],r.cases[`!${e}`].push({transclude:s,element:t})})}}}function xs(){return{transclude:"element",terminal:!0,priority:1200,require:"^ngSwitch",link(e,t,n,r,s){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:s,element:t})}}}ws.$inject=[Jt.$animate],Cs.$inject=["$animate"];const As=de("ngOptions"),Os=document.createElement("option"),ks=document.createElement("optgroup"),Ts=/^\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]+?))?$/;function _s(e,t){return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=()=>{}},post:function(n,r,s,i){const o=i[0],a=i[1],c=s.multiple;for(let e=0,t=r.childNodes,n=t.length;e<n;e++)if(""===t[e].value){o.hasEmptyOption=!0,o.emptyOption=t[e];break}Wt(r);const l=!!o.emptyOption;let u;Os.cloneNode(!1).nodeValue="?";const h=function(e,n,r){const s=e.match(Ts);if(!s)throw As("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Ut(n));const i=s[5]||s[7],o=s[6],a=/ as /.test(s[0])&&s[1],c=s[9],l=t(s[2]?s[1]:i),u=a&&t(a)||l,h=c&&t(c),d=c?function(e,t){return h(r,t)}:function(e){return pe(e)},p=function(e,t){return d(e,b(e,t))},f=t(s[2]||s[1]),$=t(s[3]||""),m=t(s[4]||""),g=t(s[8]),y={};let b=o?function(e,t){return y[o]=t,y[i]=e,y}:function(e){return y[i]=e,y};class w{constructor(e,t,n,r,s){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=s}}function E(e){let t;if(!o&&v(e))t=e;else{t=[];for(const n in e)ve(e,n)&&"$"!==n.charAt(0)&&t.push(n)}return t}return{trackBy:c,getTrackByValue:p,getWatchables:t(g,e=>{const t=[],n=E(e=e||[]),i=n.length;for(let o=0;o<i;o++){const i=e===n?o:n[o],a=e[i],c=b(a,i),l=d(a,c);if(t.push(l),s[2]||s[1]){const e=f(r,c);t.push(e)}if(s[4]){const e=m(r,c);t.push(e)}}return t}),getOptions(){const e=[],t={},n=g(r)||[],s=E(n),i=s.length;for(let o=0;o<i;o++){const i=n===s?o:s[o],a=n[i],c=b(a,i),l=u(r,c),h=d(l,c),p=f(r,c),g=$(r,c),v=m(r,c),y=new w(h,l,p,g,v);e.push(y),t[h]=y}return{items:e,selectValueMap:t,getOptionFromViewValue:e=>t[p(e)],getViewValueFromOption:e=>c?structuredClone(e.viewValue):e.viewValue}}}}(s.ngOptions,r,n),d=document.createDocumentFragment();if(o.generateUnknownOptionValue=()=>"?",c?(o.writeValue=function(e){if(!u)return;const t=e&&e.map(f)||[];u.items.forEach(e=>{e.element.selected&&!F(t,e)&&(e.element.selected=!1)})},o.readValue=function(){const e=r.value||[],t=[];return e.forEach(e=>{const n=u.selectValueMap[e];n&&!n.disabled&&t.push(u.getViewValueFromOption(n))}),t}):(o.writeValue=function(e){if(!u)return;const t=r.options[r.selectedIndex],n=u.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(r.value!==n.selectValue&&(o.removeUnknownOption(),r.value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):o.selectUnknownOrEmptyOption(e)},o.readValue=function(){const e=u.selectValueMap[r.value];return e&&!e.disabled?(o.unselectEmptyOption(),o.removeUnknownOption(),u.getViewValueFromOption(e)):null},h.trackBy&&n.$watch(h.getTrackByValue(a.$viewValue),()=>{a.$render()})),l){const t=e(o.emptyOption);ce(t,"LinkFn required"),r.prepend(o.emptyOption),t(n),o.emptyOption.nodeType===Node.COMMENT_NODE&&(o.hasEmptyOption=!1,o.registerOption=function(e,t){""===t.value&&(o.hasEmptyOption=!0,o.emptyOption=t,a.$render(),t.addEventListener("$destroy",()=>{const e=o.$isEmptyOptionSelected();o.hasEmptyOption=!1,o.emptyOption=void 0,e&&a.$render()}))})}function p(e,t){const n=Os.cloneNode(!1);t.appendChild(n),function(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label);t.value=e.selectValue}(e,n)}function f(e){const t=u.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}n.$watch(h.getWatchables.decoratedNode.body[0].expression.name,function(){const e=u&&o.readValue();if(u)for(let e=u.items.length-1;e>=0;e--){const t=u.items[e];b(t.group)?Dt(t.element.parentNode):Dt(t.element)}u=h.getOptions();const t={};if(u.items.forEach(e=>{let n;b(e.group)?(n=t[e.group],n||(n=ks.cloneNode(!1),d.appendChild(n),n.label=null===e.group?"null":e.group,t[e.group]=n),p(e,n)):p(e,d)}),r.appendChild(d),a.$render(),!a.$isEmpty(e)){const t=o.readValue();(h.trackBy||c?z(e,t):e===t)||(a.$setViewValue(t),a.$render())}})}}}}_s.$inject=["$compile","$parse"];const js=de("ngTransclude");function Ls(e){return{compile:function(t){const n=e(t.childNodes);return Wt(t),function(e,t,r,s,i){if(!i)throw js("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Ut(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");const o=r.ngTransclude||r.ngTranscludeSlot;function a(){n(e,e=>{t.append(e)})}i(function(e,n){!function(e){if(e instanceof Array)return!1;if(e.nodeType!==Node.TEXT_NODE||e.nodeValue.trim())return!0}(e)?(a(),n.$destroy()):e instanceof NodeList?Array.from(e).forEach(e=>{t.append(e)}):t.append(e)},null,o),o&&!i.isSlotFilled(o)&&a()}}}}Ls.$inject=["$compile"];const Ns=/^\/(.+)\/([a-z]*)$/,Rs={};bt.forEach(e=>{if("multiple"===e)return;function t(t,r,s){t.$watch(s[n],t=>{s.$set(e,!!t)})}let n=$e(`ng-${e}`),r=t;"checked"===e&&(r=function(e,r,s){s.ngModel!==s[n]&&t(e,0,s)}),Rs[n]=function(){return{restrict:"A",priority:100,link:r}}}),Object.entries(h).forEach(([e])=>{Rs[e]=function(){return{priority:100,link(t,n,r){if("ngPattern"===e&&"/"===r.ngPattern.charAt(0)){const e=r.ngPattern.match(Ns);if(e)return void r.$set("ngPattern",new RegExp(e[1],e[2]).toString())}t.$watch(r[e],t=>{r.$set(e,t)})}}}}),["src","srcset","href"].forEach(e=>{const t=$e(`ng-${e}`);Rs[t]=[Jt.$sce,function(n){return{priority:99,link(r,s,i){let o=e;"href"===e&&"[object SVGAnimatedString]"===toString.call(s.href)&&(o="xlinkHref",i.$attr[o]="href"),i.$set(t,n.getTrustedMediaUrl(i[t])),i.$observe(t,t=>{t?i.$set(o,t):"href"===e&&i.$set(o,null)})}}}]});const Vs=[Jt.$parse,e=>({restrict:"A",require:"?ngModel",link:(t,n,r,s)=>{if(!s)return;let i=ve(r,"required")||e(r.ngRequired)(t);r.ngRequired||(r.required=!0),s.$validators.required=(e,t)=>!i||!s.$isEmpty(t),r.$observe("required",e=>{i!==e&&(i=e,s.$validate())})}})],Ms=[Jt.$parse,e=>({restrict:"A",require:"?ngModel",compile:(t,n)=>{let r,s;return n.ngPattern&&(r=n.ngPattern,s="/"===n.ngPattern.charAt(0)&&Ns.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,i){if(!i)return;let o=n.pattern;n.ngPattern?o=s(e):r=n.pattern;let a=Us(o,r,t);n.$observe("pattern",e=>{const n=a;a=Us(e,r,t),(n&&n.toString())!==(a&&a.toString())&&i.$validate()}),i.$validators.pattern=(e,t)=>i.$isEmpty(t)||y(a)||a.test(t)}}})],Ps=[Jt.$parse,e=>({restrict:"A",require:"?ngModel",link:(t,n,r,s)=>{if(!s)return;let i=r.maxlength||e(r.ngMaxlength)(t),o=Is(i);r.$observe("maxlength",e=>{i!==e&&(o=Is(e),i=e,s.$validate())}),s.$validators.maxlength=function(e,t){return o<0||s.$isEmpty(t)||t.length<=o}}})],Ds=[Jt.$parse,e=>({restrict:"A",require:"?ngModel",link(t,n,r,s){if(!s)return;let i=r.minlength||e(r.ngMinlength)(t),o=Is(i)||-1;r.$observe("minlength",e=>{i!==e&&(o=Is(e)||-1,i=e,s.$validate())}),s.$validators.minlength=function(e,t){return s.$isEmpty(t)||t.length>=o}}})];function Us(e,t,n){if(e){if(p(e)&&(e=e.$target),E(e)){const t=e.match(/^\/(.*)\/([gimsuy]*)$/);e=t?new RegExp(t[1],t[2]):new RegExp(`^${e}$`)}if(!e.test)throw de("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,Ut(n));return e}}function Is(e){const t=parseInt(e,10);return P(t)?-1:t}class Hs{constructor(){this.autoScrollingEnabled=!0}$get=[Jt.$location,Jt.$rootScope,function(e,t){function n(e){if(e){e.scrollIntoView();const t=function(){let e=r.yOffset;if(k(e))e=e();else if(I(e)){const t=e[0];e="fixed"!==window.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else x(e)||(e=0);return e}();if(t){const n=e.getBoundingClientRect().top;window.scrollBy(0,n-t)}}else window.scrollTo(0,0)}const r=function(t){let r;(t=E(t)?t:x(t)?t.toString():e.getHash())?(r=document.getElementById(t))||(r=function(e){let t=null;return Array.prototype.some.call(e,e=>{if("a"===H(e))return t=e,!0}),t}(document.getElementsByName(t)))?n(r):"top"===t&&n(null):n(null)};return this.autoScrollingEnabled&&(t.$location=e,t.$watch("$location.$$hash",(e,t)=>{if(e===t&&""===e)return;const n=()=>Promise.resolve().then(r);"complete"===document.readyState?window.setTimeout(()=>n()):window.addEventListener("load",()=>n())})),r}]}const Fs=de("$animate");function qs(e,t){return e||t?e?t?(Array.isArray(e)&&(e=e.join(" ")),Array.isArray(t)&&(t=t.join(" ")),`${e} ${t}`):e:t:""}function Bs(e){return w(e)?e:{}}function zs(e){const t=this;let n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Fs("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const s=`${n}-animation`;t.$$registeredAnimations[n.substring(1)]=s,e.factory(s,r)},this.customFilter=function(e){return 1===arguments.length&&(r=k(e)?e:null),r},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null,n)){if(new RegExp(`[(\\s|\\/)]${qe}[(\\s|\\/)]`).test(n.toString()))throw n=null,Fs("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',qe)}return n},this.$get=["$$animateQueue",function(e){return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel(e){e.cancel&&e.cancel()},enter:(t,n,r,s)=>(Gt(t,n=n||r.parentElement,r),e.push(t,"enter",Bs(s))),move:(t,n,r,s)=>(Gt(t,n=n||r.parentElement,r),e.push(t,"move",Bs(s))),leave:(t,n)=>e.push(t,"leave",Bs(n),()=>{Array.isArray(t)?t.forEach(e=>Dt(e)):Dt(t)}),addClass:(t,n,r)=>((r=Bs(r)).addClass=qs(r.addClass,n),e.push(t,"addClass",r)),removeClass:(t,n,r)=>((r=Bs(r)).removeClass=qs(r.removeClass,n),e.push(t,"removeClass",r)),setClass:(t,n,r,s)=>((s=Bs(s)).addClass=qs(s.addClass,n),s.removeClass=qs(s.removeClass,r),e.push(t,"setClass",s)),animate:(t,n,r,s,i)=>((i=Bs(i)).from=i.from?M(i.from,n):n,i.to=i.to?M(i.to,r):r,s=s||"ng-inline-animate",i.tempClasses=qs(i.tempClasses,s),e.push(t,"animate",i))}}]}zs.$inject=["$provide"];class Ws{constructor(){this.cache=new Map}$get(){return this.cache}}class Ks{constructor(){this.log=window.console,this.errorHandler=(e,t)=>{this.log.error(e,t)},this.$get=["$log",e=>(this.log=e,this.errorHandler)]}}function Gs(){return function(e,t,n,r){if(!v(e)){if(null==e)return e;throw de("filter")("notarray","Expected array but received: {0}",e)}let s;r=r||"$";let i=!1;switch(Js(t)){case"function":s=t;break;case"boolean":case"null":case"number":case"string":i=!0;case"object":s=function(e,t,n,r){const s=w(e)&&n in e;let i;!0===t?t=z:k(t)||(t=function(e,t){return!y(e)&&(null===e||null===t?e===t:!(w(t)||w(e)&&!U(e))&&(e=`${e}`.toLowerCase(),t=`${t}`.toLowerCase(),-1!==e.indexOf(t)))});return i=function(i){return s&&!w(i)?Qs(i,e[n],t,n,!1):Qs(i,e,t,n,r)},i}(t,n,r,i);break;default:return e}return Array.prototype.filter.call(e,s)}}function Qs(e,t,n,r,s,i){const o=Js(e),a=Js(t);if("string"===a&&"!"===t.charAt(0))return!Qs(e,t.substring(1),n,r,s);if(Array.isArray(e))return e.some(e=>Qs(e,t,n,r,s));switch(o){case"object":if(s){for(let s in e)if(s.charAt&&"$"!==s.charAt(0)&&Qs(e[s],t,n,r,!0))return!0;return!i&&Qs(e,t,n,r,!1)}if("object"===a){for(let s in t){const i=t[s];if(k(i)||y(i))continue;const o=s===r;if(!Qs(o?e:e[s],i,n,r,o,o))return!1}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Js(e){return null===e?"null":typeof e}function Zs(){return function(e,t){return y(t)&&(t=2),Y(e,t)}}function Ys(){return function(e,t,n){return k(e)&&(e=e()),P(t=Math.abs(Number(t))===1/0?Number(t):parseInt(t,10))?e:(x(e)&&(e=e.toString()),v(e)?(n=(n=!n||isNaN(n)?0:parseInt(n,10))<0?Math.max(0,e.length+n):n,t>=0?Xs(e,n,n+t):0===n?Xs(e,t,e.length):Xs(e,Math.max(0,n+t),n)):e)}}function Xs(e,t,n){return E(e)?e.slice(t,n):[].slice.call(e,t,n)}function ei(e){return function(r,s,i,o){if(null==r)return r;if(k(r))return r();if(!v(r))throw de("orderBy")("notarray","Expected array but received: {0}",r);Array.isArray(s)||(s=[s]),0===s.length&&(s=["+"]);const a=s.map(t=>{let n=1,r=e=>e;if(k(t))r=t;else if(E(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t)){let n=e(t);if(n.constant){const e=n();r=t=>t[e]}else r=n}return{get:r,descending:n}});const c=i?-1:1,l=k(o)?o:n,u=Array.prototype.map.call(r,function(e,n){return{value:e,tieBreaker:{value:n,type:"number",index:n},predicateValues:a.map(r=>function(e,n){let r=typeof e;null===e?r="null":"object"===r&&(e=function(e){if(k(e.valueOf)&&t(e=e.valueOf()))return e;if(U(e)&&t(e=e.toString()))return e;return e}(e));return{value:e,type:r,index:n}}(r.get(e),n))}});return u.sort(function(e,t){for(let n=0,r=a.length;n<r;n++){const r=l(e.predicateValues[n],t.predicateValues[n]);if(r)return r*a[n].descending*c}return(l(e.tieBreaker,t.tieBreaker)||n(e.tieBreaker,t.tieBreaker))*c}),r=u.map(e=>e.value)};function t(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function n(e,t){let n=0;const r=e.type,s=t.type;if(r===s){let s=e.value,i=t.value;"string"===r?(s=s.toLowerCase(),i=i.toLowerCase()):"object"===r&&(w(s)&&(s=e.index),w(i)&&(i=t.index)),s!==i&&(n=s<i?-1:1)}else n="undefined"===r?1:"undefined"===s?-1:"null"===r?1:"null"===s||r<s?-1:1;return n}}function ti(e){const t=(t,n,r)=>e.is(t,n,r);return t.$stateful=!0,t}function ni(e){const t=function(t,n,r){return e.includes(t,n,r)};return t.$stateful=!0,t}ei.$inject=[Jt.$parse],ti.$inject=[Jt.$state],ni.$inject=[Jt.$state];const ri="Filter";class si{static $inject=[Jt.$provide];constructor(e){this.$provide=e,this.register({filter:Gs,json:Zs,limitTo:Ys,orderBy:ei,isState:ti,includedByState:ni})}register(e,t){return w(e)&&Object.entries(e).forEach(([e,t])=>{this.register(e,t)}),this.$provide.factory(e+ri,t)}$get=[Jt.$injector,e=>t=>e.get(t+ri)]}class ii{constructor(e){this.$filter=e}compile(e){let t,n,r=oi(e,this.$filter);(t=function(e){if(1===e.body.length&&ai(e.body[0].expression))return{type:xe,left:e.body[0].expression,right:{type:Ue},operator:"="}}(r))&&(n=this.recurse(t));const s=function(e){if(1!==e.length)return;const t=e[0].expression,n=t.toWatch;return 1!==n.length||n[0]!==t?n:void 0}(r.body);let i;if(s){i=[];for(const[e,t]of Object.entries(s)){const n=this.recurse(t);n.isPure=t.isPure,t.input=n,i.push(n),t.watchId=e}}const o=[];r.body.forEach(e=>{o.push(this.recurse(e.expression))});const a=0===r.body.length?()=>{}:1===r.body.length?o[0]:function(e,t){let n;return o.forEach(r=>{n=r(e,t)}),n};return n&&(a.assign=(e,t,r)=>n(e,r,t)),i&&(a.inputs=i),a.decoratedNode=r,a}recurse(e,t,n){let r,s;const i=this;let o;switch(e.type){case Ne:return this.value(e.value,t);case Te:return s=this.recurse(e.argument),this[`unary${e.operator}`](s,t);case ke:case Oe:return r=this.recurse(e.left),s=this.recurse(e.right),this[`binary${e.operator}`](r,s,t);case Ae:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Le:return i.identifier(e.name,t,n);case je:return r=this.recurse(e.object,!1,!!n),e.computed||(s=e.property.name),e.computed&&(s=this.recurse(e.property)),e.computed?this.computedMember(r,s,t,n):this.nonComputedMember(r,s,t,n);case _e:return o=[],e.arguments.forEach(e=>{o.push(i.recurse(e))}),e.filter&&(s=this.$filter(e.callee.name)),e.filter||(s=this.recurse(e.callee,!0)),e.filter?(e,n,r)=>{const i=[];for(let t=0;t<o.length;++t){const s=o[t](e&&e.$target?e.$target:e,n,r);i.push(s)}const a=()=>s.apply(void 0,i);return t?{context:void 0,name:void 0,value:a}:a}:(e,n,r)=>{const i=s(e.$target?e.$target:e,n,r);let a;if(null!=i.value&&k(i.value)){const t=[];for(let s=0;s<o.length;++s){const i=o[s](e,n,r);t.push(k(i)?i():i)}a=i.value.apply(i.context,t)}return t?{value:a}:a};case xe:return r=this.recurse(e.left,!0,1),s=this.recurse(e.right),(e,n,i)=>{const o=r(e,n,i),a=s(e,n,i);return(p(o.context)?o.context:o.context.$proxy??o.context)[o.name]=a,t?{value:a}:a};case Re:return o=[],e.elements.forEach(e=>{o.push(i.recurse(e))}),(e,n,r)=>{const s=[];for(let t=0;t<o.length;++t)s.push(o[t](e,n,r));return t?{value:s}:s};case Me:return o=[],e.properties.forEach(e=>{e.computed?o.push({key:i.recurse(e.key),computed:!0,value:i.recurse(e.value)}):o.push({key:e.key.type===Le?e.key.name:`${e.key.value}`,computed:!1,value:i.recurse(e.value)})}),(e,n,r)=>{const s={};for(let t=0;t<o.length;++t)o[t].computed?s[o[t].key(e,n,r)]=o[t].value(e,n,r):s[o[t].key]=o[t].value(e,n,r);return t?{value:s}:s};case Pe:return e=>t?{value:e}:e.$proxy;case De:return(e,n)=>t?{value:n}:n;case Ue:return(e,n,r)=>t?{value:r}:r}}"unary+"(e,t){return(n,r,s)=>{let i=e(n,r,s);return i=b(i)?+i:0,t?{value:i}:i}}"unary-"(e,t){return(n,r,s)=>{let i=e(n,r,s);return i=b(i)?-i:-0,t?{value:i}:i}}"unary!"(e,t){return(n,r,s)=>{const i=!e(n,r,s);return t?{value:i}:i}}"binary+"(e,t,n){return(r,s,i)=>{const o=e(r,s,i),a=t(r,s,i),c=(u=a,void 0===(l=o)||w(l)?u:void 0===u||w(u)?l:l+u);var l,u;return n?{value:c}:c}}"binary-"(e,t,n){return(r,s,i)=>{const o=e(r,s,i),a=t(r,s,i),c=(b(o)?o:0)-(b(a)?a:0);return n?{value:c}:c}}"binary*"(e,t,n){return(r,s,i)=>{const o=e(r,s,i)*t(r,s,i);return n?{value:o}:o}}"binary/"(e,t,n){return(r,s,i)=>{const o=e(r,s,i)/t(r,s,i);return n?{value:o}:o}}"binary%"(e,t,n){return(r,s,i)=>{const o=e(r,s,i)%t(r,s,i);return n?{value:o}:o}}"binary==="(e,t,n){return(r,s,i)=>{const o=e(r,s,i)===t(r,s,i);return n?{value:o}:o}}"binary!=="(e,t,n){return(r,s,i)=>{const o=e(r,s,i)!==t(r,s,i);return n?{value:o}:o}}"binary=="(e,t,n){return(r,s,i)=>{const o=e(r,s,i)==t(r,s,i);return n?{value:o}:o}}"binary!="(e,t,n){return(r,s,i)=>{const o=e(r,s,i)!=t(r,s,i);return n?{value:o}:o}}"binary<"(e,t,n){return(r,s,i)=>{const o=e(r,s,i)<t(r,s,i);return n?{value:o}:o}}"binary>"(e,t,n){return(r,s,i)=>{const o=e(r,s,i)>t(r,s,i);return n?{value:o}:o}}"binary<="(e,t,n){return(r,s,i)=>{const o=e(r,s,i)<=t(r,s,i);return n?{value:o}:o}}"binary>="(e,t,n){return(r,s,i)=>{const o=e(r,s,i)>=t(r,s,i);return n?{value:o}:o}}"binary&&"(e,t,n){return(r,s,i)=>{const o=e(r,s,i)&&t(r,s,i);return n?{value:o}:o}}"binary||"(e,t,n){return(r,s,i)=>{const o=e(r,s,i)||t(r,s,i);return n?{value:o}:o}}"ternary?:"(e,t,n,r){return(s,i,o)=>{const a=e(s,i,o)?t(s,i,o):n(s,i,o);return r?{value:a}:a}}value(e,t){return()=>t?{context:void 0,name:void 0,value:e}:e}identifier(e,t,n){return(r,s)=>{const i=s&&e in s?s:(r&&r.$proxy)??r;let o;return n&&1!==n&&i&&null==i[e]&&(i[e]={}),i&&(o=i.$target?i.$target[e]:i[e]),t?{context:i,name:e,value:o}:o}}computedMember(e,t,n,r){return(s,i,o)=>{const a=e(s,i,o);let c,l;return null!=a&&(c=t(s,i,o),c=function(e){return`${e}`}(c),r&&1!==r&&a&&!a[c]&&(a[c]={}),l=a[c]),n?{context:a,name:c,value:l}:l}}nonComputedMember(e,t,n,r){return(s,i,o)=>{const a=e(s,i,o);r&&1!==r&&a&&null==a[t]&&(a[t]={});const c=null!=a?a[t]:void 0;return n?{context:a,name:t,value:c}:c}}}function oi(e,t,n){let r,s,i,o,a,c,l,u,h,d,p,f=e;const $=f.isPure=function(e,t){switch(e.type){case je:if(e.computed)return!1;break;case Te:return 1;case ke:return"+"!==e.operator&&1;case _e:return!1}return void 0===t?2:t}(e,n);switch(e.type){case Ce:return r=!0,f.body.forEach(e=>{let n=oi(e.expression,t,$);r=r&&n.constant}),f.constant=r,f;case Ne:return f.constant=!0,f.toWatch=[],f;case Te:var m=oi(f.argument,t,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case ke:return o=oi(f.left,t,$),a=oi(f.right,t,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Oe:return o=oi(f.left,t,$),a=oi(f.right,t,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[e],f;case Ae:return c=oi(e.test,t,$),l=oi(e.alternate,t,$),u=oi(e.consequent,t,$),f.constant=c.constant&&l.constant&&u.constant,f.toWatch=f.constant?[]:[e],f;case Le:return f.constant=!1,f.toWatch=[e],f;case je:return h=oi(e.object,t,$),e.computed&&(d=oi(e.property,t,$)),f.constant=h.constant&&(!f.computed||d.constant),f.toWatch=f.constant?[]:[e],f;case _e:return i=!!e.filter&&function(e,t){const n=e(t);return!n.$stateful}(t,e.callee.name),r=i,s=[],e.arguments.forEach(e=>{m=oi(e,t,$),r=r&&m.constant,s.push.apply(s,m.toWatch)}),f.constant=r,f.toWatch=i?s:[f],f;case xe:return o=oi(e.left,t,$),a=oi(e.right,t,$),f.constant=o.constant&&a.constant,f.toWatch=[f],f;case Re:return r=!0,s=[],e.elements.forEach(e=>{m=oi(e,t,$),r=r&&m.constant,s.push.apply(s,m.toWatch)}),f.constant=r,f.toWatch=s,f;case Me:return r=!0,s=[],e.properties.forEach(e=>{m=oi(e.value,t,$),r=r&&m.constant,s.push.apply(s,m.toWatch),e.computed&&(p=oi(e.key,t,!1),r=r&&p.constant,s.push.apply(s,p.toWatch))}),f.constant=r,f.toWatch=s,f;case Pe:case De:return f.constant=!1,f.toWatch=[],f}}function ai(e){return e.type===Le||e.type===je}const ci=de("$parse"),li={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ui=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class hi{constructor(e){this.options=e}lex(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){const e=this.text.charAt(this.index);if('"'===e||"'"===e)this.readString(e);else if(this.isNumber(e)||"."===e&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart&&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{const t=e+this.peek(),n=t+this.peek(2),r=ui.has(e),s=ui.has(t),i=ui.has(n);if(r||s||i){const r=i?n:s?t:e;this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens}is(e,t){return-1!==t.indexOf(e)}peek(e){const t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)}isNumber(e){return e>="0"&&e<="9"&&"string"==typeof e}isWhitespace(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e}isIdentifierStart(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e||"$"===e}isIdentifierContinue(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e||"$"===e||e>="0"&&e<="9"}codePointAt(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888}peekMultichar(){const e=this.text.charAt(this.index),t=this.peek();if(!t)return e;const n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e}isExpOperator(e){return"-"===e||"+"===e||this.isNumber(e)}throwError(e,t,n){n=n||this.index;const r=b(t)?`s ${t}-${this.index} [${this.text.substring(t,n)}]`:` ${n}`;throw ci("lexerr",`Lexer Error: ${e} at column${r} in expression [${this.text}].`)}readNumber(){let e="";const t=this.index;for(;this.index<this.text.length;){const t=this.text.charAt(this.index).toLowerCase();if("."===t||this.isNumber(t))e+=t;else{const n=this.peek();if("e"===t&&this.isExpOperator(n))e+=t;else if(this.isExpOperator(t)&&n&&this.isNumber(n)&&"e"===e.charAt(e.length-1))e+=t;else{if(!this.isExpOperator(t)||n&&this.isNumber(n)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})}readIdent(){const e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){const e=this.peekMultichar();if(this.isIdentifierContinue&&!this.isIdentifierContinue(e))break;this.index+=e.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})}readString(e){const t=this.index;let n="",r=!1;for(this.index++;this.index<this.text.length;){const s=this.text[this.index];if(r)n+="u"===s?this.handleUnicodeEscape():li[s]||s,r=!1;else if("\\"===s)r=!0;else{if(s===e)return this.tokens.push({index:t,text:this.text.slice(t,this.index+1),constant:!0,value:n}),void this.index++;n+=s}this.index++}this.throwError("Unterminated quote",t)}handleUnicodeEscape(){const e=this.text.substring(this.index+1,this.index+5);return e.match(/[\da-f]{4}/i)||this.throwError(`Invalid unicode escape [\\u${e}]`),this.index+=4,String.fromCharCode(parseInt(e,16))}}const di=de("$parse"),pi=new Map([["true",!0],["false",!1],["null",null],["undefined",void 0]]);class fi{constructor(e){this.lexer=e,this.selfReferential={this:{type:Pe},$locals:{type:De}}}ast(e){this.text=e,this.tokens=this.lexer.lex(e);const t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t}program(){const e=[];let t=!0;for(;t;)this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),this.expect(";")||(t=!1);return{type:Ce,body:e}}expressionStatement(){return{type:Se,expression:this.filterChain()}}filterChain(){let e=this.assignment();for(;this.expect("|");)e=this.filter(e);return e}assignment(){let e=this.ternary();if(this.expect("=")){if(!ai(e))throw di("lval","Trying to assign a value to a non l-value");e={type:xe,left:e,right:this.assignment(),operator:"="}}return e}ternary(){const e=this.logicalOR();let t,n;return this.expect("?")&&(t=this.assignment(),this.consume(":"))?(n=this.assignment(),{type:Ae,test:e,alternate:t,consequent:n}):e}logicalOR(){let e=this.logicalAND();for(;this.expect("||");)e={type:Oe,operator:"||",left:e,right:this.logicalAND()};return e}logicalAND(){let e=this.equality();for(;this.expect("&&");)e={type:Oe,operator:"&&",left:e,right:this.equality()};return e}equality(){let e,t=this.relational();for(;e=this.expect("==","!=","===","!==");)t={type:ke,operator:e.text,left:t,right:this.relational()};return t}relational(){let e,t=this.additive();for(;e=this.expect("<",">","<=",">=");)t={type:ke,operator:e.text,left:t,right:this.additive()};return t}additive(){let e,t=this.multiplicative();for(;e=this.expect("+","-");)t={type:ke,operator:e.text,left:t,right:this.multiplicative()};return t}multiplicative(){let e,t=this.unary();for(;e=this.expect("*","/","%");)t={type:ke,operator:e.text,left:t,right:this.unary()};return t}unary(){let e;return(e=this.expect("+","-","!"))?{type:Te,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()}primary(){let e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():ve(this.selfReferential,this.peek().text)?e=structuredClone(this.selfReferential[this.consume().text]):pi.has(this.peek().text)?e={type:Ne,value:pi.get(this.consume().text)}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:_e,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:je,object:e,property:this.assignment(),computed:!0},this.consume("]")):"."===t.text?e={type:je,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e}filter(e){const t=[e],n={type:_e,callee:this.identifier(),arguments:t,filter:!0};for(;this.expect(":");)t.push(this.assignment());return n}parseArguments(){const e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e}identifier(){const e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:Le,name:e.text}}constant(){return{type:Ne,value:this.consume().value}}arrayDeclaration(){const e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.assignment())}while(this.expect(","));return this.consume("]"),{type:Re,elements:e}}object(){const e=[];let t;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;t={type:Ve,kind:"init"},this.peek().constant?(t.key=this.constant(),t.computed=!1,this.consume(":"),t.value=this.assignment()):this.peek().identifier?(t.key=this.identifier(),t.computed=!1,this.peek(":")?(this.consume(":"),t.value=this.assignment()):t.value=t.key):this.peek("[")?(this.consume("["),t.key=this.assignment(),this.consume("]"),t.computed=!0,this.consume(":"),t.value=this.assignment()):this.throwError("invalid key",this.peek()),e.push(t)}while(this.expect(","));return this.consume("}"),{type:Me,properties:e}}throwError(e,t){throw di("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))}consume(e){if(0===this.tokens.length)throw di("ueoe","Unexpected end of expression: {0}",this.text);const t=this.expect(e);if(t)return t;this.throwError(`is unexpected, expecting [${e}]`,this.peek())}peekToken(){if(0===this.tokens.length)throw di("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]}peek(...e){return this.peekAhead(0,...e)}peekAhead(e,...t){if(this.tokens.length>e){const n=this.tokens[e],r=n.text;if(t.includes(r)||!t[0]&&!t[1]&&!t[2]&&!t[3])return n}return!1}expect(...e){const t=this.peek(...e);return!!t&&(this.tokens.shift(),t)}}class $i{constructor(e,t){this.ast=new fi(e),this.astCompiler=new ii(t)}parse(e){const{ast:t}=this.getAst(e),n=this.astCompiler.compile(t);return n.literal=function(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Ne||e.body[0].expression.type===Re||e.body[0].expression.type===Me)}(t),n.constant=function(e){return e.constant}(t),n}getAst(e){return e=e.trim(),{ast:this.ast.ast(e)}}}class mi{constructor(){const e=Object.create(null);let t,n;this.setIdentifierFns=function(e,r){return t=e,n=r,this},this.$get=["$filter",function(r){const s={isIdentifierStart:k(t)&&t,isIdentifierContinue:k(n)&&n};return function(t,n){let o,a;switch(typeof t){case"string":if(a=t=t.trim(),o=e[a],!o){const n=new hi(s);o=new $i(n,r).parse(t),e[a]=vi(o)}return i(o,n);case"function":return i(t,n);default:return i(()=>{},n)}};function i(e,t){if(!t)return e;e.$$interceptor&&(t=function(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}(e.$$interceptor,t),e=e.$$intercepted);let n=!1;const r=function(r,s,i,o){const a=n&&o?o[0]:e(r,s,i,o);if(r?.getter)return;const c=k(a)?a():a;return t(p(c)?c.$target:c)};return r.$$intercepted=e,r.$$interceptor=t,r.literal=e.literal,r.oneTime=e.oneTime,r.constant=e.constant,r.decoratedNode=e.decoratedNode,t.$stateful||(n=!e.inputs,r.inputs=e.inputs?e.inputs:[e],t.$$pure||(r.inputs=r.inputs.map(function(e){return 2===e.isPure?function(t){return e(t)}:e}))),vi(r)}}]}}function gi(e,t,n,r){const s=e.$watch(()=>(s(),r(e)),t,n);return s}function vi(e){return e.constant?e.$$watchDelegate=gi:e.inputs&&(e.$$watchDelegate=yi),e}function yi(e,t,n,r){let s,i=r.inputs;if(1===i.length){let o=bi,a=i[0];return e.$watch(e=>{const t=a(e);return bi(t,o,a.isPure)||(s=r(e,void 0,[t]),o=t&&wi(t)),s},t,n)}{const o=[],a=[];for(let e=0,t=i.length;e<t;e++)o[e]=bi,a[e]=null;return e.$watch(e=>{let t=!1;for(let n=0,r=i.length;n<r;n++){const r=i[n](e);(t||(t=!bi(r,o[n],i[n].isPure)))&&(a[n]=r,o[n]=r&&wi(r))}return t&&(s=r(e,void 0,a)),s},t,n)}}function bi(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&"object"==typeof(e=wi(e))&&!n)&&(e===t||e!=e&&t!=t)}function wi(e){return k(e.valueOf)?e.valueOf():{}.constructor.prototype.valueOf.call(e)}const Ei=de("$interpolate");function Ci(e,t){throw Ei("interr","Can't interpolate: {0}\n{1}",e,t.toString())}class Si{constructor(){this.startSymbol="{{",this.endSymbol="}}"}$get=[Jt.$parse,Jt.$sce,function(e,t){const n=this,r=n.startSymbol.length,s=n.endSymbol.length,i=new RegExp(n.startSymbol.replace(/./g,a),"g"),o=new RegExp(n.endSymbol.replace(/./g,a),"g");function a(e){return`\\\\\\${e}`}function c(e){return e.replace(i,n.startSymbol).replace(o,n.endSymbol)}function l(i,o,a,l){const u=a===t.URL||a===t.MEDIA_URL;if(!i.length||-1===i.indexOf(n.startSymbol)){if(o)return;let e=c(i);u&&(e=t.getTrusted(a,e));const n=()=>e;return n.exp=i,n.expressions=[],n.$$watchDelegate=gi,n}let h,d;l=!!l;let p=0;const f=[];let $;const m=i.length;let g;const v=[],w=[];let E;for(;p<m;){if(-1===(h=i.indexOf(n.startSymbol,p))||-1===(d=i.indexOf(n.endSymbol,h+r))){p!==m&&v.push(c(i.substring(p)));break}p!==h&&v.push(c(i.substring(p,h))),g=i.substring(h+r,d),f.push(g),p=d+s,w.push(v.length),v.push("")}E=1===v.length&&1===w.length;const C=u&&E?void 0:function(e){try{return e=a&&!u?t.getTrusted(a,e):t.valueOf(e),l&&!b(e)?e:K(e)}catch(e){Ci(i,e)}};if($=f.map(t=>e(t,C)),!o||f.length){const e=function(e){for(let t=0,n=f.length;t<n;t++){if(l&&y(e[t]))return;v[w[t]]=e[t]}return u?t.getTrusted(a,E?v[0]:v.join("")):(a&&v.length>1&&function(e){throw Ei("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)}(i),v.join(""))};return M((t,n)=>{let r=0;const s=f.length,o=new Array(s);try{for(;r<s;r++){if(n){const i=f[r].trim();t.$watch(i,()=>{let r=new Array(s),i=0;for(;i<s;i++){let e=$[i];r[i]=e(t)}n(e(r))})}o[r]=$[r](t)}return e(o)}catch(e){Ci(i,e)}},{exp:i,expressions:f,$$watchDelegate(t,n){let r;return t.$watch($,function(s,i){const o=e(s);n.call(this,o,s!==i?r:o,t),r=o})}})}}return l.startSymbol=function(){return n.startSymbol},l.endSymbol=function(){return n.endSymbol},l}]}let xi={},Ai="";const Oi="application/json",ki={"Content-Type":`${Oi};charset=utf-8`},Ti=/^\[|^\{(?!\{)/,_i={"[":/]$/,"{":/}$/},ji=/^\)]\}',?\n/,Li=de("$http");function Ni(e){return w(e)?A(e)?e.toISOString():Y(e):e}function Ri(){this.$get=()=>e=>{if(!e)return"";const t=[];return Object.keys(e).sort().forEach(n=>{const r=e[n];null===r||y(r)||k(r)||(Array.isArray(r)?r.forEach(e=>{t.push(`${se(n)}=${se(Ni(e))}`)}):t.push(`${se(n)}=${se(Ni(r))}`))}),t.join("&")}}function Vi(e,t){if(E(e)){const r=e.replace(ji,"").trim();if(r){const s=t("Content-Type"),i=s&&0===s.indexOf(Oi);if(i||function(e){const t=e.match(Ti);return t&&_i[t[0]].test(e)}(r))try{e=E(n=r)?JSON.parse(n):n}catch(t){if(!i)return e;throw Li("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}var n;return e}function Mi(e){const t=Object.create(null);let n;function r(e,n){e&&(t[e]=t[e]?`${t[e]}, ${n}`:n)}return E(e)?e.split("\n").forEach(e=>{n=e.indexOf(":"),r(e.substring(0,n).trim().toLowerCase(),R(e.substring(n+1)))}):w(e)&&Object.entries(e).forEach(([e,t])=>{r(g(e),R(t))}),t}function Pi(e){let t;return function(n){if(t||(t=Mi(e)),n){let e=t[g(n)];return void 0===e&&(e=null),e}return t}}function Di(e,t,n,r){return k(r)?r(e,t,n):(Array.isArray(r)&&r.forEach(r=>{e=r(e,t,n)}),e)}function Ui(e){return e>=200&&e<300}function Ii(){const e=this.defaults={transformResponse:[Vi],transformRequest:[function(e){return!w(e)||(t=e,"[object File]"===toString.call(t))||function(e){return"[object Blob]"===toString.call(e)}(e)||function(e){return"[object FormData]"===toString.call(e)}(e)?e:Y(e);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:oe(ki),put:oe(ki),patch:oe(ki)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let t=!1;this.useApplyAsync=function(e){return b(e)?(t=!!e,this):t},this.interceptors=[],this.xsrfTrustedOrigins=[],Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(e){this.xsrfTrustedOrigins=e}}),this.$get=[Jt.$injector,Jt.$sce,function(n,r){const s=new Map;e.paramSerializer=E(e.paramSerializer)?n.get(e.paramSerializer):e.paramSerializer;const i=[];this.interceptors.forEach(e=>{i.unshift(E(e)?n.get(e):n.invoke(e))});const o=function(e){const t=[Tn].concat(e.map(_n));return function(e){const n=_n(e);return t.some(jn.bind(null,n))}}(this.xsrfTrustedOrigins);function a(c){if(!w(c))throw de("$http")("badreq","Http request configuration must be an object. Received: {0}",c);if(!E(r.valueOf(c.url)))throw de("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",c.url);const l=M({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},c);var u;l.headers=function(t){let n=e.headers,r=M({},t.headers);return n=M({},n.common,n[g(t.method)]),Object.keys(n).forEach(e=>{const t=g(e);Object.keys(r).some(e=>g(e)===t)||(r[e]=n[e])}),function(e,t){let n;const r={};return Object.entries(e).forEach(([e,s])=>{k(s)?(n=s(t),null!=n&&(r[e]=n)):r[e]=s}),r}(r,oe(t))}(c),l.method=E(u=l.method)?u.toUpperCase():u,l.paramSerializer=E(l.paramSerializer)?n.get(l.paramSerializer):l.paramSerializer;const h=[],d=[];let p=Promise.resolve(l);return i.forEach(e=>{(e.request||e.requestError)&&h.unshift(e.request,e.requestError),(e.response||e.responseError)&&d.push(e.response,e.responseError)}),p=f(p,h),p=p.then(function(n){const{headers:i}=n,c=Di(n.data,Pi(i),void 0,n.transformRequest);y(c)&&Object.keys(i).forEach(e=>{"content-type"===g(e)&&delete i[e]});y(n.withCredentials)&&!y(e.withCredentials)&&(n.withCredentials=e.withCredentials);return function(n,i){const{promise:c,resolve:l,reject:u}=Promise.withResolvers();let h,d;const p=n.headers;let{url:f}=n;E(f)||(f=r.valueOf(f));f=function(e,t){t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t);return e}(f,n.paramSerializer(n.params)),a.pendingRequests.push(n),c.then(C,C),(n.cache||e.cache)&&!1!==n.cache&&"GET"===n.method&&(h=w(n.cache)?n.cache:w(e.cache)?e.cache:s);h&&(d=h.get(f),b(d)?N(d)?d.then(v,v):Array.isArray(d)?g(d[1],d[0],oe(d[2]),d[3],d[4]):g(d,200,{},"OK","complete"):h.set(f,c));if(y(d)){const t=o(n.url)?function(){let e,t,n,r,s;const i=document.cookie;if(i!==Ai)for(Ai=i,e=Ai.split("; "),xi={},n=0;n<e.length;n++)t=e[n],r=t.indexOf("="),r>0&&(s=Hi(t.substring(0,r)),y(xi[s])&&(xi[s]=Hi(t.substring(r+1))));return xi}()[n.xsrfCookieName||e.xsrfCookieName]:void 0;t&&(p[n.xsrfHeaderName||e.xsrfHeaderName]=t),function(e,t,n,r,s,i,o,a,c,l){t=t||Ln(window.location.href);const u=new XMLHttpRequest;let h,d=!1;if(u.open(e,t,!0),s)for(const[e,t]of Object.entries(s))b(t)&&u.setRequestHeader(e,t);if(u.onload=()=>{let e=u.status||0;const n=u.statusText||"";0===e&&(e=u.response?200:"file:"===new URL(t).protocol?404:0),f(e,u.response,u.getAllResponseHeaders(),n,"complete")},u.onerror=()=>f(-1,null,null,"","error"),u.ontimeout=()=>f(-1,null,null,"","timeout"),u.onabort=()=>{f(-1,null,null,"",d?"timeout":"abort")},c)for(const[e,t]of Object.entries(c))u.addEventListener(e,t);if(l)for(const[e,t]of Object.entries(l))u.upload.addEventListener(e,t);o&&(u.withCredentials=!0);if(a)try{u.responseType=a}catch(e){if("json"!==a)throw e}u.send(y(n)?null:n),"number"==typeof i&&i>0?h=setTimeout(()=>p("timeout"),i):N(i)&&i.then(()=>{p(b(i.$$timeoutId)?"timeout":"abort")});function p(e){d="timeout"===e,u&&u.abort()}function f(e,t,n,s,i){b(h)&&clearTimeout(h),r(e,t,n,s,i)}}(n.method,f,i,m,p,n.timeout,n.withCredentials,n.responseType,$(n.eventHandlers),$(n.uploadEventHandlers))}return c;function $(e){if(e){const n={};return Object.entries(e).forEach(([e,r])=>{n[e]=function(e){function n(){r(e)}t?setTimeout(()=>n()):n()}}),n}return{}}function m(e,n,r,s,i){function o(){g(n,e,r,s,i)}h&&(Ui(e)?h.set(f,[e,n,Mi(r),s,i]):h.delete(f)),t?setTimeout(o):o()}function g(e,t,r,s,i){(Ui(t=t>=-1?t:0)?l:u)({data:e,status:t,headers:Pi(r),config:n,statusText:s,xhrStatus:i})}function v(e){g(e.data,e.status,oe(e.headers()),e.statusText,e.xhrStatus)}function C(){const e=a.pendingRequests.indexOf(n);-1!==e&&a.pendingRequests.splice(e,1)}}(n,c).then($,$)}),p=f(p,d),p;function f(e,t){for(let n=0,r=t.length;n<r;){const r=t[n++],s=t[n++];e=e.then(r,s)}return t.length=0,e}function $(e){const t=M({},e);return t.data=Di(e.data,e.headers,e.status,l.transformResponse),Ui(e.status)?t:Promise.reject(t)}}return a.pendingRequests=[],function(...e){e.forEach(e=>{a[e]=function(t,n){return a(M({},n||{},{method:e,url:t}))}})}("get","delete","head"),function(...e){e.forEach(e=>{a[e]=function(t,n,r){return a(M({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),a.defaults=e,a}]}function Hi(e){try{return decodeURIComponent(e)}catch{return e}}const Fi=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,qi=de("$location");let Bi,zi,Wi,Ki=!1;class Gi{constructor(e,t,n=!0,r){this.appBase=e,this.appBaseNoFile=t,this.html5=n,this.basePrefix=n?r||"":void 0,this.hashPrefix=n?void 0:r,this.absUrl="",this.$$url=void 0,this.$$updateBrowser=void 0}setUrl(e){const t=Fi.exec(e);return void 0===t[1]&&""!==e||this.setPath(t[1]||""),void 0===t[2]&&void 0===t[1]&&""!==e||this.setSearch(t[3]||""),this.setHash(t[5]||""),this}getUrl(){return this.$$url}setPath(e){let t=null!==e?e.toString():"";return Bi="/"===t.charAt(0)?t:`/${t}`,this.$$compose(),this}getPath(){return Bi}setHash(e){return Wi=null!==e?e.toString():"",this.$$compose(),this}getHash(){return Wi}setSearch(e,t){if(1===arguments.length)if(E(e)||x(e))e=e.toString(),zi=ee(e);else{if(!w(e))throw qi("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=structuredClone(e,{}),Object.entries(e).forEach(([t,n])=>{null==n&&delete e[t]}),zi=e}else y(t)||null===t?delete zi[e]:zi[e]=t;return this.$$compose(),this}getSearch(){return zi}$$compose(){this.$$url=function(e,t,n){const r=te(t),s=n?`#${re(n)}`:"";return function(e){const t=e.split("/");let n=t.length;for(;n--;){const e=decodeURIComponent(t[n].replace(/%2F/gi,"/"));t[n]=re(e)}return t.join("/")}(e)+(r?`?${r}`:"")+s}(Bi,zi,Wi),this.absUrl=this.html5?this.appBaseNoFile+this.$$url.substring(1):this.appBase+(this.$$url?this.hashPrefix+this.$$url:""),Ki=!0,setTimeout(()=>this.$$updateBrowser&&this.$$updateBrowser())}setState(e){if(!this.html5)throw qi("nostate","History API state support is available only in HTML5 mode");return this.$$state=y(e)?null:e,Ki=!0,this}getState(){return this.$$state}parseLinkUrl(e,t){if(this.html5){if(t&&"#"===t[0])return this.setHash(t.slice(1)),!0;let n,r,s;return b(n=Zi(this.appBase,e))?(r=n,s=this.basePrefix&&b(n=Zi(this.basePrefix,n))?this.appBaseNoFile+(Zi("/",n)||n):this.appBase+r):b(n=Zi(this.appBaseNoFile,e))?s=this.appBaseNoFile+n:this.appBaseNoFile===`${e}/`&&(s=this.appBaseNoFile),s&&this.parse(s),!!s}return Yi(this.appBase)===Yi(e)&&(this.parse(e),!0)}parse(e){if(this.html5){const t=Zi(this.appBaseNoFile,e);if(!E(t))throw qi("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,this.appBaseNoFile);Ji(t,!0),Bi||(Bi="/"),this.$$compose()}else{const n=Zi(this.appBase,e)||Zi(this.appBaseNoFile,e);let r;function s(e,t,n){const r=/^\/[A-Z]:(\/.*)/;let s;return we(t,n)&&(t=t.replace(n,"")),r.exec(t)?e:(s=r.exec(e),s?s[1]:e)}y(n)||"#"!==n.charAt(0)?this.html5?r=n:(r="",y(n)&&(this.appBase=e)):(r=Zi(this.hashPrefix,n),y(r)&&(r=n)),Ji(r,!1),Bi=s(Bi,r,this.appBase),this.$$compose()}}}class Qi{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!0,requireBase:!1,rewriteLinks:!0},this.urlChangeListeners=[],this.urlChangeInit=!1,this.cachedState=null,this.lastHistoryState=null,this.lastBrowserUrl=window.location.href,this.cacheState()}setUrl(e,t){if(void 0===t&&(t=null),e){if(e=new URL(e).href,this.lastBrowserUrl===e&&this.lastHistoryState===t)return this;this.lastBrowserUrl=e,this.lastHistoryState=t,history.pushState(t,"",e),this.cacheState()}}getBrowserUrl(){return Ln(window.location.href)}state(){return this.cachedState}cacheState(){const e=history.state??null;z(e,this.lastCachedState)||(this.cachedState=e,this.lastCachedState=e,this.lastHistoryState=e)}#e(){const e=this.lastHistoryState;this.cacheState(),this.lastBrowserUrl===this.getBrowserUrl()&&e===this.cachedState||(this.lastBrowserUrl=this.getBrowserUrl(),this.lastHistoryState=this.cachedState,this.urlChangeListeners.forEach(e=>{e(Ln(window.location.href),this.cachedState)}))}#t(e){this.urlChangeInit||(window.addEventListener("popstate",this.#e.bind(this)),window.addEventListener("hashchange",this.#e.bind(this)),this.urlChangeInit=!0),this.urlChangeListeners.push(e)}$get=[Jt.$rootScope,Jt.$rootElement,(e,t)=>{const n=Qt(),r=Ln(window.location.href);let s;if(this.html5ModeConf.enabled){if(!n&&this.html5ModeConf.requireBase)throw qi("nobase","$location in HTML5 mode requires a <base> tag to be present!");s=function(e){const t=e.indexOf("//")+2,n=e.indexOf("/",t);return-1===n?e:e.substring(0,n)}(r)+(n||"/")}else s=Yi(r);const i=(o=s).substring(0,Yi(o).lastIndexOf("/")+1);var o;const a=new Gi(s,i,this.html5ModeConf.enabled,`#${this.hashPrefixConf}`);a.parseLinkUrl(r,r),a.$$state=this.state();const c=/^\s*(javascript|mailto):/i,l=(e,t)=>{const n=a.getUrl(),r=a.$$state;try{this.setUrl(e,t),a.$$state=this.state()}catch(e){throw a.setUrl(n),a.$$state=r,e}};t.addEventListener("click",e=>{const n=this.html5ModeConf.rewriteLinks;if(!n||e.ctrlKey||e.metaKey||e.shiftKey||2===e.button)return;let r=e.target;for(;"a"!==r.nodeName.toLowerCase();)if(r===t||!(r=r.parentElement))return;if(E(n)&&y(r.getAttribute(n)))return;let s=r.href;const i=r.getAttribute("href")||r.getAttribute("xlink:href");if(w(s)&&"[object SVGAnimatedString]"===s.toString()){s=new URL(s.animVal).href}c.test(s)||!s||r.getAttribute("target")||e.defaultPrevented||a.parseLinkUrl(s,i)&&e.preventDefault()}),a.absUrl!==r&&this.setUrl(a.absUrl,!0);let u=!0;this.#t((t,n)=>{we(t,i)?Promise.resolve().then(()=>{const r=a.absUrl,s=a.$$state;let i;a.parse(t),a.$$state=n,i=e.$broadcast("$locationChangeStart",t,r,n,s).defaultPrevented,a.absUrl===t&&(i?(a.parse(r),a.$$state=s,l(r,s)):(u=!1,d(r,s)))}):window.location.href=t});const h=()=>{if(u||Ki){Ki=!1;const n=this.getBrowserUrl(),r=a.absUrl,s=this.state(),i=(t=r,!(Xi(n)===Xi(t))||a.html5&&s!==a.$$state);(u||i)&&(u=!1,setTimeout(()=>{const t=a.absUrl,{defaultPrevented:r}=e.$broadcast("$locationChangeStart",t,n,a.$$state,s);a.absUrl===t&&(r?(a.parse(n),a.$$state=s):(i&&l(t,s===a.$$state?null:a.$$state),d(n,s)))}))}var t};return a.$$updateBrowser=h,h(),e.$on("$updateBrowser",h),a;function d(t,n){e.$broadcast("$locationChangeSuccess",a.absUrl,t,a.$$state,n)}}]}function Ji(e,t){if(/^\s*[\\/]{2,}/.test(e))throw qi("badpath",'Invalid url "{0}".',e);const n="/"!==e.charAt(0);n&&(e=`/${e}`);const r=_n(e),s=n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname;Bi=function(e,t){const n=e.split("/");let r=n.length;for(;r--;)n[r]=decodeURIComponent(n[r]),t&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(s,t),zi=ee(r.search),Wi=decodeURIComponent(r.hash),Bi&&"/"!==Bi.charAt(0)&&(Bi=`/${Bi}`)}function Zi(e,t){if(we(t,e))return t.substring(e.length)}function Yi(e){const t=e.indexOf("#");return-1===t?e:e.substring(0,t)}function Xi(e){const t=document.createElement("a");t.href=e;let n=t.href;return n.endsWith("/")&&!/^https?:\/\/[^/]+\/$/.test(n)&&(n=n.slice(0,-1)),n.endsWith("#")&&(n=n.slice(0,-1)),n}class eo{constructor(){this.debug=!1,this._override=null}setLogger(e){this._override=e}formatError(e){return O(e)&&(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}consoleLog(e){const t=window.console||{},n=t[e]||t.log||(()=>{});return(...e)=>{const r=e.map(e=>this.formatError(e));return n.apply(t,r)}}$get(){return this._override?this._override():{log:this.consoleLog("log"),info:this.consoleLog("info"),warn:this.consoleLog("warn"),error:this.consoleLog("error"),debug:(()=>{const e=this.consoleLog("debug");return(...t)=>{this.debug&&e.apply(this,t)}})()}}}let to,no,ro=0;const so=[];class io{constructor(){this.rootScope=oo()}$get=[Jt.$exceptionHandler,Jt.$parse,(e,t)=>(no=e,to=t,this.rootScope)]}function oo(e={},t){if(C(e)||!0===e[ao]||!0===(e.constructor&&e.constructor[ao]))return e;if("object"==typeof e){if(function(e){if(null==e)return!1;const t=typeof e;if("object"!==t&&"function"!==t)return!1;const n=globalThis;if(e===n||e===n.window||e===n.document||e===n.self||e===n.frames)return!0;if("undefined"!=typeof Window&&e instanceof Window||"undefined"!=typeof Document&&e instanceof Document||"undefined"!=typeof Element&&e instanceof Element||"undefined"!=typeof Node&&e instanceof Node||"undefined"!=typeof EventTarget&&e instanceof EventTarget)return!0;try{return"[object Window]"===Object.prototype.toString.call(e)}catch{return!0}}(e))return e;const n=new Proxy(e,t||new co);for(const t in e)if(ve(e,t))try{e.constructor.$nonscope&&Array.isArray(e.constructor.$nonscope)&&e.constructor.$nonscope.includes(t)||e.$nonscope&&Array.isArray(e.$nonscope)&&e.$nonscope.includes(t)||(e[t]=oo(e[t],n.$handler))}catch{}return n}return e}const ao="$nonscope";class co{constructor(e,t){this.context=e?e.context?e.context:e:void 0,this.watchers=e?e.watchers:new Map,this.$$listeners=new Map,this.foreignListeners=e?e.foreignListeners:new Map,this.foreignProxies=e?e.foreignProxies:new Set,this.objectListeners=e?e.objectListeners:new WeakMap,this.functionListeners=e?e.functionListeners:new Map,this.$proxy=null,this.$handler=this,this.$target=null,this.$value=null,this.$children=[],this.$id=(ro+=1,ro),this.$root=e?e.$root:this,this.$parent=t||(this.$root===this?null:e),this.$$asyncQueue=[],this.filters=[],this.$$destroyed=!1,this.scheduled=[],this.propertyMap={$watch:this.$watch.bind(this),$new:this.$new.bind(this),$newIsolate:this.$newIsolate.bind(this),$destroy:this.$destroy.bind(this),$flushQueue:this.$flushQueue.bind(this),$eval:this.$eval.bind(this),$apply:this.$apply.bind(this),$postUpdate:this.$postUpdate.bind(this),$isRoot:this.#n.bind(this),$proxy:this.$proxy,$on:this.$on.bind(this),$emit:this.$emit.bind(this),$broadcast:this.$broadcast.bind(this),$transcluded:this.$transcluded.bind(this),$handler:this,$parent:this.$parent,$root:this.$root,$children:this.$children,$id:this.$id,$merge:this.$merge.bind(this),$getById:this.$getById.bind(this)}}set(e,t,n,r){if("undefined"===t)throw new Error("Attempting to set undefined property");if(e.constructor?.$nonscope&&Array.isArray(e.constructor.$nonscope)&&e.constructor.$nonscope.includes(t)||e.$nonscope&&Array.isArray(e.$nonscope)&&e.$nonscope.includes(t))return e[t]=n,!0;this.$proxy=r,this.$target=e;const s=e[t];if(void 0!==s&&Number.isNaN(s)&&Number.isNaN(n))return!0;if(s&&s[d]){if(Array.isArray(n)){if(s!==n){const e=this.watchers.get(t);e&&this.#r(e);const n=this.foreignListeners.get(t);n&&this.#r(n)}return this.objectListeners.get(e[t])&&this.objectListeners.delete(e[t]),e[t]=oo(n,this),this.objectListeners.set(e[t],[t]),!0}if(w(n)){if(ve(e,t)&&Object.keys(s).filter(e=>!n[e]).forEach(e=>{delete s[e]}),s!==n){const e=this.watchers.get(t);e&&this.#r(e);const r=this.foreignListeners.get(t);r&&this.#r(r),this.#s(n)}return e[t]=oo(n,this),!0}if(y(n)){let n=!1;if(Object.keys(s.$target).forEach(e=>{s.$target[e]?.[d]&&(n=!0),delete s[e]}),e[t]=void 0,!n){let e=this.watchers.get(t);e&&this.#r(e)}return!0}if(b(n)){e[t]=n;let s=this.watchers.get(t);if(s&&this.#r(s),Array.isArray(e)&&this.objectListeners.has(r)&&"length"!==t){this.objectListeners.get(r).forEach(e=>{const t=this.watchers.get(e);t&&this.#r(t)})}return!0}return!0}if(y(e[t])&&p(n)&&(this.foreignProxies.add(n),e[t]=n,!this.watchers.has(t)))return!0;if(y(n)?e[t]=n:e[t]=oo(n,this),s!==n){let r=this.$target,i=[];if(y(s)&&w(e[t])){this.objectListeners.has(e[t])||this.objectListeners.set(e[t],[t]);for(const e of Object.keys(n))this.watchers.get(e)?.forEach(e=>i.push(e)),r=n}Array.isArray(e)&&this.watchers.get("length")?.forEach(e=>i.push(e)),this.watchers.get(t)?.forEach(e=>i.push(e)),i.length>0&&this.#r(i,e=>e.filter(e=>{if(!e.watchProp)return!0;const t=e.watchProp.split(".").slice(0,-1).join("."),n=to(t)(e.originalTarget)?.$handler;return r===n?.$target}));let o=this.foreignListeners.get(t);!o&&this.$parent?.foreignListeners&&(o=this.$parent.foreignListeners.get(t)),o&&(this.$target.$$hashKey&&(o=o.filter(e=>!!e.originalTarget.$$hashKey&&e.originalTarget.$$hashKey===this.$target.$$hashKey)),this.#r(o))}if(this.objectListeners.has(r)&&"length"!==t){this.objectListeners.get(r).forEach(e=>{const t=this.watchers.get(e);t&&this.scheduled!==t&&this.#r(t)})}return!0}get(e,t,n){if("$$watchersCount"===t)return function(e){const t=lo(e).add(e.$id);return Array.from(e.watchers.values()).reduce((e,n)=>e+n.reduce((e,n)=>e+(t.has(n.scopeId)?1:0),0),0)}(this);if(t===d)return!0;if(e[t]&&p(e[t])?this.$proxy=e[t]:this.$proxy=n,this.propertyMap.$target=e,this.propertyMap.$proxy=n,Array.isArray(e)&&["pop","shift","unshift"].includes(t)){if(this.objectListeners.has(n)){this.objectListeners.get(this.$proxy).forEach(e=>{const t=this.watchers.get(e);t&&(this.scheduled=t)})}"unshift"===t&&this.#r(this.scheduled)}return ve(this.propertyMap,t)?(this.$target=e,this.propertyMap[t]):e[t]}deleteProperty(e,t){if(e[t]&&e[t][d]){e[t]=void 0;let n=this.watchers.get(t);if(n&&this.#r(n),this.objectListeners.has(this.$proxy)){this.objectListeners.get(this.$proxy).forEach(e=>{n=this.watchers.get(e),n&&this.#r(n)})}return this.scheduled&&(this.#r(this.scheduled),this.scheduled=[]),!0}if(delete e[t],this.objectListeners.has(this.$proxy)){this.objectListeners.get(this.$proxy).forEach(e=>{const t=this.watchers.get(e);t&&this.#r(t)})}else{const n=this.watchers.get(t);n&&this.#r(n,e[t])}return!0}#s(e){y(e)||Object.keys(e).forEach(t=>{const n=this.watchers.get(t);n&&this.#r(n),w(e[t])&&this.#s(e[t])})}#r(e,t=e=>e){Promise.resolve().then(()=>{let n=0,r=t(e);for(;n<r.length;){const e=r[n];e.foreignListener?e.foreignListener.#i(e,this.$target):this.#i(e,this.$target),n++}})}$watch(e,t,n=!1){ae(E(e),"Watched property required"),e=e.trim();const r=to(e);if(r.constant)return t&&Promise.resolve().then(()=>{let e=r();for(;k(e);)e=e();t(e,this.$target)}),()=>{};const s={originalTarget:this.$target,listenerFn:t,watchFn:r,scopeId:this.$id,id:m(),property:[]};let i=r.decoratedNode.body[0].expression.name,o=[],a=r.decoratedNode.body[0].expression.type;switch(a){case Ce:case Se:throw new Error("Unsupported type "+a);case xe:if(!t){let e=r(this.$target);for(;k(e);)e=e(this.$target);return Promise.resolve().then(e),()=>{}}i=r.decoratedNode.body[0].expression.left.name;break;case Ae:i=r.decoratedNode.body[0].expression.toWatch[0]?.test?.name,s.property.push(i);break;case Oe:{let e=[];return e.push(r.decoratedNode.body[0].expression.left.toWatch[0]?.name),e.push(r.decoratedNode.body[0].expression.right.toWatch[0]?.name),e.forEach(e=>{this.#o(e,s)}),()=>{e.forEach(e=>{this.#a(e,s.id)})}}case ke:{let e=r.decoratedNode.body[0].expression.toWatch[0];if(i=e.property?e.property.name:e.name,!i)throw new Error("Unable to determine key");s.property.push(i);break}case Te:{let e=r.decoratedNode.body[0].expression.toWatch[0];if(i=e.property?e.property.name:e.name,!i)throw new Error("Unable to determine key");s.property.push(i);break}case _e:{let e=[];return r.decoratedNode.body[0].expression.toWatch.forEach(t=>{b(t)&&e.push(t.name)}),e.forEach(e=>{this.#o(e,s),this.#r([s])}),()=>{e.forEach(e=>{this.#a(e,s.id)})}}case je:if(i=r.decoratedNode.body[0].expression.property.name,i||(i=r.decoratedNode.body[0].expression.object.name),s.property.push(i),e!==i){s.watchProp=e;let t=to(e.split(".").slice(0,-1).join("."))(s.originalTarget);if(t&&this.foreignProxies.has(t))return t.$handler.#c(i,s),t.$handler.#r([s]),()=>t.$handler.#a(i,s.id)}break;case Le:s.property.push(r.decoratedNode.body[0].expression.name);break;case Ne:throw new Error("Unsupported type "+a);case Re:{let e=r.decoratedNode.body[0].expression.elements.map(e=>11===e.type?e.value:e.toWatch[0].name).filter(e=>!!e);return e.forEach(e=>{this.#o(e,s),this.#r([s])}),()=>{e.forEach(e=>{this.#a(e,s.id)})}}case Ve:throw new Error("Unsupported type "+a);case Me:r.decoratedNode.body[0].expression.properties.forEach(e=>{if(!1===e.key.isPure)o.push(e.key.name),s.property.push(i);else if(e.value.name)o.push(e.value.name),s.property.push(i);else{const e=r.decoratedNode.body[0].expression.toWatch[0];i=e.property?e.property.name:e.name,s.property.push(i)}});break;case Pe:case De:case Ue:throw new Error("Unsupported type "+a)}let c=s.watchFn(this.$target);return w(c)&&this.objectListeners.set(c,[i]),o.length>0?o.forEach(e=>{this.#o(e,s)}):this.#o(i,s),n||this.#r([s]),()=>{if(o.length>0){let e=!0;return o.forEach(t=>{this.#a(t,s.id)||(e=!1)}),e}return this.#a(i,s.id)}}$new(e){let t;e?(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)==this.$target?Object.setPrototypeOf(e,this.$target):Object.setPrototypeOf(Object.getPrototypeOf(e)||e,this.$target),t=e):t=Object.create(this.$target);const n=new Proxy(t,new co(this));return this.$children.push(n),n}$newIsolate(e){let t=e?Object.create(e):Object.create(null);const n=new Proxy(t,new co(this,this.$root));return this.$children.push(n),n}$transcluded(e){let t=Object.create(this.$target);const n=new Proxy(t,new co(this,e));return this.$children.push(n),n}#o(e,t){this.watchers.has(e)?this.watchers.get(e).push(t):this.watchers.set(e,[t])}#c(e,t){this.foreignListeners.has(e)?this.foreignListeners.get(e).push(t):this.foreignListeners.set(e,[t])}#a(e,t){const n=this.watchers.get(e);if(!n)return!1;const r=n.findIndex(e=>e.id===t);return-1!==r&&(n.splice(r,1),n.length?this.watchers.set(e,n):this.watchers.delete(e),!0)}deregisterForeignKey(e,t){const n=this.foreignListeners.get(e);if(!n)return!1;const r=n.findIndex(e=>e.id===t);return-1!==r&&(n.splice(r,1),n.length?this.foreignListeners.set(e,n):this.foreignListeners.delete(e),!0)}$eval(e,t){const n=to(e)(this,t);return y(n)||null===n||n.name===Object.hasOwnProperty.name?n:k(n)?n():Number.isNaN(n)?0:n}$merge(e){Object.entries(e).forEach(([e,t])=>{this.set(this.$target,e,t,this.$proxy)})}$apply(e){try{return to(e)(this.$proxy)}catch(e){no(e)}}$on(e,t){let n=this.$$listeners.get(e);return n||(n=[],this.$$listeners.set(e,n)),n.push(t),()=>{const r=n.indexOf(t);-1!==r&&(n.splice(r,1),0==n.length&&this.$$listeners.delete(e))}}$emit(e,...t){return this.#l({name:e,event:void 0,broadcast:!1},...t)}$broadcast(e,...t){return this.#l({name:e,event:void 0,broadcast:!0},...t)}#l({name:e,event:t,broadcast:n},...r){if(!n&&!this.$$listeners.has(e))return this.$parent?this.$parent.$handler.#l({name:e,event:t,broadcast:n},...r):void 0;t?t.currentScope=this.$target:t=t||{name:e,targetScope:this.$target,currentScope:this.$target,stopped:!1,stopPropagation(){t.stopped=!0},preventDefault(){t.defaultPrevented=!0},defaultPrevented:!1};const s=G([t],[t].concat(r),1);let i=this.$$listeners.get(e);if(i){let e=i.length;for(let t=0;t<e;t++)try{i[t].apply(null,s),i.length!==e&&(i.length<e&&t--,e=i.length)}catch(e){no(e)}}return t.currentScope=null,t.stopped?t:n?(this.$children.length>0&&this.$children.forEach(s=>{t=s.$handler.#l({name:e,event:t,broadcast:n},...r)}),t):this.$parent?this.$parent.#l({name:e,event:t,broadcast:n},...r):t}#n(){return this.$root==this}$postUpdate(e){so.push(e)}$destroy(){if(!this.$$destroyed){if(this.$broadcast("$destroy"),Array.from(this.watchers.entries()).forEach(([e,t])=>{this.watchers.set(e,t.filter(e=>e.scopeId!==this.$id))}),this.#n())this.watchers.clear();else{let e=this.$parent.$children.filter(e=>e.$id==this.$id)[0];this.$parent.$children.splice(this.$parent.$children.indexOf(e),1)}this.$$listeners.clear(),this.$$destroyed=!0}}#i(e,t){const{originalTarget:n,listenerFn:r,watchFn:s}=e;try{let e=s(n);for(y(e)&&(e=s(t)),k(e)&&(e=e(n)),Array.isArray(e)&&e.forEach((t,r)=>{k(t)&&(e[r]=t(n))}),r(e,n),this.$$asyncQueue.forEach(e=>{e.handler.$id==this.$id&&Promise.resolve().then(e.fn(e.handler,e.locals))});so.length;)so.shift()()}catch(e){no(e)}}$flushQueue(){for(;so.length;)so.shift()()}$getById(e){if(E(e)&&(e=parseInt(e,10)),this.$id===e)return this;{let t;for(const n of this.$children){let r=n.$getById(e);if(r){t=r;break}}return t}}}function lo(e){const t=new Set([e.$id]);return e.$children?.forEach(e=>{lo(e).forEach(e=>t.add(e))}),t}const uo=de("$templateRequest");function ho(){let e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$sce",function(t,n,r,s){function i(o,a){if(i.totalPendingRequests++,!E(o)||!n.has(o))try{if(!(o=s.getTrustedResourceUrl(o)))return Promise.reject("Template not found")}catch(e){return Promise.reject(e.message)}let c=r.defaults&&r.defaults.transformResponse;return Array.isArray(c)?c=c.filter(function(e){return e!==Vi}):c===Vi&&(c=null),r.get(o,M({cache:n,transformResponse:c},e)).finally(function(){i.totalPendingRequests--}).then(function(e){return n.set(o,e.data),e.data},function(e){a||(e=uo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,e.status,e.statusText),t(e));return Promise.reject(e)})}return i.totalPendingRequests=0,i}]}class po{constructor(){this._aHrefSanitizationTrustedUrlList=/^\s*(https?|s?ftp|mailto|tel|file):/,this._imgSrcSanitizationTrustedUrlList=/^\s*((https?|ftp|file|blob):|data:image\/)/}aHrefSanitizationTrustedUrlList(e){return b(e)?(this._aHrefSanitizationTrustedUrlList=e,this):this._aHrefSanitizationTrustedUrlList}imgSrcSanitizationTrustedUrlList(e){return b(e)?(this._imgSrcSanitizationTrustedUrlList=e,this):this._imgSrcSanitizationTrustedUrlList}$get(){return(e,t)=>{if(!e)return e;const n=t?this._imgSrcSanitizationTrustedUrlList:this._aHrefSanitizationTrustedUrlList,r=_n(e.trim()).href;return""===r||r.match(n)?e:`unsafe:${r}`}}}const fo="ng-active",$o="ng-inactive";class mo{constructor(e,t,n,r){this.$element=e,this.$scope=t,this.$attrs=n,this.$animate=r,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watch(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(e={}){this.renderLater=!1,this.cachedCollection=e;const t=vo(this.$scope,this.$attrs.ngMessagesMultiple)||vo(this.$scope,this.$attrs.multiple),n=[],r={};let s=0,i=this.head,o=!1,a=0;for(;i;){a++;const c=i.message;let l=!1;o||Object.entries(e).forEach(([e,t])=>{if(yo(t)&&!l&&(s++,c.test(e))){if(r[e])return;r[e]=!0,l=!0,c.attach()}}),l?o=!t:n.push(c),i=i.next}n.forEach(e=>{e.detach()});const c=n.length!==a,l=this.default&&!c&&s>0;l?this.default.attach():this.default&&this.default.detach(),c||l?this.$animate.setClass(this.$element,fo,$o):this.$animate.setClass(this.$element,$o,fo)}reRender(){this.renderLater||(this.renderLater=!0,Promise.resolve().then(()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)}))}register(e,t,n){if(n)this.default=t;else{const n=this.latestKey.toString();this.messages[n]={message:t},this.insertMessageNode(this.$element,e,n),e.$$ngMessageNode=n,this.latestKey++}this.reRender()}deregister(e,t){if(t)delete this.default;else{const t=e.$$ngMessageNode;delete e.$$ngMessageNode,this.removeMessageNode(this.$element,e,t),delete this.messages[t]}this.reRender()}findPreviousMessage(e,t){let n=t;const r=[];for(;n&&n!==e;){const e=n.$$ngMessageNode;if(e&&e.length)return this.messages[e];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}insertMessageNode(e,t,n){const r=this.messages[n];if(this.head){const n=this.findPreviousMessage(e,t);n?(r.next=n.next,n.next=r):(r.next=this.head,this.head=r)}else this.head=r}removeMessageNode(e,t,n){const r=this.messages[n];if(!r)return;const s=this.findPreviousMessage(e,t);s?s.next=r.next:this.head=r.next}}function go(e){return{require:"ngMessages",restrict:"AE",controller:(t,n,r)=>new mo(t,n,r,e)}}function vo(e,t){return E(t)&&0===t.length||yo(e.$eval(t))}function yo(e){return E(e)?e.length:!!e}function bo(e,t){return{restrict:"AE",require:"^^ngMessages",link(n,r,s){const i=s.ngMessagesInclude||s.src;e(i).then(e=>{n.$$destroyed||E(e)&&!e.trim()||t(e)(n,e=>{r.after(e)})})}}}go.$inject=["$animate"],bo.$inject=["$templateRequest","$compile"];const wo=So(!1),Eo=So(!1),Co=So(!0);function So(e){function t(t){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,s,i,o){let a,c,l,u,h,d;if(!e){a=r,l=s.ngMessage||s.when,u=s.ngMessageExp||s.whenExp;const e=function(e){c=e?Array.isArray(e)?e:e.split(/[\s,]+/):null,i.reRender()};u?(e(n.$eval(u)),n.$watch(u,e)):e(l)}i.register(a,d={test:e=>function(e,t){if(e)return Array.isArray(e)?e.indexOf(t)>=0:ve(e,t)}(c,e),attach(){h||o((n,s)=>{t.enter(n,null,r),h=n;const o=h.$$attachId=i.getAttachId();h.addEventListener("$destroy",()=>{h&&h.$$attachId===o&&(i.deregister(a,e),d.detach()),s.$destroy()})})},detach(){if(h){const e=h;h=null,t.leave(e)}}},e),n.$on("$destroy",()=>{i.deregister(a,e)})}}}return t.$inject=["$animate"],t}const xo="ngAriaDisable",Ao=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Oo=function(e,t){if(-1!==t.indexOf(e.nodeName))return!0};function ko(){let e={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function t(t,n,r,s){return function(i,o,a){if(ve(a,xo))return;const c=a.$normalize(n);!e[c]||Oo(o,r)||a[c]||i.$watch(a[t],e=>{e=s?!e:!!e,o.setAttribute(n,e)})}}this.config=function(t){e=M(e,t)},this.$get=function(){return{config:t=>e[t],$$watchExpr:t}}}function To(e){return e.$$watchExpr("ngDisabled","aria-disabled",Ao,!1)}function _o(e){return e.$$watchExpr("ngShow","aria-hidden",[],!0)}function jo(){return{restrict:"A",require:"?ngMessages",link(e,t,n){ve(n,xo)||t.hasAttribute("aria-live")||t.setAttribute("aria-live","assertive")}}}function Lo(e,t){return{restrict:"A",compile(n,r){if(ve(r,xo))return;const s=t(r.ngClick);return(t,n,r)=>{Oo(n,Ao)||(e.config("bindRoleForClick")&&!n.hasAttribute("role")&&n.setAttribute("role","button"),e.config("tabindex")&&!n.hasAttribute("tabindex")&&n.setAttribute("tabindex","0"),!e.config("bindKeydown")||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.addEventListener("keydown",e=>{const n=parseInt(e.key,10);13!==n&&32!==n||(-1!==Ao.indexOf(e.target.nodeName)||e.target.isContentEditable||e.preventDefault(),s(t,{$event:e}))}))}}}}function No(e){return e.$$watchExpr("ngRequired","aria-required",Ao,!1)}function Ro(e){return e.$$watchExpr("ngChecked","aria-checked",Ao,!1)}function Vo(e){return e.$$watchExpr("ngValue","aria-checked",Ao,!1)}function Mo(e){return e.$$watchExpr("ngHide","aria-hidden",[],!1)}function Po(e){return e.$$watchExpr("ngReadonly","aria-readonly",Ao,!1)}function Do(e){function t(t,n,r,s){return e.config(n)&&!r.getAttribute(t)&&(s||!Oo(r,Ao))&&("hidden"!==r.getAttribute("type")||"INPUT"!==r.nodeName)}function n(e,t){return!t.getAttribute("role")&&t.getAttribute("type")===e&&!Oo(t,Ao)}return{restrict:"A",require:"ngModel",priority:200,compile(r,s){if(ve(s,xo))return;const i=function(e){const{type:t}=e,{role:n}=e;return"checkbox"===(t||n)||"menuitemcheckbox"===n?"checkbox":"radio"===(t||n)||"menuitemradio"===n?"radio":"range"===t||"progressbar"===n||"slider"===n?"range":""}(s);return{post(r,s,o,a){const c=t("tabindex","tabindex",s,!1);switch(i){case"radio":case"checkbox":n(i,s)&&s.setAttribute("role",i),t("aria-checked","ariaChecked",s,!1)&&a.$watch("$modelValue","radio"===i?function(){s.setAttribute("aria-checked",(o.value==a.$viewValue).toString())}:function(){s.setAttribute("aria-checked",(!a.$isEmpty(a.$viewValue)).toString())}),c&&s.setAttribute("tabindex",0);break;case"range":if(n(i,s)&&s.setAttribute("role","slider"),e.config("ariaValue")){const e=!s.hasAttribute("aria-valuemin")&&(ve(o,"min")||ve(o,"ngMin")),t=!s.hasAttribute("aria-valuemax")&&(ve(o,"max")||ve(o,"ngMax")),n=!s.hasAttribute("aria-valuenow");e&&o.$observe("min",e=>{s.setAttribute("aria-valuemin",e)}),t&&o.$observe("max",e=>{s.setAttribute("aria-valuemax",e)}),n&&a.$watch("$modelValue",e=>{s.setAttribute("aria-valuenow",e)})}c&&s.setAttribute("tabindex",0)}!ve(o,"ngRequired")&&a.$validators.required&&t("aria-required","ariaRequired",s,!1)&&o.$observe("required",()=>{s.setAttribute("aria-required",(!!o.required).toString())}),t("aria-invalid","ariaInvalid",s,!0)&&a.$watch("$invalid",e=>{s.setAttribute("aria-invalid",(!!e).toString())})}}}}}function Uo(e){return function(t,n,r){ve(r,xo)||!e.config("tabindex")||n.hasAttribute("tabindex")||Oo(n,Ao)||n.setAttribute("tabindex",0)}}To.$inject=[Jt.$aria],_o.$inject=[Jt.$aria],Lo.$inject=[Jt.$aria,Jt.$parse],No.$inject=[Jt.$aria],Ro.$inject=["$aria"],Vo.$inject=[Jt.$aria],Mo.$inject=[Jt.$aria],Po.$inject=[Jt.$aria],Do.$inject=[Jt.$aria],Uo.$inject=[Jt.$aria];const Io=0,Ho=1,Fo=2;let qo=[],Bo=!1;function zo(){const e=qo;qo=[],Bo=!1;for(let t=0;t<e.length;t++)e[t]()}function Wo(e){qo.push(e),Bo||(Bo=!0,("function"==typeof requestAnimationFrame?requestAnimationFrame:setTimeout)(zo,0))}class Ko{static chain(e,t){let n=0;const r=(s=!0)=>{!s||n>=e.length?t(s):e[n++].done(r)};r()}static all(e,t){let n=e.length,r=!0;for(const s of e)s.done(e=>{r=r&&!1!==e,0===--n&&t(r)})}constructor(e){this.host=e||{},this._doneCallbacks=[],this._state=Io,this._promise=null,this._schedule=Wo}setHost(e){this.host=e||{}}done(e){this._state===Fo?e(!0):this._doneCallbacks.push(e)}progress(...e){this.host.progress?.(...e)}pause(){this.host.pause?.()}resume(){this.host.resume?.()}end(){this.host.end?.(),this._finish(!0)}cancel(){this.host.cancel?.(),this._finish(!1)}complete(e=!0){this._state===Io&&(this._state=Ho,this._schedule(()=>this._finish(e)))}getPromise(){return this._promise||(this._promise=new Promise((e,t)=>{this.done(n=>{!1===n?t():e()})})),this._promise}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}_finish(e){if(this._state===Fo)return;this._state=Fo;const t=this._doneCallbacks;for(let n=0;n<t.length;n++)t[n](e);t.length=0}}const Go="$$animateCss",Qo=1e3,Jo={transitionDuration:nt,transitionDelay:tt,transitionProperty:ze+Je,animationDuration:et,animationDelay:Xe,animationIterationCount:Ke+"IterationCount"},Zo={transitionDuration:nt,transitionDelay:tt,animationDuration:et,animationDelay:Xe};function Yo(e,t){return[t?Xe:tt,`${e}s`]}function Xo(e,t){const n=Object.create(null),r=window.getComputedStyle(e)||{};return Object.entries(t).forEach(([e,t])=>{let s=r[t];if(s){const t=s.charAt(0);("-"===t||"+"===t||t>=0)&&(s=function(e){let t=0;return e.split(/\s*,\s*/).forEach(e=>{"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}(s)),0===s&&(s=null),n[e]=s}}),n}function ea(e){return 0===e||null!=e}function ta(e,t){let n=ze,r=`${e}s`;return t?n+=Qe:r+=" linear all",[n,r]}function na(e,t,n){n.forEach(n=>{e[n]=b(e[n])?e[n]:t.style.getPropertyValue(n)})}function ra(){let e;this.$get=["$$animateCache","$$rAFScheduler",function(t,n){const r=function(e,t){t.addClass&&(e.classList.add(...t.addClass.trim().split(" ")),t.addClass=null),t.removeClass&&(e.classList.remove(...t.removeClass.trim().split(" ")),t.removeClass=null)};const s=[];function i(e){s.push(e),n.waitUntilQuiet(()=>{t.flush();const e=document.body.offsetWidth+1;for(let t=0;t<s.length;t++)s[t](e);s.length=0})}function o(e,n,r){const s=function(e,n,r,s){let i=t.get(n);i||(i=Xo(e,s),"infinite"===i.animationIterationCount&&(i.animationIterationCount=1));const o=r||i.transitionDuration>0||i.animationDuration>0;return t.put(n,i,o),i}(e,n,r,Jo),i=s.animationDelay,o=s.transitionDelay;return s.maxDelay=i&&o?Math.max(i,o):i||o,s.maxDuration=Math.max(s.animationDuration*s.animationIterationCount,s.transitionDuration),s}return function(n,s){let a,c=s||{};c.$$prepared||(c=at(structuredClone(c)));const l={},u=n;if(!u||!u.parentNode)return F();const h=[],d=function(e){const t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}(c);let p,f,$,m,g,v,y,b,w,E;const C=[];if(0===c.duration)return F();const S=c.event&&Array.isArray(c.event)?c.event.join(" "):c.event,x=S&&c.structural;let A="",O="";x?A=it(S,"ng-",!0):S&&(A=S),c.addClass&&(O+=it(c.addClass,Ie)),c.removeClass&&(O.length&&(O+=" "),O+=it(c.removeClass,He)),c.applyClassesEarly&&O.length&&r(n,c);let k=[A,O].join(" ").trim();const T=d.to&&Object.keys(d.to).length>0;if(!((c.keyframeStyle||"").length>0)&&!T&&!k)return F();let _,j,L=t.cacheKey(u,S,c.addClass,c.removeClass);if(t.containsCachedAnimationWithoutDuration(L))return k=null,F();if(c.stagger>0){const e=parseFloat(c.stagger);_={transitionDelay:e,animationDelay:e,transitionDuration:0,animationDuration:0}}else _=function(e,n,r,s){let i;const o=`stagger-${r}`;if(t.count(r)>0&&(i=t.get(o),!i)){const r=it(n,"-stagger");e.className+=` ${r}`,i=Xo(e,s),i.animationDuration=Math.max(i.animationDuration,0),i.transitionDuration=Math.max(i.transitionDuration,0),e.classList.remove(r),t.put(o,i,!0)}return i||{}}(u,k,L,Zo);if(c.$$skipPreparationClasses||n.classList.add(...k.split(" ").filter(e=>""!==e)),c.transitionStyle){const e=[ze,c.transitionStyle];pt(u,e),h.push(e)}if(c.duration>=0){j=u.style[ze].length>0;const e=ta(c.duration,j);pt(u,e),h.push(e)}if(c.keyframeStyle){const e=[Ke,c.keyframeStyle];pt(u,e),h.push(e)}const N=_?c.staggerIndex>=0?c.staggerIndex:t.count(L):0,R=0===N;R&&!c.skipBlocking&&sa(u,9999);let V=o(u,L,!x),M=V.maxDelay;v=Math.max(M,0),b=V.maxDuration;const P={};return P.hasTransitions=V.transitionDuration>0,P.hasAnimations=V.animationDuration>0,P.hasTransitionAll=P.hasTransitions&&"all"===V.transitionProperty,P.applyTransitionDuration=T&&(P.hasTransitions&&!P.hasTransitionAll||P.hasAnimations&&!P.hasTransitions),P.applyAnimationDuration=c.duration&&P.hasAnimations,P.applyTransitionDelay=ea(c.delay)&&(P.applyTransitionDuration||P.hasTransitions),P.applyAnimationDelay=ea(c.delay)&&P.hasAnimations,P.recalculateTimingStyles=O.length>0,(P.applyTransitionDuration||P.applyAnimationDuration)&&(b=c.duration?parseFloat(c.duration):b,P.applyTransitionDuration&&(P.hasTransitions=!0,V.transitionDuration=b,j=u.style[ze+Je].length>0,h.push(ta(b,j))),P.applyAnimationDuration&&(P.hasAnimations=!0,V.animationDuration=b,h.push([et,`${b}s`]))),0!==b||P.recalculateTimingStyles?(e=it(k,Fe),null!=c.delay&&("boolean"!=typeof c.delay&&(a=parseFloat(c.delay),v=Math.max(a,0)),P.applyTransitionDelay&&h.push(Yo(a)),P.applyAnimationDelay&&h.push(Yo(a,!0))),null==c.duration&&V.transitionDuration>0&&(P.recalculateTimingStyles=P.recalculateTimingStyles||R),y=v*Qo,w=b*Qo,c.skipBlocking||(P.blockTransition=V.transitionDuration>0,P.blockKeyframeAnimation=V.animationDuration>0&&_.animationDelay>0&&0===_.animationDuration),c.from&&(c.cleanupStyles&&na(l,u,Object.keys(c.from)),lt(n,c)),P.blockTransition||P.blockKeyframeAnimation?H(b):c.skipBlocking||sa(u,!1),{$$willAnimate:!0,end:D,start(){if(!p)return g={end:D,cancel:U,resume:null,pause:null},m=new Ko(g),i(B),m}}):F();function D(){I()}function U(){I(!0)}function I(t){if(p||$&&f)return;p=!0,f=!1,k&&!c.$$skipPreparationClasses&&n.classList.remove(...k.split(" ")),e=it(k,Fe),e&&n.classList.remove(...e.split(" ")),dt(u,!1),sa(u,!1),h.forEach(e=>{u.style[e[0]]=""}),r(n,c),ct(n,c),Object.keys(l).length&&Object.entries(l).forEach(([e,t])=>{t?u.style.setProperty(e,t):u.style.removeProperty(e)}),c.onDone&&c.onDone(),C&&C.length&&C.forEach(e=>n.removeEventListener(e,q));const s=Lt(n,Go);s&&(clearTimeout(s[0].timer),xt(n,Go)),m&&m.complete(!t)}function H(e){P.blockTransition&&sa(u,e),P.blockKeyframeAnimation&&dt(u,!!e)}function F(){return m=new Ko({end:D,cancel:U}),i(()=>{}),I(),{$$willAnimate:!1,start:()=>m,end:D}}function q(e){e.stopPropagation();const t=e.originalEvent||e;if(t.target!==u)return;const n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-E,0)>=y&&r>=b&&($=!0,I())}function B(){if(p)return;if(!u.parentNode)return void I();const s=function(e){if($)f&&e&&(f=!1,I());else if(f=!e,V.animationDuration){const e=dt(u,f);f?h.push(e):function(e,t){const n=e.indexOf(t);t>=0&&e.splice(n,1)}(h,e)}},i=N>0&&(V.transitionDuration&&0===_.transitionDuration||V.animationDuration&&0===_.animationDuration)&&Math.max(_.animationDelay,_.transitionDelay);function d(){if(p)return;if(H(!1),h.forEach(e=>{const t=e[0];u.style[t]=e[1]}),r(n,c),n.classList.add(...e.split(" ").filter(e=>""!==e)),P.recalculateTimingStyles){if(L=t.cacheKey(u,S,c.addClass,c.removeClass),V=o(u,L,!1),M=V.maxDelay,v=Math.max(M,0),b=V.maxDuration,0===b)return void I();P.hasTransitions=V.transitionDuration>0,P.hasAnimations=V.animationDuration>0}if(P.applyAnimationDelay&&(M="boolean"!=typeof c.delay&&ea(c.delay)?parseFloat(c.delay):M,v=Math.max(M,0),V.animationDelay=M,a=Yo(M,!0),h.push(a),u.style[a[0]]=a[1]),y=v*Qo,w=b*Qo,c.easing){let e;const t=c.easing;P.hasTransitions&&(e=ze+Ye,h.push([e,t]),u.style[e]=t),P.hasAnimations&&(e=Ke+Ye,h.push([e,t]),u.style[e]=t)}V.transitionDuration&&C.push(We),V.animationDuration&&C.push(Ge),E=Date.now();const s=y+1.5*w,i=E+s,d=Lt(n,Go)||[];let f=!0;if(d.length){const e=d[0];f=i>e.expectedEndTime,f?clearTimeout(e.timer):d.push(I)}if(f){const e=setTimeout(m,s,!1);d[0]={timer:e,expectedEndTime:i},d.push(I),jt(n,Go,d)}C.length&&C.forEach(e=>{n.addEventListener(e,q)}),c.to&&(c.cleanupStyles&&na(l,u,Object.keys(c.to)),ut(n,c))}function m(){const e=Lt(n,Go);if(e){for(let t=1;t<e.length;t++)e[t]();xt(n,Go)}}i?setTimeout(d,Math.floor(i*N*Qo),!1):d(),g.resume=function(){s(!0)},g.pause=function(){s(!1)}}}}]}function sa(e,t){const n=t?`-${t}s`:"";return pt(e,[tt,n]),[tt,n]}const ia="data-ng-animate",oa="$ngAnimatePin";function aa(e){const t=this.rules={skip:[],cancel:[],join:[]};function n(e){return{addClass:e.addClass,removeClass:e.removeClass,from:e.from,to:e.to}}function r(e,t){if(e&&t){const n=function(e){if(!e)return null;const t=e.split(" "),n=Object.create(null);return t.forEach(e=>{n[e]=!0}),n}(t);return e.split(" ").some(e=>n[e])}}function s(e,n,r){return t[e].some(e=>e(n,r))}function i(e,t){const n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}t.join.push(e=>!e.structural&&i(e)),t.skip.push(e=>!e.structural&&!i(e)),t.skip.push((e,t)=>"leave"===t.event&&e.structural),t.skip.push((e,t)=>t.structural&&2===t.state&&!e.structural),t.cancel.push((e,t)=>t.structural&&e.structural),t.cancel.push((e,t)=>2===t.state&&e.structural),t.cancel.push((e,t)=>{if(t.structural)return!1;const n=e.addClass,s=e.removeClass,i=t.addClass,o=t.removeClass;return!(y(n)&&y(s)||y(i)&&y(o))&&(r(n,o)||r(s,i))}),this.$get=[Jt.$rootScope,Jt.$injector,Jt.$$animation,Jt.$templateRequest,function(t,r,o,a){const c=new Map,l=new Map;t.templateRequest=a;const u=t.$watch("$templateRequest.totalPendingRequests",e=>{0===e&&(u(),t.$templateRequest=void 0,t.$postUpdate(()=>{t.$postUpdate(()=>{})}))},!0),h=Object.create(null),d=e.customFilter(),p=e.classNameFilter(),f=function(){return!0},$=d||f,m=p?function(e,t){const n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return p.test(n)}:f,g=function(e,t){t.addClass&&(e.classList.add(...t.addClass.trim().split(" ")),t.addClass=null),t.removeClass&&(e.classList.remove(...t.removeClass.trim().split(" ")),t.removeClass=null)};function v(e,t){return ht(e,t,{})}const C=window.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))};function S(e,t,n){const r=ot(t);return e.filter(e=>!(e.node===r&&(!n||e.callback===n)))}function x(e,t){"close"!==e||t.parentNode||A.off(t)}let A={on(e,t,n){const r=ot(t);h[e]=h[e]||[],h[e].push({node:r,callback:n}),t.addEventListener("$destroy",()=>{c.get(r)||A.off(e,t,n)})},off(e,t,n){if(1===arguments.length&&!E(arguments[0])){t=arguments[0];for(const e in h)h[e]=S(h[e],t);return}const r=h[e];r&&(h[e]=1===arguments.length?null:S(r,t,n))},pin(e,t){st(I(e),"element","not an element"),st(I(t),"parentElement","not an element"),jt(e,oa,t)},push:(e,a,u,d)=>((u=u||{}).domOperation=d,function(e,a,u){let d=u,p=Array.isArray(e)?e.filter(e=>"#comment"!==e.nodeName)[0]:e;const f=p,S=f&&f.parentNode;d=at(d);const A=new Ko,T=function(){let e=!1;return function(n){e?n():t.$postUpdate(()=>{e=!0,n()})}}();Array.isArray(d.addClass)&&(d.addClass=d.addClass.join(" "));d.addClass&&!E(d.addClass)&&(d.addClass=null);Array.isArray(d.removeClass)&&(d.removeClass=d.removeClass.join(" "));d.removeClass&&!E(d.removeClass)&&(d.removeClass=null);d.from&&!w(d.from)&&(d.from=null);d.to&&!w(d.to)&&(d.to=null);if(!f||!$(f,a,u)||!m(f,d))return D(),A;const _=["enter","move","leave"].indexOf(a)>=0;let j=document.hidden||l.get(f);const L=!j&&c.get(f)||{},N=!!L.state;j||N&&1===L.state||(j=!function(e,t){const n=document.body,s=r.get("$rootElement");let i,o=e===n||"HTML"===e.nodeName,a=e===s,u=!1,h=l.get(e),d=_t(e,oa);d&&(t=d);for(;t&&(a||(a=t===s),t.nodeType===Node.ELEMENT_NODE);){const e=c.get(t)||{};if(!u){const n=l.get(t);if(!0===n&&!1!==h){h=!0;break}!1===n&&(h=!1),u=e.structural}if(y(i)||!0===i){const e=_t(t,Be);b(e)&&(i=e)}if(u&&!1===i)break;if(o||(o=t===n),o&&a)break;t=a||(d=_t(t,oa),!d)?t.parentNode:d}return(!u||i)&&!0!==h&&a&&o}(f,S));if(j)return document.hidden&&P(A,a,"start",n(d)),D(),document.hidden&&P(A,a,"close",n(d)),A;_&&function(e){const t=e.querySelectorAll(`[${ia}]`);t.forEach(e=>{const t=parseInt(e.getAttribute(ia),10),n=c.get(e);if(n)switch(t){case 2:n.runner.end();case 1:c.delete(e)}})}(f);const R={structural:_,element:p,event:a,addClass:d.addClass,removeClass:d.removeClass,close:D,options:d,runner:A};if(N){if(s("skip",R,L))return 2===L.state?(D(),A):(ht(p,L,R),L.runner);if(s("cancel",R,L))if(2===L.state)L.runner.end();else{if(!L.structural)return ht(p,L,R),L.runner;L.close()}else{if(s("join",R,L)){if(2!==L.state)return function(e,t,n){let r="";t&&(r=it(t,"ng-",!0)),n.addClass&&(r=ft(r,it(n.addClass,Ie))),n.removeClass&&(r=ft(r,it(n.removeClass,He))),r.length&&(n.preparationClasses=r,e.className+=` ${r}`)}(p,_?a:null,d),a=R.event=L.event,d=ht(p,L,R),L.runner;v(p,R)}}}else v(p,R);let V=R.structural;V||(V="animate"===R.event&&Object.keys(R.options.to||{}).length>0||i(R));if(!V)return D(),O(f),A;const M=(L.counter||0)+1;return R.counter=M,k(f,1,R),t.$postUpdate(()=>{p=function(e){return e instanceof NodeList?Array.from(e).filter(e=>e.nodeType==Node.ELEMENT_NODE):e.nodeType===Node.ELEMENT_NODE?e:void 0}(e);let t=c.get(f);const r=!t;t=t||{};const s=(p.parentElement||[])&&("animate"===t.event||t.structural||i(t));if(r||t.counter!==M||!s)return r&&(g(p,d),ct(p,d)),(r||_&&t.event!==a)&&(d.domOperation(),A.end()),void(s||O(f));a=!t.structural&&i(t,!0)?"setClass":t.event,k(f,2);const l=o(p,a,t.options);A.setHost(l),P(A,a,"start",n(d)),l.done(e=>{D(!e);const t=c.get(f);t&&t.counter===M&&O(f),P(A,a,"close",n(d))})}),setTimeout(t.$flushQueue,0),A;function P(e,t,n,r){T(()=>{const e=function(e,t,n){const r=[],s=h[n];return s&&s.forEach(s=>{(C.call(s.node,t)||"leave"===n&&C.call(s.node,e))&&r.push(s.callback)}),r}(S,f,t);e.length?(e.forEach(e=>{e(p,n,r)}),x(n,f)):x(n,f)}),e.progress(t,n,r)}function D(e){!function(e,t){t.preparationClasses&&(t.preparationClasses.split(" ").forEach(t=>e.classList.remove(t)),t.preparationClasses=null),t.activeClasses&&(t.activeClasses.split(" ").forEach(t=>e.classList.remove(t)),t.activeClasses=null)}(p,d),g(p,d),ct(p,d),d.domOperation(),A.complete(!e)}}(e,a,u))};return A;function O(e){e.removeAttribute(ia),c.delete(e)}function k(e,t,n){(n=n||{}).state=t,e.setAttribute(ia,t);const r=c.get(e),s=r?M(r,n):n;c.set(e,s)}}]}function ca(e){this.$get=[Jt.$injector,function(t){const n=function(e,t){t.addClass&&(e.classList.add(...t.addClass.trim().split(" ")),t.addClass=null),t.removeClass&&(e.classList.remove(...t.removeClass.trim().split(" ")),t.removeClass=null)};return function(r,s,i,o){let a=!1;3===arguments.length&&w(i)&&(o=i,i=null),o=at(o),i||(i=r.getAttribute("class")||"",o.addClass&&(i+=` ${o.addClass}`),o.removeClass&&(i+=` ${o.removeClass}`));const c=o.addClass,l=o.removeClass,u=function(n){n=Array.isArray(n)?n:n.split(" ");const r=[],s={};for(let i=0;i<n.length;i++){const o=n[i],a=e.$$registeredAnimations[o];a&&!s[o]&&(r.push(t.get(a)),s[o]=!0)}return r}(i);let h,d,p;if(u.length){let e,t;"leave"===s?(t="leave",e="afterLeave"):(t=`before${s.charAt(0).toUpperCase()}${s.substring(1)}`,e=s),"enter"!==s&&"move"!==s&&(h=g(r,s,o,u,t)),d=g(r,s,o,u,e)}if(h||d)return{$$willAnimate:!0,end:()=>(p?p.end():($(),p=new Ko,p.complete(!0)),p),start(){if(p)return p;p=new Ko;const e=[];if(h){const t=new Ko({end(e){(h(e)||(()=>{}))()},cancel(){(h(!0)||(()=>{}))()}});e.push(t)}if(e.length){const t=new Ko({end(e){f(),e(!0)},cancel(){f()}});e.push(t)}else f();if(d){const t=new Ko({end(e){(d(e)||(()=>{}))()},cancel(){(d(!0)||(()=>{}))()}});e.push(t)}return p.setHost({end(){n()},cancel(){n(!0)}}),Ko.chain(e,t),p;function t(e){$(),p.complete(e)}function n(e){a||t(e)}}};function f(){o.domOperation(),n(r,o)}function $(){a=!0,f(),ct(r,o)}function m(e,t,n,r,s){const i=[];return r.forEach(r=>{const o=r[s];o&&i.push(()=>{let r,s,i=!1;const a=function(e){i||(i=!0,(s||(()=>{}))(e),r.complete(!e))};return r=new Ko({end(){a()},cancel(){a(!0)}}),s=function(e,t,n,r,s){let i;switch(n){case"animate":i=[t,r.from,r.to,s];break;case"setClass":i=[t,c,l,s];break;case"addClass":i=[t,c,s];break;case"removeClass":i=[t,l,s];break;default:i=[t,s]}i.push(r);let o=e.apply(e,i);if(o)if(k(o.start)&&(o=o.start()),o instanceof Ko)o.done(s);else if(k(o))return o;return()=>{}}(o,e,t,n,e=>{a(!1===e)}),r})}),i}function g(e,t,n,r,s){let i=m(e,t,n,r,s);if(0===i.length){let t,o;"beforeSetClass"===s?(t=m(e,"removeClass",n,r,"beforeRemoveClass"),o=m(e,"addClass",n,r,"beforeAddClass")):"setClass"===s&&(t=m(e,"removeClass",n,r,"removeClass"),o=m(e,"addClass",n,r,"addClass")),t&&(i=i.concat(t)),o&&(i=i.concat(o))}if(0!==i.length)return function(e){const t=[];return i.length&&i.forEach(e=>{t.push(e())}),t.length?Ko.all(t,e):e(),function(e){t.forEach(t=>{e?t.cancel():t.end()})}}}}}]}aa.$inject=["$animateProvider"],ca.$inject=[Jt.$animate+"Provider"];const la="$$animationRunner",ua="$$animatePrepareClasses";function ha(){const e="ng-animate-ref",t=this.drivers=[];function n(e){!function(e,t){if(kt(e)){const n=At(e,!1),r=n?.data;r&&ve(r,Ct(t))&&delete r[Ct(t)]}}(e,la)}function r(e){return Lt(e,la)}this.$get=[Jt.$rootScope,Jt.$injector,Jt.$$rAFScheduler,Jt.$$animateCache,function(s,i,o,a){const c=[],l=function(e,t){t.addClass&&(e.classList.add(...t.addClass.trim().split(" ")),t.addClass=null),t.removeClass&&(e.classList.remove(...t.removeClass.trim().split(" ")),t.removeClass=null)};return function(u,h,d){d=at(d);const p=["enter","move","leave"].indexOf(h)>=0,f=new Ko({end(){v()},cancel(){v(!0)}});if(!t.length)return v(),f;let $=fe(u.getAttribute("class"),fe(d.addClass,d.removeClass)),{tempClasses:m}=d;return m&&($+=` ${m}`,d.tempClasses=null),p&&jt(u,ua,`ng-${h}-prepare`),function(e,t){jt(e,la,t)}(u,f),c.push({element:u,classes:$,event:h,structural:p,options:d,beforeStart:function(){m=(m?`${m} `:"")+qe,u.className+=` ${m}`;let e=Lt(u,ua);e&&(u.classList.remove(e),e=null)},close:v}),u.addEventListener("$destroy",function(){const e=r(u);!e||"leave"===h&&d.$$domOperationFired||e.end()}),c.length>1||s.$postUpdate(()=>{const n=[];c.forEach(e=>{r(e.element)?n.push(e):e.close()}),c.length=0;const s=function(t){const n=[],r={};t.forEach((t,s)=>{const{element:i}=t,o=i,{event:a}=t,c=["enter","move"].indexOf(a)>=0,l=t.structural?function(t){const n=`[${e}]`,r=t.hasAttribute(e)?[t]:t.querySelectorAll(n),s=[];return r.forEach(t=>{const n=t.getAttribute(e);n&&n.length&&s.push(t)}),s}(o):[];if(l.length){const t=c?"to":"from";l.forEach(n=>{const i=n.getAttribute(e);r[i]=r[i]||{},r[i][t]={animationID:s,element:n}})}else n.push(t)});const s={},i={};return Object.values(r).forEach(e=>{const{from:r}=e,{to:o}=e;if(!r||!o){const e=r?r.animationID:o.animationID,i=e.toString();return void(s[i]||(s[i]=!0,n.push(t[e])))}const a=t[r.animationID],c=t[o.animationID],l=r.animationID.toString();if(!i[l]){const e=i[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:g(a.classes,c.classes),from:a,to:c,anchors:[]};e.classes.length?n.push(e):(n.push(a),n.push(c))}i[l].anchors.push({out:r.element,in:o.element})}),n}(n),l=[];s.forEach(e=>{const n=e.from?e.from.element:e.element;let s=d.addClass;s=(s?`${s} `:"")+qe;const o=a.cacheKey(n,e.event,s,d.removeClass);l.push({element:n,domNode:n,fn:function(){let n;const s=e.close;if(a.containsCachedAnimationWithoutDuration(o))return void s();e.beforeStart();if(r(e.anchors?e.from.element||e.to.element:e.element)){const r=function(e){for(let n=t.length-1;n>=0;n--){const r=t[n],s=i.get(r)(e);if(s)return s}}(e);r&&(n=r.start)}if(n){const t=n();t.done(e=>{s(!e)}),function(e,t){e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element);function n(e){const n=r(e);n&&n.setHost(t)}}(e,t)}else s()}})});const u=function(e){const t={children:[]};let n;const r=new Map;for(n=0;n<e.length;n++){const t=e[n];r.set(t.domNode,e[n]={domNode:t.domNode,element:t.element,fn:t.fn,children:[]})}for(n=0;n<e.length;n++)s(e[n]);return function(e){const t=[],n=[];let r;for(r=0;r<e.children.length;r++)n.push(e.children[r]);let s=n.length,i=0,o=[];for(r=0;r<n.length;r++){const e=n[r];s<=0&&(s=i,i=0,t.push(o),o=[]),o.push(e),e.children.forEach(e=>{i++,n.push(e)}),s--}return o.length&&t.push(o),t}(t);function s(e){if(e.processed)return e;e.processed=!0;const n=e.domNode;let i,{parentNode:o}=n;for(r.set(n,e);o;){if(i=r.get(o),i){i.processed||(i=s(i));break}o=o.parentNode}return(i||t).children.push(e),e}}(l);for(let e=0;e<u.length;e++){const t=u[e];for(let n=0;n<t.length;n++){const r=t[n],{element:s}=r;if(u[e][n]=r.fn,0===e){xt(s,ua);continue}const i=Lt(s,ua);i&&s.classList.add(i)}}o(u)}),f;function g(e,t){e=e.split(" "),t=t.split(" ");const n=[];for(let r=0;r<e.length;r++){const s=e[r];if("ng-"!==s.substring(0,3))for(let e=0;e<t.length;e++)if(s===t[e]){n.push(s);break}}return n.join(" ")}function v(e){n(u),l(u,d),ct(u,d),d.domOperation(),m&&m.split(" ").forEach(e=>u.classList.remove(e)),f.complete(!e)}}}]}class da{constructor(){this.queue=[],this.cancelFn=null}nextTick(){if(!this.queue.length)return;this.queue.shift().forEach(e=>e()),this.cancelFn||(this.cancelFn=window.requestAnimationFrame(()=>{this.cancelFn=null,this.nextTick()}))}$get(){const e=e=>{this.queue=this.queue.concat(e),this.nextTick()};return e.queue=this.queue,e.waitUntilQuiet=e=>{null!==this.cancelFn&&(window.cancelAnimationFrame(this.cancelFn),this.cancelFn=null),this.cancelFn=window.requestAnimationFrame(()=>{this.cancelFn=null,e(),this.nextTick()})},e}}const pa="$animId";let fa=0;const $a=new Map;function ma(){return{cacheKey(e,t,n,r){const{parentNode:s}=e,i=[s[pa]??(s[pa]=++fa),t,e.getAttribute("class")];return n&&i.push(n),r&&i.push(r),i.join(" ")},containsCachedAnimationWithoutDuration(e){const t=$a.get(e);return!!t&&!t.isValid},flush(){$a.clear()},count:e=>$a.get(e)?.total??0,get:e=>$a.get(e)?.value,put(e,t,n){const r=$a.get(e);r?(r.total++,r.value=t):$a.set(e,{total:1,value:t,isValid:n})}}}function ga(){this.$get=[ma]}const va="ng-animate-shim",ya="ng-anchor",ba="ng-anchor-out",wa="ng-anchor-in";function Ea(e){e.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$rootElement",function(e,t){const n=document.body,r=t,s=(i=r).parentNode&&11===i.parentNode.nodeType||n.contains(r)?r:n;var i;return function(t){return t.from&&t.to?function(t,r,i){const a=o(t),c=o(r),l=[];if(i.forEach(t=>{const r=function(t,r){const i=t.cloneNode(!0),o=Ca(d(i));let a;t[0].classList.add(va),r[0].classList.add(va),i.classList.add(ya),s.append(i);const c=h();if(!c&&(a=p(),!a))return f();const l=c||a;return{start(){let e,t=l.start();return t.done(()=>{if(t=null,!a&&(a=p(),a))return t=a.start(),t.done(()=>{t=null,f(),e.complete()}),t;f(),e.complete()}),e=new Ko({end:n,cancel:n}),e;function n(){t&&t.end()}}};function u(e){const t={},r=e.getBoundingClientRect();return["width","height","top","left"].forEach(e=>{let s=r[e];switch(e){case"top":s+=n.scrollTop;break;case"left":s+=n.scrollLeft}t[e]=`${Math.floor(s)}px`}),t}function h(){const n=e(i,{addClass:ba,delay:!0,from:u(t)});return n.$$willAnimate?n:null}function d(e){return e.getAttribute("class")||""}function p(){const t=Ca(d(r)),n=Sa(t,o),s=Sa(o,t),a=e(i,{to:u(r),addClass:`${wa} ${n}`,removeClass:`${ba} ${s}`,delay:!0});return a.$$willAnimate?a:null}function f(){i.remove(),t[0].classList.remove(va),r[0].classList.remove(va)}}(t.out,t.in);r&&l.push(r)}),!a&&!c&&0===l.length)return;return{start(){const e=[];a&&e.push(a.start()),c&&e.push(c.start()),l.forEach(t=>{e.push(t.start())});const t=new Ko({end:n,cancel:n});return Ko.all(e,e=>{t.complete(e)}),t;function n(){e.forEach(e=>{e.end()})}}}}(t.from,t.to,t.anchors):o(t)};function o(t){const n=t.options||{};t.structural&&(n.event=t.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===t.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=ft(n.event,n.preparationClasses));const r=e(t.element,n);return r.$$willAnimate?r:null}}]}function Ca(e){return e.replace(/\bng-\S+\b/g,"")}function Sa(e,t){return E(e)&&(e=e.split(" ")),E(t)&&(t=t.split(" ")),e.filter(e=>-1===t.indexOf(e)).join(" ")}function xa(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs",function(e){return function(e){if(e.from&&e.to){const n=t(e.from),r=t(e.to);if(!n&&!r)return;return{start(){const e=[];n&&e.push(n.start()),r&&e.push(r.start()),Ko.all(e,function(e){t.complete(e)});const t=new Ko({end:s(),cancel:s()});return t;function s(){return function(){e.forEach(e=>{e.end()})}}}}}return t(e)};function t(t){const{element:n,event:r,options:s,classes:i}=t;return e(n,r,i,s)}}]}function Aa(e){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(t,n,r,s,i){let o,a;t.$watch(r.ngAnimateSwap||r.for,t=>{o&&e.leave(o),a&&(a.$destroy(),a=null),t&&i((t,r)=>{o=t,a=r,e.enter(t,null,n)})})}}}function Oa(e){return{link(t,n,r){const s=r.ngAnimateChildren;function i(e){jt(n,Be,e="on"===e||"true"===e)}E(s)&&0===s.length?jt(n,Be,!0):(i(e(s)(t)),r.$observe("ngAnimateChildren",i))}}}function ka(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;const n=typeof e;if(n!==typeof t||"object"!==n)return!1;const r=[e,t];if(r.every(Array.isArray))return i=t,(s=e).length===i.length&&Ba(s,i).reduce((e,t)=>e&&ka(t[0],t[1]),!0);var s,i;if(r.every(A))return e.getTime()===t.getTime();if(r.every(T))return e.toString()===t.toString();if(r.every(k))return!0;if([k,Array.isArray,A,T].some(e=>!!e(r)))return!1;const o={};for(const n in e){if(!ka(e[n],t[n]))return!1;o[n]=!0}for(const e in t)if(!o[e])return!1;return!0}function Ta(e,t){const n=Object.create(e);return t&&Object.assign(n,t),n}function _a(e,t){const n=e.indexOf(t);return-1!==n&&e.splice(n,1),e}function ja(e,...t){const n=Object.assign({},...t.reverse());return Object.assign(n,La(e||{},Object.keys(n)))}function La(e,t){const n={};for(const r in e)-1!==t.indexOf(r)&&(n[r]=e[r]);return n}function Na(e,t){return Object.keys(e).filter(e=>!t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{})}function Ra(e,t){const n=Array.isArray(e),r=n?[]:{},s=n?e=>r.push(e):(e,t)=>r[t]=e;return Object.entries(e).forEach(([e,n])=>{t(n,e)&&s(n,e)}),r}function Va(e,t){let n;return Object.entries(e).forEach(([e,r])=>{n||t(r,e)&&(n=r)}),n}function Ma(e,t,n){return n=n||(Array.isArray(e)?[]:{}),Object.entries(e).forEach(([e,r])=>n[e]=t(r,e)),n}Ea.$inject=["$$animationProvider"],xa.$inject=["$$animationProvider"],Aa.$inject=[Jt.$animate],Oa.$inject=[Jt.$interpolate];const Pa=(e,t)=>e&&t,Da=(e,t)=>e||t,Ua=(e,t)=>e.concat(t);function Ia(e,t){return e.push(t),e}const Ha=(e,t)=>e.includes(t)?e:Ia(e,t),Fa=e=>e.reduce(Ua,[]),qa=function(e,t="assert failure"){return n=>{const r=e(n);if(!r)throw new Error(t);return r}};function Ba(...e){if(0===e.length)return[];const t=e.reduce((e,t)=>Math.min(t.length,e),9007199254740991),n=[];for(let r=0;r<t;r++)switch(e.length){case 1:n.push([e[0][r]]);break;case 2:n.push([e[0][r],e[1][r]]);break;case 3:n.push([e[0][r],e[1][r],e[2][r]]);break;case 4:n.push([e[0][r],e[1][r],e[2][r],e[3][r]]);break;default:n.push(e.map(e=>e[r]))}return n}function za(e,t){let n,r;if(Array.isArray(t)&&([n,r]=t),!E(n))throw new Error("invalid parameters to applyPairs");return e[n]=r,e}function Wa(e){return e.length>0?e[e.length-1]:void 0}function Ka(e,t){return t&&Object.keys(t).forEach(e=>delete t[e]),t||(t={}),Object.assign(t,e)}const Ga=e=>e.catch(()=>0)&&e,Qa=e=>Ga(Promise.reject(e));function Ja(e){return function t(){if(arguments.length>=e.length)return e.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return t.bind(this,...n)}}const Za=Ja((e,t,n)=>n&&n[e]===t),Ya=e=>{const t=e.split(".");return e=>t.reduce((e,t)=>e&&e[t],e)};function Xa(e){return function(t){return null!=t&&t.constructor===e||t instanceof e}}const ec=e=>()=>e;function tc(e){return function(t){for(let n=0;n<e.length;n++)if(e[n][0](t))return e[n][1](t)}}class nc{constructor(e){this.pattern=/.*/,this.inherit=!0,Object.assign(this,e),this.name=void 0}is(e){return!!e}encode(e){return e}decode(e){return e}equals(e,t){return e==t}$subPattern(){const e=this.pattern.toString();return e.substring(1,e.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(e){return this.is(e)?e:this.decode(e)}$asArray(e,t){if(!e)return this;if("auto"===e&&!t)throw new Error("'auto' array mode is for query parameters only");return new rc(this,e)}}function rc(e,t){function n(e){return Array.isArray(e)?e:b(e)?[e]:[]}function r(e,r){return function(s){if(Array.isArray(s)&&0===s.length)return s;const i=Ma(n(s),e);return!0===r?0===Ra(i,e=>!e).length:function(e){switch(e.length){case 0:return;case 1:return"auto"===t?e[0]:e;default:return e}}(i)}}function s(e){return function(t,r){const s=n(t),i=n(r);if(s.length!==i.length)return!1;for(let t=0;t<s.length;t++)if(!e(s[t],i[t]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach(t=>{const n=e[t].bind(e),i="equals"===t?s:r;this[t]=i(n)}),Object.assign(this,{dynamic:e.dynamic,name:e.name,pattern:e.pattern,inherit:e.inherit,raw:e.raw,is:r(e.is.bind(e),!0),$arrayMode:t})}class sc{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=La(sc.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=Ta(Ma(this.defaultTypes,(e,t)=>new nc(Object.assign({name:t},e))),{})}type(e,t,n){if(!b(t))return this.types[e];if(ve(this.types,e))throw new Error(`A type named '${e}' has already been defined.`);return this.types[e]=new nc(Object.assign({name:e},t)),n&&(this.typeQueue.push({name:e,def:n}),this.enqueue||this._flushTypeQueue()),this}_flushTypeQueue(){for(;this.typeQueue.length;){const e=this.typeQueue.shift();if(e.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object.assign(this.types[e.name],window.angular.$injector.invoke(e.def))}}}!function(){const e=e=>{const t=e=>null!=e?e.toString():e,n={encode:t,decode:t,is:Xa(String),pattern:/.*/,equals:(e,t)=>e==t};return Object.assign({},n,e)};Object.assign(sc.prototype,{string:e({}),path:e({pattern:/[^/]*/}),query:e({}),hash:e({inherit:!1}),int:e({decode:e=>parseInt(e,10),is:function(e){return!S(e)&&this.decode(e.toString())===e},pattern:/-?\d+/}),bool:e({encode:e=>e?1:0,decode:e=>0!==parseInt(e,10),is:Xa(Boolean),pattern:/[01]/}),date:e({encode:function(e){return this.is(e)?[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-"):void 0},decode:function(e){if(this.is(e))return e;const t=this.capture.exec(e);return t?new Date(t[1],t[2]-1,t[3]):void 0},is:e=>e instanceof Date&&!isNaN(e.valueOf()),equals:(e,t)=>["getFullYear","getMonth","getDate"].reduce((n,r)=>n&&e[r]()===t[r](),!0),pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:e({encode:JSON.stringify,decode:JSON.parse,is:Xa(Object),equals:ka,pattern:/[^/]*/}),any:e({encode:e=>e,decode:e=>e,is:()=>!0,equals:ka})})}();class ic{constructor(){this.paramTypes=new sc,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1;const e=this.type("path");e.encode=e=>null!=e?e.toString().replace(/([~/])/g,e=>({"~":"~~","/":"~2F"}[e])):e,e.decode=e=>null!=e?e.toString().replace(/(~~|~2F)/g,e=>({"~~":"~","~2F":"/"}[e])):e,this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue()}$get=[function(){return this}];caseInsensitive(e){return this._isCaseInsensitive=b(e)?e:this._isCaseInsensitive}defaultSquashPolicy(e){if(b(e)&&!0!==e&&!1!==e&&!E(e))throw new Error(`Invalid squash policy: ${e}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=b(e)?e:this._defaultSquashPolicy}strictMode(e){return this._isStrictMode=b(e)?e:this._isStrictMode}type(e,t,n){const r=this.paramTypes.type(e,t,n);return b(t)?this:r}}class oc{constructor(e={}){Object.assign(this,e)}$inherit(e,t,n){const r=function(e,t){const n=[];for(const r in e.path){if(e.path[r]!==t.path[r])break;n.push(e.path[r])}return n}(t,n),s={},i=[];for(const e in r){if(!r[e]||!r[e].params)continue;const t=r[e].params,n=Object.keys(t);if(n.length)for(const e in n)0==t[n[e]].inherit||i.indexOf(n[e])>=0||(i.push(n[e]),s[n[e]]=this[n[e]])}return Object.assign({},s,e)}}class ac{constructor(e=[],t=null){this._items=Array.isArray(e)?[...e]:[],this._limit=Number.isInteger(t)&&t>0?t:null,this._evictListeners=[]}onEvict(e){this._evictListeners.push(e)}enqueue(e){return this._items.push(e),null!==this._limit&&this._items.length>this._limit&&this.evict(),e}evict(){const e=this._items.shift();return void 0!==e&&this._evictListeners.forEach(t=>t(e)),e}dequeue(){return this._items.length>0?this._items.shift():void 0}clear(){const e=[...this._items];return this._items.length=0,e}size(){return this._items.length}remove(e){const t=this._items.indexOf(e);return-1!==t&&this._items.splice(t,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){return this._items[0]}}class cc{constructor(){this.params=new oc,this.lastStartedTransitionId=-1,this.transitionHistory=new ac([],1),this.successfulTransitions=new ac([],1),this.current=void 0,this.$current=void 0,this.transition=void 0}$get=()=>this}function lc(e){if(Array.isArray(e)&&e.length){const t=e.slice(0,-1),n=e.slice(-1);return!(t.filter(e=>!E(e)).length||n.filter(e=>!k(e)).length)}return k(e)}function uc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}function hc(e,t){return t.length<=e?t:t.substring(0,e-3)+"..."}function dc(e){const t=pc(e),n=t.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:t,s=e.name||"";return s&&r.match(/function \(/)?"function "+s+r.substring(9):r}function pc(e){const t=Array.isArray(e)?e.slice(-1)[0]:e;return t&&t.toString()||"undefined"}function fc(e){const t=[],n=tc([[y,ec("undefined")],[C,ec("null")],[uc,ec("[Promise]")],[e=>e&&"function"==typeof e.then&&"Rejection"==e.constructor.name,e=>e._transitionRejection.toString()],[e=>w(e)&&!Array.isArray(e)&&e.constructor!==Object&&k(e.toString),e=>e.toString()],[lc,dc],[ec(!0),e=>e]]);function r(e){if(w(e)){if(-1!==t.indexOf(e))return"[circular ref]";t.push(e)}return n(e)}return y(e)?r(e):JSON.stringify(e,(e,t)=>r(t)).replace(/\\"/g,'"')}function $c(e,t){return E(Wa(e))&&E(t)?e.slice(0,-1).concat(Wa(e)+t):Ia(e,t)}function mc(e){if(!e)return"ng-view (defunct)";const t=e.creationContext?e.creationContext.name||"(root)":"(none)";return`[ng-view#${e.id}:${e.fqn} (${e.name}@${t})]`}function gc(e){return x(e)?vc[e]:vc[vc[e]]}const vc={RESOLVE:0,TRANSITION:1,HOOK:2,UIVIEW:3,VIEWCONFIG:4},yc=Ya("$id"),bc=Ya("router.$id"),wc=e=>`Transition #${yc(e)}-${bc(e)}`;const Ec=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(e,t){t.length||(t=Object.keys(vc).map(e=>parseInt(e,10)).filter(e=>!isNaN(e)).map(e=>vc[e])),t.map(gc).forEach(t=>this._enabled[t]=e)}enable(...e){this._set(!0,e)}disable(...e){this._set(!1,e)}enabled(e){return!!this._enabled[gc(e)]}traceTransitionStart(e){this.enabled(vc.TRANSITION)&&console.log(`${wc(e)}: Started -> ${fc(e)}`)}traceTransitionIgnored(e){this.enabled(vc.TRANSITION)&&console.log(`${wc(e)}: Ignored <> ${fc(e)}`)}traceHookInvocation(e,t,n){if(!this.enabled(vc.HOOK))return;const r=Ya("traceData.hookType")(n)||"internal",s=Ya("traceData.context.state.name")(n)||Ya("traceData.context")(n)||"unknown",i=dc(e.registeredHook.callback);console.log(`${wc(t)}: Hook -> ${r} context: ${s}, ${hc(200,i)}`)}traceHookResult(e,t){this.enabled(vc.HOOK)&&console.log(`${wc(t)}: <- Hook returned: ${hc(200,fc(e))}`)}traceResolvePath(e,t,n){this.enabled(vc.RESOLVE)&&console.log(`${wc(n)}: Resolving ${e} (${t})`)}traceResolvableResolved(e,t){this.enabled(vc.RESOLVE)&&console.log(`${wc(t)}: <- Resolved ${e} to: ${hc(200,fc(e.data))}`)}traceError(e,t){this.enabled(vc.TRANSITION)&&console.log(`${wc(t)}: <- Rejected ${fc(t)}, reason: ${e}`)}traceSuccess(e,t){this.enabled(vc.TRANSITION)&&console.log(`${wc(t)}: <- Success ${fc(t)}, final state: ${e.name}`)}traceUIViewEvent(e,t,n=""){this.enabled(vc.UIVIEW)&&console.log(`ng-view: ${function(e,t){for(;t.length<e;)t+=" ";return t}(30,e)} ${mc(t)}${n}`)}traceUIViewConfigUpdated(e,t){this.enabled(vc.UIVIEW)&&this.traceUIViewEvent("Updating",e,` with ViewConfig from context='${t}'`)}traceUIViewFill(e,t){this.enabled(vc.UIVIEW)&&this.traceUIViewEvent("Fill",e,` with: ${hc(200,t)}`)}traceViewSync(e){if(!this.enabled(vc.VIEWCONFIG))return;const t="uiview component fqn",n="view config state (view name)",r=e.map(({ngView:e,viewConfig:r})=>{const s=e&&e.fqn,i=r&&`${r.viewDecl.$context.name}: (${r.viewDecl.$name})`;return{[t]:s,[n]:i}}).sort((e,n)=>(e[t]||"").localeCompare(n[t]||""));console.table(r)}traceViewServiceEvent(e,t){this.enabled(vc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${e} ${(e=>{const t=e.viewDecl,n=t.$context.name||"(root)";return`[View#${e.$id} from '${n}' state]: target ng-view: '${t.$ngViewName}@${t.$ngViewContextAnchor}'`})(t)}`)}traceViewServiceUIViewEvent(e,t){this.enabled(vc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${e} ${mc(t)}`)}};let Cc="LAZY",Sc="WAIT";class xc{constructor(e,t,n,r,s){this.resolved=!1,this.promise=void 0,e instanceof xc?Object.assign(this,e):k(t)?(ae(!S(e),"token argument is required"),this.token=e,this.policy=r,this.resolveFn=t,this.deps=n||[],this.data=s,this.resolved=void 0!==s,this.promise=this.resolved?Promise.resolve(this.data):void 0):w(e)&&e.token&&(ve(e,"resolveFn")||ve(e,"data"))&&(this.token=e.token,this.resolveFn=e.resolveFn,this.deps=e.deps,this.policy=e.policy,this.data=e.data)}getPolicy(e){const t=this.policy||{},n=e&&e.resolvePolicy||{};return{when:t.when||n.when||Cc,async:t.async||n.async||Sc}}resolve(e,t){const n=e.findNode(this),r=n&&n.state,s=this.getPolicy(r).async,i=k(s)?s:e=>e;return this.promise=Promise.resolve().then(()=>Promise.all(e.getDependencies(this).map(n=>n.get(e,t)))).then(e=>this.resolveFn.apply(null,e)).then(i).then(e=>(this.data=e,this.resolved=!0,this.resolveFn=null,Ec.traceResolvableResolved(this,t),this.data)),this.promise}get(e,t){return this.promise||this.resolve(e,t)}toString(){return`Resolvable(token: ${fc(this.token)}, requires: [${this.deps.map(fc)}])`}clone(){return new xc(this)}}xc.fromData=(e,t)=>new xc(e,()=>t,null,null,t);class Ac{constructor(e,t,n,r){this._stateRegistry=e,this._identifier=t,this._identifier=t,this._params=Object.assign({},n||{}),this._options=Object.assign({},r||{}),this._definition=e.matcher.find(t,this._options.relative)}name(){return this._definition&&this._definition.name||this._identifier}identifier(){return this._identifier}params(){return this._params}$state(){return this._definition}state(){return this._definition&&this._definition.self}options(){return this._options}exists(){return!(!this._definition||!this._definition.self)}valid(){return!this.error()}error(){const e=this.options().relative;if(!this._definition&&e){const t=e.name?e.name:e;return`Could not resolve '${this.name()}' from state '${t}'`}return this._definition?this._definition.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${fc(this.params())}`}withState(e){return new Ac(this._stateRegistry,e,this._params,this._options)}withParams(e,t=!1){const n=t?e:Object.assign({},this._params,e);return new Ac(this._stateRegistry,this._identifier,n,this._options)}withOptions(e,t=!1){const n=t?e:Object.assign({},this._options,e);return new Ac(this._stateRegistry,this._identifier,this._params,n)}}Ac.isDef=e=>e&&e.state&&(E(e.state)||w(e.state)&&E(e.state.name));const Oc=0,kc=1,Tc=2;function _c(e,t,n){const r=!1===n.reloadOnSearch&&t===kc||void 0,s=Va([n.dynamic,r],b),i=b(s)?{dynamic:s}:{},o=function(e){function t(){return e.value}e=(e=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(e||{})).length)(e)?{value:e}:e,t.__cacheable=!0;const n=lc(e.value)?e.value:t;return Object.assign(e,{$$fn:n})}(n&&n.params&&n.params[e]);return Object.assign(i,o)}class jc{constructor(e,t,n,r,s){const i=_c(e,n,s);t=function(e,t,n,r,s){if(e.type&&t&&"string"!==t.name)throw new Error(`Param '${r}' has two type configurations.`);if(e.type&&t&&"string"===t.name&&s.type(e.type))return s.type(e.type);if(t)return t;if(!e.type){const e=n===Tc?"any":n===Oc?"path":n===kc?"query":"string";return s.type(e)}return e.type instanceof nc?e.type:s.type(e.type)}(i,t,n,e,r.paramTypes);const o=function(){const t={array:n===kc&&"auto"},r=e.match(/\[\]$/)?{array:!0}:{};return Object.assign(t,r,i).array}();t=o?t.$asArray(o,n===kc):t;const a=void 0!==i.value||n===kc,c=b(i.dynamic)?!!i.dynamic:!!t.dynamic,l=b(i.raw)?!!i.raw:!!t.raw,u=function(e,t,n){const r=e.squash;if(!t||!1===r)return!1;if(!b(r)||null==r)return n;if(!0===r||E(r))return r;throw new Error(`Invalid squash policy: '${r}'. Valid policies: false, true, or arbitrary string`)}(i,a,r.defaultSquashPolicy()),h=function(e,t,n,r){const s=[{from:"",to:n||t?void 0:""},{from:null,to:n||t?void 0:""}],i=Array.isArray(e.replace)?e.replace:[];E(r)&&i.push({from:r,to:void 0});const o=Ma(i,e=>e.from);return Ra(s,e=>-1===o.indexOf(e.from)).concat(i)}(i,o,a,u),d=b(i.inherit)?!!i.inherit:!!t.inherit;this.isOptional=a,this.type=t,this.location=n,this.id=e,this.dynamic=c,this.raw=l,this.squash=u,this.replace=h,this.inherit=d,this.array=o,this.config=i}isDefaultValue(e){return this.isOptional&&this.type.equals(this.value(),e)}value(e){return e=(e=>{for(const t of this.replace)if(t.from===e)return t.to;return e})(e),y(e)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.defaultValue;if(!window.angular.$injector)throw new Error("Injectable functions cannot be called at configuration time");const e=window.angular.$injector.invoke(this.config.$$fn);if(null!=e&&!this.type.is(e))throw new Error(`Default value (${e}) for parameter '${this.id}' is not an instance of ParamType (${this.type.name})`);return this.config.$$fn.__cacheable&&(this._defaultValueCache={defaultValue:e}),e})():this.type.$normalize(e)}isSearch(){return this.location===kc}validates(e){if((y(e)||null===e)&&this.isOptional)return!0;const t=this.type.$normalize(e);if(!this.type.is(t))return!1;const n=t;return!(E(n)&&!this.type.pattern.exec(n))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(e,t={}){const n={};for(const r of e)n[r.id]=r.value(t[r.id]);return n}static changed(e,t={},n={}){return e.filter(e=>!e.type.equals(t[e.id],n[e.id]))}static equals(e,t={},n={}){return 0===jc.changed(e,t,n).length}static validates(e,t={}){return e.map(e=>e.validates(t[e.id])).reduce(Pa,!0)}}class Lc{constructor(e){if(e instanceof Lc){const t=e;this.state=t.state,this.paramSchema=t.paramSchema.slice(),this.paramValues=Object.assign({},t.paramValues),this.resolvables=t.resolvables.slice(),this.views=t.views&&t.views.slice()}else{const t=e;this.state=t,this.paramSchema=t.parameters({inherit:!1}),this.paramValues={},this.resolvables=t.resolvables.map(e=>e.clone())}}clone(){return new Lc(this)}applyRawParams(e){return this.paramValues=this.paramSchema.reduce((t,n)=>{return za(t,[(r=n).id,r.value(e[r.id])]);var r},{}),this}parameter(e){return Va(this.paramSchema,Za("id",e))}equals(e,t){const n=this.diff(e,t);return n&&0===n.length}diff(e,t){if(this.state!==e.state)return!1;const n=t?t(this):this.paramSchema;return jc.changed(n,this.paramValues,e.paramValues)}}class Nc{static buildPath(e){const t=e.params();return e.$state().path.map(e=>new Lc(e).applyRawParams(t))}static buildToPath(e,t){const n=Nc.buildPath(t);return t.options().inherit?Nc.inheritParams(e,n,Object.keys(t.params())):n}static applyViewConfigs(e,t,n){t.filter(e=>n.includes(e.state)).forEach(n=>{const r=Object.values(n.state.views||{}),s=Nc.subPath(t,e=>e===n),i=r.map(t=>e.createViewConfig(s,t));n.views=i.reduce(Ua,[])})}static inheritParams(e,t,n=[]){const r=e.map(e=>e.paramSchema).reduce(Ua,[]).filter(e=>!e.inherit).map(e=>e.id);return t.map(function(t){let s=Object.assign({},t&&t.paramValues);const i=La(s,n);s=Na(s,n);const o=Na(function(e,t){const n=Va(e,Za("state",t));return Object.assign({},n&&n.paramValues)}(e,t.state)||{},r),a=Object.assign(s,o,i);return new Lc(t.state).applyRawParams(a)})}static treeChanges(e,t,n){const r=Math.min(e.length,t.length);let s=0;const i=(e,t)=>e.equals(t,Nc.nonDynamicParams);for(;s<r&&e[s].state!==n&&i(e[s],t[s]);)s++;let o,a,c,l,u;o=e,a=o.slice(0,s),c=o.slice(s);const h=a.map(function(e,n){const r=e.clone();return r.paramValues=t[n].paramValues,r});return l=t.slice(s),u=h.concat(l),{from:o,to:u,retained:a,retainedWithToParams:h,exiting:c,entering:l}}static matching(e,t,n){let r=!1;return Ba(e,t).reduce((e,[t,s])=>(r=r||!t.equals(s,n),r?e:e.concat(t)),[])}static equals(e,t,n){return e.length===t.length&&Nc.matching(e,t,n).length===e.length}static subPath(e,t){const n=Va(e,t),r=e.indexOf(n);return-1===r?void 0:e.slice(0,r+1)}static nonDynamicParams(e){return e.state.parameters({inherit:!1}).filter(e=>!e.dynamic)}static paramValues(e){return e.reduce((e,t)=>Object.assign(e,t.paramValues),{})}}function Rc(e,t){return new Ac(e,t.at(-1).state,t.map(e=>e.paramValues).reduce((e,t)=>({...e,...t}),{}),{})}const Vc={LAZY:"LAZY",EAGER:"EAGER"},Mc=[Vc.EAGER,Vc.LAZY],Pc=[Vc.EAGER];class Dc{constructor(e){this._path=e}getTokens(){return this._path.reduce((e,t)=>e.concat(t.resolvables.map(e=>e.token)),[]).reduce(Ha,[])}getResolvable(e){return Wa(this._path.map(e=>e.resolvables).reduce(Ua,[]).filter(t=>t.token===e))}getPolicy(e){const t=this.findNode(e);return e.getPolicy(t)}subContext(e){return new Dc(Nc.subPath(this._path,t=>t.state===e))}addResolvables(e,t){const n=Va(this._path,Za("state",t)),r=e.map(e=>e.token);n.resolvables=n.resolvables.filter(e=>-1===r.indexOf(e.token)).concat(e)}resolvePath(e="LAZY",t){const n=(Mc.includes(e)?e:"LAZY")===Vc.EAGER?Pc:Mc;Ec.traceResolvePath(this._path,e,t);const r=(e,t)=>n=>e.includes(this.getPolicy(n)[t]),s=this._path.reduce((e,s)=>{const i=s.resolvables.filter(r(n,"when")),o=i.filter(r(["NOWAIT"],"async")),a=i.filter(e=>!r(["NOWAIT"],"async")(e)),c=this.subContext(s.state),l=e=>e.get(c,t).then(t=>({token:e.token,value:t}));return o.forEach(l),e.concat(a.map(l))},[]);return Promise.all(s)}findNode(e){return Va(this._path,t=>t.resolvables.includes(e))}getDependencies(e){const t=this.findNode(e),n=(Nc.subPath(this._path,e=>e===t)||this._path).reduce((e,t)=>e.concat(t.resolvables),[]).filter(t=>t!==e);return e.deps.map(e=>{const t=n.filter(t=>t.token===e);if(t.length)return Wa(t);const r=window.angular.$injector.get(e);if(y(r))throw new Error("Could not find Dependency Injection token: "+fc(e));return new xc(e,()=>r,[],r)})}}const Uc=(e,t)=>e.reduce((e,n)=>e||b(t[n]),!1);function Ic(e){if(!e.parent)return{};const t=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),r=t.concat(n);if(b(e.views)&&Uc(r,e))throw new Error(`State '${e.name}' has a 'views' object. It cannot also have "view properties" at the state level. Move the following properties into a view (in the 'views' object): ${r.filter(t=>b(e[t])).join(", ")}`);const s={},i=e.views||{$default:La(e,r)};return Object.entries(i).forEach(([r,i])=>{if(r=r||"$default",E(i)&&(i={component:i}),i=Object.assign({},i),Uc(t,i)&&Uc(n,i))throw new Error(`Cannot combine: ${t.join("|")} with: ${n.join("|")} in stateview: '${r}@${e.name}'`);i.resolveAs=i.resolveAs||"$resolve",i.$context=e,i.$name=r;const o=Fc.normalizeUIViewTarget(i.$context,i.$name);i.$ngViewName=o.ngViewName,i.$ngViewContextAnchor=o.ngViewContextAnchor,s[r]=i}),s}let Hc=0;class Fc{constructor(e,t,n){this.path=e,this.viewDecl=t,this.factory=n,this.component=void 0,this.template=void 0,this.$id=Hc++,this.loaded=!1,this.getTemplate=(e,t)=>this.component?this.factory.makeComponentTemplate(e,t,this.component,this.viewDecl.bindings):this.template}load(){const e=new Dc(this.path),t=this.path.reduce((e,t)=>Object.assign(e,t.paramValues),{}),n=[Promise.resolve(this.factory.fromConfig(this.viewDecl,t,e)),Promise.resolve(this.getController(e))];return Promise.all(n).then(e=>(Ec.traceViewServiceEvent("Loaded",this),this.controller=e[1],Object.assign(this,e[0]),this))}getController(e){const t=this.viewDecl.controllerProvider;if(!lc(t))return this.viewDecl.controller;const n=En(t),r=Array.isArray(t)?Wa(t):t;return new xc("",r,n).get(e)}static normalizeUIViewTarget(e,t=""){const n=t.split("@");let r=n[0]||"$default",s=E(n[1])?n[1]:"^";const i=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);i&&(s=i[1],r=i[2]),"!"===r.charAt(0)&&(r=r.substring(1),s="");if(/^(\^(?:\.\^)*)$/.exec(s)){const t=s.split(".").reduce(e=>e.parent,e);s=t.name}else"."===s&&(s=e.name);return{ngViewName:r,ngViewContextAnchor:s}}}class qc{constructor(){this._ngViews=[],this._viewConfigs=[],this._listeners=[],this.viewConfigFactory(function(){let e=null;return(t,n)=>(e=e||window.angular.$injector.get("$templateFactory"),new Fc(t,n,e))}())}$get=()=>this;rootViewContext(e){return this._rootContext=e||this._rootContext}viewConfigFactory(e){this.viewConfigFactory=e}createViewConfig(e,t){const n=this.viewConfigFactory;if(!n)throw new Error("ViewService: No view config factory registered for type "+t.$type);return n(e,t)}deactivateViewConfig(e){Ec.traceViewServiceEvent("<- Removing",e),_a(this._viewConfigs,e)}activateViewConfig(e){Ec.traceViewServiceEvent("-> Registering",e),this._viewConfigs.push(e)}sync(){const e=this._ngViews.map(e=>[e.fqn,e]).reduce(za,{});function t(e){let t=e.viewDecl.$context,n=0;for(;++n&&t.parent;)t=t.parent;return n}const n=Ja((e,t,n,r)=>t*(e(n)-e(r))),r=e=>{-1!==this._ngViews.indexOf(e.ngView)&&e.ngView.configUpdated(e.viewConfig)},s=this._ngViews.sort(n(function(e){const t=e=>e&&e.parent?t(e.parent)+1:1;return 1e4*e.fqn.split(".").length+t(e.creationContext)},1)).map(r=>{const s=this._viewConfigs.filter(qc.matches(e,r));return s.length>1&&s.sort(n(t,-1)),{ngView:r,viewConfig:s[0]}}),i=s.map(e=>e.viewConfig),o=this._viewConfigs.filter(e=>!i.includes(e)).map(e=>({ngView:void 0,viewConfig:e}));s.forEach(e=>{r(e)});const a=s.concat(o);this._listeners.forEach(e=>e(a)),Ec.traceViewSync(a)}registerUIView(e){Ec.traceViewServiceUIViewEvent("-> Registering",e);const t=this._ngViews;return t.filter(t=>t.fqn===e.fqn).length&&Ec.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",e),t.push(e),this.sync(),()=>{-1!==t.indexOf(e)?(Ec.traceViewServiceUIViewEvent("<- Deregistering",e),_a(t,e)):Ec.traceViewServiceUIViewEvent("Tried removing non-registered ngView",e)}}available(){return this._ngViews.map(e=>e.fqn)}active(){return this._ngViews.filter(e=>e.$config).map(e=>e.name)}}qc.matches=(e,t)=>n=>{if(t.$type!==n.viewDecl.$type)return!1;const r=n.viewDecl,s=r.$ngViewName.split("."),i=t.fqn.split(".");if(!ka(s,i.slice(0-s.length)))return!1;const o=1-s.length||void 0,a=i.slice(0,o).join("."),c=e[a].creationContext;return r.$ngViewContextAnchor===(c&&c.name)};const Bc=2,zc=3,Wc=4,Kc=5,Gc=6;let Qc=0;class Jc{static superseded(e,t){const n=new Jc(Bc,"The transition has been superseded by a different transition",e);return t&&t.redirected&&(n.redirected=!0),n}static redirected(e){return Jc.superseded(e,{redirected:!0})}static invalid(e){return new Jc(Wc,"This transition is invalid",e)}static ignored(e){return new Jc(Kc,"The transition was ignored",e)}static aborted(e){return new Jc(zc,"The transition has been aborted",e)}static errored(e){return new Jc(Gc,"The transition errored",e)}static normalize(e){return Xa(Jc)(e)?e:Jc.errored(e)}constructor(e,t,n){this.$id=Qc++,this.type=e,this.message=t,this.detail=n,this.redirected=!1}toString(){const e=(t=this.detail)&&t.toString!==Object.prototype.toString?t.toString():fc(t);var t;const{$id:n,type:r,message:s}=this;return`Transition Rejection($id: ${n} type: ${r}, message: ${s}, detail: ${e})`}toPromise(){return Object.assign(Qa(this),{_transitionRejection:this})}}class Zc{constructor(){this.eventBus=Xc}$get=()=>this.eventBus}class Yc{constructor(e=!1){this.disposed=!1,this.key=1,this.pendingKeys=[],this.publishDepth=0,this.subscriptions=[],this.topics={},this.async_=Boolean(e)}subscribe(e,t,n=null){let r=this.topics[e];r||(r=this.topics[e]=[]);const s=this.key;return this.subscriptions[s]=e,this.subscriptions[s+1]=t,this.subscriptions[s+2]=n,this.key=s+3,r.push(s),s}subscribeOnce(e,t,n=null){let r=!1;const s=this.subscribe(e,(...e)=>{r||(r=!0,this.unsubscribeByKey(s),t.apply(n,e))},this);return s}static runAsync_(e,t,n){Promise.resolve().then(()=>{e.apply(t,n)})}unsubscribe(e,t,n=null){const r=this.topics[e];if(r){const e=this.subscriptions,s=r.find(r=>e[r+1]===t&&e[r+2]===n);if(void 0!==s)return this.unsubscribeByKey(s)}return!1}unsubscribeByKey(e){const t=this.subscriptions[e];if(t){let n=this.topics[t];0!==this.publishDepth?(this.pendingKeys.push(e),this.subscriptions[e+1]=()=>{}):(n&&(this.topics[t]=n.filter(t=>t!==e)),delete this.subscriptions[e],delete this.subscriptions[e+1],delete this.subscriptions[e+2])}return!!t}publish(e,...t){const n=this.topics[e];if(n){const e=t;if(this.async_)for(let t=0;t<n.length;t++){const r=n[t];Yc.runAsync_(this.subscriptions[r+1],this.subscriptions[r+2],e)}else{this.publishDepth++;try{for(let t=0,r=n.length;t<r&&!this.isDisposed();t++){const r=n[t];this.subscriptions[r+1].apply(this.subscriptions[r+2],e)}}finally{if(this.publishDepth--,this.pendingKeys.length>0&&0===this.publishDepth){let e;for(;e=this.pendingKeys.pop();)this.unsubscribeByKey(e)}}}return!0}return!1}clear(e){if(e){const t=this.topics[e];t&&(t.forEach(this.unsubscribeByKey,this),delete this.topics[e])}else this.subscriptions.length=0,this.topics={}}getCount(e){if(e){const t=this.topics[e];return t?t.length:0}let t=0;for(const e in this.topics)t+=this.getCount(e);return t}isDisposed(){return this.disposed}dispose(){this.clear(),this.pendingKeys.length=0,this.disposed=!0}}const Xc=new Yc(!0),el={current:()=>{},transition:null,traceData:{},bind:null},tl=Object.freeze({CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4}),nl=Object.freeze({TRANSITION:0,STATE:1});class rl{static chain(e,t){return e.reduce((e,t)=>e.then(()=>t.invokeHook()),t||Promise.resolve())}static invokeHooks(e,t){for(let n=0;n<e.length;n++){const r=e[n].invokeHook();if(uc(r)){const s=e.slice(n+1);return rl.chain(s,r).then(()=>{t()})}}return t()}static runAllHooks(e){e.forEach(e=>e.invokeHook())}constructor(e,t,n,r){this.transition=e,this.stateContext=t,this.registeredHook=n,this.options=r,this.isSuperseded=()=>this.type.hookPhase===tl.RUN&&!this.options.transition.isActive(),this.options=ja(r,el),this.type=n.eventType}logError(e){Xc.publish("$stateService:defaultErrorHandler",e)}invokeHook(){const e=this.registeredHook;if(e._deregistered)return;const t=this.getNotCurrentRejection();if(t)return t;const n=this.options;Ec.traceHookInvocation(this,this.transition,n);const r=()=>e.callback.call(n.bind,this.transition,this.stateContext),s=e=>Jc.normalize(e).toPromise(),i=t=>e.eventType.getErrorHandler(this)(t),o=t=>e.eventType.getResultHandler(this)(t);try{const e=r();return!this.type.synchronous&&uc(e)?e.catch(s).then(o,i):o(e)}catch(e){return i(Jc.normalize(e))}finally{e.invokeLimit&&++e.invokeCount>=e.invokeLimit&&e.deregister()}}handleHookResult(e){const t=this.getNotCurrentRejection();return t||(uc(e)?e.then(e=>this.handleHookResult(e)):(Ec.traceHookResult(e,this.transition),!1===e?Jc.aborted("Hook aborted transition").toPromise():e instanceof Ac?Jc.redirected(e).toPromise():void 0))}getNotCurrentRejection(){return this.transition._aborted?Jc.aborted().toPromise():this.isSuperseded()?Jc.superseded(this.options.current()).toPromise():void 0}toString(){const{options:e,registeredHook:t}=this;return`${Ya("traceData.hookType")(e)||"internal"} context: ${Ya("traceData.context.state.name")(e)||Ya("traceData.context")(e)||"unknown"}, ${hc(200,pc(t.callback))}`}}rl.HANDLE_RESULT=e=>t=>e.handleHookResult(t),rl.LOG_REJECTED_RESULT=e=>t=>{uc(t)&&t.catch(t=>e.logError(Jc.normalize(t)))},rl.LOG_ERROR=e=>t=>e.logError(t),rl.REJECT_ERROR=()=>e=>Qa(e),rl.THROW_ERROR=()=>e=>{throw e};class sl{static fromString(e){return function(e){return!!/[!,*]+/.exec(e)}(e)?new sl(e):null}constructor(e){this.text=e,this.glob=e.split(".");const t=this.text.split(".").map(e=>"**"===e?"(?:|(?:\\.[^.]*)*)":"*"===e?"\\.[^.]*":"\\."+e).join("");this.regexp=new RegExp("^"+t+"$")}matches(e){return this.regexp.test("."+e)}}function il(e,t,n){const r=E(t)?[t]:t;return!!(k(r)?r:function(e){const t=r;for(let n=0;n<t.length;n++){const r=new sl(t[n]);if(r&&r.matches(e.name)||!r&&t[n]===e.name)return!0}return!1})(e,n)}class ol{constructor(e,t,n,r,s,i={}){this.tranSvc=e,this.eventType=t,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=s,this.invokeCount=0,this._deregistered=!1,this.priority=i.priority||0,this.bind=i.bind||null,this.invokeLimit=i.invokeLimit}_matchingNodes(e,t,n){if(!0===t)return e;const r=e.filter(e=>il(e.state,t,n));return r.length?r:null}_getDefaultMatchCriteria(){return Ma(this.tranSvc._getPathTypes(),()=>!0)}_getMatchingNodes(e,t){const n=Object.assign(this._getDefaultMatchCriteria(),this.matchCriteria);return Object.values(this.tranSvc._getPathTypes()).reduce((r,s)=>{const i=s.scope===nl.STATE,o=e[s.name]||[],a=i?o:[Wa(o)];return r[s.name]=this._matchingNodes(a,n[s.name],t),r},{})}matches(e,t){const n=this._getMatchingNodes(e,t);return Object.values(n).every(e=>e)?n:null}deregister(){this.removeHookFromRegistry(this),this._deregistered=!0}}function al(e,t,n){const r=(e._registeredHooks=e._registeredHooks||{})[n.name]=[],s=e=>_a(r,e);function i(e,i,o={}){const a=new ol(t,n,i,e,s,o);return r.push(a),a.deregister.bind(a)}return e[n.name]=i,i}class cl{constructor(e){this.transition=e}buildHooksForPhase(e){return this.transition.transitionService._getEvents(e).map(e=>this.buildHooks(e)).reduce(Ua,[]).filter(Boolean)}buildHooks(e){const t=this.transition,n=t.treeChanges(),r=this.getMatchingHooks(e,n,t);if(!r)return[];const s={transition:t,current:t.options().current};return r.map(r=>r.matches(n,t)[e.criteriaMatchPath.name].map(n=>{const i=Object.assign({bind:r.bind,traceData:{hookType:e.name,context:n}},s),o=e.criteriaMatchPath.scope===nl.STATE?n.state.self:null,a=new rl(t,o,r,i);return{hook:r,node:n,transitionHook:a}})).reduce(Ua,[]).sort(function(e=!1){return function(t,n){const r=e?-1:1,s=(t.node.state.path.length-n.node.state.path.length)*r;return 0!==s?s:n.hook.priority-t.hook.priority}}(e.reverseSort)).map(e=>e.transitionHook)}getMatchingHooks(e,t,n){const r=e.hookPhase===tl.CREATE,s=this.transition.transitionService;return(r?[s]:[this.transition,s]).map(t=>t.getHooks(e.name)).filter(qa(Array.isArray,`broken event named: ${e.name}`)).reduce(Ua,[]).filter(e=>e.matches(t,n))}}class ll{constructor(e,t,n,r){if(this.globals=r,this.transitionService=n,this._deferred=Promise.withResolvers(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new cl(this),this.isActive=()=>this.globals.transition===this,this._targetState=t,!t.valid())throw new Error(t.error());this._options=Object.assign({current:ec(this)},t.options()),this.$id=n._transitionCount++;const s=Nc.buildToPath(e,t);this._treeChanges=Nc.treeChanges(e,s,this._options.reloadState),this.createTransitionHookRegFns();const i=this._hookBuilder.buildHooksForPhase(tl.CREATE);rl.invokeHooks(i,()=>null),this.applyViewConfigs(),this.onStart=void 0,this.onBefore=void 0,this.onSuccess=void 0,this.onEnter=void 0,this.onRetain=void 0,this.onExit=void 0,this.onFinish=void 0,this.onError=void 0}createTransitionHookRegFns(){this.transitionService._getEvents().filter(e=>e.hookPhase!==tl.CREATE).forEach(e=>al(this,this.transitionService,e))}getHooks(e){return this._registeredHooks[e]}applyViewConfigs(){const e=this._treeChanges.entering.map(e=>e.state);Nc.applyViewConfigs(this.transitionService.$view,this._treeChanges.to,e)}$from(){return Wa(this._treeChanges.from).state}$to(){return Wa(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(e){return e instanceof ll?this.is({to:e.$to().name,from:e.$from().name}):!(e.to&&!il(this.$to(),e.to,this)||e.from&&!il(this.$from(),e.from,this))}params(e="to"){return Object.freeze(this._treeChanges[e].map(e=>e.paramValues).reduce((e,t)=>({...e,...t}),{}))}getResolveTokens(e="to"){return new Dc(this._treeChanges[e]).getTokens()}addResolvable(e,t){void 0===t&&(t=""),e=Xa(xc)(e)?e:new xc(e);const n="string"==typeof t?t:t.name,r=this._treeChanges.to,s=Va(r,e=>e.state.name===n);ae(!!s,`targetNode not found ${n}`);new Dc(r).addResolvables([e],s.state)}redirectedFrom(){return this._options.redirectedFrom||null}originalTransition(){const e=this.redirectedFrom();return e&&e.originalTransition()||this}options(){return this._options}entering(){return Ma(this._treeChanges.entering,e=>e.state).map(e=>e.self)}exiting(){return Ma(this._treeChanges.exiting,e=>e.state).map(e=>e.self).reverse()}retained(){return Ma(this._treeChanges.retained,e=>e.state).map(e=>e.self)}views(e="entering",t){let n=this._treeChanges[e];return n=t?n.filter(Za("state",t)):n,n.map(e=>e.views).reduce(Ua,[])}treeChanges(e){return e?this._treeChanges[e]:this._treeChanges}redirect(e){let t=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++t>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==e.options().location&&(r.location="replace");const s=Object.assign({},this.options(),e.options(),r);e=e.withOptions(s,!0);const i=this.transitionService.create(this._treeChanges.from,e),o=this._treeChanges.entering,a=i._treeChanges.entering;return Nc.matching(a,o,Nc.nonDynamicParams).filter(t=>{return!(n=e.options().reloadState,e=>n&&e.state.includes[n.name])(t);var n}).forEach((e,t)=>{e.resolvables=o[t].resolvables}),i}_changedParams(){const e=this._treeChanges;if(this._options.reload)return;if(e.exiting.length||e.entering.length)return;if(e.to.length!==e.from.length)return;if(Ba(e.to,e.from).map(e=>e[0].state!==e[1].state).reduce(Da,!1))return;const t=e.to.map(e=>e.paramSchema),[n,r]=[e.to,e.from].map(e=>e.map(e=>e.paramValues));return Ba(t,n,r).map(([e,t,n])=>jc.changed(e,t,n)).reduce(Ua,[])}dynamic(){const e=this._changedParams();return!!e&&e.map(e=>e.dynamic).reduce(Da,!1)}ignored(){return!!this._ignoredReason()}_ignoredReason(){const e=this.globals.transition,t=this._options.reloadState,n=(e,n)=>{if(e.length!==n.length)return!1;const r=Nc.matching(e,n);return e.length===r.filter(e=>!t||!e.state.includes[t.name]).length},r=this._treeChanges,s=e&&e._treeChanges;return s&&n(s.to,r.to)&&n(s.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0}run(){const e=e=>this._hookBuilder.buildHooksForPhase(e),t=e(tl.BEFORE);return rl.invokeHooks(t,()=>{const e=this.globals;return e.lastStartedTransitionId=this.$id,e.transition=this,e.transitionHistory.enqueue(this),Ec.traceTransitionStart(this),Promise.resolve()}).then(()=>{const t=e(tl.RUN),n=Promise.resolve();return rl.invokeHooks(t,()=>n)}).then(()=>{Ec.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to());this._hookBuilder.buildHooksForPhase(tl.SUCCESS).forEach(e=>{e.invokeHook()})},t=>{Ec.traceError(t,this),this.success=!1,this._deferred.reject(t),this._error=t;e(tl.ERROR).forEach(e=>e.invokeHook())}),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){y(this.success)&&(this._aborted=!0)}error(){const e=this.$to();if(e.self.abstract)return Jc.invalid(`Cannot transition to abstract state '${e.name}'`);const t=e.parameters(),n=this.params(),r=t.filter(e=>!e.validates(n[e.id]));if(r.length){const t=r.map(e=>`[${e.id}:${fc(n[e.id])}]`).join(", "),s=`The following parameter values are not valid for state '${e.name}': ${t}`;return Jc.invalid(s)}return!1===this.success?this._error:void 0}toString(){const e=this.from(),t=this.to(),n=e=>null!==e["#"]&&void 0!==e["#"]?e:Na(e,["#"]);return`Transition#${this.$id}( '${w(e)?e.name:e}'${fc(n(this._treeChanges.from.map(e=>e.paramValues).reduce((e,t)=>({...e,...t}),{})))} -> ${this.valid()?"":"(X) "}'${w(t)?t.name:t}'${fc(n(this.params()))} )`}}ll.diToken=ll;const ul=["$transition$",ll];function hl(e){const t=Object.values(e.treeChanges()).reduce(Ua,[]).reduce(Ha,[]),n=e=>ul.includes(e.token)?xc.fromData(e.token,null):e;t.forEach(e=>{e.resolvables=e.resolvables.map(n)})}function dl(e){return(t,n)=>(0,n.$$state()[e])(t,n)}const pl=dl("onExit"),fl=dl("onRetain"),$l=dl("onEnter"),ml=1e3,gl=e=>new Dc(e.treeChanges().to).resolvePath("EAGER",e).then(()=>{}),vl=(e,t)=>new Dc(e.treeChanges().to).subContext(t.$$state()).resolvePath("LAZY",e).then(()=>{}),yl=e=>new Dc(e.treeChanges().to).resolvePath("LAZY",e).then(()=>{}),bl=e=>{const t=e.views("entering");if(t.length)return Promise.all(t.map(e=>Promise.resolve(e.load()))).then(()=>{})},wl=e=>{const t=e.globals,n=()=>{t.transition===e&&(t.transition=null)};e.onSuccess({},()=>{t.successfulTransitions.enqueue(e),t.$current=e.$to(),t.current=t.$current.self,Ka(e.params(),t.params)},{priority:1e4}),e.promise.then(n,n)};function El(e,t,n,r){return e.onBefore({entering:e=>!!e.lazyLoad},e=>{const s=e.entering().filter(e=>!!e.$$state().lazyLoad).map(t=>Cl(e,t,r));return Promise.all(s).then(function(){if("url"!==e.originalTransition().options().source){const n=e.targetState();return t.target(n.identifier(),n.params(),n.options())}const r=n.match(n.parts()),s=r&&r.rule;if(s&&"STATE"===s.type){const n=s.state,i=r.match;return t.target(n,i,e.options())}n.sync()})})}function Cl(e,t,n){const r=t.$$state().lazyLoad;let s=r._promise;if(!s){const i=e=>(delete t.lazyLoad,delete t.$$state().lazyLoad,delete r._promise,e),o=e=>(delete r._promise,Promise.reject(e));s=r._promise=Promise.resolve(r(e,t)).then(function(e){e&&Array.isArray(e.states)&&e.states.forEach(e=>n.register(e));return e}).then(i,o)}return s}class Sl{constructor(e,t,n,r,s=!1,i=rl.HANDLE_RESULT,o=rl.REJECT_ERROR,a=!1){this.name=e,this.hookPhase=t,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=s,this.getResultHandler=i,this.getErrorHandler=o,this.synchronous=a}}function xl(e){const t=e._ignoredReason();if(!t)return;Ec.traceTransitionIgnored(e);const n=e.globals.transition;return"SameAsCurrent"===t&&n&&n.abort(),Jc.ignored().toPromise()}function Al(e){if(!e.valid())throw new Error(e.error().toString())}let Ol={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class kl{static $inject=Zt([Jt.$router,Jt.$view]);constructor(e,t){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this.globals=e,this.$view=t,this._deregisterHookFns={},this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),e.successfulTransitions.onEvict(hl)}$get=[Jt.$state,Jt.$url,Jt.$stateRegistry,Jt.$view,(e,t,n,r)=>(this._deregisterHookFns.lazyLoad=El(this,e,t,n),this._deregisterHookFns.updateUrl=((e,t,n)=>{e.onSuccess({},e=>{const r=e.options(),s=t;if("url"!==r.source&&r.location&&s.$current.navigable){const e={replace:"replace"===r.location};n.push(s.$current.navigable.url,s.globals.params,e)}n.update(!0)},{priority:9999})})(this,e,t),this._deregisterHookFns.redirectTo=((e,t)=>{e.onStart({to:e=>!!e.redirectTo},e=>{const n=e.to().redirectTo;if(!n)return;const r=t;function s(t){if(t)return t instanceof Ac?t:E(t)?r.target(t,e.params(),e.options()):t.state||t.params?r.target(t.state||e.to(),t.params||e.params(),e.options()):void 0}return k(n)?Promise.resolve(n(e)).then(s):s(n)})})(this,e),this._deregisterHookFns.activateViews=((e,t)=>{e.onSuccess({},e=>{const n=e.views("entering"),r=e.views("exiting");(n.length||r.length)&&(r.forEach(e=>t.deactivateViewConfig(e)),n.forEach(e=>{t.activateViewConfig(e)}),t.sync())})})(this,r),this)];create(e,t){return new ll(e,t,this,this.globals)}_defineCoreEvents(){const e=rl,t=this._criteriaPaths,n=!1,r=!0;this._defineEvent("onCreate",tl.CREATE,0,t.to,n,e.LOG_REJECTED_RESULT,e.THROW_ERROR,r),this._defineEvent("onBefore",tl.BEFORE,0,t.to),this._defineEvent("onStart",tl.RUN,0,t.to),this._defineEvent("onExit",tl.RUN,100,t.exiting,!0),this._defineEvent("onRetain",tl.RUN,200,t.retained),this._defineEvent("onEnter",tl.RUN,300,t.entering),this._defineEvent("onFinish",tl.RUN,400,t.to),this._defineEvent("onSuccess",tl.SUCCESS,0,t.to,n,e.LOG_REJECTED_RESULT,e.LOG_ERROR,r),this._defineEvent("onError",tl.ERROR,0,t.to,n,e.LOG_REJECTED_RESULT,e.LOG_ERROR,r)}_defineCorePaths(){const{STATE:e,TRANSITION:t}=nl;this._definePathType("to",t),this._definePathType("from",t),this._definePathType("exiting",e),this._definePathType("retained",e),this._definePathType("entering",e)}_defineEvent(e,t,n,r,s=!1,i=rl.HANDLE_RESULT,o=rl.REJECT_ERROR,a=!1){const c=new Sl(e,t,n,r,s,i,o,a);this._eventTypes.push(c),al(this,this,c)}_getEvents(e){return(b(e)?this._eventTypes.filter(t=>t.hookPhase===e):this._eventTypes.slice()).sort((e,t)=>{const n=e.hookPhase-t.hookPhase;return 0===n?e.hookOrder-t.hookOrder:n})}_definePathType(e,t){this._criteriaPaths[e]={name:e,scope:t}}_getPathTypes(){return this._criteriaPaths}getHooks(e){return this._registeredHooks[e]}_registerCoreTransitionHooks(){const e=this._deregisterHookFns;e.addCoreResolves=void this.onCreate({},function(e){e.addResolvable(xc.fromData(ll,e),""),e.addResolvable(xc.fromData("$transition$",e),""),e.addResolvable(xc.fromData("$stateParams",e.params()),""),e.entering().forEach(t=>{e.addResolvable(xc.fromData("$state$",t),t)})}),e.ignored=(e=>e.onBefore({},xl,{priority:-9999}))(this),e.invalid=(e=>e.onBefore({},Al,{priority:-1e4}))(this),e.onExit=(e=>e.onExit({exiting:e=>!!e.onExit},pl))(this),e.onRetain=(e=>e.onRetain({retained:e=>!!e.onRetain},fl))(this),e.onEnter=(e=>e.onEnter({entering:e=>!!e.onEnter},$l))(this),e.eagerResolve=(e=>e.onStart({},gl,{priority:ml}))(this),e.lazyResolve=(e=>e.onEnter({entering:ec(!0)},vl,{priority:ml}))(this),e.resolveAll=(e=>e.onFinish({},yl,{priority:ml}))(this),e.loadViews=(e=>e.onFinish({},bl))(this),e.updateGlobals=(e=>e.onCreate({},wl))(this),e.lazyLoad=El(this)}}const Tl=de("$stateProvider");class _l{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=["$routerProvider","$transitionsProvider"];constructor(e,t,n){this.stateRegistry=void 0,this.urlService=void 0,this.globals=e,this.transitionService=t,this.$injector=n,this.invalidCallbacks=[],this._defaultErrorHandler=function(e){throw e instanceof Error&&e.stack?e:e instanceof Jc?new Error(e.toString()):new Error(e)},Xc.subscribe("$stateService:defaultErrorHandler",e=>this.defaultErrorHandler()(e))}$get=()=>this;decorator(e,t){return this.stateRegistry.decorator(e,t)||this}state(e){if(!e.name)throw Tl("stateinvalid","'name' required");try{this.stateRegistry.register(e)}catch(e){throw Tl("stateinvalid",e.message)}return this}_handleInvalidTargetState(e,t){const n=Rc(this.stateRegistry,e),r=this.globals,s=()=>r.transitionHistory.peekTail(),i=s(),o=new ac(this.invalidCallbacks.slice()),a=this.$injector,c=e=>{if(!(e instanceof Ac))return;let t=e;return t=this.target(t.identifier(),t.params(),t.options()),t.valid()?s()!==i?Jc.superseded().toPromise():this.transitionTo(t.identifier(),t.params(),t.options()):Jc.invalid(t.error()).toPromise()};return function e(){const r=o.dequeue();return void 0===r?Jc.invalid(t.error()).toPromise():Promise.resolve(r(t,n,a)).then(c).then(t=>t||e())}()}onInvalid(e){return this.invalidCallbacks.push(e),function(){_a(this.invalidCallbacks,e)}.bind(this)}reload(e){return this.transitionTo(this.globals.current,this.globals.params,{reload:!b(e)||e,inherit:!1,notify:!1})}go(e,t,n){const r=ja(n,{relative:this.$current,inherit:!0},Ol);return this.transitionTo(e,t,r)}target(e,t,n={}){if(w(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");const r=this.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error(`No such reload state '${E(n.reload)?n.reload:n.reload.name}'`);return new Ac(this.stateRegistry,e,t,n)}getCurrentPath(){const e=this.globals.successfulTransitions.peekTail();return e?e._treeChanges.to:(()=>[new Lc(this.stateRegistry.root())])()}transitionTo(e,t={},n={}){n=ja(n,Ol);const r=()=>this.globals.transition;n=Object.assign(n,{current:r});const s=this.target(e,t,n),i=this.getCurrentPath();if(!s.exists())return this._handleInvalidTargetState(i,s);if(!s.valid())return Qa(s.error());if(!1===n.supercede&&r())return Jc.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();const o=e=>t=>{if(t instanceof Jc){const n=this.globals.lastStartedTransitionId<=e.$id;if(t.type===Kc)return n&&this.urlService.update(),Promise.resolve(this.globals.current);const r=t.detail;if(t.type===Bc&&t.redirected&&r instanceof Ac){const t=e.redirect(r);return t.run().catch(o(t))}if(t.type===zc)return n&&this.urlService.update(),Promise.reject(t)}return this.defaultErrorHandler()(t),Promise.reject(t)},a=this.transitionService.create(i,s),c=a.run().catch(o(a));return Ga(c),Object.assign(c,{transition:a})}is(e,t,n){n=ja(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(e,n.relative);if(!b(r))return;if(this.$current!==r)return!1;if(!t)return!0;const s=r.parameters({inherit:!0,matchingKeys:t});return jc.equals(s,jc.values(s,t),this.globals.params)}includes(e,t,n){n=ja(n,{relative:this.$current});const r=E(e)&&sl.fromString(e);if(r){if(!r.matches(this.$current.name))return!1;e=this.$current.name}const s=this.stateRegistry.matcher.find(e,n.relative),i=this.$current.includes;if(!b(s))return;if(!b(i[s.name]))return!1;if(!t)return!0;const o=s.parameters({inherit:!0,matchingKeys:t});return jc.equals(o,jc.values(o,t),this.globals.params)}href(e,t,n){n=ja(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),t=t||{};const r=this.stateRegistry.matcher.find(e,n.relative);if(!b(r))return null;n.inherit&&(t=this.globals.params.$inherit(t,this.$current,r));const s=r&&n.lossy?r.navigable:r;return s&&void 0!==s.url&&null!==s.url?this.urlService.href(s.url,t,{absolute:n.absolute}):null}defaultErrorHandler(e){return this._defaultErrorHandler=e||this._defaultErrorHandler}get(e,t){const n=this.stateRegistry;return 0===arguments.length?n.get():n.get(e,t||this.$current)}lazyLoad(e,t){const n=this.get(e);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+e);const r=this.getCurrentPath(),s=Rc(this.stateRegistry,r);return Cl(t=t||this.transitionService.create(r,s),n)}}class jl{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=[Jt.$anchorScroll,e=>this.enabled?e:async function(e){return setTimeout(()=>{e.scrollIntoView(!1)},0)}]}class Ll{constructor(){this._useHttp=!1}$get=[Jt.$http,Jt.$templateCache,Jt.$templateRequest,Jt.$injector,(e,t,n,r)=>(this.$templateRequest=n,this.$http=e,this.$templateCache=t,this.$injector=r,this)];useHttpService(e){this._useHttp=e}fromConfig(e,t,n){const r=e=>Promise.resolve(e).then(e=>({template:e})),s=e=>Promise.resolve(e).then(e=>({component:e}));switch((e=>b(e.template)?"template":b(e.templateUrl)?"templateUrl":b(e.templateProvider)?"templateProvider":b(e.component)?"component":b(e.componentProvider)?"componentProvider":"default")(e)){case"template":return r(this.fromString(e.template,t));case"templateUrl":return r(this.fromUrl(e.templateUrl,t));case"templateProvider":return r(this.fromProvider(e.templateProvider,t,n));case"component":return s(e.component);case"componentProvider":return s(this.fromComponentProvider(e.componentProvider,n));default:return r("<ng-view></ng-view>")}}fromString(e,t){return k(e)?e(t):e}fromUrl(e,t){return k(e)&&(e=e(t)),null==e?null:this._useHttp?this.$http.get(e,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then(function(e){return e.data}):this.$templateRequest(e)}fromProvider(e,t,n){const r=En(e),s=Array.isArray(e)?Wa(e):e;return new xc("",s,r).get(n)}fromComponentProvider(e,t){const n=En(e),r=Array.isArray(e)?Wa(e):e;return new xc("",r,n).get(t)}makeComponentTemplate(e,t,n,r){r=r||{};const s=e=>{const t=function(e){return e.replace(/^([A-Z])/,e=>e.toLowerCase()).replace(/([A-Z])/g,e=>"-"+e.toLowerCase())}(e);return/^(x|data)-/.exec(t)?`x-${t}`:t},i=function(e,t){const n=e.get(t+Yn);if(!n||!n.length)throw new Error(`Unable to find component named '${t}'`);return n.map(Nl).reduce(Ua,[])}(this.$injector,n).map(n=>{const{name:i,type:o}=n,a=s(i);if(e.getAttribute(a)&&!r[i])return`${a}='${e.getAttribute(a)}'`;const c=r[i]||i;if("@"===o)return`${a}='{{s$resolve.${c}}}'`;if("&"===o){const e=t.getResolvable(c),n=e&&e.data,r=n&&En(n)||[];return`${a}='$resolve.${c}${Array.isArray(n)?`[${n.length-1}]`:""}(${r.join(",")})'`}return`${a}='$resolve.${c}'`}).join(" "),o=s(n);return`<${o} ${i}></${o}>`}}const Nl=e=>w(e.bindToController)?Rl(e.bindToController):Rl(e.scope),Rl=e=>Object.keys(e||{}).map(t=>[t,/^([=<@&])[?]?(.*)/.exec(e[t])]).filter(e=>b(e)&&Array.isArray(e[1])).map(e=>({name:e[1][2]||e[0],type:e[1][1]}));function Vl(e,t){let n=["",""],r=e.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!t)return r;switch(t.squash){case!1:n=["(",")"+(t.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${t.squash}|`,")?"]}return r+n[0]+t.type.pattern.source+n[1]}const Ml=function(e){const t=new RegExp("("+e+")","g");return e=>e.split(t).filter(Boolean)}("/"),Pl={state:{params:{}},strict:!0,caseInsensitive:!0};class Dl{static pathSegmentsAndParams(e){return Ba(e._segments,e._params.filter(e=>e.location===Oc).concat(void 0)).reduce(Ua,[]).filter(e=>""!==e&&b(e))}static queryParams(e){return e._params.filter(e=>e.location===kc)}static compare(e,t){const n=e=>e._cache.weights=e._cache.weights||(e=>e._cache.segments=e._cache.segments||e._cache.path.map(Dl.pathSegmentsAndParams).reduce(Ua,[]).reduce($c,[]).map(e=>E(e)?Ml(e):e).reduce(Ua,[]))(e).map(e=>"/"===e?1:E(e)?2:e instanceof jc?3:void 0),r=n(e),s=n(t);((e,t,n)=>{const r=Math.max(e.length,t.length);for(;e.length<r;)e.push(n);for(;t.length<r;)t.push(n)})(r,s,0);const i=Ba(r,s);let o,a;for(a=0;a<i.length;a++)if(o=i[a][0]-i[a][1],0!==o)return o;return 0}constructor(e,t,n,r){this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=r=ja(r,Pl),this.pattern=e;const s=/([:*])([\w[\]]+)|\{([\w[\]]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,i=/([:]?)([\w[\].-]+)|\{([\w[\].-]+)(?::\s*((?:[^{\\}]+|\\.|{(?:[^{\\}]+|\\.)*})+))?\}/g,o=[];let a,c=0;const l=t=>{if(!Dl.nameValidator.test(t))throw new Error(`Invalid parameter name '${t}' in pattern '${e}'`);if(Va(this._params,Za("id",t)))throw new Error(`Duplicate parameter name '${t}' in pattern '${e}'`)},u=(n,r)=>{const s=n[2]||n[3],i=r?n[4]:n[4]||("*"===n[1]?"[\\s\\S]*":null);return{id:s,regexp:i,segment:e.substring(c,n.index),type:i?t.type(i)||(e=>Ta(t.type(r?"query":"path"),{pattern:new RegExp(e,this.config.caseInsensitive?"i":void 0)}))(i):null}};let h,d;for(;(a=s.exec(e))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,Wa(this._params)]),c=s.lastIndex;d=e.substring(c);const p=d.indexOf("?");if(p>=0){const e=d.substring(p);if(d=d.substring(0,p),e.length>0)for(c=0;a=i.exec(e);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=s.lastIndex}this._segments.push(d),this._compiled=o.map(e=>Vl.apply(null,e)).concat(Vl(d))}append(e){return this._children.push(e),e._cache={path:this._cache.path.concat(e),parent:this,pattern:null},e}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(e,t){return t.value(e)}exec(e,t={},n){const r=(s=this._cache,i="pattern",o=()=>new RegExp(["^",Fa(this._cache.path.map(e=>e._compiled)).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),s[i]=s[i]||o()).exec(e);var s,i,o;if(!r)return null;const a=this.parameters(),c=a.filter(e=>!e.isSearch()),l=a.filter(e=>e.isSearch()),u=this._cache.path.map(e=>e._segments.length-1).reduce((e,t)=>e+t),h={};if(u!==r.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function d(e){const t=e=>e.split("").reverse().join(""),n=Ma(t(e).split(/-(?!\\)/),t);return Ma(n,e=>e.replace(/\\-/g,"-")).reverse()}for(let e=0;e<u;e++){const t=c[e];let n=r[e+1];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);n&&!0===t.array&&(n=d(n)),h[t.id]=this._getDecodedParamValue(n,t)}return l.forEach(e=>{let n=t[e.id];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);h[e.id]=this._getDecodedParamValue(n,e)}),n&&(h["#"]=n),h}parameters(e={}){return!1===e.inherit?this._params:Fa(this._cache.path.map(e=>e._params))}parameter(e,t={}){const n=this._cache.parent;return(()=>{for(const t of this._params)if(t.id===e)return t})()||!1!==t.inherit&&n&&n.parameter(e,t)||null}validates(e){e=e||{};return this.parameters().filter(t=>ve(e,t.id)).map(t=>((e,t)=>!e||e.validates(t))(t,e[t.id])).reduce(Pa,!0)}format(e={}){const t=this._cache.path,n=t.map(Dl.pathSegmentsAndParams).reduce(Ua,[]).map(e=>E(e)?e:s(e)),r=t.map(Dl.queryParams).reduce(Ua,[]).map(s);if(n.concat(r).filter(e=>!1===e.isValid).length)return null;function s(t){const n=t.value(e[t.id]),r=t.validates(n),s=t.isDefaultValue(n),i=!!s&&t.squash,o=t.type.encode(n);return{param:t,value:n,isValid:r,isDefaultValue:s,squash:i,encoded:o}}const i=n.reduce((e,t)=>{if(E(t))return e+t;const{squash:n,encoded:r,param:s}=t;return!0===n?e.match(/\/$/)?e.slice(0,-1):e:E(n)?e+n:!1!==n||null==r?e:Array.isArray(r)?e+Ma(r,Ul).join("-"):s.raw?e+r:e+encodeURIComponent(r)},""),o=r.map(e=>{let{param:t,squash:n,encoded:r,isDefaultValue:s}=e;if(!(null==r||s&&!1!==n)&&(Array.isArray(r)||(r=[r]),0!==r.length))return t.raw||(r=Ma(r,encodeURIComponent)),r.map(e=>`${t.id}=${e}`)}).reduce(Ua,[]).join("&");return i+(o?`?${o}`:"")+(e["#"]?"#"+e["#"]:"")}}function Ul(e){return encodeURIComponent(e).replace(/-/g,e=>`%5C%${e.charCodeAt(0).toString(16).toUpperCase()}`)}Dl.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Il{name=void 0;navigable=void 0;parent=void 0;params=void 0;url=void 0;includes=void 0;constructor(e){Object.assign(this,e),this.$$state=()=>this,this.self=e;const t=this.name?sl.fromString(this.name):null;this.__stateObjectCache={nameGlob:t}}is(e){return this===e||this.self===e||this.fqn()===e}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const e=this.parent.fqn();return e?e+"."+this.name:this.name}root(){return this.parent&&this.parent.root()||this}parameters(e){return((e=ja(e,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter(t=>!e.matchingKeys||ve(e.matchingKeys,t.id))}parameter(e,t={}){return this.url&&this.url.parameter(e,t)||Va(Object.values(this.params),Za("id",e))||t.inherit&&this.parent&&this.parent.parameter(e)}toString(){return this.fqn()}}Il.isStateDeclaration=e=>k(e.$$state),Il.isState=e=>w(e.__stateObjectCache);class Hl{constructor(e,t,n){this.urlService=e,this.stateService=t,this.routerGlobals=n}create(e,t){const{isState:n,isStateDeclaration:r}=Il,s=tc([[E,e=>s(this.urlService.compile(e))],[Xa(Dl),e=>this.fromUrlMatcher(e,t)],[(...e)=>n(...e)||r(...e),e=>this.fromState(e,this.stateService,this.routerGlobals)],[Xa(RegExp),e=>this.fromRegExp(e,t)],[k,e=>new Fl(e,t)]]),i=s(e);if(!i)throw new Error("invalid 'what' in when()");return i}fromUrlMatcher(e,t){let n=t;E(t)&&(t=this.urlService.compile(t)),Xa(Dl)(t)&&(n=e=>t.format(e));const r={urlMatcher:e,matchPriority:function(t){const n=e.parameters().filter(e=>e.isOptional);return n.length?n.filter(e=>t[e.id]).length/n.length:1e-6},type:"URLMATCHER"};return Object.assign(new Fl(function(t){const n=e.exec(t.path,t.search,t.hash);return e.validates(n)&&n},n),r)}fromState(e,t,n){const r=Il.isStateDeclaration(e)?e.$$state():e,s={state:r,type:"STATE"};return Object.assign(this.fromUrlMatcher(r.url,e=>{const s=t;s.href(r,e)!==s.href(n.current,n.params)&&s.transitionTo(r,e,{inherit:!0,source:"url"})}),s)}fromRegExp(e,t){if(e.global||e.sticky)throw new Error("Rule RegExp must not be global or sticky");const n=E(t)?e=>t.replace(/\$(\$|\d{1,2})/,(t,n)=>e["$"===n?0:Number(n)]):t,r={regexp:e,type:"REGEXP"};return Object.assign(new Fl(t=>e.exec(t.path),n),r)}}Hl.isUrlRule=e=>e&&["type","match","handler"].every(t=>b(e[t]));class Fl{constructor(e,t){this.match=e,this.type="RAW",this.$id=-1,this._group=void 0,this.handler=t||(e=>e),this.priority=void 0}matchPriority(e){return ae(y(e)),0-this.$id}}function ql(e,t){let n=function(e,t){return(t.priority||0)-(e.priority||0)}(e,t);return 0!==n?n:(n=((e,t)=>{const n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[e.type]||0)-(n[t.type]||0)})(e,t),0!==n?n:(n=((e,t)=>e.urlMatcher&&t.urlMatcher?Dl.compare(e.urlMatcher,t.urlMatcher):0)(e,t),0!==n?n:((e,t)=>{const n={STATE:!0,URLMATCHER:!0};return n[e.type]&&n[t.type]?0:(e.$id||0)-(t.$id||0)})(e,t)))}function Bl(e){if(!(k(e)||E(e)||Xa(Ac)(e)||Ac.isDef(e)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return k(e)?e:ec(e)}class zl{constructor(e){this._sortFn=ql,this._rules=[],this._id=0,this.urlRuleFactory=e}initial(e){const t=Bl(e);this.rule(this.urlRuleFactory.create((e,t)=>0===t.globals.transitionHistory.size()&&!!/^\/?$/.exec(e.path),t))}otherwise(e){const t=Bl(e);this._otherwiseFn=this.urlRuleFactory.create(ec(!0),t),this._sorted=!1}removeRule(e){_a(this._rules,e)}rule(e){if(!Hl.isUrlRule(e))throw new Error("invalid rule");return e.$id=this._id++,e.priority=e.priority||0,this._rules.push(e),this._sorted=!1,()=>this.removeRule(e)}rules(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])}sort(e){const t=this.stableSort(this._rules,this._sortFn=e||this._sortFn);let n=0;for(let e=0;e<t.length;e++)t[e]._group=n,e<t.length-1&&0!==this._sortFn(t[e],t[e+1])&&n++;this._rules=t,this._sorted=!0}ensureSorted(){this._sorted||this.sort()}stableSort(e,t){const n=e.map((e,t)=>({elem:e,idx:t}));return n.sort((e,n)=>{const r=t(e.elem,n.elem);return 0===r?e.idx-n.idx:r}),n.map(e=>e.elem)}when(e,t,n){const r=this.urlRuleFactory.create(e,t);return b(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class Wl{constructor(e){this.urlServiceConfig=e}fromConfig(e,t,n){return new jc(e,t,Tc,this.urlServiceConfig,n)}fromPath(e,t,n){return new jc(e,t,Oc,this.urlServiceConfig,n)}fromSearch(e,t,n){return new jc(e,t,kc,this.urlServiceConfig,n)}}class Kl{static $inject=Zt([Jt.$location,Jt.$state,Jt.$router,Jt.$urlConfig]);$location;constructor(e,t,n,r){this.$locationProvider=e,this.stateService=t,this.stateService.urlService=this,this.urlRuleFactory=new Hl(this,this.stateService,n),this.rules=new zl(this.urlRuleFactory),this.config=r,this.paramFactory=new Wl(this.config),this._urlListeners=[]}getPath(){return this.$location.getPath()}getSearch(){return this.$location.getSearch()}getHash(){return this.$location.getHash()}$get=[Jt.$location,Jt.$rootScope,(e,t)=>(this.$location=e,t.$on("$locationChangeSuccess",e=>{this._urlListeners.forEach(t=>{t(e)})}),this.listen(!0),this)];baseHref(){return this._baseHref||(this._baseHref=Qt()||window.location.pathname)}url(e,t){if(b(e)){const t=decodeURIComponent(e);this.$location.setUrl(t)}return t&&this.$location.setState(t),this.$location.getUrl()}onChange(e){return this._urlListeners.push(e),()=>_a(this._urlListeners,e)}parts(){return{path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()}}sync(e){if(e&&e.defaultPrevented)return;const t=this.stateService,n={path:this.$location.getPath(),search:this.$location.getSearch(),hash:this.$location.getHash()},r=this.match(n);tc([[E,e=>this.url(e)],[Ac.isDef,e=>t.go(e.state,e.params,e.options)],[Xa(Ac),e=>t.go(e.state(),e.params(),e.options())]])(r&&r.rule.handler(r.match,n))}listen(e){if(!1!==e)return this._stopListeningFn=this._stopListeningFn||this.onChange(e=>this.sync(e));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}match(e){e=Object.assign({path:"",search:{},hash:""},e);const t=this.rules.rules(),n=t=>{const n=t.match(e);return n&&{match:n,rule:t,weight:t.matchPriority(n)}};let r;for(let e=0;e<t.length&&(!r||r.rule._group===t[e]._group);e++){const s=n(t[e]);r=!r||s&&s.weight>r.weight?s:r}return r}update(e){e?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(e,t,n){const r=n&&!!n.replace;this.url(e.format(t||{}),r)}href(e,t,n){let r=e.format(t);if(null==r)return null;n=n||{absolute:!1};const s=this.$locationProvider.html5ModeConf.enabled;if(s||(r="#"+this.$locationProvider.hashPrefixConf+r),r=function(e,t,n,r){return"/"===r?e:t?(e=>e.replace(/\/[^/]*$/,""))(r)+e:n?r.slice(1)+e:e}(r,s,n.absolute,this.baseHref()),!n.absolute||!r)return r;const i=!s&&r?"/":"";return[`${window.location.protocol}//`,window.location.host,i,r].join("")}compile(e,t){const n=this.config,r=t&&!t.state&&t.params;t=r?Object.assign({state:{params:r}},t):t;const s={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive};return new Dl(e,n.paramTypes,this.paramFactory,Object.assign(s,t))}isMatcher(e){if(!w(e))return!1;let t=!0;return Object.entries(Dl.prototype).forEach(([n,r])=>{k(r)&&(t=t&&b(e[n])&&k(e[n]))}),t}}class Gl{constructor(e){this._states=e}isRelative(e){return 0===(e=e||"").indexOf(".")||0===e.indexOf("^")}find(e,t,n=!0){if(!e&&""!==e)return;const r=E(e);let s=r?e:e.name;this.isRelative(s)&&(s=this.resolvePath(s,t));const i=this._states[s];if(i&&(r||!(r||i!==e&&i.self!==e)))return i;if(r&&n){const e=Object.values(this._states).filter(e=>e.__stateObjectCache.nameGlob&&e.__stateObjectCache.nameGlob.matches(s));return e.length>1&&console.error(`stateMatcher.find: Found multiple matches for ${s} using glob: `,e.map(e=>e.name)),e[0]}}resolvePath(e,t){if(!t)throw new Error(`No reference point given for path '${e}'`);const n=this.find(t),r=e.split("."),s=r.length;let i=0,o=n;for(;i<s;i++)if(""!==r[i]||0!==i){if("^"!==r[i])break;if(!o.parent)throw new Error(`Path '${e}' not valid for state '${n.name}'`);o=o.parent}else o=n;const a=r.slice(i).join(".");return o.name+(o.name&&a?".":"")+a}}function Ql(e){return e.self.$$state=()=>e,e.self}function Jl(e){return e.parent&&e.parent.data&&(e.data=e.self.data=Ta(e.parent.data,e.data)),e.data}function Zl(e,t){return function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const e={};Ka(r,e),e.url+="{remainder:any}",r=e}const s=n.parent,i=function(e){if(!E(e))return!1;const t="^"===e.charAt(0);return{val:t?e.substring(1):e,root:t}}(r.url),o=i?e.compile(i.val,{state:r}):r.url;if(!o)return null;if(!e.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return i&&i.root?o:(s&&s.navigable||t()).url.append(o)}}function Yl(e){return function(t){return!e(t)&&t.url?t:t.parent?t.parent.navigable:null}}function Xl(e){return e.parent?e.parent.path.concat(e):[e]}function eu(e){const t=e.parent?Object.assign({},e.parent.includes):{};return t[e.name]=!0,t}function tu(e){const t=tc([[e=>e.resolveFn,e=>new xc(su(e),e.resolveFn,e.deps,e.policy)],[e=>e.useFactory,e=>new xc(su(e),e.useFactory,e.deps||e.dependencies,e.policy)],[e=>e.useClass,e=>new xc(su(e),()=>new e.useClass,[],e.policy)],[e=>e.useValue,e=>new xc(su(e),()=>e.useValue,[],e.policy,e.useValue)],[e=>e.useExisting,e=>new xc(su(e),e=>e,[e.useExisting],e.policy)]]),n=tc([[e=>E(e.val),e=>new xc(e.token,e=>e,[e.val],e.policy)],[e=>Array.isArray(e.val),e=>new xc(e.token,Wa(e.val),e.val.slice(0,-1),e.policy)],[e=>k(e.val),e=>new xc(e.token,e.val,(e=>{const t=window.angular.$injector;return e.$inject||t&&En(e,t.strictDi)||"deferred"})(e.val),e.policy)]]),r=tc([[Xa(xc),e=>e],[e=>!(!e.token||!e.resolveFn),t],[e=>!!(e&&e.val&&(E(e.val)||Array.isArray(e.val)||k(e.val))),n],[ec(!0),e=>{throw new Error("Invalid resolve value: "+fc(e))}]]),s=e.resolve,i=Array.isArray(s)?s:((e,t)=>Object.keys(e||{}).map(n=>({token:n,val:e[n],deps:void 0,policy:t[n]})))(s,e.resolvePolicy||{});return i.map(r)}class nu{constructor(e,t){this.matcher=e,this.$injector=void 0;const n=this,r=()=>e.find("");var s;this.builders={name:[e=>e.name],self:[Ql],parent:[function(t){return ru(t)?null:e.find(n.parentName(t))||r()}],data:[Jl],url:[Zl(t,r)],navigable:[Yl(ru)],params:[(s=t.paramFactory,function(e){const t=e.url&&e.url.parameters({inherit:!1})||[],n=Object.values(Ma(Na(e.params||{},t.map(e=>e.id)),(t,n)=>s.fromConfig(n,null,e.self)));return t.concat(n).map(e=>[e.id,e]).reduce(za,{})})],views:[],path:[Xl],includes:[eu],resolvables:[tu]}}builder(e,t){const n=this.builders,r=n[e]||[];return E(e)&&!b(t)?r.length>1?r:r[0]:E(e)&&k(t)?(n[e]=r,n[e].push(t),()=>n[e].splice(n[e].indexOf(t,1))&&null):void 0}build(e){const{matcher:t,builders:n}=this,r=this.parentName(e);if(r&&!t.find(r,void 0,!1))return null;for(const t in n){if(!ve(n,t))continue;const r=n[t].reduce((e,t)=>n=>t(n,e),()=>{});e[t]=r(e)}return e}parentName(e){const t=e.name||"",n=t.split(".");if("**"===n.pop()&&n.pop(),n.length){if(e.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${t})`);return n.join(".")}return e.parent?E(e.parent)?e.parent:e.parent.name:""}name(e){const t=e.name;if(-1!==t.indexOf(".")||!e.parent)return t;const n=E(e.parent)?e.parent:e.parent.name;return n?n+"."+t:t}}function ru(e){return""===e.name}function su(e){return e.provide||e.token}class iu{constructor(e,t,n,r,s){this.stateRegistry=e,this.urlServiceRules=t,this.states=n,this.builder=r,this.listeners=s,this.queue=[]}register(e){const t=new Il(e);if(!E(name))throw new Error("State must have a valid name");if(ve(this.states,t.name)||this.queue.map(e=>e.name).includes(t.name))throw new Error(`State '${t.name}' is already defined`);return this.queue.push(t),this.flush(),t}flush(){const{queue:e,states:t,builder:n}=this,r=[],s=[],i={},o=e=>ve(this.states,e)&&this.states[e],a=()=>{r.length&&this.listeners.forEach(e=>e("registered",r.map(e=>e.self)))};for(;e.length>0;){const c=e.shift(),l=c.name,u=n.build(c),h=s.indexOf(c);if(u){const e=o(l);if(e&&e.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.stateRegistry.deregister(n),t[l]=c,this.attachRoute(c),h>=0&&s.splice(h,1),r.push(c);continue}const d=i[l];if(i[l]=e.length,h>=0&&d===e.length)return e.push(c),a(),t;h<0&&s.push(c),e.push(c)}return a(),t}attachRoute(e){if(e.abstract||!e.url)return;const t=this.urlServiceRules;t.rule(t.urlRuleFactory.create(e))}}class ou{static $inject=Zt([Jt.$url,Jt.$state,Jt.$router,Jt.$view]);constructor(e,t,n,r){this.states={},t.stateRegistry=this,this.urlService=e,this.urlServiceRules=e.rules,this.$injector=void 0,this.listeners=[],this.matcher=new Gl(this.states),this.builder=new nu(this.matcher,e),this.builder.builder("views",Ic),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new iu(this,this.urlServiceRules,this.states,this.builder,this.listeners),this.registerRoot(),r.rootViewContext(this.root()),n.$current=this.root(),n.current=n.$current.self}$get=[Jt.$injector,e=>(this.$injector=e,this.builder.$injector=e,this)];getStateHookBuilder(e){let t=this;return function(n){const r=n[e],s="onExit"===e?"from":"to";return r?function(e,n){const i=new Dc(e.treeChanges(s)).subContext(n.$$state()),o=Object.assign(au(i),{$state$:n,$transition$:e});return t.$injector.invoke(r,this,o)}:void 0}}registerRoot(){this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this._root.navigable=null}onStatesChanged(e){return this.listeners.push(e),function(){_a(this.listeners,e)}.bind(this)}root(){return this._root}register(e){return this.stateQueue.register(e)}_deregisterTree(e){const t=this.get().map(e=>e.$$state()),n=e=>{const r=t.filter(t=>-1!==e.indexOf(t.parent));return 0===r.length?r:r.concat(n(r))},r=n([e]),s=[e].concat(r).reverse();return s.forEach(e=>{const t=this.urlServiceRules;t.rules().filter(Za("state",e)).forEach(e=>t.removeRule(e)),delete this.states[e.name]}),s}deregister(e){const t=this.get(e);if(!t)throw new Error("Can't deregister state; not found: "+e);const n=this._deregisterTree(t.$$state());return this.listeners.forEach(e=>e("deregistered",n.map(e=>e.self))),n}get(e,t){if(0===arguments.length)return Object.keys(this.states).map(e=>this.states[e].self);const n=this.matcher.find(e,t);return n&&n.self||null}decorator(e,t){return this.builder.builder(e,t)}}const au=e=>e.getTokens().filter(E).map(t=>{const n=e.getResolvable(t);return[t,"NOWAIT"===e.getPolicy(n).async?n.promise:n.data]}).reduce(za,{});function cu(e){const t=e.match(/^\s*({[^}]*})\s*$/);t&&(e="("+t[1]+")");const n=e.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function lu(e){const t=Pt(e,"$ngView"),n=Ya("$cfg.path")(t);return n?Wa(n).state.name:void 0}function uu(e,t,n){const r=n.ngState||e.current.name,s=Object.assign(function(e,t){return{relative:lu(e)||t.$current,inherit:!0,source:"sref"}}(t,e),n.ngStateOpts||{}),i=e.href(r,n.ngStateParams,s);return{ngState:r,ngStateParams:n.ngStateParams,ngStateOpts:s,href:i}}function hu(e){const t="[object SVGAnimatedString]"===Object.prototype.toString.call(e.getAttribute("href")),n="FORM"===e.nodeName;return{attr:n?"action":t?"xlink:href":"href",isAnchor:"A"===e.nodeName,clickable:!n}}function du(e,t,n,r,s){return function(i){const o=i.which||i.button,a=r();if(o>1||i.ctrlKey||i.metaKey||i.shiftKey||i.altKey||e.getAttribute("target"))i.preventDefault(),i.stopImmediatePropagation();else{const r=setTimeout(function(){if(!e.getAttribute("disabled")){t.go(a.ngState,a.ngStateParams,a.ngStateOpts).then(()=>{s.$emit("$updateBrowser")})}});i.preventDefault();let o=n.isAnchor&&!a.href?1:0;i.preventDefault=function(){o--<=0&&clearTimeout(r)}}}}function pu(e,t,n,r){let s;r&&(s=r.events),Array.isArray(s)||(s=["click"]);for(const t of s)e.addEventListener(t,n);t.$on("$destroy",function(){for(const t of s)e.removeEventListener(t,n)})}function fu(e,t,n){const r=e;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(e,s,i,o)=>{const a=hu(s),c=o[1]||o[0];let l=null;const u={},h=()=>uu(r,s,u),d=cu(i.ngSref);function p(){u.ngStateParams=Object.assign({},e.$eval(d.paramExpr));const t=h();l&&l(),c&&(l=c.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&i.$set(a.attr,t.href)}u.ngState=d.state,u.ngStateOpts=i.ngSrefOpts?e.$eval(i.ngSrefOpts):{},d.paramExpr&&(e.$watch(d.paramExpr,function(e){u.ngStateParams=Object.assign({},e),p()},!0),u.ngStateParams=Object.assign({},e.$eval(d.paramExpr))),p(),e.$on("$destroy",t.onStatesChanged(p)),e.$on("$destroy",n.onSuccess({},p)),a.clickable&&pu(s,e,du(s,r,a,h,e),u.ngStateOpts)}}}function $u(e,t,n){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(r,s,i,o){const a=hu(s),c=o[1]||o[0];let l,u=null;const h={},d=()=>uu(e,s,h),p=["ngState","ngStateParams","ngStateOpts"],f=p.reduce((e,t)=>(e[t]=()=>{},e),{});function $(){const e=d();u&&u(),c&&(u=c.$$addStateInfo(e.ngState,e.ngStateParams)),null!=e.href&&i.$set(a.attr,e.href)}p.forEach(e=>{h[e]=i[e]?r.$eval(i[e]):null,i.$observe(e,t=>{f[e](),f[e]=r.$watch(t,t=>{h[e]=t,$()})})}),$(),r.$on("$destroy",t.onStatesChanged($)),r.$on("$destroy",n.onSuccess({},$)),a.clickable&&(l=du(s,e,a,d,r),pu(s,r,l,h.ngStateOpts))}}}function mu(e,t,n,r,s){return{restrict:"A",controller:function(i,o,a){let c,l,u=[];c=n(a.ngSrefActiveEq||"",!1)(i);try{l=i.$eval(a.ngSrefActive)}catch{}function h(e){e.promise.then($,()=>{})}function d(){p(l)}function p(e){w(e)&&(u=[],Object.entries(e).forEach(([e,t])=>{const n=function(e,t){const n=cu(e);f(n.state,i.$eval(n.paramExpr),t)};E(t)?n(t,e):Array.isArray(t)&&t.forEach(t=>{n(t,e)})}))}function f(t,n,r){const s={state:e.get(t,lu(o))||{name:t},params:n,activeClass:r};return u.push(s),function(){_a(u,s)}}function $(){const t=e=>e.split(/\s/).filter(Boolean),n=e=>e.map(e=>e.activeClass).map(t).reduce(Ua,[]),r=n(u).concat(t(c)).reduce(Ha,[]),s=n(u.filter(t=>e.includes(t.state.name,t.params))),i=!!u.filter(t=>e.is(t.state.name,t.params)).length?t(c):[],a=s.concat(i).reduce(Ha,[]),l=r.filter(e=>!a.includes(e));a.forEach(e=>o.classList.add(e)),l.forEach(e=>o.classList.remove(e))}l=l||n(a.ngSrefActive||"",!1)(i),p(l),this.$$addStateInfo=function(e,t){if(w(l)&&u.length>0)return;const n=f(e,t,l);return $(),n},i.$on("$destroy",function(){const e=r.onStatesChanged(d),t=s.onStart({},h),n=i.$on("$stateChangeSuccess",$);return function(){e(),t(),n()}}()),t.transition&&h(t.transition),$()}}}fu.$inject=["$state","$stateRegistry","$transitions"],$u.$inject=["$state","$stateRegistry","$transitions"],mu.$inject=["$state","$router","$interpolate","$stateRegistry","$transitions"];let gu=["$view","$animate","$viewScroll","$interpolate",function(e,t,n,r){const s={$cfg:{viewDecl:{$context:e.rootViewContext()}},$ngView:{}},i={count:0,terminal:!0,priority:400,transclude:"element",compile:function(o,a,c){return function(o,a,l){const u=l.onload||"",h=l.autoscroll,d={enter:function(e,n,r){me(e)?t.enter(e,null,n).then(r):(n.after(e),r())},leave:function(e,n){me(e)?t.leave(e).then(n):(e.parentElement.removeChild(e),n())}},p=Pt(a,"$ngView")||s,f=r(l.ngView||l.name||"")(o)||"$default";let $,m,g,v;const y={id:i.count++,name:f,fqn:p.$ngView.fqn?p.$ngView.fqn+"."+f:f,config:null,configUpdated:function(e){if(e&&!(e instanceof Fc))return;if(t=v,n=e,t===n)return;var t,n;Ec.traceUIViewConfigUpdated(y,e&&e.viewDecl&&e.viewDecl.$context),v=e,E(e)},get creationContext(){const e=Ya("$cfg.viewDecl.$context")(p),t=Ya("$ngView.creationContext")(p);return e||t}};Ec.traceUIViewEvent("Linking",y),jt(a,"$ngView",{$ngView:y}),E();const w=e.registerUIView(y);function E(e){const t=o.$new(),r=Promise.withResolvers(),s=Promise.withResolvers(),i={$cfg:e,$ngView:y},l={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};t.$emit("$viewContentLoading",f),m=c(t,function(e){jt(e,"$ngViewAnim",l),jt(e,"$ngView",i),d.enter(e,a,function(){r.resolve(),g&&g.$emit("$viewContentAnimationEnded"),(b(h)&&!h||o.$eval(h))&&n(e)}),function(){if($&&(Ec.traceUIViewEvent("Removing (previous) el",Lt($,"$ngView")),$.remove(),$=null),g&&(Ec.traceUIViewEvent("Destroying scope",y),g.$destroy(),g=null),m){const e=Lt(m,"$ngViewAnim");Ec.traceUIViewEvent("Animate out",e),d.leave(m,function(){e.$$animLeave.resolve(),$=null}),$=m,m=null}}()}),g=t,g.$emit("$viewContentLoaded",e||v),g.$eval(u)}o.$on("$destroy",function(){Ec.traceUIViewEvent("Destroying/Unregistering",y),w()})}}};return i}];function vu(e,t,n){const r=Ya("viewDecl.controllerAs"),s=Ya("viewDecl.resolveAs");return{priority:-400,compile:function(i){const o=i.innerHTML;return Tt(i,!0),function(i,a){const c=Lt(a,"$ngView");if(!c)return a.innerHTML=o,void e(a.contentDocument||a.childNodes)(i);const l=c.$cfg||{viewDecl:{},getTemplate:()=>{}},u=l.path&&new Dc(l.path);a.innerHTML=l.getTemplate(a,u)||o,Ec.traceUIViewFill(c.$ngView,a.innerHTML);const h=e(a.contentDocument||a.childNodes),d=l.controller,p=r(l),f=s(l),$=u&&au(u);if(f&&(i.$target[f]=$),d){const e=t(d,Object.assign({},$,{$scope:i,$element:a}));p&&(i.$target[p]=e,i.$target[p][f]=$),jt(a,"$ngControllerController",e),Array.from(a.children).forEach(t=>{jt(t,"$ngControllerController",e)}),function(e,t,n,r){!k(t.$onInit)||r.viewDecl.component||r.viewDecl.componentProvider||t.$onInit();const s=Wa(r.path).state.self,i={bind:t};if(k(t.uiOnParamsChanged)){const o=new Dc(r.path).getResolvable("$transition$").data,a=e=>{if(e===o||-1!==e.exiting().indexOf(s))return;const n=e.params("to"),r=e.params("from"),i=e=>e.paramSchema,a=e.treeChanges("to").map(i).reduce(Ua,[]),c=e.treeChanges("from").map(i).reduce(Ua,[]),l=a.filter(e=>{const t=c.indexOf(e);return-1===t||!c[t].type.equals(n[e.id],r[e.id])});if(l.length){const r=l.map(e=>e.id),s=Ra(n,(e,t)=>-1!==r.indexOf(t));t.uiOnParamsChanged(s,e)}};n.$on("$destroy",e.onSuccess({},a,i))}if(k(t.uiCanExit)){const r=yu++,o="_uiCanExitIds",a=e=>!!e&&(e[o]&&!0===e[o][r]||a(e.redirectedFrom())),c=e=>{let n;const s=e[o]=e[o]||{};return a(e)||(n=Promise.resolve(t.uiCanExit(e)),n.then(e=>s[r]=!1!==e)),n},l={exiting:s.name};n.$on("$destroy",e.onBefore(l,c,i))}}(n,e,i,l)}h(i)}}}}vu.$inject=["$compile","$controller","$transitions"];let yu=0;function bu(e){return{link:(t,n,r)=>{const s=r.ngChannel,i=n.childNodes.length>0,o=e.subscribe(s,e=>{i?w(e)&&t.$merge(e):n.innerHTML=e});t.$on("$destroy",()=>{e.unsubscribeByKey(o)})}}}function wu(e,t){return{restrict:"A",link(n,r,s){const i=s.ngSetter;if(!i)return void t.warn("ng-setter: expression null");const o=e(i).assign;if(!o)return void t.warn("ng-setter: expression invalid");const a=e=>{o(n,e.trim())},c=new MutationObserver(e=>{let t=!1;for(const n of e)if("childList"===n.type||"characterData"===n.type){t=!0;break}t&&a(r.innerHTML)});c.observe(r,{childList:!0,subtree:!0,characterData:!0}),n.$on("$destroy",()=>c.disconnect()),a(r.innerHTML)}}}function Eu(e,t){const n=t||"ng"+e.charAt(0).toUpperCase()+e.slice(1),r=function(e,t){let n;return function(r,s,i,o,a,c,l){function u(e,r,o,a,c){let u=!1;a.animate&&(u=!0);let h=[];if(!["textcontent","delete","none"].includes(r)){if(!e)return;const t=s(e)(o);h=t instanceof DocumentFragment?Array.from(t.childNodes):[t]}const d=a.target,p=d?document.querySelector(d):c;if(p)switch(r){case"innerHTML":u?n?(l.leave(n).done(()=>{n=h[0],l.enter(h[0],p),o.$flushQueue()}),o.$flushQueue()):(n=h[0],l.enter(h[0],p),o.$flushQueue()):p.replaceChildren(...h);break;case"outerHTML":{const e=p.parentNode;if(!e)return;const t=document.createDocumentFragment();if(h.forEach(e=>t.appendChild(e)),u){const r=document.createComment("placeholder");p.parentNode.insertBefore(r,p.nextSibling),l.leave(p).done(()=>{const s=Array.from(t.childNodes);s.forEach(t=>l.enter(t,e,r)),n=s,o.$flushQueue()}),o.$flushQueue()}else e.replaceChild(t,p);break}case"textContent":p.textContent=e;break;case"beforebegin":h.forEach(e=>p.parentNode.insertBefore(e,p));break;case"afterbegin":h.slice().reverse().forEach(e=>p.insertBefore(e,p.firstChild));break;case"beforeend":h.forEach(e=>p.appendChild(e));break;case"afterend":h.slice().reverse().forEach(e=>p.parentNode.insertBefore(e,p.nextSibling));break;case"delete":p.remove();break;case"none":break;default:p.replaceChildren(...h)}else i.warn(`${t}: target "${d}" not found`)}function h(e){let t=null;if("form"===e.tagName.toLowerCase())t=e;else if("form"in e&&e.form)t=e.form;else if(e.hasAttribute("form")){const n=e.getAttribute("form");if(n){const e=document.getElementById(n);e&&"form"===e.tagName.toLowerCase()&&(t=e)}}if(!t){if("name"in e&&"string"==typeof e.name&&e.name.length>0&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)){const t=e.name,n=e.value;return{[t]:n}}return{}}const n=new FormData(t),r={};return n.forEach((e,t)=>{r[t]=e}),r}return{restrict:"A",link(n,s,l){const d=l.trigger||ku(s),p=s.tagName.toLowerCase();b(l.latch)&&l.$observe("latch",ye(()=>s.dispatchEvent(new Event(d))));let f,$=!1;b(l.interval)&&(s.dispatchEvent(new Event(d)),f=setInterval(()=>s.dispatchEvent(new Event(d)),parseInt(l.interval)||1e3)),s.addEventListener(d,async d=>{if(s.disabled)return;"form"===p&&d.preventDefault();const f=l.swap||"innerHTML",m=l[t];if(!m)return void i.warn(`${t}: no URL specified`);const g=e=>{b(l.loading)&&l.$set("loading",!1),b(l.loadingClass)&&l.$removeClass(l.loadingClass);const t=e.data;200<=e.status&&e.status<=299?(b(l.success)&&o(l.success)(n,{$res:t}),b(l.stateSuccess)&&a.go(l.stateSuccess)):400<=e.status&&e.status<=599&&(b(l.error)&&o(l.error)(n,{$res:t}),b(l.stateError)&&a.go(l.stateError)),w(t)?l.target?n.$eval(`${l.target} = ${JSON.stringify(t)}`):n.$merge(t):E(t)&&u(t,f,n,l,s)};if(b(l.delay)&&await be(0|parseInt(l.delay)),!$)if(b(l.throttle)&&($=!0,l.$set("throttled",!0),setTimeout(()=>{l.$set("throttled",!1),$=!1},parseInt(l.throttle))),b(l.loading)&&l.$set("loading",!0),b(l.loadingClass)&&l.$addClass(l.loadingClass),"post"===e||"put"===e){let t;const n={};l.enctype?(n.headers={"Content-Type":l.enctype},t=te(h(s))):t=h(s),r[e](m,t,n).then(g).catch(g)}else if("get"===e&&l.ngSse){const e=m,r={withCredentials:"true"===l.withCredentials,transformMessage:e=>{try{return JSON.parse(e)}catch{return e}},onOpen:()=>{i.info(`${t}: SSE connection opened to ${e}`),b(l.loading)&&l.$set("loading",!1),b(l.loadingClass)&&l.$removeClass(l.loadingClass)},onMessage:e=>{g({status:200,data:e})},onError:e=>{i.error(`${t}: SSE error`,e);g({status:500,data:e})},onReconnect:e=>{i.info(`ngSse: reconnected ${e} time(s)`),l.onReconnect&&o(l.onReconnect)(n,{$count:e})}},s=c(e,r);n.$on("$destroy",()=>{i.info(`${t}: closing SSE connection`),s.close()})}else r[e](m).then(g).catch(g)}),f&&n.$on("$destroy",()=>clearInterval(f)),"load"==d&&s.dispatchEvent(new Event("load"))}}}}(e,n);return r.$inject=[Jt.$http,Jt.$compile,Jt.$log,Jt.$parse,Jt.$state,Jt.$sse,Jt.$animate],r}bu.$inject=[Jt.$eventBus],wu.$inject=[Jt.$parse,Jt.$log];const Cu=Eu("get"),Su=Eu("delete"),xu=Eu("post"),Au=Eu("put"),Ou=Eu("get","ngSse");function ku(e){const t=e.tagName.toLowerCase();return["input","textarea","select"].includes(t)?"change":"form"===t?"submit":"click"}function Tu(e,t){return{restrict:"A",link(n,r,s){const i=s.ngInject;if(!i)return;const o=i.split(";").map(e=>e.trim()).filter(Boolean);for(const r of o)t.has(r)?n[r]=t.get(r):e.warn(`Injectable ${r} not found in $injector`)}}}function _u(){return{restrict:"A",link(e,t,n){const r=n.ngEl,s=r||t.id;e.$target[s]=t;const i=t.parentNode;if(!i)return;const o=new MutationObserver(n=>{for(const r of n)Array.from(r.removedNodes).forEach(n=>{n===t&&(delete e.$target[s],o.disconnect())})});o.observe(i,{childList:!0})}}}Tu.$inject=[Jt.$log,Jt.$injector];class ju{constructor(){this.defaults={retryDelay:1e3,maxRetries:1/0,heartbeatTimeout:15e3,transformMessage(e){try{return JSON.parse(e)}catch{return e}}}}$get=[Jt.$log,e=>(this.$log=e,(e,t={})=>{const n={...this.defaults,...t},r=this.#u(e,n.params);return this.#h(r,n)})];#u(e,t){if(!t)return e;const n=Object.entries(t).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&");return e+(e.includes("?")?"&":"?")+n}#h(e,t){let n,r,s=0,i=!1;const o=()=>{i||(n=new EventSource(e,{withCredentials:!!t.withCredentials}),n.addEventListener("open",e=>{s=0,t.onOpen?.(e),t.heartbeatTimeout&&a()}),n.addEventListener("message",e=>{let n=e.data;try{n=t.transformMessage?t.transformMessage(n):n}catch{}t.onMessage?.(n,e),t.heartbeatTimeout&&a()}),n.addEventListener("error",e=>{t.onError?.(e),i||(n.close(),s<t.maxRetries?(s++,t.onReconnect?.(s),setTimeout(o,t.retryDelay)):this.$log.warn("SSE: Max retries reached"))}))},a=()=>{clearTimeout(r),r=setTimeout(()=>{this.$log.warn("SSE: heartbeat timeout, reconnecting..."),n.close(),t.onReconnect?.(++s),o()},t.heartbeatTimeout)};return o(),{close(){i=!0,clearTimeout(r),n.close()},connect(){0==i&&close(),o()}}}}function Lu(){return{restrict:"A",link(e,t,n){const r=n.onEnter,s=n.onLeave,i=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting?r&&e.$eval(r):s&&e.$eval(s)})},{root:null,threshold:.1});i.observe(t);const o=t.parentNode;let a;o&&(a=new MutationObserver(e=>{for(const n of e)Array.from(n.removedNodes).forEach(e=>{e===t&&(i.disconnect(),a.disconnect())})}),a.observe(o,{childList:!0})),e.$on("$destroy",()=>{i.disconnect(),a&&a.disconnect()})}}}function Nu(e,t,n){return{restrict:"A",link(r,s,i){const o=i.ngWorker;if(!o)return void n.warn("ngWorker: missing worker name");const a=i.trigger||ku(s);let c,l=!1;b(i.latch)&&i.$observe("latch",ye(()=>s.dispatchEvent(new Event(a)))),b(i.interval)&&(s.dispatchEvent(new Event(a)),c=setInterval(()=>s.dispatchEvent(new Event(a)),parseInt(i.interval)||1e3));const u=e(o,{onMessage:e=>{if(b(i.dataOnResult))t(i.dataOnResult)(r,{$result:e});else{!function(e,t,n){switch(t){case"outerHTML":{const t=n.parentNode;if(!t)return;const r=document.createElement("div");r.innerHTML=e,t.replaceChild(r.firstChild,n);break}case"textContent":n.textContent=e;break;case"beforebegin":n.insertAdjacentHTML("beforebegin",e);break;case"afterbegin":n.insertAdjacentHTML("afterbegin",e);break;case"beforeend":n.insertAdjacentHTML("beforeend",e);break;case"afterend":n.insertAdjacentHTML("afterend",e);break;default:n.innerHTML=e}}(e,i.swap||"innerHTML",s)}},onError:e=>{n.error(`[ng-worker:${o}]`,e),b(i.dataOnError)?t(i.dataOnError)(r,{$error:e}):s.textContent="Error"}});s.addEventListener(a,async()=>{if(s.disabled)return;if(b(i.delay)&&await be(parseInt(i.delay)||0),l)return;let e;b(i.throttle)&&(l=!0,i.$set("throttled",!0),setTimeout(()=>{i.$set("throttled",!1),l=!1},parseInt(i.throttle)));try{e=i.params?r.$eval(i.params):void 0}catch(t){n.error("ngWorker: failed to evaluate data-params",t),e=void 0}u.post(e)}),c&&r.$on("$destroy",()=>clearInterval(c)),"load"===a&&s.dispatchEvent(new Event("load"))}}}Nu.$inject=["$worker",Jt.$parse,Jt.$log];class Ru{$log;constructor(){this.defaults={autoTerminate:!1,transformMessage(e){try{return JSON.parse(e)}catch{return e}}}}$get=[Jt.$log,e=>(this.$log=e,(e,t={})=>{const n={...this.defaults,...t};return this.#d(e,n)})];#d(e,t){if(!e)throw new Error("Worker script path required");let n=new Worker(e,{type:"module"}),r=!1;const s=()=>{r||(this.$log.info("Worker: restarting..."),n.terminate(),n=new Worker(e,{type:"module"}),i(n))},i=e=>{e.onmessage=e=>{let n=e.data;try{n=t.transformMessage?t.transformMessage(n):n}catch{}t.onMessage?.(n,e)},e.onerror=e=>{t.onError?.(e),t.autoRestart&&s()}};i(n);let o=this;return{post(e){if(r)return o.$log.warn("Worker already terminated");try{n.postMessage(e)}catch(e){o.$log.error("Worker post failed",e)}},terminate(){r=!0,n.terminate()},restart(){if(r)return o.$log.warn("Worker cannot restart after terminate");s()}}}}const Vu=de("ng"),Mu=de("$injector"),Pu={};const Du=new class{constructor(){this.$cache=Ee,this.$eventBus=Xc,this.version="0.11.0",this.bootsrappedModules=[],this.getController=Mt,this.getInjector=qt,this.getScope=Nt,this.errorHandlingConfig=he,this.$t=Jt,window.angular=this,function(e){e.module("ng",[],[Jt.$provide,e=>{e.provider({$$sanitizeUri:po}),e.value(Jt.$window,window),e.value(Jt.$document,document),e.provider(Jt.$compile,Xn).directive({input:Hr,textarea:Hr,form:or,script:zr,select:Kr,option:Gr,ngBind:Qr,ngBindHtml:Zr,ngBindTemplate:Jr,ngChannel:bu,ngClass:ns,ngClassEven:ss,ngClassOdd:rs,ngCloak:is,ngController:os,ngDelete:Su,ngDisabled:To,ngEl:_u,ngForm:ar,ngGet:Cu,ngHide:us,ngIf:hs,ngInclude:ds,ngInject:Tu,ngInit:fs,ngMessages:go,ngMessage:wo,ngMessageExp:Eo,ngMessagesInclude:bo,ngMessageDefault:Co,ngNonBindable:$s,ngPost:xu,ngPut:Au,ngRef:gs,ngRepeat:ws,ngSetter:wu,ngShow:ls,ngStyle:Es,ngSse:Ou,ngSwitch:Cs,ngSwitchWhen:Ss,ngSwitchDefault:xs,ngOptions:_s,ngTransclude:Ls,ngModel:mr,pattern:Ms,ngPattern:Ms,required:Vs,ngRequired:Vs,ngMinlength:Ds,minlength:Ds,ngMaxlength:Ps,maxlength:Ps,ngValue:Br,ngModelOptions:dr,ngViewport:Lu,ngWorker:Nu}).directive({input:Fr,ngAnimateSwap:Aa,ngAnimateChildren:Oa,ngChecked:Ro,ngClick:Lo,ngDblclick:Uo,ngInclude:ps,ngHide:Mo,ngShow:_o,ngMessages:jo,ngModel:Do,ngReadonly:Po,ngRequired:No,ngValue:Vo,ngSref:fu,ngSrefActive:mu,ngSrefActiveEq:mu,ngState:$u,ngView:gu}).directive({ngView:vu}).directive(Rs).directive(Dn),e.provider({$aria:ko,$anchorScroll:Hs,$animate:zs,$$animation:ha,$animateCss:ra,$$animateCssDriver:Ea,$$animateJs:ca,$$animateJsDriver:xa,$$animateCache:ga,$$animateQueue:aa,$controller:kn,$exceptionHandler:Ks,$filter:si,$interpolate:Si,$http:Ii,$httpParamSerializer:Ri,$location:Qi,$log:eo,$parse:mi,$$rAFScheduler:da,$rootScope:io,$router:cc,$sce:Pn,$sceDelegate:Mn,$sse:ju,$templateCache:Ws,$templateRequest:ho,$urlConfig:ic,$view:qc,$transitions:kl,$state:_l,$viewScroll:jl,$templateFactory:Ll,$url:Kl,$stateRegistry:ou,$eventBus:Zc,$worker:Ru})}]).factory("$stateParams",[Jt.$router,e=>e.params]).value("$trace",Ec)}(this)}bootstrap(e,t,n){if(n=n||{strictDi:!1},(e instanceof Element||e instanceof Document)&&qt(e))throw Vu("btstrpd","App already bootstrapped");Array.isArray(t)&&(this.bootsrappedModules=t),this.bootsrappedModules.unshift(["$provide",t=>{t.value("$rootElement",e)}]),this.bootsrappedModules.unshift("ng");const r=bn(this.bootsrappedModules,n.strictDi);return r.invoke([Jt.$rootScope,Jt.$rootElement,Jt.$compile,Jt.$injector,(e,t,n,r)=>{this.$injector=r,jt(t,"$injector",r);if(n(t)(e),!ve(r,"strictDi"))try{r.invoke(()=>{})}catch(e){r.strictDi=!!/strict mode/.exec(e&&e.toString())}r.get(Jt.$stateRegistry).get().map(e=>e.$$state().resolvables).reduce(Ua,[]).filter(e=>"deferred"===e.deps).forEach(e=>e.deps=En(e.resolveFn,r.strictDi))}]),r}injector(e,t){return bn(e,t)}init(e){let t,n;const r={};ie.forEach(r=>{const s=`${r}app`;e.hasAttribute&&e.hasAttribute(s)&&(t=e,n=e.getAttribute(s))}),ie.forEach(r=>{const s=`${r}app`;let i;!t&&(i=e.querySelector(`[${s.replace(":","\\:")}]`))&&(t=i,n=i.getAttribute(s))}),t&&(r.strictDi=null!==function(e,t){let n,r;const s=ie.length;for(r=0;r<s;++r)if(n=ie[r]+t,E(n=e.getAttribute(n)))return n;return null}(t,"strict-di"),this.bootstrap(t,n?[n]:[],r))}module(e,t,n){return W(e,"module"),t&&ve(Pu,e)&&(Pu[e]=null),function(e,t,n){return e[t]||(e[t]=n())}(Pu,e,()=>{if(!t)throw Mu("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",e);return new en(e,t,n)})}};document.addEventListener("DOMContentLoaded",()=>Du.init(document),{once:!0}),e.angular=Du});